package com.google.crypto.tink.shaded.protobuf;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.crypto.tink.shaded.protobuf.a0;
import com.google.crypto.tink.shaded.protobuf.e;
import com.google.crypto.tink.shaded.protobuf.h;
import com.google.crypto.tink.shaded.protobuf.h0;
import com.google.crypto.tink.shaded.protobuf.q1;
import com.google.crypto.tink.shaded.protobuf.z;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import com.google.firebase.perf.util.Constants;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import net.sqlcipher.database.SQLiteDatabase;
import sun.misc.Unsafe;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class r0 implements d1 {

    /* renamed from: r, reason: collision with root package name */
    private static final int[] f14439r = new int[0];

    /* renamed from: s, reason: collision with root package name */
    private static final Unsafe f14440s = n1.B();

    /* renamed from: a, reason: collision with root package name */
    private final int[] f14441a;

    /* renamed from: b, reason: collision with root package name */
    private final Object[] f14442b;

    /* renamed from: c, reason: collision with root package name */
    private final int f14443c;

    /* renamed from: d, reason: collision with root package name */
    private final int f14444d;

    /* renamed from: e, reason: collision with root package name */
    private final o0 f14445e;

    /* renamed from: f, reason: collision with root package name */
    private final boolean f14446f;

    /* renamed from: g, reason: collision with root package name */
    private final boolean f14447g;

    /* renamed from: h, reason: collision with root package name */
    private final boolean f14448h;

    /* renamed from: i, reason: collision with root package name */
    private final boolean f14449i;

    /* renamed from: j, reason: collision with root package name */
    private final int[] f14450j;

    /* renamed from: k, reason: collision with root package name */
    private final int f14451k;

    /* renamed from: l, reason: collision with root package name */
    private final int f14452l;

    /* renamed from: m, reason: collision with root package name */
    private final t0 f14453m;

    /* renamed from: n, reason: collision with root package name */
    private final e0 f14454n;

    /* renamed from: o, reason: collision with root package name */
    private final j1 f14455o;

    /* renamed from: p, reason: collision with root package name */
    private final q f14456p;

    /* renamed from: q, reason: collision with root package name */
    private final j0 f14457q;

    private r0(int[] iArr, Object[] objArr, int i10, int i11, o0 o0Var, boolean z10, boolean z11, int[] iArr2, int i12, int i13, t0 t0Var, e0 e0Var, j1 j1Var, q qVar, j0 j0Var) {
        this.f14441a = iArr;
        this.f14442b = objArr;
        this.f14443c = i10;
        this.f14444d = i11;
        this.f14447g = o0Var instanceof x;
        this.f14448h = z10;
        this.f14446f = qVar != null && qVar.e(o0Var);
        this.f14449i = z11;
        this.f14450j = iArr2;
        this.f14451k = i12;
        this.f14452l = i13;
        this.f14453m = t0Var;
        this.f14454n = e0Var;
        this.f14455o = j1Var;
        this.f14456p = qVar;
        this.f14445e = o0Var;
        this.f14457q = j0Var;
    }

    private static boolean A(int i10) {
        return (i10 & 536870912) != 0;
    }

    private boolean B(Object obj, int i10) {
        if (!this.f14448h) {
            int h02 = h0(i10);
            return (n1.x(obj, (long) (h02 & 1048575)) & (1 << (h02 >>> 20))) != 0;
        }
        int r02 = r0(i10);
        long U = U(r02);
        switch (q0(r02)) {
            case 0:
                return n1.v(obj, U) != 0.0d;
            case 1:
                return n1.w(obj, U) != BitmapDescriptorFactory.HUE_RED;
            case 2:
                return n1.y(obj, U) != 0;
            case 3:
                return n1.y(obj, U) != 0;
            case 4:
                return n1.x(obj, U) != 0;
            case 5:
                return n1.y(obj, U) != 0;
            case 6:
                return n1.x(obj, U) != 0;
            case 7:
                return n1.p(obj, U);
            case 8:
                Object A = n1.A(obj, U);
                if (A instanceof String) {
                    return !((String) A).isEmpty();
                }
                if (A instanceof h) {
                    return !h.f14344q.equals(A);
                }
                throw new IllegalArgumentException();
            case 9:
                return n1.A(obj, U) != null;
            case 10:
                return !h.f14344q.equals(n1.A(obj, U));
            case 11:
                return n1.x(obj, U) != 0;
            case 12:
                return n1.x(obj, U) != 0;
            case 13:
                return n1.x(obj, U) != 0;
            case 14:
                return n1.y(obj, U) != 0;
            case 15:
                return n1.x(obj, U) != 0;
            case 16:
                return n1.y(obj, U) != 0;
            case 17:
                return n1.A(obj, U) != null;
            default:
                throw new IllegalArgumentException();
        }
    }

    private boolean C(Object obj, int i10, int i11, int i12) {
        return this.f14448h ? B(obj, i10) : (i11 & i12) != 0;
    }

    private static boolean D(Object obj, int i10, d1 d1Var) {
        return d1Var.c(n1.A(obj, U(i10)));
    }

    private boolean E(Object obj, int i10, int i11) {
        List list = (List) n1.A(obj, U(i10));
        if (list.isEmpty()) {
            return true;
        }
        d1 u10 = u(i11);
        for (int i12 = 0; i12 < list.size(); i12++) {
            if (!u10.c(list.get(i12))) {
                return false;
            }
        }
        return true;
    }

    private boolean F(Object obj, int i10, int i11) {
        if (this.f14457q.h(n1.A(obj, U(i10))).isEmpty()) {
            return true;
        }
        this.f14457q.c(t(i11));
        throw null;
    }

    private boolean G(Object obj, Object obj2, int i10) {
        long h02 = h0(i10) & 1048575;
        return n1.x(obj, h02) == n1.x(obj2, h02);
    }

    private boolean H(Object obj, int i10, int i11) {
        return n1.x(obj, (long) (h0(i11) & 1048575)) == i10;
    }

    private static boolean I(int i10) {
        return (i10 & SQLiteDatabase.CREATE_IF_NECESSARY) != 0;
    }

    private static List J(Object obj, long j10) {
        return (List) n1.A(obj, j10);
    }

    private static long K(Object obj, long j10) {
        return n1.y(obj, j10);
    }

    /* JADX WARN: Code restructure failed: missing block: B:324:0x0077, code lost:
    
        r0 = r16.f14451k;
     */
    /* JADX WARN: Code restructure failed: missing block: B:326:0x007b, code lost:
    
        if (r0 >= r16.f14452l) goto L359;
     */
    /* JADX WARN: Code restructure failed: missing block: B:327:0x007d, code lost:
    
        r13 = p(r19, r16.f14450j[r0], r13, r17);
        r0 = r0 + 1;
     */
    /* JADX WARN: Code restructure failed: missing block: B:329:0x0088, code lost:
    
        if (r13 == null) goto L363;
     */
    /* JADX WARN: Code restructure failed: missing block: B:330:0x008a, code lost:
    
        r17.o(r19, r13);
     */
    /* JADX WARN: Code restructure failed: missing block: B:331:0x008d, code lost:
    
        return;
     */
    /* JADX WARN: Code restructure failed: missing block: B:332:?, code lost:
    
        return;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:10:0x0098. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    private void L(j1 j1Var, q qVar, Object obj, c1 c1Var, p pVar) {
        Object obj2 = null;
        t tVar = null;
        while (true) {
            try {
                int w10 = c1Var.w();
                int f02 = f0(w10);
                if (f02 >= 0) {
                    int r02 = r0(f02);
                    try {
                        switch (q0(r02)) {
                            case 0:
                                n1.K(obj, U(r02), c1Var.readDouble());
                                n0(obj, f02);
                                break;
                            case 1:
                                n1.L(obj, U(r02), c1Var.readFloat());
                                n0(obj, f02);
                                break;
                            case 2:
                                n1.N(obj, U(r02), c1Var.G());
                                n0(obj, f02);
                                break;
                            case 3:
                                n1.N(obj, U(r02), c1Var.c());
                                n0(obj, f02);
                                break;
                            case 4:
                                n1.M(obj, U(r02), c1Var.B());
                                n0(obj, f02);
                                break;
                            case 5:
                                n1.N(obj, U(r02), c1Var.d());
                                n0(obj, f02);
                                break;
                            case 6:
                                n1.M(obj, U(r02), c1Var.h());
                                n0(obj, f02);
                                break;
                            case 7:
                                n1.E(obj, U(r02), c1Var.i());
                                n0(obj, f02);
                                break;
                            case 8:
                                k0(obj, r02, c1Var);
                                n0(obj, f02);
                                break;
                            case 9:
                                if (B(obj, f02)) {
                                    n1.O(obj, U(r02), z.h(n1.A(obj, U(r02)), c1Var.L(u(f02), pVar)));
                                    break;
                                } else {
                                    n1.O(obj, U(r02), c1Var.L(u(f02), pVar));
                                    n0(obj, f02);
                                    break;
                                }
                            case 10:
                                n1.O(obj, U(r02), c1Var.z());
                                n0(obj, f02);
                                break;
                            case 11:
                                n1.M(obj, U(r02), c1Var.l());
                                n0(obj, f02);
                                break;
                            case 12:
                                int q10 = c1Var.q();
                                z.c s10 = s(f02);
                                if (s10 != null && !s10.isInRange(q10)) {
                                    obj2 = f1.K(w10, q10, obj2, j1Var);
                                    break;
                                }
                                n1.M(obj, U(r02), q10);
                                n0(obj, f02);
                                break;
                            case 13:
                                n1.M(obj, U(r02), c1Var.D());
                                n0(obj, f02);
                                break;
                            case 14:
                                n1.N(obj, U(r02), c1Var.j());
                                n0(obj, f02);
                                break;
                            case 15:
                                n1.M(obj, U(r02), c1Var.s());
                                n0(obj, f02);
                                break;
                            case 16:
                                n1.N(obj, U(r02), c1Var.t());
                                n0(obj, f02);
                                break;
                            case 17:
                                if (B(obj, f02)) {
                                    n1.O(obj, U(r02), z.h(n1.A(obj, U(r02)), c1Var.K(u(f02), pVar)));
                                    break;
                                } else {
                                    n1.O(obj, U(r02), c1Var.K(u(f02), pVar));
                                    n0(obj, f02);
                                    break;
                                }
                            case 18:
                                c1Var.F(this.f14454n.e(obj, U(r02)));
                                break;
                            case 19:
                                c1Var.A(this.f14454n.e(obj, U(r02)));
                                break;
                            case 20:
                                c1Var.m(this.f14454n.e(obj, U(r02)));
                                break;
                            case 21:
                                c1Var.k(this.f14454n.e(obj, U(r02)));
                                break;
                            case 22:
                                c1Var.o(this.f14454n.e(obj, U(r02)));
                                break;
                            case 23:
                                c1Var.I(this.f14454n.e(obj, U(r02)));
                                break;
                            case 24:
                                c1Var.r(this.f14454n.e(obj, U(r02)));
                                break;
                            case 25:
                                c1Var.u(this.f14454n.e(obj, U(r02)));
                                break;
                            case 26:
                                l0(obj, r02, c1Var);
                                break;
                            case 27:
                                j0(obj, r02, c1Var, u(f02), pVar);
                                break;
                            case 28:
                                c1Var.E(this.f14454n.e(obj, U(r02)));
                                break;
                            case 29:
                                c1Var.g(this.f14454n.e(obj, U(r02)));
                                break;
                            case 30:
                                List e10 = this.f14454n.e(obj, U(r02));
                                c1Var.p(e10);
                                obj2 = f1.z(w10, e10, s(f02), obj2, j1Var);
                                break;
                            case 31:
                                c1Var.e(this.f14454n.e(obj, U(r02)));
                                break;
                            case 32:
                                c1Var.n(this.f14454n.e(obj, U(r02)));
                                break;
                            case 33:
                                c1Var.b(this.f14454n.e(obj, U(r02)));
                                break;
                            case 34:
                                c1Var.f(this.f14454n.e(obj, U(r02)));
                                break;
                            case 35:
                                c1Var.F(this.f14454n.e(obj, U(r02)));
                                break;
                            case 36:
                                c1Var.A(this.f14454n.e(obj, U(r02)));
                                break;
                            case 37:
                                c1Var.m(this.f14454n.e(obj, U(r02)));
                                break;
                            case 38:
                                c1Var.k(this.f14454n.e(obj, U(r02)));
                                break;
                            case 39:
                                c1Var.o(this.f14454n.e(obj, U(r02)));
                                break;
                            case 40:
                                c1Var.I(this.f14454n.e(obj, U(r02)));
                                break;
                            case 41:
                                c1Var.r(this.f14454n.e(obj, U(r02)));
                                break;
                            case 42:
                                c1Var.u(this.f14454n.e(obj, U(r02)));
                                break;
                            case 43:
                                c1Var.g(this.f14454n.e(obj, U(r02)));
                                break;
                            case 44:
                                List e11 = this.f14454n.e(obj, U(r02));
                                c1Var.p(e11);
                                obj2 = f1.z(w10, e11, s(f02), obj2, j1Var);
                                break;
                            case 45:
                                c1Var.e(this.f14454n.e(obj, U(r02)));
                                break;
                            case 46:
                                c1Var.n(this.f14454n.e(obj, U(r02)));
                                break;
                            case 47:
                                c1Var.b(this.f14454n.e(obj, U(r02)));
                                break;
                            case 48:
                                c1Var.f(this.f14454n.e(obj, U(r02)));
                                break;
                            case 49:
                                i0(obj, U(r02), c1Var, u(f02), pVar);
                                break;
                            case 50:
                                M(obj, f02, t(f02), pVar, c1Var);
                                break;
                            case 51:
                                n1.O(obj, U(r02), Double.valueOf(c1Var.readDouble()));
                                o0(obj, w10, f02);
                                break;
                            case 52:
                                n1.O(obj, U(r02), Float.valueOf(c1Var.readFloat()));
                                o0(obj, w10, f02);
                                break;
                            case 53:
                                n1.O(obj, U(r02), Long.valueOf(c1Var.G()));
                                o0(obj, w10, f02);
                                break;
                            case 54:
                                n1.O(obj, U(r02), Long.valueOf(c1Var.c()));
                                o0(obj, w10, f02);
                                break;
                            case 55:
                                n1.O(obj, U(r02), Integer.valueOf(c1Var.B()));
                                o0(obj, w10, f02);
                                break;
                            case 56:
                                n1.O(obj, U(r02), Long.valueOf(c1Var.d()));
                                o0(obj, w10, f02);
                                break;
                            case 57:
                                n1.O(obj, U(r02), Integer.valueOf(c1Var.h()));
                                o0(obj, w10, f02);
                                break;
                            case 58:
                                n1.O(obj, U(r02), Boolean.valueOf(c1Var.i()));
                                o0(obj, w10, f02);
                                break;
                            case 59:
                                k0(obj, r02, c1Var);
                                o0(obj, w10, f02);
                                break;
                            case 60:
                                if (H(obj, w10, f02)) {
                                    n1.O(obj, U(r02), z.h(n1.A(obj, U(r02)), c1Var.L(u(f02), pVar)));
                                } else {
                                    n1.O(obj, U(r02), c1Var.L(u(f02), pVar));
                                    n0(obj, f02);
                                }
                                o0(obj, w10, f02);
                                break;
                            case 61:
                                n1.O(obj, U(r02), c1Var.z());
                                o0(obj, w10, f02);
                                break;
                            case 62:
                                n1.O(obj, U(r02), Integer.valueOf(c1Var.l()));
                                o0(obj, w10, f02);
                                break;
                            case 63:
                                int q11 = c1Var.q();
                                z.c s11 = s(f02);
                                if (s11 != null && !s11.isInRange(q11)) {
                                    obj2 = f1.K(w10, q11, obj2, j1Var);
                                    break;
                                }
                                n1.O(obj, U(r02), Integer.valueOf(q11));
                                o0(obj, w10, f02);
                                break;
                            case 64:
                                n1.O(obj, U(r02), Integer.valueOf(c1Var.D()));
                                o0(obj, w10, f02);
                                break;
                            case 65:
                                n1.O(obj, U(r02), Long.valueOf(c1Var.j()));
                                o0(obj, w10, f02);
                                break;
                            case 66:
                                n1.O(obj, U(r02), Integer.valueOf(c1Var.s()));
                                o0(obj, w10, f02);
                                break;
                            case 67:
                                n1.O(obj, U(r02), Long.valueOf(c1Var.t()));
                                o0(obj, w10, f02);
                                break;
                            case 68:
                                n1.O(obj, U(r02), c1Var.K(u(f02), pVar));
                                o0(obj, w10, f02);
                                break;
                            default:
                                if (obj2 == null) {
                                    obj2 = j1Var.n();
                                }
                                if (!j1Var.m(obj2, c1Var)) {
                                    for (int i10 = this.f14451k; i10 < this.f14452l; i10++) {
                                        obj2 = p(obj, this.f14450j[i10], obj2, j1Var);
                                    }
                                    if (obj2 != null) {
                                        j1Var.o(obj, obj2);
                                        return;
                                    }
                                    return;
                                }
                                break;
                        }
                    } catch (a0.a unused) {
                        if (!j1Var.q(c1Var)) {
                            if (obj2 == null) {
                                obj2 = j1Var.f(obj);
                            }
                            if (!j1Var.m(obj2, c1Var)) {
                                for (int i11 = this.f14451k; i11 < this.f14452l; i11++) {
                                    obj2 = p(obj, this.f14450j[i11], obj2, j1Var);
                                }
                                if (obj2 != null) {
                                    j1Var.o(obj, obj2);
                                    return;
                                }
                                return;
                            }
                        } else if (!c1Var.C()) {
                            for (int i12 = this.f14451k; i12 < this.f14452l; i12++) {
                                obj2 = p(obj, this.f14450j[i12], obj2, j1Var);
                            }
                            if (obj2 != null) {
                                j1Var.o(obj, obj2);
                                return;
                            }
                            return;
                        }
                    }
                } else {
                    if (w10 == Integer.MAX_VALUE) {
                        for (int i13 = this.f14451k; i13 < this.f14452l; i13++) {
                            obj2 = p(obj, this.f14450j[i13], obj2, j1Var);
                        }
                        if (obj2 != null) {
                            j1Var.o(obj, obj2);
                            return;
                        }
                        return;
                    }
                    Object b10 = !this.f14446f ? null : qVar.b(pVar, this.f14445e, w10);
                    if (b10 != null) {
                        if (tVar == null) {
                            tVar = qVar.d(obj);
                        }
                        obj2 = qVar.g(c1Var, b10, pVar, tVar, obj2, j1Var);
                    } else if (!j1Var.q(c1Var)) {
                        if (obj2 == null) {
                            obj2 = j1Var.f(obj);
                        }
                        if (j1Var.m(obj2, c1Var)) {
                        }
                    } else if (c1Var.C()) {
                    }
                }
            } catch (Throwable th2) {
                for (int i14 = this.f14451k; i14 < this.f14452l; i14++) {
                    obj2 = p(obj, this.f14450j[i14], obj2, j1Var);
                }
                if (obj2 != null) {
                    j1Var.o(obj, obj2);
                }
                throw th2;
            }
        }
    }

    private final void M(Object obj, int i10, Object obj2, p pVar, c1 c1Var) {
        long U = U(r0(i10));
        Object A = n1.A(obj, U);
        if (A == null) {
            A = this.f14457q.e(obj2);
            n1.O(obj, U, A);
        } else if (this.f14457q.g(A)) {
            Object e10 = this.f14457q.e(obj2);
            this.f14457q.a(e10, A);
            n1.O(obj, U, e10);
            A = e10;
        }
        Map d10 = this.f14457q.d(A);
        this.f14457q.c(obj2);
        c1Var.M(d10, null, pVar);
    }

    private void N(Object obj, Object obj2, int i10) {
        long U = U(r0(i10));
        if (B(obj2, i10)) {
            Object A = n1.A(obj, U);
            Object A2 = n1.A(obj2, U);
            if (A != null && A2 != null) {
                n1.O(obj, U, z.h(A, A2));
                n0(obj, i10);
            } else if (A2 != null) {
                n1.O(obj, U, A2);
                n0(obj, i10);
            }
        }
    }

    private void O(Object obj, Object obj2, int i10) {
        int r02 = r0(i10);
        int T = T(i10);
        long U = U(r02);
        if (H(obj2, T, i10)) {
            Object A = n1.A(obj, U);
            Object A2 = n1.A(obj2, U);
            if (A != null && A2 != null) {
                n1.O(obj, U, z.h(A, A2));
                o0(obj, T, i10);
            } else if (A2 != null) {
                n1.O(obj, U, A2);
                o0(obj, T, i10);
            }
        }
    }

    private void P(Object obj, Object obj2, int i10) {
        int r02 = r0(i10);
        long U = U(r02);
        int T = T(i10);
        switch (q0(r02)) {
            case 0:
                if (B(obj2, i10)) {
                    n1.K(obj, U, n1.v(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 1:
                if (B(obj2, i10)) {
                    n1.L(obj, U, n1.w(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 2:
                if (B(obj2, i10)) {
                    n1.N(obj, U, n1.y(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 3:
                if (B(obj2, i10)) {
                    n1.N(obj, U, n1.y(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 4:
                if (B(obj2, i10)) {
                    n1.M(obj, U, n1.x(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 5:
                if (B(obj2, i10)) {
                    n1.N(obj, U, n1.y(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 6:
                if (B(obj2, i10)) {
                    n1.M(obj, U, n1.x(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 7:
                if (B(obj2, i10)) {
                    n1.E(obj, U, n1.p(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 8:
                if (B(obj2, i10)) {
                    n1.O(obj, U, n1.A(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 9:
                N(obj, obj2, i10);
                return;
            case 10:
                if (B(obj2, i10)) {
                    n1.O(obj, U, n1.A(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 11:
                if (B(obj2, i10)) {
                    n1.M(obj, U, n1.x(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 12:
                if (B(obj2, i10)) {
                    n1.M(obj, U, n1.x(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 13:
                if (B(obj2, i10)) {
                    n1.M(obj, U, n1.x(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 14:
                if (B(obj2, i10)) {
                    n1.N(obj, U, n1.y(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 15:
                if (B(obj2, i10)) {
                    n1.M(obj, U, n1.x(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 16:
                if (B(obj2, i10)) {
                    n1.N(obj, U, n1.y(obj2, U));
                    n0(obj, i10);
                    return;
                }
                return;
            case 17:
                N(obj, obj2, i10);
                return;
            case 18:
            case 19:
            case 20:
            case 21:
            case 22:
            case 23:
            case 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:
                this.f14454n.d(obj, obj2, U);
                return;
            case 50:
                f1.E(this.f14457q, obj, obj2, U);
                return;
            case 51:
            case 52:
            case 53:
            case 54:
            case 55:
            case 56:
            case 57:
            case 58:
            case 59:
                if (H(obj2, T, i10)) {
                    n1.O(obj, U, n1.A(obj2, U));
                    o0(obj, T, i10);
                    return;
                }
                return;
            case 60:
                O(obj, obj2, i10);
                return;
            case 61:
            case 62:
            case 63:
            case 64:
            case 65:
            case 66:
            case 67:
                if (H(obj2, T, i10)) {
                    n1.O(obj, U, n1.A(obj2, U));
                    o0(obj, T, i10);
                    return;
                }
                return;
            case 68:
                O(obj, obj2, i10);
                return;
            default:
                return;
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public static r0 Q(Class cls, m0 m0Var, t0 t0Var, e0 e0Var, j1 j1Var, q qVar, j0 j0Var) {
        if (m0Var instanceof b1) {
            return S((b1) m0Var, t0Var, e0Var, j1Var, qVar, j0Var);
        }
        android.support.v4.media.session.b.a(m0Var);
        return R(null, t0Var, e0Var, j1Var, qVar, j0Var);
    }

    static r0 R(g1 g1Var, t0 t0Var, e0 e0Var, j1 j1Var, q qVar, j0 j0Var) {
        throw null;
    }

    /* JADX WARN: Removed duplicated region for block: B:105:0x033c  */
    /* JADX WARN: Removed duplicated region for block: B:121:0x039e  */
    /* JADX WARN: Removed duplicated region for block: B:128:0x0391  */
    /* JADX WARN: Removed duplicated region for block: B:65:0x0277  */
    /* JADX WARN: Removed duplicated region for block: B:68:0x0292  */
    /* JADX WARN: Removed duplicated region for block: B:81:0x0295  */
    /* JADX WARN: Removed duplicated region for block: B:82:0x027a  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    static r0 S(b1 b1Var, t0 t0Var, e0 e0Var, j1 j1Var, q qVar, j0 j0Var) {
        int i10;
        int charAt;
        int charAt2;
        int charAt3;
        int i11;
        int i12;
        int[] iArr;
        int i13;
        int i14;
        char charAt4;
        int i15;
        char charAt5;
        int i16;
        char charAt6;
        int i17;
        char charAt7;
        int i18;
        char charAt8;
        int i19;
        char charAt9;
        int i20;
        char charAt10;
        int i21;
        char charAt11;
        int i22;
        int i23;
        boolean z10;
        int i24;
        int[] iArr2;
        int i25;
        int i26;
        String str;
        Class<?> cls;
        int i27;
        int i28;
        int i29;
        int i30;
        int i31;
        int i32;
        Field m02;
        int i33;
        char charAt12;
        int i34;
        int i35;
        Object obj;
        Field m03;
        Object obj2;
        Field m04;
        int i36;
        char charAt13;
        int i37;
        char charAt14;
        int i38;
        char charAt15;
        int i39;
        char charAt16;
        char charAt17;
        int i40 = 0;
        boolean z11 = b1Var.c() == y0.PROTO3;
        String e10 = b1Var.e();
        int length = e10.length();
        int charAt18 = e10.charAt(0);
        if (charAt18 >= 55296) {
            int i41 = charAt18 & 8191;
            int i42 = 1;
            int i43 = 13;
            while (true) {
                i10 = i42 + 1;
                charAt17 = e10.charAt(i42);
                if (charAt17 < 55296) {
                    break;
                }
                i41 |= (charAt17 & 8191) << i43;
                i43 += 13;
                i42 = i10;
            }
            charAt18 = i41 | (charAt17 << i43);
        } else {
            i10 = 1;
        }
        int i44 = i10 + 1;
        int charAt19 = e10.charAt(i10);
        if (charAt19 >= 55296) {
            int i45 = charAt19 & 8191;
            int i46 = 13;
            while (true) {
                i39 = i44 + 1;
                charAt16 = e10.charAt(i44);
                if (charAt16 < 55296) {
                    break;
                }
                i45 |= (charAt16 & 8191) << i46;
                i46 += 13;
                i44 = i39;
            }
            charAt19 = i45 | (charAt16 << i46);
            i44 = i39;
        }
        if (charAt19 == 0) {
            i13 = 0;
            charAt = 0;
            charAt2 = 0;
            i11 = 0;
            charAt3 = 0;
            iArr = f14439r;
            i12 = 0;
        } else {
            int i47 = i44 + 1;
            int charAt20 = e10.charAt(i44);
            if (charAt20 >= 55296) {
                int i48 = charAt20 & 8191;
                int i49 = 13;
                while (true) {
                    i21 = i47 + 1;
                    charAt11 = e10.charAt(i47);
                    if (charAt11 < 55296) {
                        break;
                    }
                    i48 |= (charAt11 & 8191) << i49;
                    i49 += 13;
                    i47 = i21;
                }
                charAt20 = i48 | (charAt11 << i49);
                i47 = i21;
            }
            int i50 = i47 + 1;
            int charAt21 = e10.charAt(i47);
            if (charAt21 >= 55296) {
                int i51 = charAt21 & 8191;
                int i52 = 13;
                while (true) {
                    i20 = i50 + 1;
                    charAt10 = e10.charAt(i50);
                    if (charAt10 < 55296) {
                        break;
                    }
                    i51 |= (charAt10 & 8191) << i52;
                    i52 += 13;
                    i50 = i20;
                }
                charAt21 = i51 | (charAt10 << i52);
                i50 = i20;
            }
            int i53 = i50 + 1;
            int charAt22 = e10.charAt(i50);
            if (charAt22 >= 55296) {
                int i54 = charAt22 & 8191;
                int i55 = 13;
                while (true) {
                    i19 = i53 + 1;
                    charAt9 = e10.charAt(i53);
                    if (charAt9 < 55296) {
                        break;
                    }
                    i54 |= (charAt9 & 8191) << i55;
                    i55 += 13;
                    i53 = i19;
                }
                charAt22 = i54 | (charAt9 << i55);
                i53 = i19;
            }
            int i56 = i53 + 1;
            charAt = e10.charAt(i53);
            if (charAt >= 55296) {
                int i57 = charAt & 8191;
                int i58 = 13;
                while (true) {
                    i18 = i56 + 1;
                    charAt8 = e10.charAt(i56);
                    if (charAt8 < 55296) {
                        break;
                    }
                    i57 |= (charAt8 & 8191) << i58;
                    i58 += 13;
                    i56 = i18;
                }
                charAt = i57 | (charAt8 << i58);
                i56 = i18;
            }
            int i59 = i56 + 1;
            charAt2 = e10.charAt(i56);
            if (charAt2 >= 55296) {
                int i60 = charAt2 & 8191;
                int i61 = 13;
                while (true) {
                    i17 = i59 + 1;
                    charAt7 = e10.charAt(i59);
                    if (charAt7 < 55296) {
                        break;
                    }
                    i60 |= (charAt7 & 8191) << i61;
                    i61 += 13;
                    i59 = i17;
                }
                charAt2 = i60 | (charAt7 << i61);
                i59 = i17;
            }
            int i62 = i59 + 1;
            int charAt23 = e10.charAt(i59);
            if (charAt23 >= 55296) {
                int i63 = charAt23 & 8191;
                int i64 = 13;
                while (true) {
                    i16 = i62 + 1;
                    charAt6 = e10.charAt(i62);
                    if (charAt6 < 55296) {
                        break;
                    }
                    i63 |= (charAt6 & 8191) << i64;
                    i64 += 13;
                    i62 = i16;
                }
                charAt23 = i63 | (charAt6 << i64);
                i62 = i16;
            }
            int i65 = i62 + 1;
            int charAt24 = e10.charAt(i62);
            if (charAt24 >= 55296) {
                int i66 = charAt24 & 8191;
                int i67 = 13;
                while (true) {
                    i15 = i65 + 1;
                    charAt5 = e10.charAt(i65);
                    if (charAt5 < 55296) {
                        break;
                    }
                    i66 |= (charAt5 & 8191) << i67;
                    i67 += 13;
                    i65 = i15;
                }
                charAt24 = i66 | (charAt5 << i67);
                i65 = i15;
            }
            int i68 = i65 + 1;
            charAt3 = e10.charAt(i65);
            if (charAt3 >= 55296) {
                int i69 = charAt3 & 8191;
                int i70 = i68;
                int i71 = 13;
                while (true) {
                    i14 = i70 + 1;
                    charAt4 = e10.charAt(i70);
                    if (charAt4 < 55296) {
                        break;
                    }
                    i69 |= (charAt4 & 8191) << i71;
                    i71 += 13;
                    i70 = i14;
                }
                charAt3 = i69 | (charAt4 << i71);
                i68 = i14;
            }
            int[] iArr3 = new int[charAt3 + charAt23 + charAt24];
            i11 = (charAt20 * 2) + charAt21;
            i12 = charAt20;
            i44 = i68;
            int i72 = charAt23;
            iArr = iArr3;
            i40 = charAt22;
            i13 = i72;
        }
        Unsafe unsafe = f14440s;
        Object[] d10 = b1Var.d();
        Class<?> cls2 = b1Var.b().getClass();
        int[] iArr4 = new int[charAt2 * 3];
        Object[] objArr = new Object[charAt2 * 2];
        int i73 = charAt3 + i13;
        int i74 = charAt3;
        int i75 = i73;
        int i76 = 0;
        int i77 = 0;
        while (i44 < length) {
            int i78 = i44 + 1;
            int charAt25 = e10.charAt(i44);
            int i79 = length;
            if (charAt25 >= 55296) {
                int i80 = charAt25 & 8191;
                int i81 = i78;
                int i82 = 13;
                while (true) {
                    i38 = i81 + 1;
                    charAt15 = e10.charAt(i81);
                    i22 = charAt3;
                    if (charAt15 < 55296) {
                        break;
                    }
                    i80 |= (charAt15 & 8191) << i82;
                    i82 += 13;
                    i81 = i38;
                    charAt3 = i22;
                }
                charAt25 = i80 | (charAt15 << i82);
                i23 = i38;
            } else {
                i22 = charAt3;
                i23 = i78;
            }
            int i83 = i23 + 1;
            int charAt26 = e10.charAt(i23);
            if (charAt26 >= 55296) {
                int i84 = charAt26 & 8191;
                int i85 = i83;
                int i86 = 13;
                while (true) {
                    i37 = i85 + 1;
                    charAt14 = e10.charAt(i85);
                    z10 = z11;
                    if (charAt14 < 55296) {
                        break;
                    }
                    i84 |= (charAt14 & 8191) << i86;
                    i86 += 13;
                    i85 = i37;
                    z11 = z10;
                }
                charAt26 = i84 | (charAt14 << i86);
                i24 = i37;
            } else {
                z10 = z11;
                i24 = i83;
            }
            int i87 = charAt26 & Constants.MAX_HOST_LENGTH;
            int i88 = charAt;
            if ((charAt26 & UserMetadata.MAX_ATTRIBUTE_SIZE) != 0) {
                iArr[i76] = i77;
                i76++;
            }
            int i89 = i76;
            if (i87 >= 51) {
                int i90 = i24 + 1;
                int charAt27 = e10.charAt(i24);
                char c10 = 55296;
                if (charAt27 >= 55296) {
                    int i91 = charAt27 & 8191;
                    int i92 = 13;
                    while (true) {
                        i36 = i90 + 1;
                        charAt13 = e10.charAt(i90);
                        if (charAt13 < c10) {
                            break;
                        }
                        i91 |= (charAt13 & 8191) << i92;
                        i92 += 13;
                        i90 = i36;
                        c10 = 55296;
                    }
                    charAt27 = i91 | (charAt13 << i92);
                    i90 = i36;
                }
                int i93 = i87 - 51;
                int i94 = i90;
                if (i93 == 9 || i93 == 17) {
                    i35 = i11 + 1;
                    objArr[((i77 / 3) * 2) + 1] = d10[i11];
                } else {
                    if (i93 == 12 && (charAt18 & 1) == 1) {
                        i35 = i11 + 1;
                        objArr[((i77 / 3) * 2) + 1] = d10[i11];
                    }
                    int i95 = charAt27 * 2;
                    obj = d10[i95];
                    if (obj instanceof Field) {
                        m03 = m0(cls2, (String) obj);
                        d10[i95] = m03;
                    } else {
                        m03 = (Field) obj;
                    }
                    iArr2 = iArr4;
                    i25 = charAt25;
                    int objectFieldOffset = (int) unsafe.objectFieldOffset(m03);
                    int i96 = i95 + 1;
                    obj2 = d10[i96];
                    if (obj2 instanceof Field) {
                        m04 = m0(cls2, (String) obj2);
                        d10[i96] = m04;
                    } else {
                        m04 = (Field) obj2;
                    }
                    str = e10;
                    cls = cls2;
                    i27 = charAt18;
                    i30 = (int) unsafe.objectFieldOffset(m04);
                    i32 = objectFieldOffset;
                    i28 = i87;
                    i44 = i94;
                    i31 = 0;
                }
                i11 = i35;
                int i952 = charAt27 * 2;
                obj = d10[i952];
                if (obj instanceof Field) {
                }
                iArr2 = iArr4;
                i25 = charAt25;
                int objectFieldOffset2 = (int) unsafe.objectFieldOffset(m03);
                int i962 = i952 + 1;
                obj2 = d10[i962];
                if (obj2 instanceof Field) {
                }
                str = e10;
                cls = cls2;
                i27 = charAt18;
                i30 = (int) unsafe.objectFieldOffset(m04);
                i32 = objectFieldOffset2;
                i28 = i87;
                i44 = i94;
                i31 = 0;
            } else {
                iArr2 = iArr4;
                i25 = charAt25;
                int i97 = i11 + 1;
                Field m05 = m0(cls2, (String) d10[i11]);
                if (i87 == 9 || i87 == 17) {
                    objArr[((i77 / 3) * 2) + 1] = m05.getType();
                } else {
                    if (i87 == 27 || i87 == 49) {
                        i34 = i97 + 1;
                        objArr[((i77 / 3) * 2) + 1] = d10[i97];
                    } else if (i87 == 12 || i87 == 30 || i87 == 44) {
                        if ((charAt18 & 1) == 1) {
                            i34 = i97 + 1;
                            objArr[((i77 / 3) * 2) + 1] = d10[i97];
                        }
                    } else if (i87 == 50) {
                        int i98 = i74 + 1;
                        iArr[i74] = i77;
                        int i99 = (i77 / 3) * 2;
                        int i100 = i97 + 1;
                        objArr[i99] = d10[i97];
                        if ((charAt26 & 2048) != 0) {
                            i97 = i100 + 1;
                            objArr[i99 + 1] = d10[i100];
                            i74 = i98;
                        } else {
                            i74 = i98;
                            i97 = i100;
                        }
                    }
                    i26 = i87;
                    i97 = i34;
                    int objectFieldOffset3 = (int) unsafe.objectFieldOffset(m05);
                    if ((charAt18 & 1) != 1) {
                        i28 = i26;
                        if (i28 <= 17) {
                            i29 = i24 + 1;
                            int charAt28 = e10.charAt(i24);
                            if (charAt28 >= 55296) {
                                int i101 = charAt28 & 8191;
                                int i102 = 13;
                                while (true) {
                                    i33 = i29 + 1;
                                    charAt12 = e10.charAt(i29);
                                    if (charAt12 < 55296) {
                                        break;
                                    }
                                    i101 |= (charAt12 & 8191) << i102;
                                    i102 += 13;
                                    i29 = i33;
                                }
                                charAt28 = i101 | (charAt12 << i102);
                                i29 = i33;
                            }
                            int i103 = (i12 * 2) + (charAt28 / 32);
                            Object obj3 = d10[i103];
                            str = e10;
                            if (obj3 instanceof Field) {
                                m02 = (Field) obj3;
                            } else {
                                m02 = m0(cls2, (String) obj3);
                                d10[i103] = m02;
                            }
                            cls = cls2;
                            i27 = charAt18;
                            i30 = (int) unsafe.objectFieldOffset(m02);
                            i31 = charAt28 % 32;
                            if (i28 >= 18 && i28 <= 49) {
                                iArr[i75] = objectFieldOffset3;
                                i75++;
                            }
                            int i104 = i29;
                            i11 = i97;
                            i32 = objectFieldOffset3;
                            i44 = i104;
                        } else {
                            str = e10;
                            cls = cls2;
                            i27 = charAt18;
                        }
                    } else {
                        str = e10;
                        cls = cls2;
                        i27 = charAt18;
                        i28 = i26;
                    }
                    i29 = i24;
                    i30 = 0;
                    i31 = 0;
                    if (i28 >= 18) {
                        iArr[i75] = objectFieldOffset3;
                        i75++;
                    }
                    int i1042 = i29;
                    i11 = i97;
                    i32 = objectFieldOffset3;
                    i44 = i1042;
                }
                i26 = i87;
                int objectFieldOffset32 = (int) unsafe.objectFieldOffset(m05);
                if ((charAt18 & 1) != 1) {
                }
                i29 = i24;
                i30 = 0;
                i31 = 0;
                if (i28 >= 18) {
                }
                int i10422 = i29;
                i11 = i97;
                i32 = objectFieldOffset32;
                i44 = i10422;
            }
            int i105 = i77 + 1;
            iArr2[i77] = i25;
            int i106 = i105 + 1;
            int i107 = i27;
            iArr2[i105] = ((charAt26 & 512) != 0 ? 536870912 : 0) | ((charAt26 & 256) != 0 ? SQLiteDatabase.CREATE_IF_NECESSARY : 0) | (i28 << 20) | i32;
            int i108 = i106 + 1;
            iArr2[i106] = (i31 << 20) | i30;
            iArr4 = iArr2;
            cls2 = cls;
            charAt18 = i107;
            charAt = i88;
            length = i79;
            charAt3 = i22;
            z11 = z10;
            i76 = i89;
            i77 = i108;
            e10 = str;
        }
        return new r0(iArr4, objArr, i40, charAt, b1Var.b(), z11, false, iArr, charAt3, i73, t0Var, e0Var, j1Var, qVar, j0Var);
    }

    private int T(int i10) {
        return this.f14441a[i10];
    }

    private static long U(int i10) {
        return i10 & 1048575;
    }

    private static boolean V(Object obj, long j10) {
        return ((Boolean) n1.A(obj, j10)).booleanValue();
    }

    private static double W(Object obj, long j10) {
        return ((Double) n1.A(obj, j10)).doubleValue();
    }

    private static float X(Object obj, long j10) {
        return ((Float) n1.A(obj, j10)).floatValue();
    }

    private static int Y(Object obj, long j10) {
        return ((Integer) n1.A(obj, j10)).intValue();
    }

    private static long Z(Object obj, long j10) {
        return ((Long) n1.A(obj, j10)).longValue();
    }

    private int a0(Object obj, byte[] bArr, int i10, int i11, int i12, long j10, e.a aVar) {
        Unsafe unsafe = f14440s;
        Object t10 = t(i12);
        Object object = unsafe.getObject(obj, j10);
        if (this.f14457q.g(object)) {
            Object e10 = this.f14457q.e(t10);
            this.f14457q.a(e10, object);
            unsafe.putObject(obj, j10, e10);
            object = e10;
        }
        this.f14457q.c(t10);
        return m(bArr, i10, i11, null, this.f14457q.d(object), aVar);
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Failed to find 'out' block for switch in B:2:0x0023. Please report as an issue. */
    private int b0(Object obj, byte[] bArr, int i10, int i11, int i12, int i13, int i14, int i15, int i16, long j10, int i17, e.a aVar) {
        Unsafe unsafe = f14440s;
        long j11 = this.f14441a[i17 + 2] & 1048575;
        switch (i16) {
            case 51:
                if (i14 == 1) {
                    unsafe.putObject(obj, j10, Double.valueOf(e.d(bArr, i10)));
                    int i18 = i10 + 8;
                    unsafe.putInt(obj, j11, i13);
                    return i18;
                }
                return i10;
            case 52:
                if (i14 == 5) {
                    unsafe.putObject(obj, j10, Float.valueOf(e.k(bArr, i10)));
                    int i19 = i10 + 4;
                    unsafe.putInt(obj, j11, i13);
                    return i19;
                }
                return i10;
            case 53:
            case 54:
                if (i14 == 0) {
                    int K = e.K(bArr, i10, aVar);
                    unsafe.putObject(obj, j10, Long.valueOf(aVar.f14331b));
                    unsafe.putInt(obj, j11, i13);
                    return K;
                }
                return i10;
            case 55:
            case 62:
                if (i14 == 0) {
                    int H = e.H(bArr, i10, aVar);
                    unsafe.putObject(obj, j10, Integer.valueOf(aVar.f14330a));
                    unsafe.putInt(obj, j11, i13);
                    return H;
                }
                return i10;
            case 56:
            case 65:
                if (i14 == 1) {
                    unsafe.putObject(obj, j10, Long.valueOf(e.i(bArr, i10)));
                    int i20 = i10 + 8;
                    unsafe.putInt(obj, j11, i13);
                    return i20;
                }
                return i10;
            case 57:
            case 64:
                if (i14 == 5) {
                    unsafe.putObject(obj, j10, Integer.valueOf(e.g(bArr, i10)));
                    int i21 = i10 + 4;
                    unsafe.putInt(obj, j11, i13);
                    return i21;
                }
                return i10;
            case 58:
                if (i14 == 0) {
                    int K2 = e.K(bArr, i10, aVar);
                    unsafe.putObject(obj, j10, Boolean.valueOf(aVar.f14331b != 0));
                    unsafe.putInt(obj, j11, i13);
                    return K2;
                }
                return i10;
            case 59:
                if (i14 == 2) {
                    int H2 = e.H(bArr, i10, aVar);
                    int i22 = aVar.f14330a;
                    if (i22 == 0) {
                        unsafe.putObject(obj, j10, "");
                    } else {
                        if ((i15 & 536870912) != 0 && !o1.n(bArr, H2, H2 + i22)) {
                            throw a0.c();
                        }
                        unsafe.putObject(obj, j10, new String(bArr, H2, i22, z.f14474a));
                        H2 += i22;
                    }
                    unsafe.putInt(obj, j11, i13);
                    return H2;
                }
                return i10;
            case 60:
                if (i14 == 2) {
                    int o10 = e.o(u(i17), bArr, i10, i11, aVar);
                    Object object = unsafe.getInt(obj, j11) == i13 ? unsafe.getObject(obj, j10) : null;
                    if (object == null) {
                        unsafe.putObject(obj, j10, aVar.f14332c);
                    } else {
                        unsafe.putObject(obj, j10, z.h(object, aVar.f14332c));
                    }
                    unsafe.putInt(obj, j11, i13);
                    return o10;
                }
                return i10;
            case 61:
                if (i14 == 2) {
                    int b10 = e.b(bArr, i10, aVar);
                    unsafe.putObject(obj, j10, aVar.f14332c);
                    unsafe.putInt(obj, j11, i13);
                    return b10;
                }
                return i10;
            case 63:
                if (i14 == 0) {
                    int H3 = e.H(bArr, i10, aVar);
                    int i23 = aVar.f14330a;
                    z.c s10 = s(i17);
                    if (s10 == null || s10.isInRange(i23)) {
                        unsafe.putObject(obj, j10, Integer.valueOf(i23));
                        unsafe.putInt(obj, j11, i13);
                    } else {
                        v(obj).n(i12, Long.valueOf(i23));
                    }
                    return H3;
                }
                return i10;
            case 66:
                if (i14 == 0) {
                    int H4 = e.H(bArr, i10, aVar);
                    unsafe.putObject(obj, j10, Integer.valueOf(i.b(aVar.f14330a)));
                    unsafe.putInt(obj, j11, i13);
                    return H4;
                }
                return i10;
            case 67:
                if (i14 == 0) {
                    int K3 = e.K(bArr, i10, aVar);
                    unsafe.putObject(obj, j10, Long.valueOf(i.c(aVar.f14331b)));
                    unsafe.putInt(obj, j11, i13);
                    return K3;
                }
                return i10;
            case 68:
                if (i14 == 3) {
                    int m10 = e.m(u(i17), bArr, i10, i11, (i12 & (-8)) | 4, aVar);
                    Object object2 = unsafe.getInt(obj, j11) == i13 ? unsafe.getObject(obj, j10) : null;
                    if (object2 == null) {
                        unsafe.putObject(obj, j10, aVar.f14332c);
                    } else {
                        unsafe.putObject(obj, j10, z.h(object2, aVar.f14332c));
                    }
                    unsafe.putInt(obj, j11, i13);
                    return m10;
                }
                return i10;
            default:
                return i10;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:121:0x01de, code lost:
    
        if (r0 != r15) goto L106;
     */
    /* JADX WARN: Code restructure failed: missing block: B:122:0x022e, code lost:
    
        r2 = r0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:128:0x020c, code lost:
    
        if (r0 != r15) goto L106;
     */
    /* JADX WARN: Code restructure failed: missing block: B:130:0x022b, code lost:
    
        if (r0 != r15) goto L106;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:14:0x005c. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    private int d0(Object obj, byte[] bArr, int i10, int i11, e.a aVar) {
        int i12;
        int i13;
        int i14;
        int i15;
        Unsafe unsafe;
        int i16;
        int i17;
        int i18;
        int i19;
        int K;
        r0 r0Var = this;
        Object obj2 = obj;
        byte[] bArr2 = bArr;
        int i20 = i11;
        e.a aVar2 = aVar;
        Unsafe unsafe2 = f14440s;
        int i21 = -1;
        int i22 = i10;
        int i23 = -1;
        int i24 = 0;
        while (i22 < i20) {
            int i25 = i22 + 1;
            byte b10 = bArr2[i22];
            if (b10 < 0) {
                i13 = e.G(b10, bArr2, i25, aVar2);
                i12 = aVar2.f14330a;
            } else {
                i12 = b10;
                i13 = i25;
            }
            int i26 = i12 >>> 3;
            int i27 = i12 & 7;
            int g02 = i26 > i23 ? r0Var.g0(i26, i24 / 3) : r0Var.f0(i26);
            if (g02 == i21) {
                i14 = i26;
                i15 = i13;
                unsafe = unsafe2;
                i16 = i21;
                i17 = 0;
            } else {
                int i28 = r0Var.f14441a[g02 + 1];
                int q02 = q0(i28);
                long U = U(i28);
                if (q02 <= 17) {
                    switch (q02) {
                        case 0:
                            i19 = g02;
                            if (i27 != 1) {
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i17 = i19;
                                i16 = -1;
                                break;
                            } else {
                                n1.K(obj2, U, e.d(bArr2, i13));
                                i22 = i13 + 8;
                                i23 = i26;
                                i24 = i19;
                                i21 = -1;
                                break;
                            }
                        case 1:
                            i19 = g02;
                            if (i27 != 5) {
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i17 = i19;
                                i16 = -1;
                                break;
                            } else {
                                n1.L(obj2, U, e.k(bArr2, i13));
                                i22 = i13 + 4;
                                i23 = i26;
                                i24 = i19;
                                i21 = -1;
                                break;
                            }
                        case 2:
                        case 3:
                            i19 = g02;
                            if (i27 != 0) {
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i17 = i19;
                                i16 = -1;
                                break;
                            } else {
                                K = e.K(bArr2, i13, aVar2);
                                unsafe2.putLong(obj, U, aVar2.f14331b);
                                i22 = K;
                                i23 = i26;
                                i24 = i19;
                                i21 = -1;
                                break;
                            }
                        case 4:
                        case 11:
                            i19 = g02;
                            if (i27 != 0) {
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i17 = i19;
                                i16 = -1;
                                break;
                            } else {
                                i22 = e.H(bArr2, i13, aVar2);
                                unsafe2.putInt(obj2, U, aVar2.f14330a);
                                i23 = i26;
                                i24 = i19;
                                i21 = -1;
                                break;
                            }
                        case 5:
                        case 14:
                            if (i27 != 1) {
                                i17 = g02;
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i16 = -1;
                                break;
                            } else {
                                i19 = g02;
                                unsafe2.putLong(obj, U, e.i(bArr2, i13));
                                i22 = i13 + 8;
                                i23 = i26;
                                i24 = i19;
                                i21 = -1;
                                break;
                            }
                        case 6:
                        case 13:
                            if (i27 != 5) {
                                i17 = g02;
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i16 = -1;
                                break;
                            } else {
                                unsafe2.putInt(obj2, U, e.g(bArr2, i13));
                                i22 = i13 + 4;
                                i24 = g02;
                                i23 = i26;
                                i21 = -1;
                                break;
                            }
                        case 7:
                            if (i27 != 0) {
                                i17 = g02;
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i16 = -1;
                                break;
                            } else {
                                int K2 = e.K(bArr2, i13, aVar2);
                                n1.E(obj2, U, aVar2.f14331b != 0);
                                i22 = K2;
                                i24 = g02;
                                i23 = i26;
                                i21 = -1;
                                break;
                            }
                        case 8:
                            if (i27 != 2) {
                                i17 = g02;
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i16 = -1;
                                break;
                            } else {
                                i22 = (536870912 & i28) == 0 ? e.B(bArr2, i13, aVar2) : e.E(bArr2, i13, aVar2);
                                unsafe2.putObject(obj2, U, aVar2.f14332c);
                                i24 = g02;
                                i23 = i26;
                                i21 = -1;
                                break;
                            }
                        case 9:
                            if (i27 != 2) {
                                i17 = g02;
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i16 = -1;
                                break;
                            } else {
                                i22 = e.o(r0Var.u(g02), bArr2, i13, i20, aVar2);
                                Object object = unsafe2.getObject(obj2, U);
                                if (object == null) {
                                    unsafe2.putObject(obj2, U, aVar2.f14332c);
                                } else {
                                    unsafe2.putObject(obj2, U, z.h(object, aVar2.f14332c));
                                }
                                i24 = g02;
                                i23 = i26;
                                i21 = -1;
                                break;
                            }
                        case 10:
                            if (i27 != 2) {
                                i17 = g02;
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i16 = -1;
                                break;
                            } else {
                                i22 = e.b(bArr2, i13, aVar2);
                                unsafe2.putObject(obj2, U, aVar2.f14332c);
                                i24 = g02;
                                i23 = i26;
                                i21 = -1;
                                break;
                            }
                        case 12:
                            i19 = g02;
                            if (i27 != 0) {
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i17 = i19;
                                i16 = -1;
                                break;
                            } else {
                                i22 = e.H(bArr2, i13, aVar2);
                                unsafe2.putInt(obj2, U, aVar2.f14330a);
                                i23 = i26;
                                i24 = i19;
                                i21 = -1;
                                break;
                            }
                        case 15:
                            i19 = g02;
                            if (i27 != 0) {
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i17 = i19;
                                i16 = -1;
                                break;
                            } else {
                                i22 = e.H(bArr2, i13, aVar2);
                                unsafe2.putInt(obj2, U, i.b(aVar2.f14330a));
                                i23 = i26;
                                i24 = i19;
                                i21 = -1;
                                break;
                            }
                        case 16:
                            if (i27 != 0) {
                                i17 = g02;
                                i14 = i26;
                                i18 = i13;
                                unsafe = unsafe2;
                                i16 = -1;
                                break;
                            } else {
                                K = e.K(bArr2, i13, aVar2);
                                i19 = g02;
                                unsafe2.putLong(obj, U, i.c(aVar2.f14331b));
                                i22 = K;
                                i23 = i26;
                                i24 = i19;
                                i21 = -1;
                                break;
                            }
                        default:
                            i17 = g02;
                            i14 = i26;
                            i18 = i13;
                            unsafe = unsafe2;
                            i16 = -1;
                            break;
                    }
                } else if (q02 != 27) {
                    i17 = g02;
                    if (q02 <= 49) {
                        i14 = i26;
                        int i29 = i13;
                        unsafe = unsafe2;
                        i16 = -1;
                        i22 = e0(obj, bArr, i13, i11, i12, i26, i27, i17, i28, q02, U, aVar);
                    } else {
                        i14 = i26;
                        i18 = i13;
                        unsafe = unsafe2;
                        i16 = -1;
                        if (q02 != 50) {
                            i22 = b0(obj, bArr, i18, i11, i12, i14, i27, i28, q02, U, i17, aVar);
                        } else if (i27 == 2) {
                            i22 = a0(obj, bArr, i18, i11, i17, U, aVar);
                        }
                    }
                    r0Var = this;
                    obj2 = obj;
                    bArr2 = bArr;
                    i20 = i11;
                    aVar2 = aVar;
                    unsafe2 = unsafe;
                    i24 = i17;
                    i23 = i14;
                    i21 = i16;
                } else if (i27 == 2) {
                    z.d dVar = (z.d) unsafe2.getObject(obj2, U);
                    if (!dVar.h()) {
                        int size = dVar.size();
                        dVar = dVar.a(size == 0 ? 10 : size * 2);
                        unsafe2.putObject(obj2, U, dVar);
                    }
                    i22 = e.p(r0Var.u(g02), i12, bArr, i13, i11, dVar, aVar);
                    i23 = i26;
                    i24 = g02;
                    i21 = -1;
                } else {
                    i17 = g02;
                    i14 = i26;
                    i18 = i13;
                    unsafe = unsafe2;
                    i16 = -1;
                }
                i15 = i18;
            }
            i22 = e.F(i12, bArr, i15, i11, v(obj), aVar);
            r0Var = this;
            obj2 = obj;
            bArr2 = bArr;
            i20 = i11;
            aVar2 = aVar;
            unsafe2 = unsafe;
            i24 = i17;
            i23 = i14;
            i21 = i16;
        }
        if (i22 == i20) {
            return i22;
        }
        throw a0.g();
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Failed to find 'out' block for switch in B:9:0x002f. Please report as an issue. */
    private int e0(Object obj, byte[] bArr, int i10, int i11, int i12, int i13, int i14, int i15, long j10, int i16, long j11, e.a aVar) {
        int I;
        Unsafe unsafe = f14440s;
        z.d dVar = (z.d) unsafe.getObject(obj, j11);
        if (!dVar.h()) {
            int size = dVar.size();
            dVar = dVar.a(size == 0 ? 10 : size * 2);
            unsafe.putObject(obj, j11, dVar);
        }
        switch (i16) {
            case 18:
            case 35:
                if (i14 == 2) {
                    return e.r(bArr, i10, dVar, aVar);
                }
                if (i14 == 1) {
                    return e.e(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 19:
            case 36:
                if (i14 == 2) {
                    return e.u(bArr, i10, dVar, aVar);
                }
                if (i14 == 5) {
                    return e.l(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 20:
            case 21:
            case 37:
            case 38:
                if (i14 == 2) {
                    return e.y(bArr, i10, dVar, aVar);
                }
                if (i14 == 0) {
                    return e.L(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 22:
            case 29:
            case 39:
            case 43:
                if (i14 == 2) {
                    return e.x(bArr, i10, dVar, aVar);
                }
                if (i14 == 0) {
                    return e.I(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 23:
            case 32:
            case 40:
            case 46:
                if (i14 == 2) {
                    return e.t(bArr, i10, dVar, aVar);
                }
                if (i14 == 1) {
                    return e.j(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 24:
            case 31:
            case 41:
            case 45:
                if (i14 == 2) {
                    return e.s(bArr, i10, dVar, aVar);
                }
                if (i14 == 5) {
                    return e.h(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 25:
            case 42:
                if (i14 == 2) {
                    return e.q(bArr, i10, dVar, aVar);
                }
                if (i14 == 0) {
                    return e.a(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 26:
                if (i14 == 2) {
                    return (j10 & 536870912) == 0 ? e.C(i12, bArr, i10, i11, dVar, aVar) : e.D(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 27:
                if (i14 == 2) {
                    return e.p(u(i15), i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 28:
                if (i14 == 2) {
                    return e.c(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 30:
            case 44:
                if (i14 != 2) {
                    if (i14 == 0) {
                        I = e.I(i12, bArr, i10, i11, dVar, aVar);
                    }
                    return i10;
                }
                I = e.x(bArr, i10, dVar, aVar);
                x xVar = (x) obj;
                k1 k1Var = xVar.unknownFields;
                if (k1Var == k1.e()) {
                    k1Var = null;
                }
                k1 k1Var2 = (k1) f1.z(i13, dVar, s(i15), k1Var, this.f14455o);
                if (k1Var2 != null) {
                    xVar.unknownFields = k1Var2;
                }
                return I;
            case 33:
            case 47:
                if (i14 == 2) {
                    return e.v(bArr, i10, dVar, aVar);
                }
                if (i14 == 0) {
                    return e.z(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 34:
            case 48:
                if (i14 == 2) {
                    return e.w(bArr, i10, dVar, aVar);
                }
                if (i14 == 0) {
                    return e.A(i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            case 49:
                if (i14 == 3) {
                    return e.n(u(i15), i12, bArr, i10, i11, dVar, aVar);
                }
                return i10;
            default:
                return i10;
        }
    }

    private int f0(int i10) {
        if (i10 < this.f14443c || i10 > this.f14444d) {
            return -1;
        }
        return p0(i10, 0);
    }

    private int g0(int i10, int i11) {
        if (i10 < this.f14443c || i10 > this.f14444d) {
            return -1;
        }
        return p0(i10, i11);
    }

    private int h0(int i10) {
        return this.f14441a[i10 + 2];
    }

    private void i0(Object obj, long j10, c1 c1Var, d1 d1Var, p pVar) {
        c1Var.N(this.f14454n.e(obj, j10), d1Var, pVar);
    }

    private void j0(Object obj, int i10, c1 c1Var, d1 d1Var, p pVar) {
        c1Var.J(this.f14454n.e(obj, U(i10)), d1Var, pVar);
    }

    private boolean k(Object obj, Object obj2, int i10) {
        return B(obj, i10) == B(obj2, i10);
    }

    private void k0(Object obj, int i10, c1 c1Var) {
        if (A(i10)) {
            n1.O(obj, U(i10), c1Var.H());
        } else if (this.f14447g) {
            n1.O(obj, U(i10), c1Var.v());
        } else {
            n1.O(obj, U(i10), c1Var.z());
        }
    }

    private static boolean l(Object obj, long j10) {
        return n1.p(obj, j10);
    }

    private void l0(Object obj, int i10, c1 c1Var) {
        if (A(i10)) {
            c1Var.y(this.f14454n.e(obj, U(i10)));
        } else {
            c1Var.x(this.f14454n.e(obj, U(i10)));
        }
    }

    private int m(byte[] bArr, int i10, int i11, h0.a aVar, Map map, e.a aVar2) {
        int H = e.H(bArr, i10, aVar2);
        int i12 = aVar2.f14330a;
        if (i12 < 0 || i12 > i11 - H) {
            throw a0.j();
        }
        throw null;
    }

    private static Field m0(Class cls, String str) {
        try {
            return cls.getDeclaredField(str);
        } catch (NoSuchFieldException unused) {
            Field[] declaredFields = cls.getDeclaredFields();
            for (Field field : declaredFields) {
                if (str.equals(field.getName())) {
                    return field;
                }
            }
            throw new RuntimeException("Field " + str + " for " + cls.getName() + " not found. Known fields are " + Arrays.toString(declaredFields));
        }
    }

    private static double n(Object obj, long j10) {
        return n1.v(obj, j10);
    }

    private void n0(Object obj, int i10) {
        if (this.f14448h) {
            return;
        }
        int h02 = h0(i10);
        long j10 = h02 & 1048575;
        n1.M(obj, j10, n1.x(obj, j10) | (1 << (h02 >>> 20)));
    }

    private boolean o(Object obj, Object obj2, int i10) {
        int r02 = r0(i10);
        long U = U(r02);
        switch (q0(r02)) {
            case 0:
                return k(obj, obj2, i10) && Double.doubleToLongBits(n1.v(obj, U)) == Double.doubleToLongBits(n1.v(obj2, U));
            case 1:
                return k(obj, obj2, i10) && Float.floatToIntBits(n1.w(obj, U)) == Float.floatToIntBits(n1.w(obj2, U));
            case 2:
                return k(obj, obj2, i10) && n1.y(obj, U) == n1.y(obj2, U);
            case 3:
                return k(obj, obj2, i10) && n1.y(obj, U) == n1.y(obj2, U);
            case 4:
                return k(obj, obj2, i10) && n1.x(obj, U) == n1.x(obj2, U);
            case 5:
                return k(obj, obj2, i10) && n1.y(obj, U) == n1.y(obj2, U);
            case 6:
                return k(obj, obj2, i10) && n1.x(obj, U) == n1.x(obj2, U);
            case 7:
                return k(obj, obj2, i10) && n1.p(obj, U) == n1.p(obj2, U);
            case 8:
                return k(obj, obj2, i10) && f1.J(n1.A(obj, U), n1.A(obj2, U));
            case 9:
                return k(obj, obj2, i10) && f1.J(n1.A(obj, U), n1.A(obj2, U));
            case 10:
                return k(obj, obj2, i10) && f1.J(n1.A(obj, U), n1.A(obj2, U));
            case 11:
                return k(obj, obj2, i10) && n1.x(obj, U) == n1.x(obj2, U);
            case 12:
                return k(obj, obj2, i10) && n1.x(obj, U) == n1.x(obj2, U);
            case 13:
                return k(obj, obj2, i10) && n1.x(obj, U) == n1.x(obj2, U);
            case 14:
                return k(obj, obj2, i10) && n1.y(obj, U) == n1.y(obj2, U);
            case 15:
                return k(obj, obj2, i10) && n1.x(obj, U) == n1.x(obj2, U);
            case 16:
                return k(obj, obj2, i10) && n1.y(obj, U) == n1.y(obj2, U);
            case 17:
                return k(obj, obj2, i10) && f1.J(n1.A(obj, U), n1.A(obj2, U));
            case 18:
            case 19:
            case 20:
            case 21:
            case 22:
            case 23:
            case 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:
                return f1.J(n1.A(obj, U), n1.A(obj2, U));
            case 50:
                return f1.J(n1.A(obj, U), n1.A(obj2, U));
            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:
                return G(obj, obj2, i10) && f1.J(n1.A(obj, U), n1.A(obj2, U));
            default:
                return true;
        }
    }

    private void o0(Object obj, int i10, int i11) {
        n1.M(obj, h0(i11) & 1048575, i10);
    }

    private final Object p(Object obj, int i10, Object obj2, j1 j1Var) {
        z.c s10;
        int T = T(i10);
        Object A = n1.A(obj, U(r0(i10)));
        return (A == null || (s10 = s(i10)) == null) ? obj2 : q(i10, T, this.f14457q.d(A), s10, obj2, j1Var);
    }

    private int p0(int i10, int i11) {
        int length = (this.f14441a.length / 3) - 1;
        while (i11 <= length) {
            int i12 = (length + i11) >>> 1;
            int i13 = i12 * 3;
            int T = T(i13);
            if (i10 == T) {
                return i13;
            }
            if (i10 < T) {
                length = i12 - 1;
            } else {
                i11 = i12 + 1;
            }
        }
        return -1;
    }

    private final Object q(int i10, int i11, Map map, z.c cVar, Object obj, j1 j1Var) {
        this.f14457q.c(t(i10));
        Iterator it = map.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry entry = (Map.Entry) it.next();
            if (!cVar.isInRange(((Integer) entry.getValue()).intValue())) {
                if (obj == null) {
                    obj = j1Var.n();
                }
                h.C0325h u10 = h.u(h0.a(null, entry.getKey(), entry.getValue()));
                try {
                    h0.b(u10.b(), null, entry.getKey(), entry.getValue());
                    j1Var.d(obj, i11, u10.a());
                    it.remove();
                } catch (IOException e10) {
                    throw new RuntimeException(e10);
                }
            }
        }
        return obj;
    }

    private static int q0(int i10) {
        return (i10 & 267386880) >>> 20;
    }

    private static float r(Object obj, long j10) {
        return n1.w(obj, j10);
    }

    private int r0(int i10) {
        return this.f14441a[i10 + 1];
    }

    private z.c s(int i10) {
        return (z.c) this.f14442b[((i10 / 3) * 2) + 1];
    }

    /* JADX WARN: Removed duplicated region for block: B:231:0x049e  */
    /* JADX WARN: Removed duplicated region for block: B:8:0x002d  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    private void s0(Object obj, q1 q1Var) {
        Iterator it;
        Map.Entry entry;
        int length;
        int i10;
        Map.Entry entry2;
        int i11;
        if (this.f14446f) {
            t c10 = this.f14456p.c(obj);
            if (!c10.d()) {
                it = c10.f();
                entry = (Map.Entry) it.next();
                length = this.f14441a.length;
                Unsafe unsafe = f14440s;
                int i12 = -1;
                i10 = 0;
                int i13 = 0;
                while (i10 < length) {
                    int r02 = r0(i10);
                    int T = T(i10);
                    int q02 = q0(r02);
                    if (this.f14448h || q02 > 17) {
                        entry2 = entry;
                        i11 = 0;
                    } else {
                        int i14 = this.f14441a[i10 + 2];
                        int i15 = i14 & 1048575;
                        Map.Entry entry3 = entry;
                        if (i15 != i12) {
                            i13 = unsafe.getInt(obj, i15);
                            i12 = i15;
                        }
                        i11 = 1 << (i14 >>> 20);
                        entry2 = entry3;
                    }
                    while (entry2 != null && this.f14456p.a(entry2) <= T) {
                        this.f14456p.j(q1Var, entry2);
                        entry2 = it.hasNext() ? (Map.Entry) it.next() : null;
                    }
                    Map.Entry entry4 = entry2;
                    int i16 = length;
                    long U = U(r02);
                    switch (q02) {
                        case 0:
                            if ((i11 & i13) == 0) {
                                break;
                            } else {
                                q1Var.e(T, n(obj, U));
                                continue;
                            }
                        case 1:
                            if ((i11 & i13) != 0) {
                                q1Var.A(T, r(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 2:
                            if ((i11 & i13) != 0) {
                                q1Var.n(T, unsafe.getLong(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 3:
                            if ((i11 & i13) != 0) {
                                q1Var.l(T, unsafe.getLong(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 4:
                            if ((i11 & i13) != 0) {
                                q1Var.r(T, unsafe.getInt(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 5:
                            if ((i11 & i13) != 0) {
                                q1Var.h(T, unsafe.getLong(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 6:
                            if ((i11 & i13) != 0) {
                                q1Var.d(T, unsafe.getInt(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 7:
                            if ((i11 & i13) != 0) {
                                q1Var.o(T, l(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 8:
                            if ((i11 & i13) != 0) {
                                w0(T, unsafe.getObject(obj, U), q1Var);
                                break;
                            } else {
                                continue;
                            }
                        case 9:
                            if ((i11 & i13) != 0) {
                                q1Var.J(T, unsafe.getObject(obj, U), u(i10));
                                break;
                            } else {
                                continue;
                            }
                        case 10:
                            if ((i11 & i13) != 0) {
                                q1Var.O(T, (h) unsafe.getObject(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 11:
                            if ((i11 & i13) != 0) {
                                q1Var.b(T, unsafe.getInt(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 12:
                            if ((i11 & i13) != 0) {
                                q1Var.D(T, unsafe.getInt(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 13:
                            if ((i11 & i13) != 0) {
                                q1Var.p(T, unsafe.getInt(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 14:
                            if ((i11 & i13) != 0) {
                                q1Var.u(T, unsafe.getLong(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 15:
                            if ((i11 & i13) != 0) {
                                q1Var.H(T, unsafe.getInt(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 16:
                            if ((i11 & i13) != 0) {
                                q1Var.z(T, unsafe.getLong(obj, U));
                                break;
                            } else {
                                continue;
                            }
                        case 17:
                            if ((i11 & i13) != 0) {
                                q1Var.L(T, unsafe.getObject(obj, U), u(i10));
                                break;
                            } else {
                                continue;
                            }
                        case 18:
                            f1.O(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 19:
                            f1.S(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 20:
                            f1.V(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 21:
                            f1.d0(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 22:
                            f1.U(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 23:
                            f1.R(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 24:
                            f1.Q(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 25:
                            f1.M(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 26:
                            f1.b0(T(i10), (List) unsafe.getObject(obj, U), q1Var);
                            break;
                        case 27:
                            f1.W(T(i10), (List) unsafe.getObject(obj, U), q1Var, u(i10));
                            break;
                        case 28:
                            f1.N(T(i10), (List) unsafe.getObject(obj, U), q1Var);
                            break;
                        case 29:
                            f1.c0(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 30:
                            f1.P(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 31:
                            f1.X(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 32:
                            f1.Y(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 33:
                            f1.Z(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 34:
                            f1.a0(T(i10), (List) unsafe.getObject(obj, U), q1Var, false);
                            continue;
                        case 35:
                            f1.O(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 36:
                            f1.S(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 37:
                            f1.V(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 38:
                            f1.d0(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 39:
                            f1.U(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 40:
                            f1.R(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 41:
                            f1.Q(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 42:
                            f1.M(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 43:
                            f1.c0(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 44:
                            f1.P(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 45:
                            f1.X(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 46:
                            f1.Y(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 47:
                            f1.Z(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 48:
                            f1.a0(T(i10), (List) unsafe.getObject(obj, U), q1Var, true);
                            break;
                        case 49:
                            f1.T(T(i10), (List) unsafe.getObject(obj, U), q1Var, u(i10));
                            break;
                        case 50:
                            v0(q1Var, T, unsafe.getObject(obj, U), i10);
                            break;
                        case 51:
                            if (H(obj, T, i10)) {
                                q1Var.e(T, W(obj, U));
                                break;
                            }
                            break;
                        case 52:
                            if (H(obj, T, i10)) {
                                q1Var.A(T, X(obj, U));
                                break;
                            }
                            break;
                        case 53:
                            if (H(obj, T, i10)) {
                                q1Var.n(T, Z(obj, U));
                                break;
                            }
                            break;
                        case 54:
                            if (H(obj, T, i10)) {
                                q1Var.l(T, Z(obj, U));
                                break;
                            }
                            break;
                        case 55:
                            if (H(obj, T, i10)) {
                                q1Var.r(T, Y(obj, U));
                                break;
                            }
                            break;
                        case 56:
                            if (H(obj, T, i10)) {
                                q1Var.h(T, Z(obj, U));
                                break;
                            }
                            break;
                        case 57:
                            if (H(obj, T, i10)) {
                                q1Var.d(T, Y(obj, U));
                                break;
                            }
                            break;
                        case 58:
                            if (H(obj, T, i10)) {
                                q1Var.o(T, V(obj, U));
                                break;
                            }
                            break;
                        case 59:
                            if (H(obj, T, i10)) {
                                w0(T, unsafe.getObject(obj, U), q1Var);
                                break;
                            }
                            break;
                        case 60:
                            if (H(obj, T, i10)) {
                                q1Var.J(T, unsafe.getObject(obj, U), u(i10));
                                break;
                            }
                            break;
                        case 61:
                            if (H(obj, T, i10)) {
                                q1Var.O(T, (h) unsafe.getObject(obj, U));
                                break;
                            }
                            break;
                        case 62:
                            if (H(obj, T, i10)) {
                                q1Var.b(T, Y(obj, U));
                                break;
                            }
                            break;
                        case 63:
                            if (H(obj, T, i10)) {
                                q1Var.D(T, Y(obj, U));
                                break;
                            }
                            break;
                        case 64:
                            if (H(obj, T, i10)) {
                                q1Var.p(T, Y(obj, U));
                                break;
                            }
                            break;
                        case 65:
                            if (H(obj, T, i10)) {
                                q1Var.u(T, Z(obj, U));
                                break;
                            }
                            break;
                        case 66:
                            if (H(obj, T, i10)) {
                                q1Var.H(T, Y(obj, U));
                                break;
                            }
                            break;
                        case 67:
                            if (H(obj, T, i10)) {
                                q1Var.z(T, Z(obj, U));
                                break;
                            }
                            break;
                        case 68:
                            if (H(obj, T, i10)) {
                                q1Var.L(T, unsafe.getObject(obj, U), u(i10));
                                break;
                            }
                            break;
                    }
                    i10 += 3;
                    length = i16;
                    entry = entry4;
                }
                while (entry != null) {
                    this.f14456p.j(q1Var, entry);
                    entry = it.hasNext() ? (Map.Entry) it.next() : null;
                }
                x0(this.f14455o, obj, q1Var);
            }
        }
        it = null;
        entry = null;
        length = this.f14441a.length;
        Unsafe unsafe2 = f14440s;
        int i122 = -1;
        i10 = 0;
        int i132 = 0;
        while (i10 < length) {
        }
        while (entry != null) {
        }
        x0(this.f14455o, obj, q1Var);
    }

    private Object t(int i10) {
        return this.f14442b[(i10 / 3) * 2];
    }

    /* JADX WARN: Removed duplicated region for block: B:275:0x0588  */
    /* JADX WARN: Removed duplicated region for block: B:8:0x0025  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    private void t0(Object obj, q1 q1Var) {
        Iterator it;
        Map.Entry entry;
        int length;
        int i10;
        if (this.f14446f) {
            t c10 = this.f14456p.c(obj);
            if (!c10.d()) {
                it = c10.f();
                entry = (Map.Entry) it.next();
                length = this.f14441a.length;
                for (i10 = 0; i10 < length; i10 += 3) {
                    int r02 = r0(i10);
                    int T = T(i10);
                    while (entry != null && this.f14456p.a(entry) <= T) {
                        this.f14456p.j(q1Var, entry);
                        entry = it.hasNext() ? (Map.Entry) it.next() : null;
                    }
                    switch (q0(r02)) {
                        case 0:
                            if (B(obj, i10)) {
                                q1Var.e(T, n(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 1:
                            if (B(obj, i10)) {
                                q1Var.A(T, r(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 2:
                            if (B(obj, i10)) {
                                q1Var.n(T, K(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 3:
                            if (B(obj, i10)) {
                                q1Var.l(T, K(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 4:
                            if (B(obj, i10)) {
                                q1Var.r(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 5:
                            if (B(obj, i10)) {
                                q1Var.h(T, K(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 6:
                            if (B(obj, i10)) {
                                q1Var.d(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 7:
                            if (B(obj, i10)) {
                                q1Var.o(T, l(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 8:
                            if (B(obj, i10)) {
                                w0(T, n1.A(obj, U(r02)), q1Var);
                                break;
                            } else {
                                break;
                            }
                        case 9:
                            if (B(obj, i10)) {
                                q1Var.J(T, n1.A(obj, U(r02)), u(i10));
                                break;
                            } else {
                                break;
                            }
                        case 10:
                            if (B(obj, i10)) {
                                q1Var.O(T, (h) n1.A(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 11:
                            if (B(obj, i10)) {
                                q1Var.b(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 12:
                            if (B(obj, i10)) {
                                q1Var.D(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 13:
                            if (B(obj, i10)) {
                                q1Var.p(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 14:
                            if (B(obj, i10)) {
                                q1Var.u(T, K(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 15:
                            if (B(obj, i10)) {
                                q1Var.H(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 16:
                            if (B(obj, i10)) {
                                q1Var.z(T, K(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 17:
                            if (B(obj, i10)) {
                                q1Var.L(T, n1.A(obj, U(r02)), u(i10));
                                break;
                            } else {
                                break;
                            }
                        case 18:
                            f1.O(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 19:
                            f1.S(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 20:
                            f1.V(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 21:
                            f1.d0(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 22:
                            f1.U(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 23:
                            f1.R(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 24:
                            f1.Q(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 25:
                            f1.M(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 26:
                            f1.b0(T(i10), (List) n1.A(obj, U(r02)), q1Var);
                            break;
                        case 27:
                            f1.W(T(i10), (List) n1.A(obj, U(r02)), q1Var, u(i10));
                            break;
                        case 28:
                            f1.N(T(i10), (List) n1.A(obj, U(r02)), q1Var);
                            break;
                        case 29:
                            f1.c0(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 30:
                            f1.P(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 31:
                            f1.X(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 32:
                            f1.Y(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 33:
                            f1.Z(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 34:
                            f1.a0(T(i10), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 35:
                            f1.O(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 36:
                            f1.S(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 37:
                            f1.V(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 38:
                            f1.d0(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 39:
                            f1.U(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 40:
                            f1.R(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 41:
                            f1.Q(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 42:
                            f1.M(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 43:
                            f1.c0(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 44:
                            f1.P(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 45:
                            f1.X(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 46:
                            f1.Y(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 47:
                            f1.Z(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 48:
                            f1.a0(T(i10), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 49:
                            f1.T(T(i10), (List) n1.A(obj, U(r02)), q1Var, u(i10));
                            break;
                        case 50:
                            v0(q1Var, T, n1.A(obj, U(r02)), i10);
                            break;
                        case 51:
                            if (H(obj, T, i10)) {
                                q1Var.e(T, W(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 52:
                            if (H(obj, T, i10)) {
                                q1Var.A(T, X(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 53:
                            if (H(obj, T, i10)) {
                                q1Var.n(T, Z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 54:
                            if (H(obj, T, i10)) {
                                q1Var.l(T, Z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 55:
                            if (H(obj, T, i10)) {
                                q1Var.r(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 56:
                            if (H(obj, T, i10)) {
                                q1Var.h(T, Z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 57:
                            if (H(obj, T, i10)) {
                                q1Var.d(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 58:
                            if (H(obj, T, i10)) {
                                q1Var.o(T, V(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 59:
                            if (H(obj, T, i10)) {
                                w0(T, n1.A(obj, U(r02)), q1Var);
                                break;
                            } else {
                                break;
                            }
                        case 60:
                            if (H(obj, T, i10)) {
                                q1Var.J(T, n1.A(obj, U(r02)), u(i10));
                                break;
                            } else {
                                break;
                            }
                        case 61:
                            if (H(obj, T, i10)) {
                                q1Var.O(T, (h) n1.A(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 62:
                            if (H(obj, T, i10)) {
                                q1Var.b(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 63:
                            if (H(obj, T, i10)) {
                                q1Var.D(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 64:
                            if (H(obj, T, i10)) {
                                q1Var.p(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 65:
                            if (H(obj, T, i10)) {
                                q1Var.u(T, Z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 66:
                            if (H(obj, T, i10)) {
                                q1Var.H(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 67:
                            if (H(obj, T, i10)) {
                                q1Var.z(T, Z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 68:
                            if (H(obj, T, i10)) {
                                q1Var.L(T, n1.A(obj, U(r02)), u(i10));
                                break;
                            } else {
                                break;
                            }
                    }
                }
                while (entry != null) {
                    this.f14456p.j(q1Var, entry);
                    entry = it.hasNext() ? (Map.Entry) it.next() : null;
                }
                x0(this.f14455o, obj, q1Var);
            }
        }
        it = null;
        entry = null;
        length = this.f14441a.length;
        while (i10 < length) {
        }
        while (entry != null) {
        }
        x0(this.f14455o, obj, q1Var);
    }

    private d1 u(int i10) {
        int i11 = (i10 / 3) * 2;
        d1 d1Var = (d1) this.f14442b[i11];
        if (d1Var != null) {
            return d1Var;
        }
        d1 c10 = z0.a().c((Class) this.f14442b[i11 + 1]);
        this.f14442b[i11] = c10;
        return c10;
    }

    /* JADX WARN: Removed duplicated region for block: B:275:0x058e  */
    /* JADX WARN: Removed duplicated region for block: B:8:0x002a  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    private void u0(Object obj, q1 q1Var) {
        Iterator it;
        Map.Entry entry;
        int length;
        x0(this.f14455o, obj, q1Var);
        if (this.f14446f) {
            t c10 = this.f14456p.c(obj);
            if (!c10.d()) {
                it = c10.a();
                entry = (Map.Entry) it.next();
                for (length = this.f14441a.length - 3; length >= 0; length -= 3) {
                    int r02 = r0(length);
                    int T = T(length);
                    while (entry != null && this.f14456p.a(entry) > T) {
                        this.f14456p.j(q1Var, entry);
                        entry = it.hasNext() ? (Map.Entry) it.next() : null;
                    }
                    switch (q0(r02)) {
                        case 0:
                            if (B(obj, length)) {
                                q1Var.e(T, n(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 1:
                            if (B(obj, length)) {
                                q1Var.A(T, r(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 2:
                            if (B(obj, length)) {
                                q1Var.n(T, K(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 3:
                            if (B(obj, length)) {
                                q1Var.l(T, K(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 4:
                            if (B(obj, length)) {
                                q1Var.r(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 5:
                            if (B(obj, length)) {
                                q1Var.h(T, K(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 6:
                            if (B(obj, length)) {
                                q1Var.d(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 7:
                            if (B(obj, length)) {
                                q1Var.o(T, l(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 8:
                            if (B(obj, length)) {
                                w0(T, n1.A(obj, U(r02)), q1Var);
                                break;
                            } else {
                                break;
                            }
                        case 9:
                            if (B(obj, length)) {
                                q1Var.J(T, n1.A(obj, U(r02)), u(length));
                                break;
                            } else {
                                break;
                            }
                        case 10:
                            if (B(obj, length)) {
                                q1Var.O(T, (h) n1.A(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 11:
                            if (B(obj, length)) {
                                q1Var.b(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 12:
                            if (B(obj, length)) {
                                q1Var.D(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 13:
                            if (B(obj, length)) {
                                q1Var.p(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 14:
                            if (B(obj, length)) {
                                q1Var.u(T, K(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 15:
                            if (B(obj, length)) {
                                q1Var.H(T, z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 16:
                            if (B(obj, length)) {
                                q1Var.z(T, K(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 17:
                            if (B(obj, length)) {
                                q1Var.L(T, n1.A(obj, U(r02)), u(length));
                                break;
                            } else {
                                break;
                            }
                        case 18:
                            f1.O(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 19:
                            f1.S(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 20:
                            f1.V(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 21:
                            f1.d0(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 22:
                            f1.U(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 23:
                            f1.R(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 24:
                            f1.Q(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 25:
                            f1.M(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 26:
                            f1.b0(T(length), (List) n1.A(obj, U(r02)), q1Var);
                            break;
                        case 27:
                            f1.W(T(length), (List) n1.A(obj, U(r02)), q1Var, u(length));
                            break;
                        case 28:
                            f1.N(T(length), (List) n1.A(obj, U(r02)), q1Var);
                            break;
                        case 29:
                            f1.c0(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 30:
                            f1.P(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 31:
                            f1.X(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 32:
                            f1.Y(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 33:
                            f1.Z(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 34:
                            f1.a0(T(length), (List) n1.A(obj, U(r02)), q1Var, false);
                            break;
                        case 35:
                            f1.O(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 36:
                            f1.S(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 37:
                            f1.V(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 38:
                            f1.d0(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 39:
                            f1.U(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 40:
                            f1.R(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 41:
                            f1.Q(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 42:
                            f1.M(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 43:
                            f1.c0(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 44:
                            f1.P(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 45:
                            f1.X(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 46:
                            f1.Y(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 47:
                            f1.Z(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 48:
                            f1.a0(T(length), (List) n1.A(obj, U(r02)), q1Var, true);
                            break;
                        case 49:
                            f1.T(T(length), (List) n1.A(obj, U(r02)), q1Var, u(length));
                            break;
                        case 50:
                            v0(q1Var, T, n1.A(obj, U(r02)), length);
                            break;
                        case 51:
                            if (H(obj, T, length)) {
                                q1Var.e(T, W(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 52:
                            if (H(obj, T, length)) {
                                q1Var.A(T, X(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 53:
                            if (H(obj, T, length)) {
                                q1Var.n(T, Z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 54:
                            if (H(obj, T, length)) {
                                q1Var.l(T, Z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 55:
                            if (H(obj, T, length)) {
                                q1Var.r(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 56:
                            if (H(obj, T, length)) {
                                q1Var.h(T, Z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 57:
                            if (H(obj, T, length)) {
                                q1Var.d(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 58:
                            if (H(obj, T, length)) {
                                q1Var.o(T, V(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 59:
                            if (H(obj, T, length)) {
                                w0(T, n1.A(obj, U(r02)), q1Var);
                                break;
                            } else {
                                break;
                            }
                        case 60:
                            if (H(obj, T, length)) {
                                q1Var.J(T, n1.A(obj, U(r02)), u(length));
                                break;
                            } else {
                                break;
                            }
                        case 61:
                            if (H(obj, T, length)) {
                                q1Var.O(T, (h) n1.A(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 62:
                            if (H(obj, T, length)) {
                                q1Var.b(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 63:
                            if (H(obj, T, length)) {
                                q1Var.D(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 64:
                            if (H(obj, T, length)) {
                                q1Var.p(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 65:
                            if (H(obj, T, length)) {
                                q1Var.u(T, Z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 66:
                            if (H(obj, T, length)) {
                                q1Var.H(T, Y(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 67:
                            if (H(obj, T, length)) {
                                q1Var.z(T, Z(obj, U(r02)));
                                break;
                            } else {
                                break;
                            }
                        case 68:
                            if (H(obj, T, length)) {
                                q1Var.L(T, n1.A(obj, U(r02)), u(length));
                                break;
                            } else {
                                break;
                            }
                    }
                }
                while (entry != null) {
                    this.f14456p.j(q1Var, entry);
                    entry = it.hasNext() ? (Map.Entry) it.next() : null;
                }
            }
        }
        it = null;
        entry = null;
        while (length >= 0) {
        }
        while (entry != null) {
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public static k1 v(Object obj) {
        x xVar = (x) obj;
        k1 k1Var = xVar.unknownFields;
        if (k1Var != k1.e()) {
            return k1Var;
        }
        k1 l10 = k1.l();
        xVar.unknownFields = l10;
        return l10;
    }

    private void v0(q1 q1Var, int i10, Object obj, int i11) {
        if (obj != null) {
            this.f14457q.c(t(i11));
            q1Var.K(i10, null, this.f14457q.h(obj));
        }
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Failed to find 'out' block for switch in B:11:0x0060. Please report as an issue. */
    private int w(Object obj) {
        int i10;
        int i11;
        int h10;
        int d10;
        int B;
        boolean z10;
        int f10;
        int i12;
        int L;
        int N;
        Unsafe unsafe = f14440s;
        int i13 = -1;
        int i14 = 0;
        int i15 = 0;
        int i16 = 0;
        while (i14 < this.f14441a.length) {
            int r02 = r0(i14);
            int T = T(i14);
            int q02 = q0(r02);
            if (q02 <= 17) {
                i10 = this.f14441a[i14 + 2];
                int i17 = 1048575 & i10;
                int i18 = 1 << (i10 >>> 20);
                if (i17 != i13) {
                    i16 = unsafe.getInt(obj, i17);
                    i13 = i17;
                }
                i11 = i18;
            } else {
                i10 = (!this.f14449i || q02 < u.DOUBLE_LIST_PACKED.id() || q02 > u.SINT64_LIST_PACKED.id()) ? 0 : this.f14441a[i14 + 2] & 1048575;
                i11 = 0;
            }
            long U = U(r02);
            int i19 = i13;
            switch (q02) {
                case 0:
                    if ((i16 & i11) == 0) {
                        break;
                    } else {
                        h10 = k.h(T, 0.0d);
                        i15 += h10;
                        break;
                    }
                case 1:
                    if ((i16 & i11) == 0) {
                        break;
                    } else {
                        h10 = k.p(T, BitmapDescriptorFactory.HUE_RED);
                        i15 += h10;
                        break;
                    }
                case 2:
                    if ((i16 & i11) == 0) {
                        break;
                    } else {
                        h10 = k.v(T, unsafe.getLong(obj, U));
                        i15 += h10;
                        break;
                    }
                case 3:
                    if ((i16 & i11) == 0) {
                        break;
                    } else {
                        h10 = k.O(T, unsafe.getLong(obj, U));
                        i15 += h10;
                        break;
                    }
                case 4:
                    if ((i16 & i11) == 0) {
                        break;
                    } else {
                        h10 = k.t(T, unsafe.getInt(obj, U));
                        i15 += h10;
                        break;
                    }
                case 5:
                    if ((i16 & i11) == 0) {
                        break;
                    } else {
                        h10 = k.n(T, 0L);
                        i15 += h10;
                        break;
                    }
                case 6:
                    if ((i16 & i11) != 0) {
                        h10 = k.l(T, 0);
                        i15 += h10;
                        break;
                    }
                    break;
                case 7:
                    if ((i16 & i11) != 0) {
                        d10 = k.d(T, true);
                        i15 += d10;
                    }
                    break;
                case 8:
                    if ((i16 & i11) != 0) {
                        Object object = unsafe.getObject(obj, U);
                        d10 = object instanceof h ? k.f(T, (h) object) : k.J(T, (String) object);
                        i15 += d10;
                    }
                    break;
                case 9:
                    if ((i16 & i11) != 0) {
                        d10 = f1.o(T, unsafe.getObject(obj, U), u(i14));
                        i15 += d10;
                    }
                    break;
                case 10:
                    if ((i16 & i11) != 0) {
                        d10 = k.f(T, (h) unsafe.getObject(obj, U));
                        i15 += d10;
                    }
                    break;
                case 11:
                    if ((i16 & i11) != 0) {
                        d10 = k.M(T, unsafe.getInt(obj, U));
                        i15 += d10;
                    }
                    break;
                case 12:
                    if ((i16 & i11) != 0) {
                        d10 = k.j(T, unsafe.getInt(obj, U));
                        i15 += d10;
                    }
                    break;
                case 13:
                    if ((i16 & i11) != 0) {
                        B = k.B(T, 0);
                        i15 += B;
                    }
                    break;
                case 14:
                    if ((i16 & i11) != 0) {
                        d10 = k.D(T, 0L);
                        i15 += d10;
                    }
                    break;
                case 15:
                    if ((i16 & i11) != 0) {
                        d10 = k.F(T, unsafe.getInt(obj, U));
                        i15 += d10;
                    }
                    break;
                case 16:
                    if ((i16 & i11) != 0) {
                        d10 = k.H(T, unsafe.getLong(obj, U));
                        i15 += d10;
                    }
                    break;
                case 17:
                    if ((i16 & i11) != 0) {
                        d10 = k.r(T, (o0) unsafe.getObject(obj, U), u(i14));
                        i15 += d10;
                    }
                    break;
                case 18:
                    d10 = f1.h(T, (List) unsafe.getObject(obj, U), false);
                    i15 += d10;
                    break;
                case 19:
                    z10 = false;
                    f10 = f1.f(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 20:
                    z10 = false;
                    f10 = f1.m(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 21:
                    z10 = false;
                    f10 = f1.x(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 22:
                    z10 = false;
                    f10 = f1.k(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 23:
                    z10 = false;
                    f10 = f1.h(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 24:
                    z10 = false;
                    f10 = f1.f(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 25:
                    z10 = false;
                    f10 = f1.a(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 26:
                    d10 = f1.u(T, (List) unsafe.getObject(obj, U));
                    i15 += d10;
                    break;
                case 27:
                    d10 = f1.p(T, (List) unsafe.getObject(obj, U), u(i14));
                    i15 += d10;
                    break;
                case 28:
                    d10 = f1.c(T, (List) unsafe.getObject(obj, U));
                    i15 += d10;
                    break;
                case 29:
                    d10 = f1.v(T, (List) unsafe.getObject(obj, U), false);
                    i15 += d10;
                    break;
                case 30:
                    z10 = false;
                    f10 = f1.d(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 31:
                    z10 = false;
                    f10 = f1.f(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 32:
                    z10 = false;
                    f10 = f1.h(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 33:
                    z10 = false;
                    f10 = f1.q(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 34:
                    z10 = false;
                    f10 = f1.s(T, (List) unsafe.getObject(obj, U), false);
                    i15 += f10;
                    break;
                case 35:
                    i12 = f1.i((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 36:
                    i12 = f1.g((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 37:
                    i12 = f1.n((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 38:
                    i12 = f1.y((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 39:
                    i12 = f1.l((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 40:
                    i12 = f1.i((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 41:
                    i12 = f1.g((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 42:
                    i12 = f1.b((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 43:
                    i12 = f1.w((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 44:
                    i12 = f1.e((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 45:
                    i12 = f1.g((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 46:
                    i12 = f1.i((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 47:
                    i12 = f1.r((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 48:
                    i12 = f1.t((List) unsafe.getObject(obj, U));
                    if (i12 > 0) {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i10, i12);
                        }
                        L = k.L(T);
                        N = k.N(i12);
                        B = L + N + i12;
                        i15 += B;
                    }
                    break;
                case 49:
                    d10 = f1.j(T, (List) unsafe.getObject(obj, U), u(i14));
                    i15 += d10;
                    break;
                case 50:
                    d10 = this.f14457q.f(T, unsafe.getObject(obj, U), t(i14));
                    i15 += d10;
                    break;
                case 51:
                    if (H(obj, T, i14)) {
                        d10 = k.h(T, 0.0d);
                        i15 += d10;
                    }
                    break;
                case 52:
                    if (H(obj, T, i14)) {
                        d10 = k.p(T, BitmapDescriptorFactory.HUE_RED);
                        i15 += d10;
                    }
                    break;
                case 53:
                    if (H(obj, T, i14)) {
                        d10 = k.v(T, Z(obj, U));
                        i15 += d10;
                    }
                    break;
                case 54:
                    if (H(obj, T, i14)) {
                        d10 = k.O(T, Z(obj, U));
                        i15 += d10;
                    }
                    break;
                case 55:
                    if (H(obj, T, i14)) {
                        d10 = k.t(T, Y(obj, U));
                        i15 += d10;
                    }
                    break;
                case 56:
                    if (H(obj, T, i14)) {
                        d10 = k.n(T, 0L);
                        i15 += d10;
                    }
                    break;
                case 57:
                    if (H(obj, T, i14)) {
                        B = k.l(T, 0);
                        i15 += B;
                    }
                    break;
                case 58:
                    if (H(obj, T, i14)) {
                        d10 = k.d(T, true);
                        i15 += d10;
                    }
                    break;
                case 59:
                    if (H(obj, T, i14)) {
                        Object object2 = unsafe.getObject(obj, U);
                        d10 = object2 instanceof h ? k.f(T, (h) object2) : k.J(T, (String) object2);
                        i15 += d10;
                    }
                    break;
                case 60:
                    if (H(obj, T, i14)) {
                        d10 = f1.o(T, unsafe.getObject(obj, U), u(i14));
                        i15 += d10;
                    }
                    break;
                case 61:
                    if (H(obj, T, i14)) {
                        d10 = k.f(T, (h) unsafe.getObject(obj, U));
                        i15 += d10;
                    }
                    break;
                case 62:
                    if (H(obj, T, i14)) {
                        d10 = k.M(T, Y(obj, U));
                        i15 += d10;
                    }
                    break;
                case 63:
                    if (H(obj, T, i14)) {
                        d10 = k.j(T, Y(obj, U));
                        i15 += d10;
                    }
                    break;
                case 64:
                    if (H(obj, T, i14)) {
                        B = k.B(T, 0);
                        i15 += B;
                    }
                    break;
                case 65:
                    if (H(obj, T, i14)) {
                        d10 = k.D(T, 0L);
                        i15 += d10;
                    }
                    break;
                case 66:
                    if (H(obj, T, i14)) {
                        d10 = k.F(T, Y(obj, U));
                        i15 += d10;
                    }
                    break;
                case 67:
                    if (H(obj, T, i14)) {
                        d10 = k.H(T, Z(obj, U));
                        i15 += d10;
                    }
                    break;
                case 68:
                    if (H(obj, T, i14)) {
                        d10 = k.r(T, (o0) unsafe.getObject(obj, U), u(i14));
                        i15 += d10;
                    }
                    break;
            }
            i14 += 3;
            i13 = i19;
        }
        int y10 = i15 + y(this.f14455o, obj);
        return this.f14446f ? y10 + this.f14456p.c(obj).c() : y10;
    }

    private void w0(int i10, Object obj, q1 q1Var) {
        if (obj instanceof String) {
            q1Var.k(i10, (String) obj);
        } else {
            q1Var.O(i10, (h) obj);
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:10:0x003d. Please report as an issue. */
    private int x(Object obj) {
        int h10;
        int i10;
        int L;
        int N;
        Unsafe unsafe = f14440s;
        int i11 = 0;
        for (int i12 = 0; i12 < this.f14441a.length; i12 += 3) {
            int r02 = r0(i12);
            int q02 = q0(r02);
            int T = T(i12);
            long U = U(r02);
            int i13 = (q02 < u.DOUBLE_LIST_PACKED.id() || q02 > u.SINT64_LIST_PACKED.id()) ? 0 : this.f14441a[i12 + 2] & 1048575;
            switch (q02) {
                case 0:
                    if (B(obj, i12)) {
                        h10 = k.h(T, 0.0d);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 1:
                    if (B(obj, i12)) {
                        h10 = k.p(T, BitmapDescriptorFactory.HUE_RED);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 2:
                    if (B(obj, i12)) {
                        h10 = k.v(T, n1.y(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 3:
                    if (B(obj, i12)) {
                        h10 = k.O(T, n1.y(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 4:
                    if (B(obj, i12)) {
                        h10 = k.t(T, n1.x(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 5:
                    if (B(obj, i12)) {
                        h10 = k.n(T, 0L);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 6:
                    if (B(obj, i12)) {
                        h10 = k.l(T, 0);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 7:
                    if (B(obj, i12)) {
                        h10 = k.d(T, true);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 8:
                    if (B(obj, i12)) {
                        Object A = n1.A(obj, U);
                        h10 = A instanceof h ? k.f(T, (h) A) : k.J(T, (String) A);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 9:
                    if (B(obj, i12)) {
                        h10 = f1.o(T, n1.A(obj, U), u(i12));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 10:
                    if (B(obj, i12)) {
                        h10 = k.f(T, (h) n1.A(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 11:
                    if (B(obj, i12)) {
                        h10 = k.M(T, n1.x(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 12:
                    if (B(obj, i12)) {
                        h10 = k.j(T, n1.x(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 13:
                    if (B(obj, i12)) {
                        h10 = k.B(T, 0);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 14:
                    if (B(obj, i12)) {
                        h10 = k.D(T, 0L);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 15:
                    if (B(obj, i12)) {
                        h10 = k.F(T, n1.x(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 16:
                    if (B(obj, i12)) {
                        h10 = k.H(T, n1.y(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 17:
                    if (B(obj, i12)) {
                        h10 = k.r(T, (o0) n1.A(obj, U), u(i12));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 18:
                    h10 = f1.h(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 19:
                    h10 = f1.f(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 20:
                    h10 = f1.m(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 21:
                    h10 = f1.x(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 22:
                    h10 = f1.k(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 23:
                    h10 = f1.h(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 24:
                    h10 = f1.f(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 25:
                    h10 = f1.a(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 26:
                    h10 = f1.u(T, J(obj, U));
                    i11 += h10;
                    break;
                case 27:
                    h10 = f1.p(T, J(obj, U), u(i12));
                    i11 += h10;
                    break;
                case 28:
                    h10 = f1.c(T, J(obj, U));
                    i11 += h10;
                    break;
                case 29:
                    h10 = f1.v(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 30:
                    h10 = f1.d(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 31:
                    h10 = f1.f(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 32:
                    h10 = f1.h(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 33:
                    h10 = f1.q(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 34:
                    h10 = f1.s(T, J(obj, U), false);
                    i11 += h10;
                    break;
                case 35:
                    i10 = f1.i((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 36:
                    i10 = f1.g((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 37:
                    i10 = f1.n((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 38:
                    i10 = f1.y((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 39:
                    i10 = f1.l((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 40:
                    i10 = f1.i((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 41:
                    i10 = f1.g((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 42:
                    i10 = f1.b((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 43:
                    i10 = f1.w((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 44:
                    i10 = f1.e((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 45:
                    i10 = f1.g((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 46:
                    i10 = f1.i((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 47:
                    i10 = f1.r((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 48:
                    i10 = f1.t((List) unsafe.getObject(obj, U));
                    if (i10 <= 0) {
                        break;
                    } else {
                        if (this.f14449i) {
                            unsafe.putInt(obj, i13, i10);
                        }
                        L = k.L(T);
                        N = k.N(i10);
                        h10 = L + N + i10;
                        i11 += h10;
                        break;
                    }
                case 49:
                    h10 = f1.j(T, J(obj, U), u(i12));
                    i11 += h10;
                    break;
                case 50:
                    h10 = this.f14457q.f(T, n1.A(obj, U), t(i12));
                    i11 += h10;
                    break;
                case 51:
                    if (H(obj, T, i12)) {
                        h10 = k.h(T, 0.0d);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 52:
                    if (H(obj, T, i12)) {
                        h10 = k.p(T, BitmapDescriptorFactory.HUE_RED);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 53:
                    if (H(obj, T, i12)) {
                        h10 = k.v(T, Z(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 54:
                    if (H(obj, T, i12)) {
                        h10 = k.O(T, Z(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 55:
                    if (H(obj, T, i12)) {
                        h10 = k.t(T, Y(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 56:
                    if (H(obj, T, i12)) {
                        h10 = k.n(T, 0L);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 57:
                    if (H(obj, T, i12)) {
                        h10 = k.l(T, 0);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 58:
                    if (H(obj, T, i12)) {
                        h10 = k.d(T, true);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 59:
                    if (H(obj, T, i12)) {
                        Object A2 = n1.A(obj, U);
                        h10 = A2 instanceof h ? k.f(T, (h) A2) : k.J(T, (String) A2);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 60:
                    if (H(obj, T, i12)) {
                        h10 = f1.o(T, n1.A(obj, U), u(i12));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 61:
                    if (H(obj, T, i12)) {
                        h10 = k.f(T, (h) n1.A(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 62:
                    if (H(obj, T, i12)) {
                        h10 = k.M(T, Y(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 63:
                    if (H(obj, T, i12)) {
                        h10 = k.j(T, Y(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 64:
                    if (H(obj, T, i12)) {
                        h10 = k.B(T, 0);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 65:
                    if (H(obj, T, i12)) {
                        h10 = k.D(T, 0L);
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 66:
                    if (H(obj, T, i12)) {
                        h10 = k.F(T, Y(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 67:
                    if (H(obj, T, i12)) {
                        h10 = k.H(T, Z(obj, U));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
                case 68:
                    if (H(obj, T, i12)) {
                        h10 = k.r(T, (o0) n1.A(obj, U), u(i12));
                        i11 += h10;
                        break;
                    } else {
                        break;
                    }
            }
        }
        return i11 + y(this.f14455o, obj);
    }

    private void x0(j1 j1Var, Object obj, q1 q1Var) {
        j1Var.t(j1Var.g(obj), q1Var);
    }

    private int y(j1 j1Var, Object obj) {
        return j1Var.h(j1Var.g(obj));
    }

    private static int z(Object obj, long j10) {
        return n1.x(obj, j10);
    }

    @Override // com.google.crypto.tink.shaded.protobuf.d1
    public void a(Object obj, Object obj2) {
        obj2.getClass();
        for (int i10 = 0; i10 < this.f14441a.length; i10 += 3) {
            P(obj, obj2, i10);
        }
        f1.F(this.f14455o, obj, obj2);
        if (this.f14446f) {
            f1.D(this.f14456p, obj, obj2);
        }
    }

    @Override // com.google.crypto.tink.shaded.protobuf.d1
    public void b(Object obj) {
        int i10;
        int i11 = this.f14451k;
        while (true) {
            i10 = this.f14452l;
            if (i11 >= i10) {
                break;
            }
            long U = U(r0(this.f14450j[i11]));
            Object A = n1.A(obj, U);
            if (A != null) {
                n1.O(obj, U, this.f14457q.b(A));
            }
            i11++;
        }
        int length = this.f14450j.length;
        while (i10 < length) {
            this.f14454n.c(obj, this.f14450j[i10]);
            i10++;
        }
        this.f14455o.j(obj);
        if (this.f14446f) {
            this.f14456p.f(obj);
        }
    }

    @Override // com.google.crypto.tink.shaded.protobuf.d1
    public final boolean c(Object obj) {
        int i10;
        int i11 = -1;
        int i12 = 0;
        for (int i13 = 0; i13 < this.f14451k; i13++) {
            int i14 = this.f14450j[i13];
            int T = T(i14);
            int r02 = r0(i14);
            if (this.f14448h) {
                i10 = 0;
            } else {
                int i15 = this.f14441a[i14 + 2];
                int i16 = 1048575 & i15;
                i10 = 1 << (i15 >>> 20);
                if (i16 != i11) {
                    i12 = f14440s.getInt(obj, i16);
                    i11 = i16;
                }
            }
            if (I(r02) && !C(obj, i14, i12, i10)) {
                return false;
            }
            int q02 = q0(r02);
            if (q02 != 9 && q02 != 17) {
                if (q02 != 27) {
                    if (q02 == 60 || q02 == 68) {
                        if (H(obj, T, i14) && !D(obj, r02, u(i14))) {
                            return false;
                        }
                    } else if (q02 != 49) {
                        if (q02 == 50 && !F(obj, r02, i14)) {
                            return false;
                        }
                    }
                }
                if (!E(obj, r02, i14)) {
                    return false;
                }
            } else if (C(obj, i14, i12, i10) && !D(obj, r02, u(i14))) {
                return false;
            }
        }
        return !this.f14446f || this.f14456p.c(obj).e();
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* JADX WARN: Code restructure failed: missing block: B:201:0x0359, code lost:
    
        if (r0 != r11) goto L120;
     */
    /* JADX WARN: Code restructure failed: missing block: B:202:0x035b, code lost:
    
        r15 = r30;
        r14 = r31;
        r12 = r32;
        r13 = r34;
        r11 = r35;
        r9 = r36;
        r1 = r17;
        r3 = r18;
        r7 = r19;
        r2 = r20;
        r6 = r22;
     */
    /* JADX WARN: Code restructure failed: missing block: B:203:0x03c8, code lost:
    
        r2 = r0;
        r8 = r18;
        r0 = r35;
     */
    /* JADX WARN: Code restructure failed: missing block: B:209:0x03a2, code lost:
    
        if (r0 != r15) goto L120;
     */
    /* JADX WARN: Code restructure failed: missing block: B:211:0x03c5, code lost:
    
        if (r0 != r15) goto L120;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:20:0x008b. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public int c0(Object obj, byte[] bArr, int i10, int i11, int i12, e.a aVar) {
        Unsafe unsafe;
        int i13;
        r0 r0Var;
        Object obj2;
        int i14;
        int i15;
        int i16;
        int i17;
        int i18;
        int i19;
        int i20;
        int i21;
        int i22;
        int i23;
        int i24;
        int i25;
        char c10;
        int i26;
        int i27;
        int i28;
        int K;
        int i29;
        r0 r0Var2 = this;
        Object obj3 = obj;
        byte[] bArr2 = bArr;
        int i30 = i11;
        int i31 = i12;
        e.a aVar2 = aVar;
        Unsafe unsafe2 = f14440s;
        int i32 = i10;
        int i33 = 0;
        int i34 = 0;
        int i35 = 0;
        int i36 = -1;
        int i37 = -1;
        while (true) {
            if (i32 < i30) {
                int i38 = i32 + 1;
                byte b10 = bArr2[i32];
                if (b10 < 0) {
                    i15 = e.G(b10, bArr2, i38, aVar2);
                    i14 = aVar2.f14330a;
                } else {
                    i14 = b10;
                    i15 = i38;
                }
                int i39 = i14 >>> 3;
                int i40 = i14 & 7;
                int g02 = i39 > i36 ? r0Var2.g0(i39, i33 / 3) : r0Var2.f0(i39);
                if (g02 == -1) {
                    i16 = i39;
                    i17 = i15;
                    i18 = i14;
                    i19 = i35;
                    i20 = i37;
                    unsafe = unsafe2;
                    i21 = i31;
                    i22 = 0;
                } else {
                    int i41 = r0Var2.f14441a[g02 + 1];
                    int q02 = q0(i41);
                    long U = U(i41);
                    int i42 = i14;
                    if (q02 <= 17) {
                        int i43 = r0Var2.f14441a[g02 + 2];
                        int i44 = 1 << (i43 >>> 20);
                        int i45 = i43 & 1048575;
                        if (i45 != i37) {
                            c10 = 65535;
                            i25 = g02;
                            if (i37 != -1) {
                                unsafe2.putInt(obj3, i37, i35);
                            }
                            i35 = unsafe2.getInt(obj3, i45);
                            i37 = i45;
                        } else {
                            i25 = g02;
                            c10 = 65535;
                        }
                        switch (q02) {
                            case 0:
                                i26 = i25;
                                i16 = i39;
                                bArr2 = bArr;
                                i27 = i15;
                                i28 = i42;
                                if (i40 != 1) {
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    n1.K(obj3, U, e.d(bArr2, i27));
                                    i32 = i27 + 8;
                                    i35 |= i44;
                                    i31 = i12;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i11;
                                }
                            case 1:
                                i26 = i25;
                                i16 = i39;
                                bArr2 = bArr;
                                i27 = i15;
                                i28 = i42;
                                if (i40 != 5) {
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    n1.L(obj3, U, e.k(bArr2, i27));
                                    i32 = i27 + 4;
                                    i35 |= i44;
                                    i31 = i12;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i11;
                                }
                            case 2:
                            case 3:
                                i26 = i25;
                                i16 = i39;
                                bArr2 = bArr;
                                i27 = i15;
                                i28 = i42;
                                if (i40 != 0) {
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    K = e.K(bArr2, i27, aVar2);
                                    unsafe2.putLong(obj, U, aVar2.f14331b);
                                    i35 |= i44;
                                    i33 = i26;
                                    i32 = K;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i11;
                                    i31 = i12;
                                }
                            case 4:
                            case 11:
                                i26 = i25;
                                i16 = i39;
                                bArr2 = bArr;
                                i27 = i15;
                                i28 = i42;
                                if (i40 != 0) {
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    i32 = e.H(bArr2, i27, aVar2);
                                    unsafe2.putInt(obj3, U, aVar2.f14330a);
                                    i35 |= i44;
                                    i31 = i12;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i11;
                                }
                            case 5:
                            case 14:
                                i26 = i25;
                                i16 = i39;
                                bArr2 = bArr;
                                i28 = i42;
                                if (i40 != 1) {
                                    i27 = i15;
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    i27 = i15;
                                    unsafe2.putLong(obj, U, e.i(bArr2, i15));
                                    i32 = i27 + 8;
                                    i35 |= i44;
                                    i31 = i12;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i11;
                                }
                            case 6:
                            case 13:
                                i26 = i25;
                                i16 = i39;
                                bArr2 = bArr;
                                i29 = i11;
                                i28 = i42;
                                if (i40 != 5) {
                                    i27 = i15;
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    unsafe2.putInt(obj3, U, e.g(bArr2, i15));
                                    i32 = i15 + 4;
                                    i35 |= i44;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i29;
                                    i31 = i12;
                                }
                            case 7:
                                i26 = i25;
                                i16 = i39;
                                bArr2 = bArr;
                                i29 = i11;
                                i28 = i42;
                                if (i40 != 0) {
                                    i27 = i15;
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    i32 = e.K(bArr2, i15, aVar2);
                                    n1.E(obj3, U, aVar2.f14331b != 0);
                                    i35 |= i44;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i29;
                                    i31 = i12;
                                }
                            case 8:
                                i26 = i25;
                                i16 = i39;
                                bArr2 = bArr;
                                i29 = i11;
                                i28 = i42;
                                if (i40 != 2) {
                                    i27 = i15;
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    i32 = (i41 & 536870912) == 0 ? e.B(bArr2, i15, aVar2) : e.E(bArr2, i15, aVar2);
                                    unsafe2.putObject(obj3, U, aVar2.f14332c);
                                    i35 |= i44;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i29;
                                    i31 = i12;
                                }
                            case 9:
                                i26 = i25;
                                i28 = i42;
                                i16 = i39;
                                bArr2 = bArr;
                                if (i40 != 2) {
                                    i27 = i15;
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    i29 = i11;
                                    i32 = e.o(r0Var2.u(i26), bArr2, i15, i29, aVar2);
                                    if ((i35 & i44) == 0) {
                                        unsafe2.putObject(obj3, U, aVar2.f14332c);
                                    } else {
                                        unsafe2.putObject(obj3, U, z.h(unsafe2.getObject(obj3, U), aVar2.f14332c));
                                    }
                                    i35 |= i44;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i29;
                                    i31 = i12;
                                }
                            case 10:
                                i26 = i25;
                                i28 = i42;
                                i16 = i39;
                                bArr2 = bArr;
                                if (i40 != 2) {
                                    i27 = i15;
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    i32 = e.b(bArr2, i15, aVar2);
                                    unsafe2.putObject(obj3, U, aVar2.f14332c);
                                    i35 |= i44;
                                    i31 = i12;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i11;
                                }
                            case 12:
                                i26 = i25;
                                i28 = i42;
                                i16 = i39;
                                bArr2 = bArr;
                                if (i40 != 0) {
                                    i27 = i15;
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    i32 = e.H(bArr2, i15, aVar2);
                                    int i46 = aVar2.f14330a;
                                    z.c s10 = r0Var2.s(i26);
                                    if (s10 == null || s10.isInRange(i46)) {
                                        unsafe2.putInt(obj3, U, i46);
                                        i35 |= i44;
                                        i31 = i12;
                                        i33 = i26;
                                        i34 = i28;
                                        i36 = i16;
                                        i30 = i11;
                                    } else {
                                        v(obj).n(i28, Long.valueOf(i46));
                                        i31 = i12;
                                        i33 = i26;
                                        i34 = i28;
                                        i36 = i16;
                                        i30 = i11;
                                    }
                                }
                                break;
                            case 15:
                                i26 = i25;
                                i28 = i42;
                                i16 = i39;
                                bArr2 = bArr;
                                if (i40 != 0) {
                                    i27 = i15;
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    i32 = e.H(bArr2, i15, aVar2);
                                    unsafe2.putInt(obj3, U, i.b(aVar2.f14330a));
                                    i35 |= i44;
                                    i31 = i12;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i11;
                                }
                            case 16:
                                i26 = i25;
                                i28 = i42;
                                i16 = i39;
                                if (i40 != 0) {
                                    i27 = i15;
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    bArr2 = bArr;
                                    K = e.K(bArr2, i15, aVar2);
                                    unsafe2.putLong(obj, U, i.c(aVar2.f14331b));
                                    i35 |= i44;
                                    i33 = i26;
                                    i32 = K;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i11;
                                    i31 = i12;
                                }
                            case 17:
                                if (i40 != 3) {
                                    i26 = i25;
                                    i28 = i42;
                                    i16 = i39;
                                    i27 = i15;
                                    i21 = i12;
                                    i19 = i35;
                                    i20 = i37;
                                    i22 = i26;
                                    unsafe = unsafe2;
                                    i17 = i27;
                                    i18 = i28;
                                    break;
                                } else {
                                    int i47 = i25;
                                    i26 = i47;
                                    i16 = i39;
                                    i28 = i42;
                                    i32 = e.m(r0Var2.u(i47), bArr, i15, i11, (i39 << 3) | 4, aVar);
                                    if ((i35 & i44) == 0) {
                                        unsafe2.putObject(obj3, U, aVar2.f14332c);
                                    } else {
                                        unsafe2.putObject(obj3, U, z.h(unsafe2.getObject(obj3, U), aVar2.f14332c));
                                    }
                                    i35 |= i44;
                                    bArr2 = bArr;
                                    i31 = i12;
                                    i33 = i26;
                                    i34 = i28;
                                    i36 = i16;
                                    i30 = i11;
                                }
                            default:
                                i27 = i15;
                                i26 = i25;
                                i16 = i39;
                                i28 = i42;
                                i21 = i12;
                                i19 = i35;
                                i20 = i37;
                                i22 = i26;
                                unsafe = unsafe2;
                                i17 = i27;
                                i18 = i28;
                                break;
                        }
                    } else {
                        i16 = i39;
                        bArr2 = bArr;
                        int i48 = i15;
                        if (q02 != 27) {
                            i22 = g02;
                            i19 = i35;
                            if (q02 <= 49) {
                                i20 = i37;
                                unsafe = unsafe2;
                                i24 = i42;
                                i32 = e0(obj, bArr, i48, i11, i42, i16, i40, i22, i41, q02, U, aVar);
                            } else {
                                unsafe = unsafe2;
                                i23 = i48;
                                i24 = i42;
                                i20 = i37;
                                if (q02 != 50) {
                                    i32 = b0(obj, bArr, i23, i11, i24, i16, i40, i41, q02, U, i22, aVar);
                                } else if (i40 == 2) {
                                    i32 = a0(obj, bArr, i23, i11, i22, U, aVar);
                                }
                            }
                        } else if (i40 == 2) {
                            z.d dVar = (z.d) unsafe2.getObject(obj3, U);
                            if (!dVar.h()) {
                                int size = dVar.size();
                                dVar = dVar.a(size == 0 ? 10 : size * 2);
                                unsafe2.putObject(obj3, U, dVar);
                            }
                            i32 = e.p(r0Var2.u(g02), i42, bArr, i48, i11, dVar, aVar);
                            i31 = i12;
                            i34 = i42;
                            i36 = i16;
                            i33 = g02;
                            i35 = i35;
                            i30 = i11;
                        } else {
                            i22 = g02;
                            i19 = i35;
                            i20 = i37;
                            unsafe = unsafe2;
                            i23 = i48;
                            i24 = i42;
                        }
                        i21 = i12;
                        i17 = i23;
                        i18 = i24;
                    }
                }
                if (i18 != i21 || i21 == 0) {
                    int i49 = i21;
                    i32 = (!this.f14446f || aVar.f14333d == p.b()) ? e.F(i18, bArr, i17, i11, v(obj), aVar) : e.f(i18, bArr, i17, i11, obj, this.f14445e, this.f14455o, aVar);
                    obj3 = obj;
                    bArr2 = bArr;
                    i30 = i11;
                    i34 = i18;
                    r0Var2 = this;
                    aVar2 = aVar;
                    i36 = i16;
                    i37 = i20;
                    i33 = i22;
                    i35 = i19;
                    i31 = i49;
                    unsafe2 = unsafe;
                } else {
                    r0Var = this;
                    i13 = i21;
                    i32 = i17;
                    i34 = i18;
                    i37 = i20;
                    i35 = i19;
                }
            } else {
                unsafe = unsafe2;
                i13 = i31;
                r0Var = r0Var2;
            }
        }
        if (i37 != -1) {
            obj2 = obj;
            unsafe.putInt(obj2, i37, i35);
        } else {
            obj2 = obj;
        }
        k1 k1Var = null;
        for (int i50 = r0Var.f14451k; i50 < r0Var.f14452l; i50++) {
            k1Var = (k1) r0Var.p(obj2, r0Var.f14450j[i50], k1Var, r0Var.f14455o);
        }
        if (k1Var != null) {
            r0Var.f14455o.o(obj2, k1Var);
        }
        if (i13 == 0) {
            if (i32 != i11) {
                throw a0.g();
            }
        } else if (i32 > i11 || i34 != i13) {
            throw a0.g();
        }
        return i32;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.d1
    public boolean d(Object obj, Object obj2) {
        int length = this.f14441a.length;
        for (int i10 = 0; i10 < length; i10 += 3) {
            if (!o(obj, obj2, i10)) {
                return false;
            }
        }
        if (!this.f14455o.g(obj).equals(this.f14455o.g(obj2))) {
            return false;
        }
        if (this.f14446f) {
            return this.f14456p.c(obj).equals(this.f14456p.c(obj2));
        }
        return true;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.d1
    public int e(Object obj) {
        return this.f14448h ? x(obj) : w(obj);
    }

    @Override // com.google.crypto.tink.shaded.protobuf.d1
    public Object f() {
        return this.f14453m.a(this.f14445e);
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:4:0x0019. Please report as an issue. */
    @Override // com.google.crypto.tink.shaded.protobuf.d1
    public int g(Object obj) {
        int i10;
        int f10;
        int length = this.f14441a.length;
        int i11 = 0;
        for (int i12 = 0; i12 < length; i12 += 3) {
            int r02 = r0(i12);
            int T = T(i12);
            long U = U(r02);
            int i13 = 37;
            switch (q0(r02)) {
                case 0:
                    i10 = i11 * 53;
                    f10 = z.f(Double.doubleToLongBits(n1.v(obj, U)));
                    i11 = i10 + f10;
                    break;
                case 1:
                    i10 = i11 * 53;
                    f10 = Float.floatToIntBits(n1.w(obj, U));
                    i11 = i10 + f10;
                    break;
                case 2:
                    i10 = i11 * 53;
                    f10 = z.f(n1.y(obj, U));
                    i11 = i10 + f10;
                    break;
                case 3:
                    i10 = i11 * 53;
                    f10 = z.f(n1.y(obj, U));
                    i11 = i10 + f10;
                    break;
                case 4:
                    i10 = i11 * 53;
                    f10 = n1.x(obj, U);
                    i11 = i10 + f10;
                    break;
                case 5:
                    i10 = i11 * 53;
                    f10 = z.f(n1.y(obj, U));
                    i11 = i10 + f10;
                    break;
                case 6:
                    i10 = i11 * 53;
                    f10 = n1.x(obj, U);
                    i11 = i10 + f10;
                    break;
                case 7:
                    i10 = i11 * 53;
                    f10 = z.c(n1.p(obj, U));
                    i11 = i10 + f10;
                    break;
                case 8:
                    i10 = i11 * 53;
                    f10 = ((String) n1.A(obj, U)).hashCode();
                    i11 = i10 + f10;
                    break;
                case 9:
                    Object A = n1.A(obj, U);
                    if (A != null) {
                        i13 = A.hashCode();
                    }
                    i11 = (i11 * 53) + i13;
                    break;
                case 10:
                    i10 = i11 * 53;
                    f10 = n1.A(obj, U).hashCode();
                    i11 = i10 + f10;
                    break;
                case 11:
                    i10 = i11 * 53;
                    f10 = n1.x(obj, U);
                    i11 = i10 + f10;
                    break;
                case 12:
                    i10 = i11 * 53;
                    f10 = n1.x(obj, U);
                    i11 = i10 + f10;
                    break;
                case 13:
                    i10 = i11 * 53;
                    f10 = n1.x(obj, U);
                    i11 = i10 + f10;
                    break;
                case 14:
                    i10 = i11 * 53;
                    f10 = z.f(n1.y(obj, U));
                    i11 = i10 + f10;
                    break;
                case 15:
                    i10 = i11 * 53;
                    f10 = n1.x(obj, U);
                    i11 = i10 + f10;
                    break;
                case 16:
                    i10 = i11 * 53;
                    f10 = z.f(n1.y(obj, U));
                    i11 = i10 + f10;
                    break;
                case 17:
                    Object A2 = n1.A(obj, U);
                    if (A2 != null) {
                        i13 = A2.hashCode();
                    }
                    i11 = (i11 * 53) + i13;
                    break;
                case 18:
                case 19:
                case 20:
                case 21:
                case 22:
                case 23:
                case 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:
                    i10 = i11 * 53;
                    f10 = n1.A(obj, U).hashCode();
                    i11 = i10 + f10;
                    break;
                case 50:
                    i10 = i11 * 53;
                    f10 = n1.A(obj, U).hashCode();
                    i11 = i10 + f10;
                    break;
                case 51:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = z.f(Double.doubleToLongBits(W(obj, U)));
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 52:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = Float.floatToIntBits(X(obj, U));
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 53:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = z.f(Z(obj, U));
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 54:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = z.f(Z(obj, U));
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 55:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = Y(obj, U);
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 56:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = z.f(Z(obj, U));
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 57:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = Y(obj, U);
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 58:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = z.c(V(obj, U));
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 59:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = ((String) n1.A(obj, U)).hashCode();
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 60:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = n1.A(obj, U).hashCode();
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 61:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = n1.A(obj, U).hashCode();
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 62:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = Y(obj, U);
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 63:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = Y(obj, U);
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 64:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = Y(obj, U);
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 65:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = z.f(Z(obj, U));
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 66:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = Y(obj, U);
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 67:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = z.f(Z(obj, U));
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
                case 68:
                    if (H(obj, T, i12)) {
                        i10 = i11 * 53;
                        f10 = n1.A(obj, U).hashCode();
                        i11 = i10 + f10;
                        break;
                    } else {
                        break;
                    }
            }
        }
        int hashCode = (i11 * 53) + this.f14455o.g(obj).hashCode();
        return this.f14446f ? (hashCode * 53) + this.f14456p.c(obj).hashCode() : hashCode;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.d1
    public void h(Object obj, byte[] bArr, int i10, int i11, e.a aVar) {
        if (this.f14448h) {
            d0(obj, bArr, i10, i11, aVar);
        } else {
            c0(obj, bArr, i10, i11, 0, aVar);
        }
    }

    @Override // com.google.crypto.tink.shaded.protobuf.d1
    public void i(Object obj, q1 q1Var) {
        if (q1Var.i() == q1.a.DESCENDING) {
            u0(obj, q1Var);
        } else if (this.f14448h) {
            t0(obj, q1Var);
        } else {
            s0(obj, q1Var);
        }
    }

    @Override // com.google.crypto.tink.shaded.protobuf.d1
    public void j(Object obj, c1 c1Var, p pVar) {
        pVar.getClass();
        L(this.f14455o, this.f14456p, obj, c1Var, pVar);
    }
}
