package defpackage;

import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.os.PowerManager;
import android.preference.PreferenceManager;
import android.provider.DocumentsContract;
import android.view.View;
import com.google.firebase.remoteconfig.FirebaseRemoteConfigClientException;
import com.hierynomus.security.SecurityException;
import j$.util.DesugarCollections;
import java.io.ByteArrayInputStream;
import java.io.EOFException;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Map;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import net.lingala.zip4j.exception.ZipException;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/* renamed from: ﹳʾ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public class C5553 implements InterfaceC0929, InterfaceC1783, InterfaceC3314, InterfaceC5287, InterfaceC1982, InterfaceC0782, InterfaceC4103 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public Object f20833;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ int f20834;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public Object f20835;

    public C5553(int i) {
        this.f20834 = i;
        switch (i) {
            case 14:
                this.f20833 = new HashMap();
                this.f20835 = new HashMap();
                break;
            default:
                this.f20833 = new HashMap();
                break;
        }
    }

    public /* synthetic */ C5553(int i, Object obj) {
        this.f20834 = i;
        this.f20833 = obj;
    }

    public /* synthetic */ C5553(int i, Object obj, Object obj2, boolean z) {
        this.f20834 = i;
        this.f20835 = obj;
        this.f20833 = obj2;
    }

    public /* synthetic */ C5553(int i, boolean z) {
        this.f20834 = i;
    }

    public C5553(Context context, String str, String str2) {
        this.f20834 = 22;
        if (str == null) {
            ᵹˉᵞ.ˌᵜᵹᵩ("keysetName cannot be null");
            throw null;
        }
        this.f20835 = str;
        Context applicationContext = context.getApplicationContext();
        if (str2 == null) {
            this.f20833 = PreferenceManager.getDefaultSharedPreferences(applicationContext).edit();
        } else {
            this.f20833 = applicationContext.getSharedPreferences(str2, 0).edit();
        }
    }

    public C5553(ByteArrayInputStream byteArrayInputStream) {
        this.f20834 = 10;
        C4939 c4939 = new C4939(byteArrayInputStream);
        this.f20833 = c4939;
        this.f20835 = new C0175(c4939);
    }

    public /* synthetic */ C5553(Object obj, int i, Object obj2) {
        this.f20834 = i;
        this.f20833 = obj;
        this.f20835 = obj2;
    }

    public C5553(String str) throws SecurityException {
        this.f20834 = 1;
        this.f20833 = str;
        try {
            this.f20835 = Mac.getInstance(str);
        } catch (NoSuchAlgorithmException | NoSuchProviderException e) {
            throw new SecurityException(e);
        }
    }

    public C5553(ʽᵡ r3) {
        this.f20834 = 5;
        ᵮᵥٴ r0 = new ᵮᵥٴ(r3);
        this.f20835 = new C3480(3);
        this.f20833 = r0;
    }

    public C5553(InterfaceC0853 interfaceC0853) {
        this.f20834 = 28;
        this.f20833 = interfaceC0853;
        C4310 c4310 = new C4310();
        c4310.f16156 = 0;
        this.f20835 = c4310;
    }

    public C5553(C1885 c1885) {
        this.f20834 = 14;
        this.f20833 = new HashMap(c1885.f7605);
        this.f20835 = new HashMap(c1885.f7606);
    }

    public C5553(C2325 c2325) {
        this.f20834 = 16;
        this.f20835 = c2325;
        this.f20833 = AbstractC3558.m8130(null);
    }

    public C5553(InterfaceC3290 interfaceC3290) {
        this.f20834 = 11;
        this.f20835 = DesugarCollections.synchronizedMap(new HashMap());
        this.f20833 = interfaceC3290;
    }

    public C5553(C3920 c3920, AbstractC5244 abstractC5244) {
        this.f20834 = 21;
        C0406 c0406 = C0406.f2297;
        C4140 c4140 = C4140.f15469;
        this.f20833 = c3920;
        this.f20835 = abstractC5244;
    }

    public C5553(C3959 c3959) {
        this.f20834 = 2;
        this.f20835 = c3959;
        this.f20833 = new short[768];
    }

    public C5553(C4471 c4471, int[] iArr) {
        this.f20834 = 7;
        this.f20833 = AbstractC2692.m6700(c4471);
        this.f20835 = iArr;
    }

    public C5553(C4752 c4752) {
        this.f20834 = 26;
        this.f20833 = c4752;
        this.f20835 = new Object();
    }

    public C5553(char[] cArr, long j, boolean z) throws ZipException {
        this.f20834 = 24;
        C2453 c2453 = new C2453();
        this.f20833 = c2453;
        if (cArr == null || cArr.length <= 0) {
            C0190.m1425("input password is null or empty, cannot initialize standard encrypter");
            throw null;
        }
        c2453.m6264(cArr, z);
        byte[] bArr = new byte[12];
        SecureRandom secureRandom = new SecureRandom();
        for (int i = 0; i < 12; i++) {
            byte bNextInt = (byte) secureRandom.nextInt(256);
            C2453 c24532 = (C2453) this.f20833;
            byte bM6263 = (byte) ((c24532.m6263() & 255) ^ bNextInt);
            c24532.m6262(bNextInt);
            bArr[i] = bM6263;
        }
        this.f20835 = bArr;
        c2453.m6264(cArr, z);
        byte[] bArr2 = (byte[]) this.f20835;
        bArr2[11] = (byte) (j >>> 24);
        bArr2[10] = (byte) (j >>> 16);
        mo3165(bArr2, 0, bArr2.length);
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public static C5553 m11170(Context context, Uri uri) {
        String treeDocumentId = DocumentsContract.getTreeDocumentId(uri);
        if (DocumentsContract.isDocumentUri(context, uri)) {
            treeDocumentId = DocumentsContract.getDocumentId(uri);
        }
        if (treeDocumentId == null) {
            ᵨᴵᵺ.ᵨᵳʝ(uri, "Could not get document ID from Uri: ");
            return null;
        }
        Uri uriBuildDocumentUriUsingTree = DocumentsContract.buildDocumentUriUsingTree(uri, treeDocumentId);
        if (uriBuildDocumentUriUsingTree != null) {
            return new C5553(context, 27, uriBuildDocumentUriUsingTree);
        }
        throw new NullPointerException("Failed to build documentUri from a tree: " + uri);
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public static void m11171(C5553 c5553, boolean z, boolean z2) {
        synchronized (c5553) {
            boolean z3 = false;
            if (z) {
                if (((PowerManager.WakeLock) c5553.f20835) == null) {
                    if (((Context) c5553.f20833).checkSelfPermission("android.permission.WAKE_LOCK") != 0) {
                        ᵳʿˉ.ᵶʔᵢˊ("WAKE_LOCK permission not granted, can't acquire wake lock for playback");
                        return;
                    }
                    PowerManager powerManager = (PowerManager) ((Context) c5553.f20833).getSystemService("power");
                    if (powerManager == null) {
                        ᵳʿˉ.ᵶʔᵢˊ("PowerManager is null, therefore not creating the WakeLock.");
                        return;
                    } else {
                        PowerManager.WakeLock wakeLockNewWakeLock = powerManager.newWakeLock(1, "ExoPlayer:WakeLockManager");
                        c5553.f20835 = wakeLockNewWakeLock;
                        wakeLockNewWakeLock.setReferenceCounted(false);
                    }
                }
            }
            PowerManager.WakeLock wakeLock = (PowerManager.WakeLock) c5553.f20835;
            if (wakeLock == null) {
                return;
            }
            if (z && z2) {
                z3 = true;
            }
            if (z3) {
                wakeLock.acquire();
            } else {
                wakeLock.release();
            }
        }
    }

    @Override // defpackage.InterfaceC2765
    public Object get() {
        switch (this.f20834) {
            case 4:
                return new C1573((Context) ((ᵽʝˇـ) this.f20833).ᵧᵾˀˈ, (ᵧˉʙ) ((ˊᵘʛ) this.f20835).get());
            default:
                ˉᵻ r2 = new ˉᵻ(15);
                ˊᵿʗ r3 = new ˊᵿʗ(13);
                Object obj = ((InterfaceC2765) this.f20833).get();
                InterfaceC2765 interfaceC2765 = (InterfaceC2765) this.f20835;
                return new C3089(r2, r3, C5121.f19078, (C1408) obj, interfaceC2765);
        }
    }

    public String toString() {
        switch (this.f20834) {
            case 18:
                StringBuilder sb = new StringBuilder("FileNotifyInfo{action=");
                sb.append((EnumC1433) this.f20833);
                sb.append(", fileName='");
                return AbstractC1327.m4107(sb, (String) this.f20835, "'}");
            default:
                return super.toString();
        }
    }

    @Override // defpackage.InterfaceC0929
    public void update(byte[] bArr) throws IllegalStateException {
        ((Mac) this.f20835).update(bArr);
    }

    @Override // defpackage.InterfaceC0929
    public void update(byte[] bArr, int i, int i2) throws IllegalStateException {
        ((Mac) this.f20835).update(bArr, i, i2);
    }

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public byte m11172() {
        return (byte) ((C0175) this.f20835).readUnsignedByte();
    }

    @Override // defpackage.InterfaceC5287
    /* renamed from: ˇʼʤˎ */
    public byte[] mo5875(int i, byte[] bArr) {
        return bArr.length <= 64 ? ((C2213) this.f20833).mo5875(i, bArr) : ((ᵶˉᵹʣ) this.f20835).ˇʼʤˎ(i, bArr);
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public boolean m11173(C3084 c3084) {
        boolean zContainsKey;
        synchronized (this.f20835) {
            zContainsKey = ((C4752) this.f20833).f17615.containsKey(c3084);
        }
        return zContainsKey;
    }

    @Override // defpackage.InterfaceC0782
    /* renamed from: ˎˏʜʾ */
    public void mo2869(Object obj) {
        C5175 c5175 = (C5175) this.f20835;
        C1370 c1370 = (C1370) this.f20833;
        C1370 c13702 = c5175.f19268;
        if (c13702 == null || c13702 != c1370) {
            return;
        }
        C5175 c51752 = (C5175) this.f20835;
        C1370 c13703 = (C1370) this.f20833;
        C3318 c3318 = c51752.f19271.f4722;
        if (obj == null || !c3318.m7705(c13703.f5643.mo5388())) {
            RunnableC2904 runnableC2904 = c51752.f19269;
            InterfaceC4207 interfaceC4207 = c13703.f5644;
            InterfaceC2918 interfaceC2918 = c13703.f5643;
            runnableC2904.mo7092(interfaceC4207, obj, interfaceC2918, interfaceC2918.mo5388(), c51752.f19267);
            return;
        }
        c51752.f19270 = obj;
        RunnableC2904 runnableC29042 = c51752.f19269;
        runnableC29042.f11297 = 2;
        C4732 c4732 = runnableC29042.f11272;
        (c4732.f17538 ? c4732.f17526 : c4732.f17529).execute(runnableC29042);
    }

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public void m11174(C2933 c2933) throws GeneralSecurityException {
        Class cls;
        HashMap map = (HashMap) this.f20835;
        switch (c2933.f11374) {
            case 0:
                cls = InterfaceC2556.class;
                break;
            case 1:
                cls = C0678.class;
                break;
            case 2:
                cls = InterfaceC4799.class;
                break;
            default:
                cls = InterfaceC0995.class;
                break;
        }
        if (!map.containsKey(cls)) {
            map.put(cls, c2933);
            return;
        }
        C2933 c29332 = (C2933) map.get(cls);
        if (!c29332.equals(c2933) || !c2933.equals(c29332)) {
            throw new GeneralSecurityException(AbstractC2990.m7322(cls, "Attempt to register non-equal PrimitiveWrapper object or input class object for already existing object of type"));
        }
    }

    @Override // defpackage.InterfaceC0929
    /* renamed from: ˏˋٴ */
    public void mo3172(byte[] bArr) throws InvalidKeyException, SecurityException {
        try {
            ((Mac) this.f20835).init(new SecretKeySpec(bArr, (String) this.f20833));
        } catch (InvalidKeyException e) {
            throw new SecurityException(e);
        }
    }

    @Override // defpackage.InterfaceC0782
    /* renamed from: ˏᵙ */
    public void mo2870(Exception exc) {
        C5175 c5175 = (C5175) this.f20835;
        C1370 c1370 = (C1370) this.f20833;
        C1370 c13702 = c5175.f19268;
        if (c13702 == null || c13702 != c1370) {
            return;
        }
        C5175 c51752 = (C5175) this.f20835;
        C1370 c13703 = (C1370) this.f20833;
        RunnableC2904 runnableC2904 = c51752.f19269;
        C2661 c2661 = c51752.f19267;
        InterfaceC2918 interfaceC2918 = c13703.f5643;
        runnableC2904.mo7086(c2661, exc, interfaceC2918, interfaceC2918.mo5388());
    }

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public void m11175(C4236 c4236) throws GeneralSecurityException {
        HashMap map = (HashMap) this.f20833;
        if (c4236 == null) {
            C1260.m3813("primitive constructor must be non-null");
            return;
        }
        C0126 c0126 = new C0126(c4236.f15865, c4236.f15866);
        if (!map.containsKey(c0126)) {
            map.put(c0126, c4236);
            return;
        }
        C4236 c42362 = (C4236) map.get(c0126);
        if (c42362.equals(c4236) && c4236 == c42362) {
            return;
        }
        C0910.m3054(c0126, "Attempt to register non-equal PrimitiveConstructor object for already existing object of type: ");
    }

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public InterfaceC5099 m11176() {
        InterfaceC5099 interfaceC5099;
        C5347 c5347 = (C5347) this.f20833;
        synchronized (c5347.f20035) {
            Iterator it = c5347.f20039.entrySet().iterator();
            do {
                interfaceC5099 = null;
                if (!it.hasNext()) {
                    break;
                }
                Map.Entry entry = (Map.Entry) it.next();
                String str = (String) entry.getKey();
                InterfaceC5099 interfaceC50992 = (InterfaceC5099) entry.getValue();
                if (ᵲᵝᵪ.ᵹᵝᵶ(str, "androidx.lifecycle.internal.SavedStateHandlesProvider")) {
                    interfaceC5099 = interfaceC50992;
                }
            } while (interfaceC5099 == null);
        }
        return interfaceC5099;
    }

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public C4997 m11177(C3084 c3084) {
        C4997 c4997M10031;
        synchronized (this.f20835) {
            c4997M10031 = ((C4752) this.f20833).m10031(c3084);
        }
        return c4997M10031;
    }

    @Override // defpackage.InterfaceC1982
    /* renamed from: ᵞʡ */
    public void mo4985() {
        final C3896 c3896 = (C3896) this.f20835;
        final int i = 0;
        c3896.f14519.post(new Runnable() { // from class: ˋᵷᵮ
            @Override // java.lang.Runnable
            public final void run() {
                int i2 = i;
                C3896 c38962 = c3896;
                switch (i2) {
                    case 0:
                        C3896.m8549(c38962);
                        break;
                    default:
                        C3896.m8549(c38962);
                        break;
                }
            }
        });
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public void m11178(int i) throws EOFException {
        if (i != ((C0175) this.f20835).skipBytes(i)) {
            throw new EOFException();
        }
    }

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public void m11179(InterfaceC3791 interfaceC3791) {
        interfaceC3791.mo2497(this);
        interfaceC3791.mo2496(this);
        interfaceC3791.mo2495(this);
    }

    @Override // defpackage.InterfaceC1982
    /* renamed from: ᵡⁱᵥ */
    public void mo4987(InterfaceC5013 interfaceC5013) {
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public boolean m11180(View view) {
        C4310 c4310 = (C4310) this.f20835;
        InterfaceC0853 interfaceC0853 = (InterfaceC0853) this.f20833;
        int iM2972 = interfaceC0853.m2972();
        int iM2975 = interfaceC0853.m2975();
        int iM2976 = interfaceC0853.m2976(view);
        int iM2973 = interfaceC0853.m2973(view);
        c4310.f16157 = iM2972;
        c4310.f16155 = iM2975;
        c4310.f16158 = iM2976;
        c4310.f16154 = iM2973;
        c4310.f16156 = 24579;
        return c4310.m9286();
    }

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public void m11181() {
        C2325 c2325 = (C2325) this.f20835;
        ᵛᵾˏ.ᵿʗᵝʽ(c2325.f9123 == 2);
        c2325.f9123 = 1;
        c2325.f9114 = false;
        long j = c2325.f9116;
        if (j != -9223372036854775807L) {
            c2325.m6048(AbstractC3558.m8161(j));
        }
    }

    @Override // defpackage.InterfaceC0929
    /* renamed from: ᵥᵯˎ */
    public byte[] mo3173() {
        return ((Mac) this.f20835).doFinal();
    }

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public C4997 m11182(C3084 c3084) {
        C4997 c4997M10035;
        synchronized (this.f20835) {
            c4997M10035 = ((C4752) this.f20833).m10035(c3084);
        }
        return c4997M10035;
    }

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public synchronized Map m11183() {
        try {
            if (((Map) this.f20835) == null) {
                this.f20835 = DesugarCollections.unmodifiableMap(new HashMap((HashMap) this.f20833));
            }
        } catch (Throwable th) {
            throw th;
        }
        return (Map) this.f20835;
    }

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public synchronized ArrayList m11184(Class cls) {
        return ((ᵮᵥٴ) this.f20833).ˎˑː(cls);
    }

    @Override // defpackage.InterfaceC3314
    /* renamed from: ᵪʩ */
    public void mo7701(IOException iOException) {
        try {
            ((InterfaceC4086) this.f20833).mo1689(iOException);
        } catch (Throwable th) {
            ᵯᵽᵦ.ˊᵸˊ(th);
            th.printStackTrace();
        }
    }

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public void m11185(String str, InterfaceC5099 interfaceC5099) {
        C5347 c5347 = (C5347) this.f20833;
        synchronized (c5347.f20035) {
            if (c5347.f20039.containsKey(str)) {
                throw new IllegalArgumentException("SavedStateProvider with the given key is already registered");
            }
            c5347.f20039.put(str, interfaceC5099);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:106:0x00e0 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:110:0x00d0 A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:29:0x0067 A[LOOP:1: B:27:0x0064->B:29:0x0067, LOOP_END] */
    /* JADX WARN: Removed duplicated region for block: B:32:0x0078  */
    /* JADX WARN: Removed duplicated region for block: B:64:0x00d1 A[LOOP:2: B:31:0x0076->B:64:0x00d1, LOOP_END] */
    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public defpackage.C5553 m11186(java.lang.String r18) throws java.lang.Throwable {
        /*
            Method dump skipped, instructions count: 231
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C5553.m11186(java.lang.String):ﹳʾ");
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public View m11187(int i, int i2, int i3, int i4) {
        C4310 c4310 = (C4310) this.f20835;
        InterfaceC0853 interfaceC0853 = (InterfaceC0853) this.f20833;
        int iM2972 = interfaceC0853.m2972();
        int iM2975 = interfaceC0853.m2975();
        int i5 = i2 > i ? 1 : -1;
        View view = null;
        while (i != i2) {
            View viewM2974 = interfaceC0853.m2974(i);
            int iM2976 = interfaceC0853.m2976(viewM2974);
            int iM2973 = interfaceC0853.m2973(viewM2974);
            c4310.f16157 = iM2972;
            c4310.f16155 = iM2975;
            c4310.f16158 = iM2976;
            c4310.f16154 = iM2973;
            if (i3 != 0) {
                c4310.f16156 = i3;
                if (c4310.m9286()) {
                    return viewM2974;
                }
            }
            if (i4 != 0) {
                c4310.f16156 = i4;
                if (c4310.m9286()) {
                    view = viewM2974;
                }
            }
            i += i5;
        }
        return view;
    }

    @Override // defpackage.InterfaceC0929
    /* renamed from: ᵴᵳ */
    public void mo3174(byte b) throws IllegalStateException {
        ((Mac) this.f20835).update(b);
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public void m11188(EnumC5259 enumC5259) {
        if (enumC5259 == EnumC5259.ONE) {
            return;
        }
        byte b = enumC5259.f19702;
        long j = ((C4939) this.f20833).f18348;
        long j2 = ((b + j) & (~b)) - j;
        while (true) {
            long j3 = j2 - 1;
            if (j2 <= 0) {
                return;
            }
            m11172();
            j2 = j3;
        }
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public C1898 m11189(C2275 c2275) {
        String string;
        JSONArray jSONArray = c2275.f8892;
        long j = c2275.f8893;
        HashSet hashSet = new HashSet();
        for (int i = 0; i < jSONArray.length(); i++) {
            try {
                JSONObject jSONObject = jSONArray.getJSONObject(i);
                String string2 = jSONObject.getString("rolloutId");
                JSONArray jSONArray2 = jSONObject.getJSONArray("affectedParameterKeys");
                if (jSONArray2.length() > 1) {
                    String.format("Rollout has multiple affected parameter keys.Only the first key will be included in RolloutsState. rolloutId: %s, affectedParameterKeys: %s", string2, jSONArray2);
                }
                String strOptString = jSONArray2.optString(0, "");
                C2275 c2275M1830 = ((C0382) this.f20833).m1830();
                String string3 = null;
                if (c2275M1830 == null) {
                    string = null;
                } else {
                    try {
                        string = c2275M1830.f8896.getString(strOptString);
                    } catch (JSONException unused) {
                    }
                }
                if (string == null) {
                    C2275 c2275M18302 = ((C0382) this.f20835).m1830();
                    if (c2275M18302 != null) {
                        try {
                            string3 = c2275M18302.f8896.getString(strOptString);
                        } catch (JSONException unused2) {
                        }
                    }
                    string = string3 != null ? string3 : "";
                }
                int i2 = AbstractC3317.f12406;
                C1527 c1527 = new C1527();
                if (string2 == null) {
                    throw new NullPointerException("Null rolloutId");
                }
                c1527.f6114 = string2;
                String string4 = jSONObject.getString("variantId");
                if (string4 == null) {
                    throw new NullPointerException("Null variantId");
                }
                c1527.f6115 = string4;
                if (strOptString == null) {
                    throw new NullPointerException("Null parameterKey");
                }
                c1527.f6113 = strOptString;
                c1527.f6116 = string;
                c1527.f6111 = j;
                c1527.f6112 = (byte) (c1527.f6112 | 1);
                hashSet.add(c1527.m4451());
            } catch (JSONException e) {
                throw new FirebaseRemoteConfigClientException("Exception parsing rollouts metadata to create RolloutsState.", e);
            }
        }
        return new C1898(hashSet);
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public Bundle m11190(String str) {
        C5347 c5347 = (C5347) this.f20833;
        if (!c5347.f20033) {
            ᵹˉᵞ.ᵳٴᵶ("You can 'consumeRestoredStateForKey' only after the corresponding component has moved to the 'CREATED' state");
            return null;
        }
        Bundle bundle = c5347.f20034;
        if (bundle == null) {
            return null;
        }
        Bundle bundle2 = bundle.containsKey(str) ? ˋᵮᵯᵔ.ᵡʠ(str, bundle) : null;
        bundle.remove(str);
        if (bundle.isEmpty()) {
            c5347.f20034 = null;
        }
        return bundle2;
    }

    @Override // defpackage.InterfaceC3314
    /* renamed from: ᵹᵝᵶ */
    public void mo7702(C2977 c2977) {
        InterfaceC4086 interfaceC4086 = (InterfaceC4086) this.f20833;
        C4412 c4412 = (C4412) this.f20835;
        try {
            try {
                interfaceC4086.mo1687(c4412, c4412.m9452(c2977));
            } catch (Throwable th) {
                ᵯᵽᵦ.ˊᵸˊ(th);
                th.printStackTrace();
            }
        } catch (Throwable th2) {
            ᵯᵽᵦ.ˊᵸˊ(th2);
            try {
                interfaceC4086.mo1689(th2);
            } catch (Throwable th3) {
                ᵯᵽᵦ.ˊᵸˊ(th3);
                th3.printStackTrace();
            }
        }
    }

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public void m11191() throws NoSuchMethodException, SecurityException {
        if (!((C5347) this.f20833).f20038) {
            ᵹˉᵞ.ᵳٴᵶ("Can not perform this action after onSaveInstanceState");
            return;
        }
        C1257 c1257 = (C1257) this.f20835;
        if (c1257 == null) {
            c1257 = new C1257(this);
        }
        this.f20835 = c1257;
        try {
            C3726.class.getDeclaredConstructor(null);
            C1257 c12572 = (C1257) this.f20835;
            if (c12572 != null) {
                ((LinkedHashSet) c12572.f5243).add(C3726.class.getName());
            }
        } catch (NoSuchMethodException e) {
            throw new IllegalArgumentException("Class " + C3726.class.getSimpleName() + " must have default constructor in order to be automatically recreated", e);
        }
    }

    @Override // defpackage.InterfaceC4103
    /* renamed from: ᵻᵢﹳᵰ */
    public int mo3165(byte[] bArr, int i, int i2) throws ZipException {
        if (i2 < 0) {
            C0190.m1425("invalid length specified to decrpyt data");
            return 0;
        }
        for (int i3 = i; i3 < i + i2; i3++) {
            byte b = bArr[i3];
            C2453 c2453 = (C2453) this.f20833;
            byte bM6263 = (byte) ((c2453.m6263() & 255) ^ b);
            c2453.m6262(b);
            bArr[i3] = bM6263;
        }
        return i2;
    }

    @Override // defpackage.InterfaceC1982
    /* renamed from: ᵾᵬ */
    public InterfaceC2154 mo4996(int i, int i2) {
        return (C1666) this.f20833;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    /* JADX WARN: Removed duplicated region for block: B:14:0x0055  */
    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void m11192(ᵶˉᵹʣ r13) {
        /*
            Method dump skipped, instructions count: 552
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C5553.m11192(ᵶˉᵹʣ):void");
    }
}
