package defpackage;

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

/* JADX INFO: renamed from: ᵼᵶᵤ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C5321 implements InterfaceC5276 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final /* synthetic */ int f20076;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final /* synthetic */ Object f20077;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final /* synthetic */ String f20078;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final /* synthetic */ Object f20079;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final /* synthetic */ Object f20080;

    public /* synthetic */ C5321(Object obj, String str, Object obj2, Object obj3, int i) {
        this.f20076 = i;
        this.f20080 = obj;
        this.f20078 = str;
        this.f20077 = obj2;
        this.f20079 = obj3;
    }

    @Override // defpackage.InterfaceC5276
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public final void mo1879(InterfaceC1569 interfaceC1569, EnumC1653 enumC1653) {
        Bundle bundle;
        int i = this.f20076;
        Object obj = this.f20079;
        Object obj2 = this.f20077;
        String str = this.f20078;
        Object obj3 = this.f20080;
        switch (i) {
            case 0:
                ᵸᵺᵜ r0 = (ᵸᵺᵜ) obj;
                InterfaceC1142 interfaceC1142 = (InterfaceC1142) obj2;
                C2358 c2358 = (C2358) obj3;
                if (EnumC1653.ON_START.equals(enumC1653)) {
                    HashMap map = c2358.f9246;
                    Bundle bundle2 = c2358.f9248;
                    HashMap map2 = c2358.f9250;
                    map.put(str, new C3490(interfaceC1142, r0));
                    if (map2.containsKey(str)) {
                        Object obj4 = map2.get(str);
                        map2.remove(str);
                        interfaceC1142.mo1381(obj4);
                    }
                    C5344 c5344 = (C5344) bundle2.getParcelable(str);
                    if (c5344 != null) {
                        bundle2.remove(str);
                        interfaceC1142.mo1381(r0.ˌᵨʠᵫ(c5344.f20161, c5344.f20160));
                    }
                } else if (EnumC1653.ON_STOP.equals(enumC1653)) {
                    c2358.f9246.remove(str);
                } else if (EnumC1653.ON_DESTROY.equals(enumC1653)) {
                    c2358.m6042(str);
                }
                break;
            default:
                AbstractC0651 abstractC0651 = (AbstractC0651) obj3;
                Map map3 = abstractC0651.f3069;
                if (enumC1653 == EnumC1653.ON_START && (bundle = (Bundle) map3.get(str)) != null) {
                    ((InterfaceC0385) obj2).mo1707(str, bundle);
                    map3.remove(str);
                    AbstractC0651.m2324(2);
                }
                if (enumC1653 == EnumC1653.ON_DESTROY) {
                    ((C0727) obj).m2598(this);
                    abstractC0651.f3059.remove(str);
                }
                break;
        }
    }
}
