package defpackage;

import android.os.Bundle;
import java.util.Arrays;
import java.util.Map;

/* renamed from: ᵘᵳ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2540 implements InterfaceC5099 {

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public Bundle f9901;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final C5553 f9902;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public boolean f9903;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final C4844 f9904;

    public C2540(C5553 c5553, InterfaceC2827 interfaceC2827) {
        this.f9902 = c5553;
        this.f9904 = new C4844(new ᵬᵮˎ(13, interfaceC2827));
    }

    @Override // defpackage.InterfaceC5099
    /* renamed from: ᵥᵯˎ */
    public final Bundle mo3805() {
        Bundle bundle = ˉˇʨ.ᵻᵢﹳᵰ((C2836[]) Arrays.copyOf(new C2836[0], 0));
        Bundle bundle2 = this.f9901;
        if (bundle2 != null) {
            bundle.putAll(bundle2);
        }
        for (Map.Entry entry : ((C3984) this.f9904.getValue()).f15027.entrySet()) {
            String str = (String) entry.getKey();
            Bundle bundleMo3805 = ((C1609) ((C2268) entry.getValue()).f8872.ᵡⁱᵥ).mo3805();
            if (!bundleMo3805.isEmpty()) {
                bundle.putBundle(str, bundleMo3805);
            }
        }
        this.f9903 = false;
        return bundle;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void m6396() {
        if (this.f9903) {
            return;
        }
        Bundle bundleM11190 = this.f9902.m11190("androidx.lifecycle.internal.SavedStateHandlesProvider");
        Bundle bundle = ˉˇʨ.ᵻᵢﹳᵰ((C2836[]) Arrays.copyOf(new C2836[0], 0));
        Bundle bundle2 = this.f9901;
        if (bundle2 != null) {
            bundle.putAll(bundle2);
        }
        if (bundleM11190 != null) {
            bundle.putAll(bundleM11190);
        }
        this.f9901 = bundle;
        this.f9903 = true;
    }
}
