package o;

import com.google.android.gms.common.ConnectionResult;
import java.security.MessageDigest;
import java.util.ArrayList;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.b40, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C0781b40 implements NC {
    public final /* synthetic */ int l;

    public /* synthetic */ C0781b40(int i) {
        this.l = i;
    }

    @Override // o.NC
    public final Object a() {
        int i = this.l;
        Oh0 oh0 = Oh0.a;
        switch (i) {
            case 0:
                Ma0 ma0 = AbstractC0876c40.a;
                return null;
            case 1:
                return new Z40(0);
            case 2:
                C0935cl c0935cl = L50.a;
                return null;
            case 3:
                return oh0;
            case 4:
                return new C0789b80();
            case 5:
                return new C0148Fs(0);
            case 6:
                C0935cl c0935cl2 = AbstractC2348rd0.a;
                return null;
            case 7:
                return Ch0.a;
            case 8:
                return We0.b;
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                J90 j90 = new J90(new C2694v90(9));
                j90.d();
                return j90;
            case 10:
                return new C3116zh0();
            case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                C1014dc0 c1014dc0 = Fh0.a;
                int[] iArr = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131};
                ArrayList arrayList = new ArrayList(32);
                for (int i2 = 0; i2 < 32; i2++) {
                    arrayList.add(Byte.valueOf((byte) (iArr[i2] % 256)));
                }
                byte[] bArrU = AbstractC2219q9.U(AbstractC3117zi.r0(arrayList), "3141592653589793271828182845904516180339887498951414213562373095X9#mK$2vL@8qR!5wNZ1!yU*8xW@5sQ#7nM&2kH$9fE^3cA".getBytes(AbstractC2355rh.a));
                byte[] bArrDigest = MessageDigest.getInstance("SHA-512").digest(bArrU);
                if (bArrU.length != 0) {
                    byte[] bArr = new byte[bArrU.length];
                    int length = bArrU.length - 1;
                    if (length >= 0) {
                        int i3 = 0;
                        while (true) {
                            bArr[length - i3] = bArrU[i3];
                            if (i3 != length) {
                                i3++;
                            }
                        }
                    }
                    bArrU = bArr;
                }
                byte[] bArrDigest2 = MessageDigest.getInstance("SHA-512").digest(AbstractC2219q9.U(bArrDigest, bArrU));
                byte[] bArrDigest3 = new byte[64];
                for (int i4 = 0; i4 < 64; i4++) {
                    bArrDigest3[i4] = (byte) (bArrDigest[i4] ^ bArrDigest2[i4]);
                }
                int i5 = 0;
                while (i5 < 5) {
                    i5++;
                    bArrDigest3 = MessageDigest.getInstance("SHA-512").digest(AbstractC2219q9.U(bArrDigest3, new byte[]{(byte) (i5 >> 24), (byte) (i5 >> 16), (byte) (i5 >> 8), (byte) i5}));
                }
                return bArrDigest3;
            case 12:
                int i6 = Fi0.h;
                return oh0;
            case 13:
                int i7 = Gi0.h;
                return oh0;
            case 14:
                int i8 = Hi0.g;
                return oh0;
            default:
                return new C0673Zy();
        }
    }
}
