package p037.p112;

import android.os.Bundle;
import androidx.savedstate.Recreator;
import java.util.Map;
import p037.p052.p053.p055.C1706;
import p037.p099.AbstractC2210;
import p037.p099.C2221;
import p037.p099.InterfaceC2208;
import p037.p099.InterfaceC2219;
import p037.p112.C2430;

/* JADX INFO: renamed from: މ.ޑ.ހ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C2433 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final InterfaceC2434 f7707;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final C2430 f7708 = new C2430();

    public C2433(InterfaceC2434 interfaceC2434) {
        this.f7707 = interfaceC2434;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void m4514(Bundle bundle) {
        AbstractC2210 lifecycle = this.f7707.getLifecycle();
        if (((C2221) lifecycle).f7160 != AbstractC2210.EnumC2212.INITIALIZED) {
            throw new IllegalStateException("Restarter must be created only during owner's initialization stage");
        }
        lifecycle.mo4273(new Recreator(this.f7707));
        final C2430 c2430 = this.f7708;
        if (c2430.f7704) {
            throw new IllegalStateException("SavedStateRegistry was already restored.");
        }
        if (bundle != null) {
            c2430.f7703 = bundle.getBundle("androidx.lifecycle.BundlableSavedStateRegistry.key");
        }
        lifecycle.mo4273(new InterfaceC2208() { // from class: androidx.savedstate.SavedStateRegistry$1
            @Override // p037.p099.InterfaceC2217
            /* JADX INFO: renamed from: ֏ */
            public void mo87(InterfaceC2219 interfaceC2219, AbstractC2210.EnumC2211 enumC2211) {
                if (enumC2211 == AbstractC2210.EnumC2211.ON_START) {
                    c2430.f7706 = true;
                } else if (enumC2211 == AbstractC2210.EnumC2211.ON_STOP) {
                    c2430.f7706 = false;
                }
            }
        });
        c2430.f7704 = true;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public void m4515(Bundle bundle) {
        C2430 c2430 = this.f7708;
        if (c2430 == null) {
            throw null;
        }
        Bundle bundle2 = new Bundle();
        Bundle bundle3 = c2430.f7703;
        if (bundle3 != null) {
            bundle2.putAll(bundle3);
        }
        C1706<String, C2430.InterfaceC2432>.C1710 c1710M3329 = c2430.f7702.m3329();
        while (c1710M3329.hasNext()) {
            Map.Entry entry = (Map.Entry) c1710M3329.next();
            bundle2.putBundle((String) entry.getKey(), ((C2430.InterfaceC2432) entry.getValue()).mo815());
        }
        bundle.putBundle("androidx.lifecycle.BundlableSavedStateRegistry.key", bundle2);
    }
}
