package defpackage;

import android.os.Bundle;
import java.util.HashMap;
import java.util.Map;

/* renamed from: ᵡʨˎ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3178 implements InterfaceC2287 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final /* synthetic */ String f12047;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final /* synthetic */ Object f12048;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ int f12049;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final /* synthetic */ Object f12050;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final /* synthetic */ Object f12051;

    public /* synthetic */ C3178(Object obj, String str, Object obj2, Object obj3, int i) {
        this.f12049 = i;
        this.f12048 = obj;
        this.f12047 = str;
        this.f12051 = obj2;
        this.f12050 = obj3;
    }

    @Override // defpackage.InterfaceC2287
    /* renamed from: ᵥᵯˎ */
    public final void mo1223(InterfaceC3985 interfaceC3985, EnumC3315 enumC3315) {
        Bundle bundle;
        int i = this.f12049;
        Object obj = this.f12050;
        Object obj2 = this.f12051;
        String str = this.f12047;
        Object obj3 = this.f12048;
        switch (i) {
            case 0:
                ˁˈᵸ r0 = (ˁˈᵸ) obj;
                InterfaceC1758 interfaceC1758 = (InterfaceC1758) obj2;
                C5371 c5371 = (C5371) obj3;
                if (!EnumC3315.ON_START.equals(enumC3315)) {
                    if (!EnumC3315.ON_STOP.equals(enumC3315)) {
                        if (EnumC3315.ON_DESTROY.equals(enumC3315)) {
                            c5371.m11026(str);
                            break;
                        }
                    } else {
                        c5371.f20139.remove(str);
                        break;
                    }
                } else {
                    HashMap map = c5371.f20139;
                    Bundle bundle2 = c5371.f20140;
                    HashMap map2 = c5371.f20141;
                    map.put(str, new C1551(interfaceC1758, r0));
                    if (map2.containsKey(str)) {
                        Object obj4 = map2.get(str);
                        map2.remove(str);
                        interfaceC1758.mo3768(obj4);
                    }
                    C0098 c0098 = (C0098) bundle2.getParcelable(str);
                    if (c0098 != null) {
                        bundle2.remove(str);
                        interfaceC1758.mo3768(r0.ˑᵥˁ(c0098.f1363, c0098.f1364));
                        break;
                    }
                }
                break;
            default:
                AbstractC4731 abstractC4731 = (AbstractC4731) obj3;
                Map map3 = abstractC4731.f17507;
                if (enumC3315 == EnumC3315.ON_START && (bundle = (Bundle) map3.get(str)) != null) {
                    ((InterfaceC4155) obj2).mo7759(str, bundle);
                    map3.remove(str);
                    AbstractC4731.m9918(2);
                }
                if (enumC3315 == EnumC3315.ON_DESTROY) {
                    ((C4171) obj).m9080(this);
                    abstractC4731.f17505.remove(str);
                    break;
                }
                break;
        }
    }
}
