package androidx.lifecycle;

import android.os.Bundle;
import java.util.Map;
import p006b1.C0474d;
import p006b1.InterfaceC0473c;
import p036l1.InterfaceC1421a;
import p039m1.AbstractC1471h;
import p039m1.C1470g;
import p065v0.C1755c;

/* renamed from: androidx.lifecycle.a0 */
/* loaded from: classes.dex */
public final class C0400a0 implements C1755c.InterfaceC1758c {

    /* renamed from: a */
    public final C1755c f1610a;

    /* renamed from: b */
    public boolean f1611b;

    /* renamed from: c */
    public Bundle f1612c;

    /* renamed from: d */
    public final InterfaceC0473c f1613d;

    /* renamed from: androidx.lifecycle.a0$a */
    /* loaded from: classes.dex */
    public static final class C0401a extends AbstractC1471h implements InterfaceC1421a<C0403b0> {

        /* renamed from: e */
        public final /* synthetic */ InterfaceC0423h0 f1614e;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C0401a(InterfaceC0423h0 interfaceC0423h0) {
            super(0);
            this.f1614e = interfaceC0423h0;
        }

        @Override // p036l1.InterfaceC1421a
        /* renamed from: c */
        public final C0403b0 mo1280a() {
            return C0455z.m3641b(this.f1614e);
        }
    }

    public C0400a0(C1755c c1755c, InterfaceC0423h0 interfaceC0423h0) {
        C1470g.m1292e(c1755c, "savedStateRegistry");
        C1470g.m1292e(interfaceC0423h0, "viewModelStoreOwner");
        this.f1610a = c1755c;
        this.f1613d = C0474d.m3631a(new C0401a(interfaceC0423h0));
    }

    @Override // p065v0.C1755c.InterfaceC1758c
    /* renamed from: a */
    public Bundle mo461a() {
        Bundle bundle = new Bundle();
        Bundle bundle2 = this.f1612c;
        if (bundle2 != null) {
            bundle.putAll(bundle2);
        }
        for (Map.Entry<String, C0453y> entry : m3732b().m3724e().entrySet()) {
            String key = entry.getKey();
            Bundle mo461a = entry.getValue().m3646c().mo461a();
            if (!C1470g.m1296a(mo461a, Bundle.EMPTY)) {
                bundle.putBundle(key, mo461a);
            }
        }
        this.f1611b = false;
        return bundle;
    }

    /* renamed from: b */
    public final C0403b0 m3732b() {
        return (C0403b0) this.f1613d.getValue();
    }

    /* renamed from: c */
    public final void m3731c() {
        if (this.f1611b) {
            return;
        }
        this.f1612c = this.f1610a.m470b("androidx.lifecycle.internal.SavedStateHandlesProvider");
        this.f1611b = true;
        m3732b();
    }
}