package androidx.lifecycle;

import java.util.HashMap;

/* JADX INFO: renamed from: androidx.lifecycle.f, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1097f implements InterfaceC1111u {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f12168a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Object f12169b;

    public /* synthetic */ C1097f(Object obj, int i6) {
        this.f12168a = i6;
        this.f12169b = obj;
    }

    @Override // androidx.lifecycle.InterfaceC1111u
    public final void a(InterfaceC1113w interfaceC1113w, EnumC1107p enumC1107p) {
        switch (this.f12168a) {
            case 0:
                new HashMap();
                InterfaceC1101j[] interfaceC1101jArr = (InterfaceC1101j[]) this.f12169b;
                if (interfaceC1101jArr.length > 0) {
                    InterfaceC1101j interfaceC1101j = interfaceC1101jArr[0];
                    throw null;
                }
                if (interfaceC1101jArr.length <= 0) {
                    return;
                }
                InterfaceC1101j interfaceC1101j2 = interfaceC1101jArr[0];
                throw null;
            default:
                if (enumC1107p == EnumC1107p.ON_CREATE) {
                    interfaceC1113w.getLifecycle().removeObserver(this);
                    ((Y) this.f12169b).b();
                    return;
                } else {
                    throw new IllegalStateException(("Next event must be ON_CREATE, it was " + enumC1107p).toString());
                }
        }
    }
}
