package ῲ.Ԛ;

import android.os.Bundle;
import androidx.lifecycle.Lifecycle;
import androidx.savedstate.Recreator;
import androidx.savedstate.SavedStateRegistry$1;
import ῲ.ؿ.C1584;

/* renamed from: ῲ.Ԛ.ῲ  reason: contains not printable characters */
/* compiled from: SavedStateRegistryController */
public final class C1561 {

    /* renamed from: ῲ  reason: contains not printable characters */
    public final C1562 f5732 = new C1562();

    /* renamed from: K  reason: contains not printable characters */
    public final AbstractC1560 f5733;

    public C1561(AbstractC1560 r1) {
        this.f5733 = r1;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m4105(Bundle bundle) {
        Lifecycle lifecycle = this.f5733.getLifecycle();
        if (((C1584) lifecycle).f5751 == Lifecycle.State.INITIALIZED) {
            lifecycle.m690(new Recreator(this.f5733));
            C1562 k = this.f5732;
            if (!k.f5734) {
                if (bundle != null) {
                    k.f5735 = bundle.getBundle("androidx.lifecycle.BundlableSavedStateRegistry.key");
                }
                lifecycle.m690(new SavedStateRegistry$1(k));
                k.f5734 = true;
                return;
            }
            throw new IllegalStateException("SavedStateRegistry was already restored.");
        }
        throw new IllegalStateException("Restarter must be created only during owner's initialization stage");
    }
}
