package V1;

import C4.f;
import E1.C0106m;
import F5.C0115b;
import U1.e;
import android.os.Bundle;
import androidx.lifecycle.EnumC0510o;
import java.util.LinkedHashMap;

/* JADX INFO: loaded from: classes.dex */
public final class a {

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

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

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

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public Bundle f6856f;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final f f6853c = new f(17);

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final LinkedHashMap f6854d = new LinkedHashMap();

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public boolean f6858h = true;

    public a(e eVar, C0115b c0115b) {
        this.f6851a = eVar;
        this.f6852b = c0115b;
    }

    public final void a() {
        e eVar = this.f6851a;
        if (eVar.C().l() != EnumC0510o.f8835r) {
            throw new IllegalStateException("Restarter must be created only during owner's initialization stage");
        }
        if (this.f6855e) {
            throw new IllegalStateException("SavedStateRegistry was already attached.");
        }
        this.f6852b.a();
        eVar.C().f(new C0106m(2, this));
        this.f6855e = true;
    }
}
