package o;

import android.os.Bundle;
import java.util.LinkedHashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.m40, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1830m40 {
    public final InterfaceC1925n40 a;
    public final C1164f5 b;
    public boolean e;
    public Bundle f;
    public boolean g;
    public final C2616uQ c = new C2616uQ(17);
    public final LinkedHashMap d = new LinkedHashMap();
    public boolean h = true;

    public C1830m40(InterfaceC1925n40 interfaceC1925n40, C1164f5 c1164f5) {
        this.a = interfaceC1925n40;
        this.b = c1164f5;
    }

    public final void a() {
        InterfaceC1925n40 interfaceC1925n40 = this.a;
        if (interfaceC1925n40.getLifecycle().b() != VK.m) {
            throw new IllegalStateException("Restarter must be created only during owner's initialization stage");
        }
        if (this.e) {
            throw new IllegalStateException("SavedStateRegistry was already attached.");
        }
        this.b.a();
        interfaceC1925n40.getLifecycle().a(new C2522tR(1, this));
        this.e = true;
    }
}
