package o;

import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.CommonStatusCodes;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import sun.misc.Unsafe;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.au0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0763au0 implements InterfaceC1718ku0 {
    public static final int[] j = new int[0];
    public static final Unsafe k = Fu0.l();
    public final int[] a;
    public final Object[] b;
    public final int c;
    public final int d;
    public final Ns0 e;
    public final int[] f;
    public final int g;
    public final int h;
    public final Kt0 i;

    public C0763au0(int[] iArr, Object[] objArr, int i, int i2, Ns0 ns0, int[] iArr2, int i3, int i4, Kt0 kt0, Lp0 lp0) {
        this.a = iArr;
        this.b = objArr;
        this.c = i;
        this.d = i2;
        this.f = iArr2;
        this.g = i3;
        this.h = i4;
        this.i = kt0;
        this.e = ns0;
    }

    public static int E(int i) {
        return (i >>> 20) & 255;
    }

    public static boolean i(Object obj) {
        if (obj == null) {
            return false;
        }
        if (obj instanceof AbstractC2665ut0) {
            return ((AbstractC2665ut0) obj).e();
        }
        return true;
    }

    public static int j(long j2, Object obj) {
        return ((Integer) Fu0.j(j2, obj)).intValue();
    }

    public static long k(long j2, Object obj) {
        return ((Long) Fu0.j(j2, obj)).longValue();
    }

    public static final int r(byte[] bArr, int i, int i2, Lu0 lu0, Class cls, Rs0 rs0) throws Gt0 {
        Lu0 lu02 = Lu0.n;
        switch (lu0.ordinal()) {
            case 0:
                int i3 = i + 8;
                rs0.c = Double.valueOf(Double.longBitsToDouble(C1884mi0.V(i, bArr)));
                return i3;
            case 1:
                int i4 = i + 4;
                rs0.c = Float.valueOf(Float.intBitsToFloat(C1884mi0.U(i, bArr)));
                return i4;
            case 2:
            case 3:
                int iT = C1884mi0.T(bArr, i, rs0);
                rs0.c = Long.valueOf(rs0.b);
                return iT;
            case 4:
            case 12:
            case 13:
                int iR = C1884mi0.R(bArr, i, rs0);
                rs0.c = Integer.valueOf(rs0.a);
                return iR;
            case 5:
            case 15:
                int i5 = i + 8;
                rs0.c = Long.valueOf(C1884mi0.V(i, bArr));
                return i5;
            case 6:
            case 14:
                int i6 = i + 4;
                rs0.c = Integer.valueOf(C1884mi0.U(i, bArr));
                return i6;
            case 7:
                int iT2 = C1884mi0.T(bArr, i, rs0);
                rs0.c = Boolean.valueOf(rs0.b != 0);
                return iT2;
            case 8:
                return C1884mi0.W(bArr, i, rs0);
            case ConnectionResult.SERVICE_INVALID /* 9 */:
            default:
                throw new RuntimeException("unsupported field type.");
            case 10:
                InterfaceC1718ku0 interfaceC1718ku0A = C1241fu0.c.a(cls);
                AbstractC2665ut0 abstractC2665ut0Zza = interfaceC1718ku0A.zza();
                int iY = C1884mi0.Y(abstractC2665ut0Zza, interfaceC1718ku0A, bArr, i, i2, rs0);
                interfaceC1718ku0A.b(abstractC2665ut0Zza);
                rs0.c = abstractC2665ut0Zza;
                return iY;
            case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                return C1884mi0.X(bArr, i, rs0);
            case 16:
                int iR2 = C1884mi0.R(bArr, i, rs0);
                rs0.c = Integer.valueOf(AbstractC2539te.Z(rs0.a));
                return iR2;
            case 17:
                int iT3 = C1884mi0.T(bArr, i, rs0);
                rs0.c = Long.valueOf(AbstractC2539te.a0(rs0.b));
                return iT3;
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:125:0x0274  */
    /* JADX WARN: Removed duplicated region for block: B:126:0x0277  */
    /* JADX WARN: Removed duplicated region for block: B:129:0x0290  */
    /* JADX WARN: Removed duplicated region for block: B:130:0x0293  */
    /* JADX WARN: Removed duplicated region for block: B:171:0x035d  */
    /* JADX WARN: Removed duplicated region for block: B:186:0x03ab  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static o.C0763au0 t(o.C1527iu0 r35, o.Kt0 r36, o.Lp0 r37) {
        /*
            Method dump skipped, instructions count: 1054
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0763au0.t(o.iu0, o.Kt0, o.Lp0):o.au0");
    }

    public static Field u(String str, Class cls) {
        try {
            return cls.getDeclaredField(str);
        } catch (NoSuchFieldException e) {
            Field[] declaredFields = cls.getDeclaredFields();
            for (Field field : declaredFields) {
                if (str.equals(field.getName())) {
                    return field;
                }
            }
            String name = cls.getName();
            String string = Arrays.toString(declaredFields);
            StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 11 + name.length() + 29 + String.valueOf(string).length());
            sb.append("Field ");
            sb.append(str);
            sb.append(" for ");
            sb.append(name);
            throw new RuntimeException(AbstractC2462sn.n(sb, " not found. Known fields are ", string), e);
        }
    }

    public final void A(int i, Object obj, Object obj2) {
        k.putObject(obj, D(i) & 1048575, obj2);
        o(i, obj);
    }

    public final Object B(int i, int i2, Object obj) {
        InterfaceC1718ku0 interfaceC1718ku0X = x(i2);
        if (!p(i, i2, obj)) {
            return interfaceC1718ku0X.zza();
        }
        Object object = k.getObject(obj, D(i2) & 1048575);
        if (i(object)) {
            return object;
        }
        AbstractC2665ut0 abstractC2665ut0Zza = interfaceC1718ku0X.zza();
        if (object != null) {
            interfaceC1718ku0X.d(abstractC2665ut0Zza, object);
        }
        return abstractC2665ut0Zza;
    }

    public final void C(int i, int i2, Object obj, Object obj2) {
        k.putObject(obj, D(i2) & 1048575, obj2);
        Fu0.g(i, this.a[i2 + 2] & 1048575, obj);
    }

    public final int D(int i) {
        return this.a[i + 1];
    }

    @Override // o.InterfaceC1718ku0
    public final void a(Object obj, byte[] bArr, int i, int i2, Rs0 rs0) {
        s(obj, bArr, i, i2, 0, rs0);
    }

    /* JADX WARN: Removed duplicated region for block: B:28:0x0071  */
    @Override // o.InterfaceC1718ku0
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void b(java.lang.Object r8) {
        /*
            r7 = this;
            boolean r0 = i(r8)
            if (r0 != 0) goto L8
            goto L96
        L8:
            boolean r0 = r8 instanceof o.AbstractC2665ut0
            r1 = 0
            if (r0 == 0) goto L18
            r0 = r8
            o.ut0 r0 = (o.AbstractC2665ut0) r0
            r0.j()
            r0.zza = r1
            r0.f()
        L18:
            r0 = r1
        L19:
            int[] r2 = r7.a
            int r3 = r2.length
            if (r0 >= r3) goto L87
            int r3 = r7.D(r0)
            r4 = 1048575(0xfffff, float:1.469367E-39)
            r4 = r4 & r3
            int r3 = E(r3)
            long r4 = (long) r4
            r6 = 9
            if (r3 == r6) goto L71
            r6 = 60
            if (r3 == r6) goto L5b
            r6 = 68
            if (r3 == r6) goto L5b
            switch(r3) {
                case 17: goto L71;
                case 18: goto L4c;
                case 19: goto L4c;
                case 20: goto L4c;
                case 21: goto L4c;
                case 22: goto L4c;
                case 23: goto L4c;
                case 24: goto L4c;
                case 25: goto L4c;
                case 26: goto L4c;
                case 27: goto L4c;
                case 28: goto L4c;
                case 29: goto L4c;
                case 30: goto L4c;
                case 31: goto L4c;
                case 32: goto L4c;
                case 33: goto L4c;
                case 34: goto L4c;
                case 35: goto L4c;
                case 36: goto L4c;
                case 37: goto L4c;
                case 38: goto L4c;
                case 39: goto L4c;
                case 40: goto L4c;
                case 41: goto L4c;
                case 42: goto L4c;
                case 43: goto L4c;
                case 44: goto L4c;
                case 45: goto L4c;
                case 46: goto L4c;
                case 47: goto L4c;
                case 48: goto L4c;
                case 49: goto L4c;
                case 50: goto L3b;
                default: goto L3a;
            }
        L3a:
            goto L84
        L3b:
            sun.misc.Unsafe r2 = o.C0763au0.k
            java.lang.Object r3 = r2.getObject(r8, r4)
            if (r3 == 0) goto L84
            r6 = r3
            o.St0 r6 = (o.St0) r6
            r6.l = r1
            r2.putObject(r8, r4, r3)
            goto L84
        L4c:
            java.lang.Object r2 = o.Fu0.j(r4, r8)
            o.Dt0 r2 = (o.Dt0) r2
            o.Ps0 r2 = (o.Ps0) r2
            boolean r3 = r2.l
            if (r3 == 0) goto L84
            r2.l = r1
            goto L84
        L5b:
            r2 = r2[r0]
            boolean r2 = r7.p(r2, r0, r8)
            if (r2 == 0) goto L84
            o.ku0 r2 = r7.x(r0)
            sun.misc.Unsafe r3 = o.C0763au0.k
            java.lang.Object r3 = r3.getObject(r8, r4)
            r2.b(r3)
            goto L84
        L71:
            boolean r2 = r7.n(r0, r8)
            if (r2 == 0) goto L84
            o.ku0 r2 = r7.x(r0)
            sun.misc.Unsafe r3 = o.C0763au0.k
            java.lang.Object r3 = r3.getObject(r8, r4)
            r2.b(r3)
        L84:
            int r0 = r0 + 3
            goto L19
        L87:
            o.Kt0 r0 = r7.i
            r0.getClass()
            o.ut0 r8 = (o.AbstractC2665ut0) r8
            o.wu0 r8 = r8.zzc
            boolean r0 = r8.e
            if (r0 == 0) goto L96
            r8.e = r1
        L96:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0763au0.b(java.lang.Object):void");
    }

    @Override // o.InterfaceC1718ku0
    public final void c(Object obj, C1696kj0 c1696kj0) throws C1723ky {
        int i;
        C0763au0 c0763au0 = this;
        Unsafe unsafe = k;
        int i2 = 1048575;
        int i3 = 0;
        int i4 = 0;
        int i5 = 1048575;
        while (true) {
            int[] iArr = c0763au0.a;
            if (i3 >= iArr.length) {
                ((AbstractC2665ut0) obj).zzc.b(c1696kj0);
                return;
            }
            int iD = c0763au0.D(i3);
            int iE = E(iD);
            int i6 = iArr[i3];
            if (iE <= 17) {
                int i7 = iArr[i3 + 2];
                int i8 = i7 & i2;
                if (i8 != i5) {
                    i4 = i8 == i2 ? 0 : unsafe.getInt(obj, i8);
                    i5 = i8;
                }
                i = 1 << (i7 >>> 20);
            } else {
                i = 0;
            }
            long j2 = iD & i2;
            switch (iE) {
                case 0:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).e0(i6, Double.doubleToRawLongBits(Fu0.c.q(j2, obj)));
                        break;
                    } else {
                        break;
                    }
                case 1:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).c0(i6, Float.floatToRawIntBits(Fu0.c.o(j2, obj)));
                        break;
                    } else {
                        break;
                    }
                case 2:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).d0(i6, unsafe.getLong(obj, j2));
                        break;
                    } else {
                        break;
                    }
                case 3:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).d0(i6, unsafe.getLong(obj, j2));
                        break;
                    } else {
                        break;
                    }
                case 4:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).a0(i6, unsafe.getInt(obj, j2));
                        break;
                    } else {
                        break;
                    }
                case 5:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).e0(i6, unsafe.getLong(obj, j2));
                        break;
                    } else {
                        break;
                    }
                case 6:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).c0(i6, unsafe.getInt(obj, j2));
                        break;
                    } else {
                        break;
                    }
                case 7:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        boolean zM = Fu0.c.m(j2, obj);
                        Zs0 zs0 = (Zs0) c1696kj0.m;
                        zs0.i0(i6 << 3);
                        zs0.g0(zM ? (byte) 1 : (byte) 0);
                        break;
                    } else {
                        break;
                    }
                case 8:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        Object object = unsafe.getObject(obj, j2);
                        if (object instanceof String) {
                            Zs0 zs02 = (Zs0) c1696kj0.m;
                            zs02.i0((i6 << 3) | 2);
                            zs02.n0((String) object);
                            break;
                        } else {
                            Zs0 zs03 = (Zs0) c1696kj0.m;
                            zs03.i0((i6 << 3) | 2);
                            zs03.f0((Ws0) object);
                            break;
                        }
                    } else {
                        break;
                    }
                case ConnectionResult.SERVICE_INVALID /* 9 */:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        c1696kj0.w(i6, unsafe.getObject(obj, j2), c0763au0.x(i3));
                        break;
                    } else {
                        break;
                    }
                case 10:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        Ws0 ws0 = (Ws0) unsafe.getObject(obj, j2);
                        Zs0 zs04 = (Zs0) c1696kj0.m;
                        zs04.i0((i6 << 3) | 2);
                        zs04.f0(ws0);
                        break;
                    } else {
                        break;
                    }
                case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).b0(i6, unsafe.getInt(obj, j2));
                        break;
                    } else {
                        break;
                    }
                case 12:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).a0(i6, unsafe.getInt(obj, j2));
                        break;
                    } else {
                        break;
                    }
                case 13:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).c0(i6, unsafe.getInt(obj, j2));
                        break;
                    } else {
                        break;
                    }
                case 14:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        ((Zs0) c1696kj0.m).e0(i6, unsafe.getLong(obj, j2));
                        break;
                    } else {
                        break;
                    }
                case 15:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        int i9 = unsafe.getInt(obj, j2);
                        ((Zs0) c1696kj0.m).b0(i6, (i9 >> 31) ^ (i9 + i9));
                        break;
                    } else {
                        break;
                    }
                case 16:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        long j3 = unsafe.getLong(obj, j2);
                        ((Zs0) c1696kj0.m).d0(i6, (j3 >> 63) ^ (j3 + j3));
                        break;
                    } else {
                        break;
                    }
                case 17:
                    if (c0763au0.m(obj, i3, i5, i4, i)) {
                        c1696kj0.x(i6, unsafe.getObject(obj, j2), c0763au0.x(i3));
                        break;
                    } else {
                        break;
                    }
                case ConnectionResult.SERVICE_UPDATING /* 18 */:
                    AbstractC1908mu0.c(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 19:
                    AbstractC1908mu0.d(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 20:
                    AbstractC1908mu0.e(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                    AbstractC1908mu0.f(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 22:
                    AbstractC1908mu0.j(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case ConnectionResult.API_DISABLED /* 23 */:
                    AbstractC1908mu0.h(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                    AbstractC1908mu0.m(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 25:
                    AbstractC1908mu0.p(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 26:
                    int i10 = iArr[i3];
                    List list = (List) unsafe.getObject(obj, j2);
                    Kt0 kt0 = AbstractC1908mu0.a;
                    if (list != null && !list.isEmpty()) {
                        c1696kj0.getClass();
                        for (int i11 = 0; i11 < list.size(); i11++) {
                            Zs0 zs05 = (Zs0) c1696kj0.m;
                            String str = (String) list.get(i11);
                            zs05.i0((i10 << 3) | 2);
                            zs05.n0(str);
                        }
                        break;
                    } else {
                        break;
                    }
                case 27:
                    int i12 = iArr[i3];
                    List list2 = (List) unsafe.getObject(obj, j2);
                    InterfaceC1718ku0 interfaceC1718ku0X = c0763au0.x(i3);
                    Kt0 kt02 = AbstractC1908mu0.a;
                    if (list2 != null && !list2.isEmpty()) {
                        for (int i13 = 0; i13 < list2.size(); i13++) {
                            c1696kj0.w(i12, list2.get(i13), interfaceC1718ku0X);
                        }
                        break;
                    } else {
                        break;
                    }
                    break;
                case 28:
                    int i14 = iArr[i3];
                    List list3 = (List) unsafe.getObject(obj, j2);
                    Kt0 kt03 = AbstractC1908mu0.a;
                    if (list3 != null && !list3.isEmpty()) {
                        c1696kj0.getClass();
                        for (int i15 = 0; i15 < list3.size(); i15++) {
                            Zs0 zs06 = (Zs0) c1696kj0.m;
                            Ws0 ws02 = (Ws0) list3.get(i15);
                            zs06.i0((i14 << 3) | 2);
                            zs06.f0(ws02);
                        }
                        break;
                    } else {
                        break;
                    }
                case 29:
                    AbstractC1908mu0.k(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 30:
                    AbstractC1908mu0.o(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 31:
                    AbstractC1908mu0.n(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 32:
                    AbstractC1908mu0.i(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 33:
                    AbstractC1908mu0.l(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 34:
                    AbstractC1908mu0.g(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, false);
                    break;
                case 35:
                    AbstractC1908mu0.c(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 36:
                    AbstractC1908mu0.d(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 37:
                    AbstractC1908mu0.e(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 38:
                    AbstractC1908mu0.f(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 39:
                    AbstractC1908mu0.j(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 40:
                    AbstractC1908mu0.h(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 41:
                    AbstractC1908mu0.m(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 42:
                    AbstractC1908mu0.p(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 43:
                    AbstractC1908mu0.k(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 44:
                    AbstractC1908mu0.o(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 45:
                    AbstractC1908mu0.n(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 46:
                    AbstractC1908mu0.i(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 47:
                    AbstractC1908mu0.l(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 48:
                    AbstractC1908mu0.g(iArr[i3], (List) unsafe.getObject(obj, j2), c1696kj0, true);
                    break;
                case 49:
                    int i16 = iArr[i3];
                    List list4 = (List) unsafe.getObject(obj, j2);
                    InterfaceC1718ku0 interfaceC1718ku0X2 = c0763au0.x(i3);
                    Kt0 kt04 = AbstractC1908mu0.a;
                    if (list4 != null && !list4.isEmpty()) {
                        for (int i17 = 0; i17 < list4.size(); i17++) {
                            c1696kj0.x(i16, list4.get(i17), interfaceC1718ku0X2);
                        }
                        break;
                    } else {
                        break;
                    }
                    break;
                case 50:
                    Object object2 = unsafe.getObject(obj, j2);
                    if (object2 != null) {
                        int i18 = i3 / 3;
                        C3040yr c3040yr = ((Rt0) c0763au0.b[i18 + i18]).a;
                        c1696kj0.getClass();
                        for (Map.Entry entry : ((St0) object2).entrySet()) {
                            Zs0 zs07 = (Zs0) c1696kj0.m;
                            zs07.Z(i6, 2);
                            zs07.i0(Rt0.b(c3040yr, entry.getKey(), entry.getValue()));
                            Rt0.a(zs07, c3040yr, entry.getKey(), entry.getValue());
                        }
                        break;
                    } else {
                        break;
                    }
                case 51:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).e0(i6, Double.doubleToRawLongBits(((Double) Fu0.j(j2, obj)).doubleValue()));
                        break;
                    } else {
                        break;
                    }
                case 52:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).c0(i6, Float.floatToRawIntBits(((Float) Fu0.j(j2, obj)).floatValue()));
                        break;
                    } else {
                        break;
                    }
                case 53:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).d0(i6, k(j2, obj));
                        break;
                    } else {
                        break;
                    }
                case 54:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).d0(i6, k(j2, obj));
                        break;
                    } else {
                        break;
                    }
                case 55:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).a0(i6, j(j2, obj));
                        break;
                    } else {
                        break;
                    }
                case 56:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).e0(i6, k(j2, obj));
                        break;
                    } else {
                        break;
                    }
                case 57:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).c0(i6, j(j2, obj));
                        break;
                    } else {
                        break;
                    }
                case 58:
                    if (c0763au0.p(i6, i3, obj)) {
                        boolean zBooleanValue = ((Boolean) Fu0.j(j2, obj)).booleanValue();
                        Zs0 zs08 = (Zs0) c1696kj0.m;
                        zs08.i0(i6 << 3);
                        zs08.g0(zBooleanValue ? (byte) 1 : (byte) 0);
                        break;
                    } else {
                        break;
                    }
                case 59:
                    if (c0763au0.p(i6, i3, obj)) {
                        Object object3 = unsafe.getObject(obj, j2);
                        if (object3 instanceof String) {
                            Zs0 zs09 = (Zs0) c1696kj0.m;
                            zs09.i0((i6 << 3) | 2);
                            zs09.n0((String) object3);
                            break;
                        } else {
                            Zs0 zs010 = (Zs0) c1696kj0.m;
                            zs010.i0((i6 << 3) | 2);
                            zs010.f0((Ws0) object3);
                            break;
                        }
                    } else {
                        break;
                    }
                case 60:
                    if (c0763au0.p(i6, i3, obj)) {
                        c1696kj0.w(i6, unsafe.getObject(obj, j2), c0763au0.x(i3));
                        break;
                    } else {
                        break;
                    }
                case 61:
                    if (c0763au0.p(i6, i3, obj)) {
                        Ws0 ws03 = (Ws0) unsafe.getObject(obj, j2);
                        Zs0 zs011 = (Zs0) c1696kj0.m;
                        zs011.i0((i6 << 3) | 2);
                        zs011.f0(ws03);
                        break;
                    } else {
                        break;
                    }
                case 62:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).b0(i6, j(j2, obj));
                        break;
                    } else {
                        break;
                    }
                case 63:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).a0(i6, j(j2, obj));
                        break;
                    } else {
                        break;
                    }
                case 64:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).c0(i6, j(j2, obj));
                        break;
                    } else {
                        break;
                    }
                case 65:
                    if (c0763au0.p(i6, i3, obj)) {
                        ((Zs0) c1696kj0.m).e0(i6, k(j2, obj));
                        break;
                    } else {
                        break;
                    }
                case 66:
                    if (c0763au0.p(i6, i3, obj)) {
                        int iJ = j(j2, obj);
                        ((Zs0) c1696kj0.m).b0(i6, (iJ >> 31) ^ (iJ + iJ));
                        break;
                    } else {
                        break;
                    }
                case 67:
                    if (c0763au0.p(i6, i3, obj)) {
                        long jK = k(j2, obj);
                        ((Zs0) c1696kj0.m).d0(i6, (jK >> 63) ^ (jK + jK));
                        break;
                    } else {
                        break;
                    }
                case 68:
                    if (c0763au0.p(i6, i3, obj)) {
                        c1696kj0.x(i6, unsafe.getObject(obj, j2), c0763au0.x(i3));
                        break;
                    } else {
                        break;
                    }
            }
            i3 += 3;
            i2 = 1048575;
            c0763au0 = this;
        }
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Removed duplicated region for block: B:9:0x0022  */
    @Override // o.InterfaceC1718ku0
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void d(java.lang.Object r13, java.lang.Object r14) {
        /*
            Method dump skipped, instructions count: 628
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0763au0.d(java.lang.Object, java.lang.Object):void");
    }

    @Override // o.InterfaceC1718ku0
    public final boolean e(AbstractC2665ut0 abstractC2665ut0, AbstractC2665ut0 abstractC2665ut02) {
        boolean zA;
        int i = 0;
        while (true) {
            int[] iArr = this.a;
            if (i < iArr.length) {
                int iD = D(i);
                long j2 = iD & 1048575;
                switch (E(iD)) {
                    case 0:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i)) {
                            break;
                        } else {
                            Eu0 eu0 = Fu0.c;
                            if (Double.doubleToLongBits(eu0.q(j2, abstractC2665ut0)) != Double.doubleToLongBits(eu0.q(j2, abstractC2665ut02))) {
                                break;
                            } else {
                                continue;
                                i += 3;
                            }
                        }
                    case 1:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i)) {
                            break;
                        } else {
                            Eu0 eu02 = Fu0.c;
                            if (Float.floatToIntBits(eu02.o(j2, abstractC2665ut0)) != Float.floatToIntBits(eu02.o(j2, abstractC2665ut02))) {
                                break;
                            } else {
                                continue;
                                i += 3;
                            }
                        }
                    case 2:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.h(j2, abstractC2665ut0) != Fu0.h(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 3:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.h(j2, abstractC2665ut0) != Fu0.h(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 4:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.f(j2, abstractC2665ut0) != Fu0.f(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 5:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.h(j2, abstractC2665ut0) != Fu0.h(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 6:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.f(j2, abstractC2665ut0) != Fu0.f(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 7:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i)) {
                            break;
                        } else {
                            Eu0 eu03 = Fu0.c;
                            if (eu03.m(j2, abstractC2665ut0) != eu03.m(j2, abstractC2665ut02)) {
                                break;
                            } else {
                                continue;
                                i += 3;
                            }
                        }
                    case 8:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || !AbstractC1908mu0.a(Fu0.j(j2, abstractC2665ut0), Fu0.j(j2, abstractC2665ut02))) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case ConnectionResult.SERVICE_INVALID /* 9 */:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || !AbstractC1908mu0.a(Fu0.j(j2, abstractC2665ut0), Fu0.j(j2, abstractC2665ut02))) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 10:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || !AbstractC1908mu0.a(Fu0.j(j2, abstractC2665ut0), Fu0.j(j2, abstractC2665ut02))) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.f(j2, abstractC2665ut0) != Fu0.f(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 12:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.f(j2, abstractC2665ut0) != Fu0.f(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 13:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.f(j2, abstractC2665ut0) != Fu0.f(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 14:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.h(j2, abstractC2665ut0) != Fu0.h(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 15:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.f(j2, abstractC2665ut0) != Fu0.f(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 16:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || Fu0.h(j2, abstractC2665ut0) != Fu0.h(j2, abstractC2665ut02)) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case 17:
                        if (!l(abstractC2665ut0, abstractC2665ut02, i) || !AbstractC1908mu0.a(Fu0.j(j2, abstractC2665ut0), Fu0.j(j2, abstractC2665ut02))) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    case ConnectionResult.SERVICE_UPDATING /* 18 */:
                    case 19:
                    case 20:
                    case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                    case 22:
                    case ConnectionResult.API_DISABLED /* 23 */:
                    case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                    case 25:
                    case 26:
                    case 27:
                    case 28:
                    case 29:
                    case 30:
                    case 31:
                    case 32:
                    case 33:
                    case 34:
                    case 35:
                    case 36:
                    case 37:
                    case 38:
                    case 39:
                    case 40:
                    case 41:
                    case 42:
                    case 43:
                    case 44:
                    case 45:
                    case 46:
                    case 47:
                    case 48:
                    case 49:
                        zA = AbstractC1908mu0.a(Fu0.j(j2, abstractC2665ut0), Fu0.j(j2, abstractC2665ut02));
                        break;
                    case 50:
                        zA = AbstractC1908mu0.a(Fu0.j(j2, abstractC2665ut0), Fu0.j(j2, abstractC2665ut02));
                        break;
                    case 51:
                    case 52:
                    case 53:
                    case 54:
                    case 55:
                    case 56:
                    case 57:
                    case 58:
                    case 59:
                    case 60:
                    case 61:
                    case 62:
                    case 63:
                    case 64:
                    case 65:
                    case 66:
                    case 67:
                    case 68:
                        long j3 = iArr[i + 2] & 1048575;
                        if (Fu0.f(j3, abstractC2665ut0) != Fu0.f(j3, abstractC2665ut02) || !AbstractC1908mu0.a(Fu0.j(j2, abstractC2665ut0), Fu0.j(j2, abstractC2665ut02))) {
                            break;
                        } else {
                            continue;
                            i += 3;
                        }
                        break;
                    default:
                        i += 3;
                }
                if (zA) {
                    i += 3;
                }
            } else if (abstractC2665ut0.zzc.equals(abstractC2665ut02.zzc)) {
                return true;
            }
        }
        return false;
    }

    /* JADX WARN: Removed duplicated region for block: B:186:0x0491  */
    /* JADX WARN: Removed duplicated region for block: B:218:0x057f  */
    /* JADX WARN: Removed duplicated region for block: B:221:0x058d  */
    /* JADX WARN: Removed duplicated region for block: B:35:0x00ad  */
    /* JADX WARN: Removed duplicated region for block: B:38:0x00bb  */
    /* JADX WARN: Removed duplicated region for block: B:85:0x01d5  */
    @Override // o.InterfaceC1718ku0
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final int f(o.Ns0 r17) {
        /*
            Method dump skipped, instructions count: 1842
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0763au0.f(o.Ns0):int");
    }

    @Override // o.InterfaceC1718ku0
    public final boolean g(Object obj) {
        int i;
        int i2;
        int i3;
        int i4 = 0;
        int i5 = 0;
        int i6 = 1048575;
        while (i5 < this.g) {
            int i7 = this.f[i5];
            int[] iArr = this.a;
            int i8 = iArr[i7];
            int iD = D(i7);
            int i9 = iArr[i7 + 2];
            int i10 = i9 & 1048575;
            int i11 = 1 << (i9 >>> 20);
            if (i10 != i6) {
                if (i10 != 1048575) {
                    i4 = k.getInt(obj, i10);
                }
                i2 = i7;
                i3 = i4;
                i = i10;
            } else {
                int i12 = i4;
                i = i6;
                i2 = i7;
                i3 = i12;
            }
            if ((268435456 & iD) == 0 || m(obj, i2, i, i3, i11)) {
                int iE = E(iD);
                if (iE != 9 && iE != 17) {
                    if (iE != 27) {
                        if (iE == 60 || iE == 68) {
                            if (!p(i8, i2, obj) || x(i2).g(Fu0.j(iD & 1048575, obj))) {
                                i5++;
                                i6 = i;
                                i4 = i3;
                            }
                        } else if (iE != 49) {
                            if (iE != 50) {
                                continue;
                            } else {
                                St0 st0 = (St0) Fu0.j(iD & 1048575, obj);
                                if (st0.isEmpty()) {
                                    continue;
                                } else {
                                    int i13 = i2 / 3;
                                    if (((Lu0) ((Rt0) this.b[i13 + i13]).a.n).l == Nu0.t) {
                                        InterfaceC1718ku0 interfaceC1718ku0A = null;
                                        for (Object obj2 : st0.values()) {
                                            if (interfaceC1718ku0A == null) {
                                                interfaceC1718ku0A = C1241fu0.c.a(obj2.getClass());
                                            }
                                            if (!interfaceC1718ku0A.g(obj2)) {
                                            }
                                        }
                                    } else {
                                        continue;
                                    }
                                }
                            }
                            i5++;
                            i6 = i;
                            i4 = i3;
                        }
                    }
                    List list = (List) Fu0.j(iD & 1048575, obj);
                    if (list.isEmpty()) {
                        continue;
                    } else {
                        InterfaceC1718ku0 interfaceC1718ku0X = x(i2);
                        for (int i14 = 0; i14 < list.size(); i14++) {
                            if (interfaceC1718ku0X.g(list.get(i14))) {
                            }
                        }
                    }
                    i5++;
                    i6 = i;
                    i4 = i3;
                } else if (!m(obj, i2, i, i3, i11) || x(i2).g(Fu0.j(iD & 1048575, obj))) {
                    i5++;
                    i6 = i;
                    i4 = i3;
                }
            }
            return false;
        }
        return true;
    }

    /* JADX WARN: Removed duplicated region for block: B:44:0x00db A[PHI: r1
      0x00db: PHI (r1v34 int) = (r1v10 int), (r1v35 int) binds: [B:85:0x01ea, B:43:0x00d9] A[DONT_GENERATE, DONT_INLINE]] */
    @Override // o.InterfaceC1718ku0
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final int h(o.AbstractC2665ut0 r11) {
        /*
            Method dump skipped, instructions count: 726
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0763au0.h(o.ut0):int");
    }

    public final boolean l(AbstractC2665ut0 abstractC2665ut0, AbstractC2665ut0 abstractC2665ut02, int i) {
        return n(i, abstractC2665ut0) == n(i, abstractC2665ut02);
    }

    public final boolean m(Object obj, int i, int i2, int i3, int i4) {
        return i2 == 1048575 ? n(i, obj) : (i3 & i4) != 0;
    }

    public final boolean n(int i, Object obj) {
        int i2 = this.a[i + 2];
        long j2 = i2 & 1048575;
        if (j2 == 1048575) {
            int iD = D(i);
            long j3 = iD & 1048575;
            switch (E(iD)) {
                case 0:
                    if (Double.doubleToRawLongBits(Fu0.c.q(j3, obj)) == 0) {
                        return false;
                    }
                    break;
                case 1:
                    if (Float.floatToRawIntBits(Fu0.c.o(j3, obj)) == 0) {
                        return false;
                    }
                    break;
                case 2:
                    if (Fu0.h(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 3:
                    if (Fu0.h(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 4:
                    if (Fu0.f(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 5:
                    if (Fu0.h(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 6:
                    if (Fu0.f(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 7:
                    return Fu0.c.m(j3, obj);
                case 8:
                    Object objJ = Fu0.j(j3, obj);
                    if (objJ instanceof String) {
                        if (((String) objJ).isEmpty()) {
                            return false;
                        }
                    } else {
                        if (!(objJ instanceof Ws0)) {
                            throw new IllegalArgumentException();
                        }
                        if (Ws0.n.equals(objJ)) {
                            return false;
                        }
                    }
                    break;
                case ConnectionResult.SERVICE_INVALID /* 9 */:
                    if (Fu0.j(j3, obj) == null) {
                        return false;
                    }
                    break;
                case 10:
                    if (Ws0.n.equals(Fu0.j(j3, obj))) {
                        return false;
                    }
                    break;
                case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                    if (Fu0.f(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 12:
                    if (Fu0.f(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 13:
                    if (Fu0.f(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 14:
                    if (Fu0.h(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 15:
                    if (Fu0.f(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 16:
                    if (Fu0.h(j3, obj) == 0) {
                        return false;
                    }
                    break;
                case 17:
                    if (Fu0.j(j3, obj) == null) {
                        return false;
                    }
                    break;
                default:
                    throw new IllegalArgumentException();
            }
        } else if (((1 << (i2 >>> 20)) & Fu0.f(j2, obj)) == 0) {
            return false;
        }
        return true;
    }

    public final void o(int i, Object obj) {
        int i2 = this.a[i + 2];
        long j2 = 1048575 & i2;
        if (j2 == 1048575) {
            return;
        }
        Fu0.g((1 << (i2 >>> 20)) | Fu0.f(j2, obj), j2, obj);
    }

    public final boolean p(int i, int i2, Object obj) {
        return Fu0.f((long) (this.a[i2 + 2] & 1048575), obj) == i;
    }

    public final int q(int i, int i2) {
        int[] iArr = this.a;
        int length = (iArr.length / 3) - 1;
        while (i2 <= length) {
            int i3 = (length + i2) >>> 1;
            int i4 = i3 * 3;
            int i5 = iArr[i4];
            if (i == i5) {
                return i4;
            }
            if (i < i5) {
                length = i3 - 1;
            } else {
                i2 = i3 + 1;
            }
        }
        return -1;
    }

    /* JADX WARN: Code restructure failed: missing block: B:111:0x0373, code lost:
    
        r4 = r13;
        r7 = r15;
        r8 = r12;
        r15 = r31;
     */
    /* JADX WARN: Code restructure failed: missing block: B:120:0x03d9, code lost:
    
        r2 = r12;
     */
    /* JADX WARN: Code restructure failed: missing block: B:43:0x00f7, code lost:
    
        r6 = r43;
        r9 = r0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:44:0x00fa, code lost:
    
        r4 = r10;
        r7 = r12;
     */
    /* JADX WARN: Code restructure failed: missing block: B:45:0x00fc, code lost:
    
        r10 = r13;
        r8 = r12;
     */
    /* JADX WARN: Code restructure failed: missing block: B:500:0x0c91, code lost:
    
        throw new o.Gt0("While parsing a protocol message, the input ended unexpectedly in the middle of a field.  This could mean either that the input has been truncated or that an embedded message misreported its own length.");
     */
    /* JADX WARN: Code restructure failed: missing block: B:55:0x0178, code lost:
    
        r4 = r3;
        r3 = r2;
        r2 = r4;
     */
    /* JADX WARN: Removed duplicated region for block: B:586:0x0f64 A[ADDED_TO_REGION] */
    /* JADX WARN: Removed duplicated region for block: B:591:0x0f77  */
    /* JADX WARN: Removed duplicated region for block: B:695:0x0b3a A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:697:0x0f44 A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:714:0x0b4b A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:724:0x0f59 A[SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final int s(java.lang.Object r40, byte[] r41, int r42, int r43, int r44, o.Rs0 r45) {
        /*
            Method dump skipped, instructions count: 4410
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.C0763au0.s(java.lang.Object, byte[], int, int, int, o.Rs0):int");
    }

    public final void v(int i, Object obj, Object obj2) {
        if (n(i, obj2)) {
            int iD = D(i) & 1048575;
            Unsafe unsafe = k;
            long j2 = iD;
            Object object = unsafe.getObject(obj2, j2);
            if (object == null) {
                int i2 = this.a[i];
                String string = obj2.toString();
                StringBuilder sb = new StringBuilder(String.valueOf(i2).length() + 38 + string.length());
                sb.append("Source subfield ");
                sb.append(i2);
                sb.append(" is present but null: ");
                sb.append(string);
                throw new IllegalStateException(sb.toString());
            }
            InterfaceC1718ku0 interfaceC1718ku0X = x(i);
            if (!n(i, obj)) {
                if (i(object)) {
                    AbstractC2665ut0 abstractC2665ut0Zza = interfaceC1718ku0X.zza();
                    interfaceC1718ku0X.d(abstractC2665ut0Zza, object);
                    unsafe.putObject(obj, j2, abstractC2665ut0Zza);
                } else {
                    unsafe.putObject(obj, j2, object);
                }
                o(i, obj);
                return;
            }
            Object object2 = unsafe.getObject(obj, j2);
            if (!i(object2)) {
                AbstractC2665ut0 abstractC2665ut0Zza2 = interfaceC1718ku0X.zza();
                interfaceC1718ku0X.d(abstractC2665ut0Zza2, object2);
                unsafe.putObject(obj, j2, abstractC2665ut0Zza2);
                object2 = abstractC2665ut0Zza2;
            }
            interfaceC1718ku0X.d(object2, object);
        }
    }

    public final void w(int i, Object obj, Object obj2) {
        int[] iArr = this.a;
        int i2 = iArr[i];
        if (p(i2, i, obj2)) {
            int iD = D(i) & 1048575;
            Unsafe unsafe = k;
            long j2 = iD;
            Object object = unsafe.getObject(obj2, j2);
            if (object == null) {
                int i3 = iArr[i];
                String string = obj2.toString();
                StringBuilder sb = new StringBuilder(String.valueOf(i3).length() + 38 + string.length());
                sb.append("Source subfield ");
                sb.append(i3);
                sb.append(" is present but null: ");
                sb.append(string);
                throw new IllegalStateException(sb.toString());
            }
            InterfaceC1718ku0 interfaceC1718ku0X = x(i);
            if (!p(i2, i, obj)) {
                if (i(object)) {
                    AbstractC2665ut0 abstractC2665ut0Zza = interfaceC1718ku0X.zza();
                    interfaceC1718ku0X.d(abstractC2665ut0Zza, object);
                    unsafe.putObject(obj, j2, abstractC2665ut0Zza);
                } else {
                    unsafe.putObject(obj, j2, object);
                }
                Fu0.g(i2, iArr[i + 2] & 1048575, obj);
                return;
            }
            Object object2 = unsafe.getObject(obj, j2);
            if (!i(object2)) {
                AbstractC2665ut0 abstractC2665ut0Zza2 = interfaceC1718ku0X.zza();
                interfaceC1718ku0X.d(abstractC2665ut0Zza2, object2);
                unsafe.putObject(obj, j2, abstractC2665ut0Zza2);
                object2 = abstractC2665ut0Zza2;
            }
            interfaceC1718ku0X.d(object2, object);
        }
    }

    public final InterfaceC1718ku0 x(int i) {
        int i2 = i / 3;
        int i3 = i2 + i2;
        Object[] objArr = this.b;
        InterfaceC1718ku0 interfaceC1718ku0 = (InterfaceC1718ku0) objArr[i3];
        if (interfaceC1718ku0 != null) {
            return interfaceC1718ku0;
        }
        InterfaceC1718ku0 interfaceC1718ku0A = C1241fu0.c.a((Class) objArr[i3 + 1]);
        objArr[i3] = interfaceC1718ku0A;
        return interfaceC1718ku0A;
    }

    public final InterfaceC3140zt0 y(int i) {
        int i2 = i / 3;
        return (InterfaceC3140zt0) this.b[i2 + i2 + 1];
    }

    public final Object z(int i, Object obj) {
        InterfaceC1718ku0 interfaceC1718ku0X = x(i);
        int iD = D(i) & 1048575;
        if (!n(i, obj)) {
            return interfaceC1718ku0X.zza();
        }
        Object object = k.getObject(obj, iD);
        if (i(object)) {
            return object;
        }
        AbstractC2665ut0 abstractC2665ut0Zza = interfaceC1718ku0X.zza();
        if (object != null) {
            interfaceC1718ku0X.d(abstractC2665ut0Zza, object);
        }
        return abstractC2665ut0Zza;
    }

    @Override // o.InterfaceC1718ku0
    public final AbstractC2665ut0 zza() {
        return (AbstractC2665ut0) ((AbstractC2665ut0) this.e).o(4);
    }
}
