package defpackage;

import android.content.Context;
import android.net.ConnectivityManager;
import j$.util.concurrent.ConcurrentHashMap;

/* renamed from: ᵬᵽﾞˋ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4081 implements InterfaceC1066 {

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public Context f15268;

    public C4081(Context context, int i) {
        switch (i) {
            case 2:
                this.f15268 = context;
                break;
            case 3:
                new ConcurrentHashMap();
                ˁـᵛ.ˑᵝﹳᵜ(context != null, "Context cannot be null", new Object[0]);
                this.f15268 = context.getApplicationContext();
                break;
            default:
                context.getClass();
                this.f15268 = context;
                break;
        }
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Code restructure failed: missing block: B:41:0x0073, code lost:
    
        if (android.os.Build.VERSION.SDK_INT >= 26) goto L45;
     */
    /* JADX WARN: Code restructure failed: missing block: B:44:0x007a, code lost:
    
        if (android.os.Build.VERSION.SDK_INT >= 34) goto L45;
     */
    /* 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 static int m8943(defpackage.C3446 r5) {
        /*
            java.lang.String r0 = r5.f12929
            r1 = 0
            if (r0 == 0) goto L86
            boolean r0 = defpackage.AbstractC2924.m7109(r0)
            if (r0 != 0) goto Ld
            goto L86
        Ld:
            java.lang.String r5 = r5.f12929
            java.lang.String r0 = defpackage.AbstractC3558.f13329
            r5.getClass()
            int r0 = r5.hashCode()
            r2 = 4
            r3 = 1
            r4 = -1
            switch(r0) {
                case -1487656890: goto L61;
                case -1487464693: goto L56;
                case -1487464690: goto L4b;
                case -1487394660: goto L40;
                case -1487018032: goto L35;
                case -879272239: goto L2a;
                case -879258763: goto L1f;
                default: goto L1e;
            }
        L1e:
            goto L6b
        L1f:
            java.lang.String r0 = "image/png"
            boolean r5 = r5.equals(r0)
            if (r5 != 0) goto L28
            goto L6b
        L28:
            r4 = 6
            goto L6b
        L2a:
            java.lang.String r0 = "image/bmp"
            boolean r5 = r5.equals(r0)
            if (r5 != 0) goto L33
            goto L6b
        L33:
            r4 = 5
            goto L6b
        L35:
            java.lang.String r0 = "image/webp"
            boolean r5 = r5.equals(r0)
            if (r5 != 0) goto L3e
            goto L6b
        L3e:
            r4 = r2
            goto L6b
        L40:
            java.lang.String r0 = "image/jpeg"
            boolean r5 = r5.equals(r0)
            if (r5 != 0) goto L49
            goto L6b
        L49:
            r4 = 3
            goto L6b
        L4b:
            java.lang.String r0 = "image/heif"
            boolean r5 = r5.equals(r0)
            if (r5 != 0) goto L54
            goto L6b
        L54:
            r4 = 2
            goto L6b
        L56:
            java.lang.String r0 = "image/heic"
            boolean r5 = r5.equals(r0)
            if (r5 != 0) goto L5f
            goto L6b
        L5f:
            r4 = r3
            goto L6b
        L61:
            java.lang.String r0 = "image/avif"
            boolean r5 = r5.equals(r0)
            if (r5 != 0) goto L6a
            goto L6b
        L6a:
            r4 = r1
        L6b:
            switch(r4) {
                case 0: goto L76;
                case 1: goto L6f;
                case 2: goto L6f;
                case 3: goto L7c;
                case 4: goto L7c;
                case 5: goto L7c;
                case 6: goto L7c;
                default: goto L6e;
            }
        L6e:
            goto L81
        L6f:
            int r5 = android.os.Build.VERSION.SDK_INT
            r0 = 26
            if (r5 < r0) goto L81
            goto L7c
        L76:
            int r5 = android.os.Build.VERSION.SDK_INT
            r0 = 34
            if (r5 < r0) goto L81
        L7c:
            int r5 = defpackage.AbstractC2990.m7325(r2, r1, r1, r1)
            return r5
        L81:
            int r5 = defpackage.AbstractC2990.m7325(r3, r1, r1, r1)
            return r5
        L86:
            int r5 = defpackage.AbstractC2990.m7325(r1, r1, r1, r1)
            return r5
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C4081.m8943(ᵤᵛᵖ):int");
    }

    @Override // defpackage.InterfaceC1066
    public Object get() {
        return (ConnectivityManager) this.f15268.getSystemService("connectivity");
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public C0707 m8944() {
        Context context = this.f15268;
        if (context == null) {
            throw new IllegalStateException(Context.class.getCanonicalName() + " must be set");
        }
        C0707 c0707 = new C0707();
        c0707.f3432 = C1124.m3557(AbstractC4281.f16065);
        ᵽʝˇـ r1 = new ᵽʝˇـ(context);
        c0707.f3430 = r1;
        c0707.f3434 = C1124.m3557(new C5553(r1, 4, new ˊᵘʛ(17, r1)));
        ᵽʝˇـ r12 = c0707.f3430;
        c0707.f3433 = new ˑᵽʾʦ(20, r12);
        InterfaceC2765 interfaceC2765M3557 = C1124.m3557(new C5553(c0707.f3433, 19, C1124.m3557(new C3718(r12))));
        c0707.f3431 = interfaceC2765M3557;
        ˎᵖᵗ r122 = new ˎᵖᵗ(6);
        ᵽʝˇـ r13 = c0707.f3430;
        C1570 c1570 = new C1570(r13, interfaceC2765M3557, r122, 2);
        InterfaceC2765 interfaceC2765 = c0707.f3432;
        InterfaceC2765 interfaceC27652 = c0707.f3434;
        c0707.f3429 = C1124.m3557(new C1601(new ʽˋːᵜ(interfaceC2765, interfaceC27652, c1570, interfaceC2765M3557, interfaceC2765M3557, 2), new C1188(r13, interfaceC27652, interfaceC2765M3557, c1570, interfaceC2765, interfaceC2765M3557, interfaceC2765M3557), new C0030(interfaceC2765, interfaceC2765M3557, c1570, interfaceC2765M3557, 6), 5));
        return c0707;
    }
}
