package defpackage;

import com.google.crypto.tink.internal.TinkBugException;
import java.security.GeneralSecurityException;
import java.util.HashMap;
import java.util.concurrent.atomic.AtomicReference;

/* JADX INFO: renamed from: ᵿˈ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C5495 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static final C5495 f20773;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final AtomicReference f20774 = new AtomicReference(new C4027(new ᵥᵵᵶᵩ(27)));

    static {
        try {
            C5495 c5495 = new C5495();
            c5495.m11133(new C0930(C3585.class, new C4935(18)));
            f20773 = c5495;
        } catch (Exception e) {
            throw new TinkBugException(e);
        }
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final AbstractC1378 m11127(C0767 c0767) throws GeneralSecurityException {
        C4027 c4027 = (C4027) this.f20774.get();
        c4027.getClass();
        C3997 c3997 = new C3997(C0767.class, (C2855) c0767.f3433);
        HashMap map = c4027.f15491;
        if (map.containsKey(c3997)) {
            return ((C0227) map.get(c3997)).f1735.mo3987(c0767);
        }
        C4468.m9507("No Parameters Parser for requested key type ", c3997, " available");
        return null;
    }

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final InterfaceC0418 m11128(AbstractC1378 abstractC1378) throws GeneralSecurityException {
        C4027 c4027 = (C4027) this.f20774.get();
        c4027.getClass();
        C0567 c0567 = new C0567(abstractC1378.getClass(), C0767.class);
        HashMap map = c4027.f15489;
        if (map.containsKey(c0567)) {
            return ((C2900) map.get(c0567)).f11148.mo3986(abstractC1378);
        }
        C4468.m9507("No Key Format serializer for ", c0567, " available");
        return null;
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final synchronized void m11129(C1017 c1017) {
        ᵥᵵᵶᵩ r0 = new ᵥᵵᵶᵩ((C4027) this.f20774.get());
        c1017.getClass();
        C3997 c3997 = new C3997(C2781.class, c1017.f4439);
        HashMap map = (HashMap) r0.ᵔᵖᵹᵫ;
        if (map.containsKey(c3997)) {
            C1017 c10172 = (C1017) map.get(c3997);
            if (!c10172.equals(c1017) || c1017 != c10172) {
                C1685.m4565(c3997, "Attempt to register non-equal parser for already existing object of type: ");
            }
        } else {
            map.put(c3997, c1017);
        }
        this.f20774.set(new C4027(r0));
    }

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final synchronized void m11130(C0227 c0227) {
        ᵥᵵᵶᵩ r0 = new ᵥᵵᵶᵩ((C4027) this.f20774.get());
        c0227.getClass();
        C3997 c3997 = new C3997(C0767.class, c0227.f1736);
        HashMap map = (HashMap) r0.ᵯᵷʽ;
        if (map.containsKey(c3997)) {
            C0227 c02272 = (C0227) map.get(c3997);
            if (!c02272.equals(c0227) || c0227 != c02272) {
                C1685.m4565(c3997, "Attempt to register non-equal parser for already existing object of type: ");
            }
        } else {
            map.put(c3997, c0227);
        }
        this.f20774.set(new C4027(r0));
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final ᵺᵘ m11131(C2781 c2781) {
        C4027 c4027 = (C4027) this.f20774.get();
        c4027.getClass();
        C3997 c3997 = new C3997(C2781.class, (C2855) c2781.f10704);
        HashMap map = c4027.f15488;
        if (map.containsKey(c3997)) {
            return ((C1017) map.get(c3997)).f4438.mo3985(c2781);
        }
        C4468.m9507("No Key Parser for requested key type ", c3997, " available");
        return null;
    }

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final InterfaceC0418 m11132(ᵺᵘ r4) throws GeneralSecurityException {
        C4027 c4027 = (C4027) this.f20774.get();
        c4027.getClass();
        C0567 c0567 = new C0567(r4.getClass(), C2781.class);
        HashMap map = c4027.f15490;
        if (map.containsKey(c0567)) {
            return ((C0930) map.get(c0567)).f4058.mo3989(r4);
        }
        C4468.m9507("No Key serializer for ", c0567, " available");
        return null;
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final synchronized void m11133(C0930 c0930) {
        ᵥᵵᵶᵩ r0 = new ᵥᵵᵶᵩ((C4027) this.f20774.get());
        C0567 c0567 = new C0567(c0930.f4059, C2781.class);
        HashMap map = (HashMap) r0.ᵜᵪʾ;
        if (map.containsKey(c0567)) {
            C0930 c09302 = (C0930) map.get(c0567);
            if (!c09302.equals(c0930) || c0930 != c09302) {
                C1685.m4565(c0567, "Attempt to register non-equal serializer for already existing object of type: ");
            }
        } else {
            map.put(c0567, c0930);
        }
        this.f20774.set(new C4027(r0));
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final synchronized void m11134(C2900 c2900) {
        ᵥᵵᵶᵩ r0 = new ᵥᵵᵶᵩ((C4027) this.f20774.get());
        C0567 c0567 = new C0567(c2900.f11149, C0767.class);
        HashMap map = (HashMap) r0.ᵨᵼⁱ;
        if (map.containsKey(c0567)) {
            C2900 c29002 = (C2900) map.get(c0567);
            if (!c29002.equals(c2900) || c2900 != c29002) {
                C1685.m4565(c0567, "Attempt to register non-equal serializer for already existing object of type: ");
            }
        } else {
            map.put(c0567, c2900);
        }
        this.f20774.set(new C4027(r0));
    }
}
