package p2;

import F1.C0186o;
import androidx.lifecycle.C1104m;
import androidx.lifecycle.EnumC1108q;
import androidx.navigation.C1134i;
import d3.C1931v0;
import java.util.LinkedHashMap;
import n2.InterfaceC2618i;
import u5.d;
import x5.x;

/* JADX INFO: renamed from: p2.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2720a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public boolean f22960a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public boolean f22961b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f22962c;

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

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

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

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

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public Object f22967h;

    public C2720a(InterfaceC2618i interfaceC2618i, C1931v0 c1931v0) {
        this.f22963d = interfaceC2618i;
        this.f22964e = c1931v0;
        this.f22965f = new C1134i(14);
        this.f22966g = new LinkedHashMap();
        this.f22962c = true;
    }

    public void a() {
        InterfaceC2618i interfaceC2618i = (InterfaceC2618i) this.f22963d;
        if (interfaceC2618i.getLifecycle().getCurrentState() != EnumC1108q.f12181b) {
            throw new IllegalStateException("Restarter must be created only during owner's initialization stage");
        }
        if (this.f22960a) {
            throw new IllegalStateException("SavedStateRegistry was already attached.");
        }
        ((C1931v0) this.f22964e).invoke();
        interfaceC2618i.getLifecycle().addObserver(new C1104m(this, 4));
        this.f22960a = true;
    }

    public C2720a(x xVar, C0186o c0186o, C0186o c0186o2, C2720a c2720a, d dVar, boolean z6) {
        this.f22961b = true;
        this.f22962c = false;
        this.f22963d = xVar;
        this.f22964e = c0186o;
        this.f22965f = c0186o2;
        this.f22960a = z6;
        this.f22966g = c2720a;
        this.f22967h = dVar;
    }
}
