package com.google.android.gms.internal.auth;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
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.List;
import net.sqlcipher.database.SQLiteDatabase;
import sun.misc.Unsafe;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class zzft<T> implements zzgb<T> {
    private static final int[] zza = new int[0];
    private static final Unsafe zzb = zzgz.zzg();
    private final int[] zzc;
    private final Object[] zzd;
    private final int zze;
    private final int zzf;
    private final zzfq zzg;
    private final boolean zzh;
    private final int[] zzi;
    private final int zzj;
    private final int zzk;
    private final zzfe zzl;
    private final zzgp<?, ?> zzm;
    private final zzeh<?> zzn;
    private final zzfv zzo;
    private final zzfl zzp;

    /* JADX WARN: Multi-variable type inference failed */
    private zzft(int[] iArr, int[] iArr2, Object[] objArr, int i10, int i11, zzfq zzfqVar, boolean z10, boolean z11, int[] iArr3, int i12, int i13, zzfv zzfvVar, zzfe zzfeVar, zzgp<?, ?> zzgpVar, zzeh<?> zzehVar, zzfl zzflVar) {
        this.zzc = iArr;
        this.zzd = iArr2;
        this.zze = objArr;
        this.zzf = i10;
        this.zzh = zzfqVar;
        this.zzi = z11;
        this.zzj = iArr3;
        this.zzk = i12;
        this.zzo = i13;
        this.zzl = zzfvVar;
        this.zzm = zzfeVar;
        this.zzn = zzgpVar;
        this.zzg = i11;
        this.zzp = zzehVar;
    }

    private static Field zzA(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;
                }
            }
            String name = cls.getName();
            String arrays = Arrays.toString(declaredFields);
            StringBuilder sb2 = new StringBuilder(String.valueOf(str).length() + 40 + name.length() + String.valueOf(arrays).length());
            sb2.append("Field ");
            sb2.append(str);
            sb2.append(" for ");
            sb2.append(name);
            sb2.append(" not found. Known fields are ");
            sb2.append(arrays);
            throw new RuntimeException(sb2.toString());
        }
    }

    private final void zzB(T t10, T t11, int i10) {
        long zzv = zzv(i10) & 1048575;
        if (zzG(t11, i10)) {
            Object zzf = zzgz.zzf(t10, zzv);
            Object zzf2 = zzgz.zzf(t11, zzv);
            if (zzf != null && zzf2 != null) {
                zzgz.zzp(t10, zzv, zzev.zzg(zzf, zzf2));
                zzD(t10, i10);
            } else if (zzf2 != null) {
                zzgz.zzp(t10, zzv, zzf2);
                zzD(t10, i10);
            }
        }
    }

    private final void zzC(T t10, T t11, int i10) {
        int zzv = zzv(i10);
        int i11 = this.zzc[i10];
        long j10 = zzv & 1048575;
        if (zzJ(t11, i11, i10)) {
            Object zzf = zzJ(t10, i11, i10) ? zzgz.zzf(t10, j10) : null;
            Object zzf2 = zzgz.zzf(t11, j10);
            if (zzf != null && zzf2 != null) {
                zzgz.zzp(t10, j10, zzev.zzg(zzf, zzf2));
                zzE(t10, i11, i10);
            } else if (zzf2 != null) {
                zzgz.zzp(t10, j10, zzf2);
                zzE(t10, i11, i10);
            }
        }
    }

    private final void zzD(T t10, int i10) {
        int zzs = zzs(i10);
        long j10 = 1048575 & zzs;
        if (j10 == 1048575) {
            return;
        }
        zzgz.zzn(t10, j10, (1 << (zzs >>> 20)) | zzgz.zzc(t10, j10));
    }

    private final void zzE(T t10, int i10, int i11) {
        zzgz.zzn(t10, zzs(i11) & 1048575, i10);
    }

    private final boolean zzF(T t10, T t11, int i10) {
        return zzG(t10, i10) == zzG(t11, i10);
    }

    private final boolean zzG(T t10, int i10) {
        int zzs = zzs(i10);
        long j10 = zzs & 1048575;
        if (j10 != 1048575) {
            return (zzgz.zzc(t10, j10) & (1 << (zzs >>> 20))) != 0;
        }
        int zzv = zzv(i10);
        long j11 = zzv & 1048575;
        switch (zzu(zzv)) {
            case 0:
                return zzgz.zza(t10, j11) != 0.0d;
            case 1:
                return zzgz.zzb(t10, j11) != BitmapDescriptorFactory.HUE_RED;
            case 2:
                return zzgz.zzd(t10, j11) != 0;
            case 3:
                return zzgz.zzd(t10, j11) != 0;
            case 4:
                return zzgz.zzc(t10, j11) != 0;
            case 5:
                return zzgz.zzd(t10, j11) != 0;
            case 6:
                return zzgz.zzc(t10, j11) != 0;
            case 7:
                return zzgz.zzt(t10, j11);
            case 8:
                Object zzf = zzgz.zzf(t10, j11);
                if (zzf instanceof String) {
                    return !((String) zzf).isEmpty();
                }
                if (zzf instanceof zzeb) {
                    return !zzeb.zzb.equals(zzf);
                }
                throw new IllegalArgumentException();
            case 9:
                return zzgz.zzf(t10, j11) != null;
            case 10:
                return !zzeb.zzb.equals(zzgz.zzf(t10, j11));
            case 11:
                return zzgz.zzc(t10, j11) != 0;
            case 12:
                return zzgz.zzc(t10, j11) != 0;
            case 13:
                return zzgz.zzc(t10, j11) != 0;
            case 14:
                return zzgz.zzd(t10, j11) != 0;
            case 15:
                return zzgz.zzc(t10, j11) != 0;
            case 16:
                return zzgz.zzd(t10, j11) != 0;
            case 17:
                return zzgz.zzf(t10, j11) != null;
            default:
                throw new IllegalArgumentException();
        }
    }

    private final boolean zzH(T t10, int i10, int i11, int i12, int i13) {
        return i11 == 1048575 ? zzG(t10, i10) : (i12 & i13) != 0;
    }

    /* JADX WARN: Multi-variable type inference failed */
    private static boolean zzI(Object obj, int i10, zzgb zzgbVar) {
        return zzgbVar.zzi(zzgz.zzf(obj, i10 & 1048575));
    }

    private final boolean zzJ(T t10, int i10, int i11) {
        return zzgz.zzc(t10, (long) (zzs(i11) & 1048575)) == i10;
    }

    static zzgq zzc(Object obj) {
        zzeq zzeqVar = (zzeq) obj;
        zzgq zzgqVar = zzeqVar.zzc;
        if (zzgqVar != zzgq.zza()) {
            return zzgqVar;
        }
        zzgq zzc = zzgq.zzc();
        zzeqVar.zzc = zzc;
        return zzc;
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public static <T> zzft<T> zzj(Class<T> cls, zzfn zzfnVar, zzfv zzfvVar, zzfe zzfeVar, zzgp<?, ?> zzgpVar, zzeh<?> zzehVar, zzfl zzflVar) {
        if (zzfnVar instanceof zzga) {
            return zzk((zzga) zzfnVar, zzfvVar, zzfeVar, zzgpVar, zzehVar, zzflVar);
        }
        throw null;
    }

    /* JADX WARN: Removed duplicated region for block: B:105:0x032b  */
    /* JADX WARN: Removed duplicated region for block: B:121:0x0384  */
    /* JADX WARN: Removed duplicated region for block: B:63:0x025e  */
    /* JADX WARN: Removed duplicated region for block: B:66:0x0279  */
    /* JADX WARN: Removed duplicated region for block: B:79:0x027c  */
    /* JADX WARN: Removed duplicated region for block: B:80:0x0261  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    static <T> zzft<T> zzk(zzga zzgaVar, zzfv zzfvVar, zzfe zzfeVar, zzgp<?, ?> zzgpVar, zzeh<?> zzehVar, zzfl zzflVar) {
        int i10;
        int charAt;
        int charAt2;
        int charAt3;
        int[] iArr;
        int i11;
        int i12;
        int i13;
        int i14;
        int i15;
        char charAt4;
        int i16;
        char charAt5;
        int i17;
        char charAt6;
        int i18;
        char charAt7;
        int i19;
        char charAt8;
        int i20;
        char charAt9;
        int i21;
        char charAt10;
        int i22;
        char charAt11;
        int i23;
        int i24;
        int i25;
        int[] iArr2;
        int i26;
        int i27;
        int i28;
        int objectFieldOffset;
        Object[] objArr;
        String str;
        int i29;
        int i30;
        int i31;
        int i32;
        Field zzA;
        char charAt12;
        int i33;
        int i34;
        int i35;
        Object obj;
        Field zzA2;
        Object obj2;
        Field zzA3;
        int i36;
        char charAt13;
        int i37;
        char charAt14;
        int i38;
        char charAt15;
        int i39;
        char charAt16;
        boolean z10 = zzgaVar.zzc() == 2;
        String zzd = zzgaVar.zzd();
        int length = zzd.length();
        char c10 = 55296;
        if (zzd.charAt(0) >= 55296) {
            int i40 = 1;
            while (true) {
                i10 = i40 + 1;
                if (zzd.charAt(i40) < 55296) {
                    break;
                }
                i40 = i10;
            }
        } else {
            i10 = 1;
        }
        int i41 = i10 + 1;
        int charAt17 = zzd.charAt(i10);
        if (charAt17 >= 55296) {
            int i42 = charAt17 & 8191;
            int i43 = 13;
            while (true) {
                i39 = i41 + 1;
                charAt16 = zzd.charAt(i41);
                if (charAt16 < 55296) {
                    break;
                }
                i42 |= (charAt16 & 8191) << i43;
                i43 += 13;
                i41 = i39;
            }
            charAt17 = i42 | (charAt16 << i43);
            i41 = i39;
        }
        if (charAt17 == 0) {
            charAt = 0;
            i14 = 0;
            charAt2 = 0;
            i13 = 0;
            charAt3 = 0;
            i11 = 0;
            iArr = zza;
            i12 = 0;
        } else {
            int i44 = i41 + 1;
            int charAt18 = zzd.charAt(i41);
            if (charAt18 >= 55296) {
                int i45 = charAt18 & 8191;
                int i46 = 13;
                while (true) {
                    i22 = i44 + 1;
                    charAt11 = zzd.charAt(i44);
                    if (charAt11 < 55296) {
                        break;
                    }
                    i45 |= (charAt11 & 8191) << i46;
                    i46 += 13;
                    i44 = i22;
                }
                charAt18 = i45 | (charAt11 << i46);
                i44 = i22;
            }
            int i47 = i44 + 1;
            int charAt19 = zzd.charAt(i44);
            if (charAt19 >= 55296) {
                int i48 = charAt19 & 8191;
                int i49 = 13;
                while (true) {
                    i21 = i47 + 1;
                    charAt10 = zzd.charAt(i47);
                    if (charAt10 < 55296) {
                        break;
                    }
                    i48 |= (charAt10 & 8191) << i49;
                    i49 += 13;
                    i47 = i21;
                }
                charAt19 = i48 | (charAt10 << i49);
                i47 = i21;
            }
            int i50 = i47 + 1;
            charAt = zzd.charAt(i47);
            if (charAt >= 55296) {
                int i51 = charAt & 8191;
                int i52 = 13;
                while (true) {
                    i20 = i50 + 1;
                    charAt9 = zzd.charAt(i50);
                    if (charAt9 < 55296) {
                        break;
                    }
                    i51 |= (charAt9 & 8191) << i52;
                    i52 += 13;
                    i50 = i20;
                }
                charAt = i51 | (charAt9 << i52);
                i50 = i20;
            }
            int i53 = i50 + 1;
            int charAt20 = zzd.charAt(i50);
            if (charAt20 >= 55296) {
                int i54 = charAt20 & 8191;
                int i55 = 13;
                while (true) {
                    i19 = i53 + 1;
                    charAt8 = zzd.charAt(i53);
                    if (charAt8 < 55296) {
                        break;
                    }
                    i54 |= (charAt8 & 8191) << i55;
                    i55 += 13;
                    i53 = i19;
                }
                charAt20 = i54 | (charAt8 << i55);
                i53 = i19;
            }
            int i56 = i53 + 1;
            charAt2 = zzd.charAt(i53);
            if (charAt2 >= 55296) {
                int i57 = charAt2 & 8191;
                int i58 = 13;
                while (true) {
                    i18 = i56 + 1;
                    charAt7 = zzd.charAt(i56);
                    if (charAt7 < 55296) {
                        break;
                    }
                    i57 |= (charAt7 & 8191) << i58;
                    i58 += 13;
                    i56 = i18;
                }
                charAt2 = i57 | (charAt7 << i58);
                i56 = i18;
            }
            int i59 = i56 + 1;
            int charAt21 = zzd.charAt(i56);
            if (charAt21 >= 55296) {
                int i60 = charAt21 & 8191;
                int i61 = 13;
                while (true) {
                    i17 = i59 + 1;
                    charAt6 = zzd.charAt(i59);
                    if (charAt6 < 55296) {
                        break;
                    }
                    i60 |= (charAt6 & 8191) << i61;
                    i61 += 13;
                    i59 = i17;
                }
                charAt21 = i60 | (charAt6 << i61);
                i59 = i17;
            }
            int i62 = i59 + 1;
            int charAt22 = zzd.charAt(i59);
            if (charAt22 >= 55296) {
                int i63 = charAt22 & 8191;
                int i64 = 13;
                while (true) {
                    i16 = i62 + 1;
                    charAt5 = zzd.charAt(i62);
                    if (charAt5 < 55296) {
                        break;
                    }
                    i63 |= (charAt5 & 8191) << i64;
                    i64 += 13;
                    i62 = i16;
                }
                charAt22 = i63 | (charAt5 << i64);
                i62 = i16;
            }
            int i65 = i62 + 1;
            charAt3 = zzd.charAt(i62);
            if (charAt3 >= 55296) {
                int i66 = charAt3 & 8191;
                int i67 = 13;
                while (true) {
                    i15 = i65 + 1;
                    charAt4 = zzd.charAt(i65);
                    if (charAt4 < 55296) {
                        break;
                    }
                    i66 |= (charAt4 & 8191) << i67;
                    i67 += 13;
                    i65 = i15;
                }
                charAt3 = i66 | (charAt4 << i67);
                i65 = i15;
            }
            iArr = new int[charAt3 + charAt21 + charAt22];
            i11 = charAt18 + charAt18 + charAt19;
            i12 = charAt18;
            i41 = i65;
            int i68 = charAt21;
            i13 = charAt20;
            i14 = i68;
        }
        Unsafe unsafe = zzb;
        Object[] zze = zzgaVar.zze();
        Class<?> cls = zzgaVar.zza().getClass();
        int[] iArr3 = new int[charAt2 * 3];
        Object[] objArr2 = new Object[charAt2 + charAt2];
        int i69 = charAt3 + i14;
        int i70 = charAt3;
        int i71 = i69;
        int i72 = 0;
        int i73 = 0;
        while (i41 < length) {
            int i74 = i41 + 1;
            int charAt23 = zzd.charAt(i41);
            if (charAt23 >= c10) {
                int i75 = charAt23 & 8191;
                int i76 = i74;
                int i77 = 13;
                while (true) {
                    i38 = i76 + 1;
                    charAt15 = zzd.charAt(i76);
                    if (charAt15 < c10) {
                        break;
                    }
                    i75 |= (charAt15 & 8191) << i77;
                    i77 += 13;
                    i76 = i38;
                }
                charAt23 = i75 | (charAt15 << i77);
                i23 = i38;
            } else {
                i23 = i74;
            }
            int i78 = i23 + 1;
            int charAt24 = zzd.charAt(i23);
            if (charAt24 >= c10) {
                int i79 = charAt24 & 8191;
                int i80 = i78;
                int i81 = 13;
                while (true) {
                    i37 = i80 + 1;
                    charAt14 = zzd.charAt(i80);
                    i24 = length;
                    if (charAt14 < 55296) {
                        break;
                    }
                    i79 |= (charAt14 & 8191) << i81;
                    i81 += 13;
                    i80 = i37;
                    length = i24;
                }
                charAt24 = i79 | (charAt14 << i81);
                i25 = i37;
            } else {
                i24 = length;
                i25 = i78;
            }
            int i82 = charAt24 & Constants.MAX_HOST_LENGTH;
            int i83 = charAt3;
            if ((charAt24 & UserMetadata.MAX_ATTRIBUTE_SIZE) != 0) {
                iArr[i73] = i72;
                i73++;
            }
            if (i82 >= 51) {
                int i84 = i25 + 1;
                int charAt25 = zzd.charAt(i25);
                if (charAt25 >= 55296) {
                    int i85 = charAt25 & 8191;
                    int i86 = i84;
                    int i87 = 13;
                    while (true) {
                        i36 = i86 + 1;
                        charAt13 = zzd.charAt(i86);
                        i27 = i13;
                        if (charAt13 < 55296) {
                            break;
                        }
                        i85 |= (charAt13 & 8191) << i87;
                        i87 += 13;
                        i86 = i36;
                        i13 = i27;
                    }
                    charAt25 = i85 | (charAt13 << i87);
                    i34 = i36;
                } else {
                    i27 = i13;
                    i34 = i84;
                }
                int i88 = i82 - 51;
                i31 = i34;
                if (i88 == 9 || i88 == 17) {
                    int i89 = i72 / 3;
                    i35 = i11 + 1;
                    objArr2[i89 + i89 + 1] = zze[i11];
                } else {
                    if (i88 == 12 && !z10) {
                        int i90 = i72 / 3;
                        i35 = i11 + 1;
                        objArr2[i90 + i90 + 1] = zze[i11];
                    }
                    int i91 = charAt25 + charAt25;
                    obj = zze[i91];
                    if (obj instanceof Field) {
                        zzA2 = zzA(cls, (String) obj);
                        zze[i91] = zzA2;
                    } else {
                        zzA2 = (Field) obj;
                    }
                    iArr2 = iArr3;
                    i26 = charAt;
                    int objectFieldOffset2 = (int) unsafe.objectFieldOffset(zzA2);
                    int i92 = i91 + 1;
                    obj2 = zze[i92];
                    if (obj2 instanceof Field) {
                        zzA3 = zzA(cls, (String) obj2);
                        zze[i92] = zzA3;
                    } else {
                        zzA3 = (Field) obj2;
                    }
                    str = zzd;
                    i30 = (int) unsafe.objectFieldOffset(zzA3);
                    objArr = objArr2;
                    objectFieldOffset = objectFieldOffset2;
                    i32 = 0;
                }
                i11 = i35;
                int i912 = charAt25 + charAt25;
                obj = zze[i912];
                if (obj instanceof Field) {
                }
                iArr2 = iArr3;
                i26 = charAt;
                int objectFieldOffset22 = (int) unsafe.objectFieldOffset(zzA2);
                int i922 = i912 + 1;
                obj2 = zze[i922];
                if (obj2 instanceof Field) {
                }
                str = zzd;
                i30 = (int) unsafe.objectFieldOffset(zzA3);
                objArr = objArr2;
                objectFieldOffset = objectFieldOffset22;
                i32 = 0;
            } else {
                iArr2 = iArr3;
                i26 = charAt;
                i27 = i13;
                int i93 = i11 + 1;
                Field zzA4 = zzA(cls, (String) zze[i11]);
                if (i82 == 9 || i82 == 17) {
                    int i94 = i72 / 3;
                    objArr2[i94 + i94 + 1] = zzA4.getType();
                } else {
                    if (i82 == 27 || i82 == 49) {
                        int i95 = i72 / 3;
                        i33 = i93 + 1;
                        objArr2[i95 + i95 + 1] = zze[i93];
                    } else if (i82 == 12 || i82 == 30 || i82 == 44) {
                        if (!z10) {
                            int i96 = i72 / 3;
                            i33 = i93 + 1;
                            objArr2[i96 + i96 + 1] = zze[i93];
                        }
                    } else if (i82 == 50) {
                        int i97 = i70 + 1;
                        iArr[i70] = i72;
                        int i98 = i72 / 3;
                        int i99 = i98 + i98;
                        int i100 = i93 + 1;
                        objArr2[i99] = zze[i93];
                        if ((charAt24 & 2048) != 0) {
                            i93 = i100 + 1;
                            objArr2[i99 + 1] = zze[i100];
                            i70 = i97;
                        } else {
                            i70 = i97;
                            i28 = i100;
                            objectFieldOffset = (int) unsafe.objectFieldOffset(zzA4);
                            objArr = objArr2;
                            if ((charAt24 & 4096) == 4096 || i82 > 17) {
                                str = zzd;
                                i29 = i28;
                                i30 = 1048575;
                                i31 = i25;
                                i32 = 0;
                            } else {
                                int i101 = i25 + 1;
                                int charAt26 = zzd.charAt(i25);
                                if (charAt26 >= 55296) {
                                    int i102 = charAt26 & 8191;
                                    int i103 = 13;
                                    while (true) {
                                        i31 = i101 + 1;
                                        charAt12 = zzd.charAt(i101);
                                        if (charAt12 < 55296) {
                                            break;
                                        }
                                        i102 |= (charAt12 & 8191) << i103;
                                        i103 += 13;
                                        i101 = i31;
                                    }
                                    charAt26 = i102 | (charAt12 << i103);
                                } else {
                                    i31 = i101;
                                }
                                int i104 = i12 + i12 + (charAt26 / 32);
                                Object obj3 = zze[i104];
                                str = zzd;
                                if (obj3 instanceof Field) {
                                    zzA = (Field) obj3;
                                } else {
                                    zzA = zzA(cls, (String) obj3);
                                    zze[i104] = zzA;
                                }
                                i29 = i28;
                                i30 = (int) unsafe.objectFieldOffset(zzA);
                                i32 = charAt26 % 32;
                            }
                            if (i82 >= 18 || i82 > 49) {
                                i11 = i29;
                            } else {
                                iArr[i71] = objectFieldOffset;
                                i11 = i29;
                                i71++;
                            }
                        }
                    }
                    i28 = i33;
                    objectFieldOffset = (int) unsafe.objectFieldOffset(zzA4);
                    objArr = objArr2;
                    if ((charAt24 & 4096) == 4096) {
                    }
                    str = zzd;
                    i29 = i28;
                    i30 = 1048575;
                    i31 = i25;
                    i32 = 0;
                    if (i82 >= 18) {
                    }
                    i11 = i29;
                }
                i28 = i93;
                objectFieldOffset = (int) unsafe.objectFieldOffset(zzA4);
                objArr = objArr2;
                if ((charAt24 & 4096) == 4096) {
                }
                str = zzd;
                i29 = i28;
                i30 = 1048575;
                i31 = i25;
                i32 = 0;
                if (i82 >= 18) {
                }
                i11 = i29;
            }
            int i105 = i72 + 1;
            iArr2[i72] = charAt23;
            int i106 = i105 + 1;
            iArr2[i105] = ((charAt24 & 256) != 0 ? SQLiteDatabase.CREATE_IF_NECESSARY : 0) | ((charAt24 & 512) != 0 ? 536870912 : 0) | (i82 << 20) | objectFieldOffset;
            i72 = i106 + 1;
            iArr2[i106] = (i32 << 20) | i30;
            charAt = i26;
            charAt3 = i83;
            i41 = i31;
            length = i24;
            objArr2 = objArr;
            zzd = str;
            iArr3 = iArr2;
            i13 = i27;
            c10 = 55296;
        }
        return new zzft<>(iArr3, objArr2, charAt, i13, zzgaVar.zza(), z10, false, iArr, charAt3, i69, zzfvVar, zzfeVar, zzgpVar, zzehVar, zzflVar, null);
    }

    private static <T> int zzl(T t10, long j10) {
        return ((Integer) zzgz.zzf(t10, j10)).intValue();
    }

    private final <K, V> int zzm(T t10, byte[] bArr, int i10, int i11, int i12, long j10, zzdp zzdpVar) throws IOException {
        Unsafe unsafe = zzb;
        Object zzz = zzz(i12);
        Object object = unsafe.getObject(t10, j10);
        if (!((zzfk) object).zze()) {
            zzfk<K, V> zzb2 = zzfk.zza().zzb();
            zzfl.zza(zzb2, object);
            unsafe.putObject(t10, j10, zzb2);
        }
        throw null;
    }

    /* 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 final int zzn(T t10, byte[] bArr, int i10, int i11, int i12, int i13, int i14, int i15, int i16, long j10, int i17, zzdp zzdpVar) throws IOException {
        Unsafe unsafe = zzb;
        long j11 = this.zzc[i17 + 2] & 1048575;
        switch (i16) {
            case 51:
                if (i14 == 1) {
                    unsafe.putObject(t10, j10, Double.valueOf(Double.longBitsToDouble(zzdq.zzn(bArr, i10))));
                    unsafe.putInt(t10, j11, i13);
                    return i10 + 8;
                }
                return i10;
            case 52:
                if (i14 == 5) {
                    unsafe.putObject(t10, j10, Float.valueOf(Float.intBitsToFloat(zzdq.zzb(bArr, i10))));
                    unsafe.putInt(t10, j11, i13);
                    return i10 + 4;
                }
                return i10;
            case 53:
            case 54:
                if (i14 == 0) {
                    int zzm = zzdq.zzm(bArr, i10, zzdpVar);
                    unsafe.putObject(t10, j10, Long.valueOf(zzdpVar.zzb));
                    unsafe.putInt(t10, j11, i13);
                    return zzm;
                }
                return i10;
            case 55:
            case 62:
                if (i14 == 0) {
                    int zzj = zzdq.zzj(bArr, i10, zzdpVar);
                    unsafe.putObject(t10, j10, Integer.valueOf(zzdpVar.zza));
                    unsafe.putInt(t10, j11, i13);
                    return zzj;
                }
                return i10;
            case 56:
            case 65:
                if (i14 == 1) {
                    unsafe.putObject(t10, j10, Long.valueOf(zzdq.zzn(bArr, i10)));
                    unsafe.putInt(t10, j11, i13);
                    return i10 + 8;
                }
                return i10;
            case 57:
            case 64:
                if (i14 == 5) {
                    unsafe.putObject(t10, j10, Integer.valueOf(zzdq.zzb(bArr, i10)));
                    unsafe.putInt(t10, j11, i13);
                    return i10 + 4;
                }
                return i10;
            case 58:
                if (i14 == 0) {
                    int zzm2 = zzdq.zzm(bArr, i10, zzdpVar);
                    unsafe.putObject(t10, j10, Boolean.valueOf(zzdpVar.zzb != 0));
                    unsafe.putInt(t10, j11, i13);
                    return zzm2;
                }
                return i10;
            case 59:
                if (i14 == 2) {
                    int zzj2 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i18 = zzdpVar.zza;
                    if (i18 == 0) {
                        unsafe.putObject(t10, j10, "");
                    } else {
                        if ((i15 & 536870912) != 0 && !zzhd.zzd(bArr, zzj2, zzj2 + i18)) {
                            throw zzew.zzb();
                        }
                        unsafe.putObject(t10, j10, new String(bArr, zzj2, i18, zzev.zza));
                        zzj2 += i18;
                    }
                    unsafe.putInt(t10, j11, i13);
                    return zzj2;
                }
                return i10;
            case 60:
                if (i14 == 2) {
                    int zzd = zzdq.zzd(zzy(i17), bArr, i10, i11, zzdpVar);
                    Object object = unsafe.getInt(t10, j11) == i13 ? unsafe.getObject(t10, j10) : null;
                    if (object == null) {
                        unsafe.putObject(t10, j10, zzdpVar.zzc);
                    } else {
                        unsafe.putObject(t10, j10, zzev.zzg(object, zzdpVar.zzc));
                    }
                    unsafe.putInt(t10, j11, i13);
                    return zzd;
                }
                return i10;
            case 61:
                if (i14 == 2) {
                    int zza2 = zzdq.zza(bArr, i10, zzdpVar);
                    unsafe.putObject(t10, j10, zzdpVar.zzc);
                    unsafe.putInt(t10, j11, i13);
                    return zza2;
                }
                return i10;
            case 63:
                if (i14 == 0) {
                    int zzj3 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i19 = zzdpVar.zza;
                    zzet zzx = zzx(i17);
                    if (zzx == null || zzx.zza()) {
                        unsafe.putObject(t10, j10, Integer.valueOf(i19));
                        unsafe.putInt(t10, j11, i13);
                    } else {
                        zzc(t10).zzf(i12, Long.valueOf(i19));
                    }
                    return zzj3;
                }
                return i10;
            case 66:
                if (i14 == 0) {
                    int zzj4 = zzdq.zzj(bArr, i10, zzdpVar);
                    unsafe.putObject(t10, j10, Integer.valueOf(zzee.zzb(zzdpVar.zza)));
                    unsafe.putInt(t10, j11, i13);
                    return zzj4;
                }
                return i10;
            case 67:
                if (i14 == 0) {
                    int zzm3 = zzdq.zzm(bArr, i10, zzdpVar);
                    unsafe.putObject(t10, j10, Long.valueOf(zzee.zzc(zzdpVar.zzb)));
                    unsafe.putInt(t10, j11, i13);
                    return zzm3;
                }
                return i10;
            case 68:
                if (i14 == 3) {
                    int zzc = zzdq.zzc(zzy(i17), bArr, i10, i11, (i12 & (-8)) | 4, zzdpVar);
                    Object object2 = unsafe.getInt(t10, j11) == i13 ? unsafe.getObject(t10, j10) : null;
                    if (object2 == null) {
                        unsafe.putObject(t10, j10, zzdpVar.zzc);
                    } else {
                        unsafe.putObject(t10, j10, zzev.zzg(object2, zzdpVar.zzc));
                    }
                    unsafe.putInt(t10, j11, i13);
                    return zzc;
                }
                return i10;
            default:
                return i10;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:40:0x02a1, code lost:
    
        if (r0 != r15) goto L101;
     */
    /* JADX WARN: Code restructure failed: missing block: B:41:0x02a3, code lost:
    
        r15 = r29;
        r14 = r30;
        r12 = r31;
        r13 = r33;
        r11 = r34;
        r2 = r18;
        r1 = r19;
        r6 = r23;
        r7 = r26;
     */
    /* JADX WARN: Code restructure failed: missing block: B:42:0x02b7, code lost:
    
        r2 = r0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:48:0x02e8, code lost:
    
        if (r0 != r15) goto L101;
     */
    /* JADX WARN: Code restructure failed: missing block: B:50:0x030b, code lost:
    
        if (r0 != r15) goto L101;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:60:0x0085. Please report as an issue. */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r3v14, types: [int] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    private final int zzo(T t10, byte[] bArr, int i10, int i11, zzdp zzdpVar) throws IOException {
        byte b10;
        int i12;
        int i13;
        int i14;
        int i15;
        Unsafe unsafe;
        int i16;
        int i17;
        int i18;
        int zzm;
        int zzd;
        int i19;
        int i20;
        int i21;
        zzft<T> zzftVar = this;
        T t11 = t10;
        byte[] bArr2 = bArr;
        int i22 = i11;
        zzdp zzdpVar2 = zzdpVar;
        Unsafe unsafe2 = zzb;
        int i23 = 1048575;
        int i24 = -1;
        int i25 = i10;
        int i26 = -1;
        int i27 = 1048575;
        int i28 = 0;
        int i29 = 0;
        while (i25 < i22) {
            int i30 = i25 + 1;
            byte b11 = bArr2[i25];
            if (b11 < 0) {
                i12 = zzdq.zzk(b11, bArr2, i30, zzdpVar2);
                b10 = zzdpVar2.zza;
            } else {
                b10 = b11;
                i12 = i30;
            }
            int i31 = b10 >>> 3;
            int i32 = b10 & 7;
            int zzr = i31 > i26 ? zzftVar.zzr(i31, i28 / 3) : zzftVar.zzq(i31);
            if (zzr == i24) {
                i13 = i12;
                i14 = i31;
                i15 = i24;
                unsafe = unsafe2;
                i16 = 0;
            } else {
                int i33 = zzftVar.zzc[zzr + 1];
                int zzu = zzu(i33);
                long j10 = i33 & i23;
                if (zzu <= 17) {
                    int i34 = zzftVar.zzc[zzr + 2];
                    int i35 = 1 << (i34 >>> 20);
                    i23 = 1048575;
                    int i36 = i34 & 1048575;
                    if (i36 != i27) {
                        if (i27 != 1048575) {
                            unsafe2.putInt(t11, i27, i29);
                            i23 = 1048575;
                        }
                        if (i36 != i23) {
                            i29 = unsafe2.getInt(t11, i36);
                        }
                        i27 = i36;
                    }
                    switch (zzu) {
                        case 0:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i17 = zzr;
                            i18 = i29;
                            if (i32 != 1) {
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                zzgz.zzl(t11, j10, Double.longBitsToDouble(zzdq.zzn(bArr2, i12)));
                                i25 = i12 + 8;
                                i29 = i18 | i35;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 1:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i18 = i29;
                            i17 = zzr;
                            if (i32 != 5) {
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                zzgz.zzm(t11, j10, Float.intBitsToFloat(zzdq.zzb(bArr2, i12)));
                                i25 = i12 + 4;
                                i29 = i18 | i35;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 2:
                        case 3:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i17 = zzr;
                            i18 = i29;
                            if (i32 != 0) {
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                zzm = zzdq.zzm(bArr2, i12, zzdpVar2);
                                unsafe2.putLong(t10, j10, zzdpVar2.zzb);
                                i29 = i18 | i35;
                                i28 = i17;
                                i25 = zzm;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 4:
                        case 11:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i17 = zzr;
                            i18 = i29;
                            if (i32 != 0) {
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                i25 = zzdq.zzj(bArr2, i12, zzdpVar2);
                                unsafe2.putInt(t11, j10, zzdpVar2.zza);
                                i29 = i18 | i35;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 5:
                        case 14:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i17 = zzr;
                            i18 = i29;
                            if (i32 != 1) {
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                unsafe2.putLong(t10, j10, zzdq.zzn(bArr2, i12));
                                i25 = i12 + 8;
                                i29 = i18 | i35;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 6:
                        case 13:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i18 = i29;
                            i17 = zzr;
                            if (i32 != 5) {
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                unsafe2.putInt(t11, j10, zzdq.zzb(bArr2, i12));
                                i25 = i12 + 4;
                                i29 = i18 | i35;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 7:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i17 = zzr;
                            boolean z10 = true;
                            i18 = i29;
                            if (i32 != 0) {
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                int zzm2 = zzdq.zzm(bArr2, i12, zzdpVar2);
                                if (zzdpVar2.zzb == 0) {
                                    z10 = false;
                                }
                                zzgz.zzk(t11, j10, z10);
                                i29 = i18 | i35;
                                i25 = zzm2;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 8:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i17 = zzr;
                            i18 = i29;
                            if (i32 != 2) {
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                i25 = (536870912 & i33) == 0 ? zzdq.zzg(bArr2, i12, zzdpVar2) : zzdq.zzh(bArr2, i12, zzdpVar2);
                                unsafe2.putObject(t11, j10, zzdpVar2.zzc);
                                i29 = i18 | i35;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 9:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i17 = zzr;
                            if (i32 != 2) {
                                i18 = i29;
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                zzd = zzdq.zzd(zzftVar.zzy(i17), bArr2, i12, i22, zzdpVar2);
                                Object object = unsafe2.getObject(t11, j10);
                                if (object == null) {
                                    unsafe2.putObject(t11, j10, zzdpVar2.zzc);
                                } else {
                                    unsafe2.putObject(t11, j10, zzev.zzg(object, zzdpVar2.zzc));
                                }
                                i29 |= i35;
                                i25 = zzd;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 10:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i17 = zzr;
                            if (i32 != 2) {
                                i18 = i29;
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                zzd = zzdq.zza(bArr2, i12, zzdpVar2);
                                unsafe2.putObject(t11, j10, zzdpVar2.zzc);
                                i29 |= i35;
                                i25 = zzd;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 12:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i17 = zzr;
                            if (i32 != 0) {
                                i18 = i29;
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                zzd = zzdq.zzj(bArr2, i12, zzdpVar2);
                                unsafe2.putInt(t11, j10, zzdpVar2.zza);
                                i29 |= i35;
                                i25 = zzd;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 15:
                            i14 = i31;
                            zzdpVar2 = zzdpVar;
                            i17 = zzr;
                            if (i32 != 0) {
                                i18 = i29;
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                i25 = zzdq.zzj(bArr2, i12, zzdpVar2);
                                unsafe2.putInt(t11, j10, zzee.zzb(zzdpVar2.zza));
                                i29 |= i35;
                                i28 = i17;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        case 16:
                            if (i32 != 0) {
                                i14 = i31;
                                i17 = zzr;
                                i18 = i29;
                                i29 = i18;
                                i13 = i12;
                                i16 = i17;
                                unsafe = unsafe2;
                                i15 = -1;
                                break;
                            } else {
                                zzdpVar2 = zzdpVar;
                                zzm = zzdq.zzm(bArr2, i12, zzdpVar2);
                                i17 = zzr;
                                i14 = i31;
                                unsafe2.putLong(t10, j10, zzee.zzc(zzdpVar2.zzb));
                                i29 |= i35;
                                i28 = i17;
                                i25 = zzm;
                                i26 = i14;
                                i24 = -1;
                                break;
                            }
                        default:
                            i14 = i31;
                            i17 = zzr;
                            i18 = i29;
                            i29 = i18;
                            i13 = i12;
                            i16 = i17;
                            unsafe = unsafe2;
                            i15 = -1;
                            break;
                    }
                } else {
                    i14 = i31;
                    int i37 = i29;
                    i23 = 1048575;
                    zzdpVar2 = zzdpVar;
                    if (zzu == 27) {
                        if (i32 == 2) {
                            zzeu zzeuVar = (zzeu) unsafe2.getObject(t11, j10);
                            if (!zzeuVar.zzc()) {
                                int size = zzeuVar.size();
                                zzeuVar = zzeuVar.zzd(size == 0 ? 10 : size + size);
                                unsafe2.putObject(t11, j10, zzeuVar);
                            }
                            i25 = zzdq.zze(zzftVar.zzy(zzr), b10, bArr, i12, i11, zzeuVar, zzdpVar);
                            i28 = zzr;
                            i29 = i37;
                            i26 = i14;
                            i24 = -1;
                            zzftVar = this;
                        } else {
                            i21 = i12;
                            i19 = i27;
                            i16 = zzr;
                            unsafe = unsafe2;
                            i20 = i37;
                            i15 = -1;
                        }
                    } else if (zzu <= 49) {
                        i20 = i37;
                        int i38 = i12;
                        i19 = i27;
                        i16 = zzr;
                        i15 = -1;
                        unsafe = unsafe2;
                        i25 = zzp(t10, bArr, i12, i11, b10, i14, i32, zzr, i33, zzu, j10, zzdpVar);
                    } else {
                        i19 = i27;
                        i16 = zzr;
                        unsafe = unsafe2;
                        i20 = i37;
                        i15 = -1;
                        i21 = i12;
                        if (zzu != 50) {
                            i25 = zzn(t10, bArr, i21, i11, b10, i14, i32, i33, zzu, j10, i16, zzdpVar);
                        } else if (i32 == 2) {
                            i25 = zzm(t10, bArr, i21, i11, i16, j10, zzdpVar);
                        }
                    }
                    i13 = i21;
                    i29 = i20;
                    i27 = i19;
                }
                i24 = i15;
                unsafe2 = unsafe;
                i23 = 1048575;
            }
            i25 = zzdq.zzi(b10, bArr, i13, i11, zzc(t10), zzdpVar);
            zzftVar = this;
            t11 = t10;
            bArr2 = bArr;
            i22 = i11;
            zzdpVar2 = zzdpVar;
            i28 = i16;
            i26 = i14;
            i24 = i15;
            unsafe2 = unsafe;
            i23 = 1048575;
        }
        int i39 = i29;
        Unsafe unsafe3 = unsafe2;
        if (i27 != i23) {
            unsafe3.putInt(t10, i27, i39);
        }
        if (i25 == i11) {
            return i25;
        }
        throw zzew.zzd();
    }

    /* JADX WARN: Multi-variable type inference failed */
    private final int zzp(T t10, byte[] bArr, int i10, int i11, int i12, int i13, int i14, int i15, long j10, int i16, long j11, zzdp zzdpVar) throws IOException {
        int i17;
        int zzl;
        Unsafe unsafe = zzb;
        zzeu zzeuVar = (zzeu) unsafe.getObject(t10, j11);
        if (!zzeuVar.zzc()) {
            int size = zzeuVar.size();
            zzeuVar = zzeuVar.zzd(size == 0 ? 10 : size + size);
            unsafe.putObject(t10, j11, zzeuVar);
        }
        switch (i16) {
            case 18:
            case 35:
                if (i14 == 2) {
                    zzef zzefVar = (zzef) zzeuVar;
                    int zzj = zzdq.zzj(bArr, i10, zzdpVar);
                    int i18 = zzdpVar.zza + zzj;
                    while (zzj < i18) {
                        zzefVar.zze(Double.longBitsToDouble(zzdq.zzn(bArr, zzj)));
                        zzj += 8;
                    }
                    if (zzj == i18) {
                        return zzj;
                    }
                    throw zzew.zzf();
                }
                if (i14 == 1) {
                    zzef zzefVar2 = (zzef) zzeuVar;
                    zzefVar2.zze(Double.longBitsToDouble(zzdq.zzn(bArr, i10)));
                    int i19 = i10 + 8;
                    while (i19 < i11) {
                        int zzj2 = zzdq.zzj(bArr, i19, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return i19;
                        }
                        zzefVar2.zze(Double.longBitsToDouble(zzdq.zzn(bArr, zzj2)));
                        i19 = zzj2 + 8;
                    }
                    return i19;
                }
                break;
            case 19:
            case 36:
                if (i14 == 2) {
                    zzem zzemVar = (zzem) zzeuVar;
                    int zzj3 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i20 = zzdpVar.zza + zzj3;
                    while (zzj3 < i20) {
                        zzemVar.zze(Float.intBitsToFloat(zzdq.zzb(bArr, zzj3)));
                        zzj3 += 4;
                    }
                    if (zzj3 == i20) {
                        return zzj3;
                    }
                    throw zzew.zzf();
                }
                if (i14 == 5) {
                    zzem zzemVar2 = (zzem) zzeuVar;
                    zzemVar2.zze(Float.intBitsToFloat(zzdq.zzb(bArr, i10)));
                    int i21 = i10 + 4;
                    while (i21 < i11) {
                        int zzj4 = zzdq.zzj(bArr, i21, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return i21;
                        }
                        zzemVar2.zze(Float.intBitsToFloat(zzdq.zzb(bArr, zzj4)));
                        i21 = zzj4 + 4;
                    }
                    return i21;
                }
                break;
            case 20:
            case 21:
            case 37:
            case 38:
                if (i14 == 2) {
                    zzff zzffVar = (zzff) zzeuVar;
                    int zzj5 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i22 = zzdpVar.zza + zzj5;
                    while (zzj5 < i22) {
                        zzj5 = zzdq.zzm(bArr, zzj5, zzdpVar);
                        zzffVar.zze(zzdpVar.zzb);
                    }
                    if (zzj5 == i22) {
                        return zzj5;
                    }
                    throw zzew.zzf();
                }
                if (i14 == 0) {
                    zzff zzffVar2 = (zzff) zzeuVar;
                    int zzm = zzdq.zzm(bArr, i10, zzdpVar);
                    zzffVar2.zze(zzdpVar.zzb);
                    while (zzm < i11) {
                        int zzj6 = zzdq.zzj(bArr, zzm, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return zzm;
                        }
                        zzm = zzdq.zzm(bArr, zzj6, zzdpVar);
                        zzffVar2.zze(zzdpVar.zzb);
                    }
                    return zzm;
                }
                break;
            case 22:
            case 29:
            case 39:
            case 43:
                if (i14 == 2) {
                    return zzdq.zzf(bArr, i10, zzeuVar, zzdpVar);
                }
                if (i14 == 0) {
                    return zzdq.zzl(i12, bArr, i10, i11, zzeuVar, zzdpVar);
                }
                break;
            case 23:
            case 32:
            case 40:
            case 46:
                if (i14 == 2) {
                    zzff zzffVar3 = (zzff) zzeuVar;
                    int zzj7 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i23 = zzdpVar.zza + zzj7;
                    while (zzj7 < i23) {
                        zzffVar3.zze(zzdq.zzn(bArr, zzj7));
                        zzj7 += 8;
                    }
                    if (zzj7 == i23) {
                        return zzj7;
                    }
                    throw zzew.zzf();
                }
                if (i14 == 1) {
                    zzff zzffVar4 = (zzff) zzeuVar;
                    zzffVar4.zze(zzdq.zzn(bArr, i10));
                    int i24 = i10 + 8;
                    while (i24 < i11) {
                        int zzj8 = zzdq.zzj(bArr, i24, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return i24;
                        }
                        zzffVar4.zze(zzdq.zzn(bArr, zzj8));
                        i24 = zzj8 + 8;
                    }
                    return i24;
                }
                break;
            case 24:
            case 31:
            case 41:
            case 45:
                if (i14 == 2) {
                    zzer zzerVar = (zzer) zzeuVar;
                    int zzj9 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i25 = zzdpVar.zza + zzj9;
                    while (zzj9 < i25) {
                        zzerVar.zze(zzdq.zzb(bArr, zzj9));
                        zzj9 += 4;
                    }
                    if (zzj9 == i25) {
                        return zzj9;
                    }
                    throw zzew.zzf();
                }
                if (i14 == 5) {
                    zzer zzerVar2 = (zzer) zzeuVar;
                    zzerVar2.zze(zzdq.zzb(bArr, i10));
                    int i26 = i10 + 4;
                    while (i26 < i11) {
                        int zzj10 = zzdq.zzj(bArr, i26, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return i26;
                        }
                        zzerVar2.zze(zzdq.zzb(bArr, zzj10));
                        i26 = zzj10 + 4;
                    }
                    return i26;
                }
                break;
            case 25:
            case 42:
                if (i14 == 2) {
                    zzdr zzdrVar = (zzdr) zzeuVar;
                    int zzj11 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i27 = zzdpVar.zza + zzj11;
                    while (zzj11 < i27) {
                        zzj11 = zzdq.zzm(bArr, zzj11, zzdpVar);
                        zzdrVar.zze(zzdpVar.zzb != 0);
                    }
                    if (zzj11 == i27) {
                        return zzj11;
                    }
                    throw zzew.zzf();
                }
                if (i14 == 0) {
                    zzdr zzdrVar2 = (zzdr) zzeuVar;
                    int zzm2 = zzdq.zzm(bArr, i10, zzdpVar);
                    zzdrVar2.zze(zzdpVar.zzb != 0);
                    while (zzm2 < i11) {
                        int zzj12 = zzdq.zzj(bArr, zzm2, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return zzm2;
                        }
                        zzm2 = zzdq.zzm(bArr, zzj12, zzdpVar);
                        zzdrVar2.zze(zzdpVar.zzb != 0);
                    }
                    return zzm2;
                }
                break;
            case 26:
                if (i14 == 2) {
                    if ((j10 & 536870912) == 0) {
                        int zzj13 = zzdq.zzj(bArr, i10, zzdpVar);
                        int i28 = zzdpVar.zza;
                        if (i28 < 0) {
                            throw zzew.zzc();
                        }
                        if (i28 == 0) {
                            zzeuVar.add("");
                        } else {
                            zzeuVar.add(new String(bArr, zzj13, i28, zzev.zza));
                            zzj13 += i28;
                        }
                        while (zzj13 < i11) {
                            int zzj14 = zzdq.zzj(bArr, zzj13, zzdpVar);
                            if (i12 != zzdpVar.zza) {
                                return zzj13;
                            }
                            zzj13 = zzdq.zzj(bArr, zzj14, zzdpVar);
                            int i29 = zzdpVar.zza;
                            if (i29 < 0) {
                                throw zzew.zzc();
                            }
                            if (i29 == 0) {
                                zzeuVar.add("");
                            } else {
                                zzeuVar.add(new String(bArr, zzj13, i29, zzev.zza));
                                zzj13 += i29;
                            }
                        }
                        return zzj13;
                    }
                    int zzj15 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i30 = zzdpVar.zza;
                    if (i30 < 0) {
                        throw zzew.zzc();
                    }
                    if (i30 == 0) {
                        zzeuVar.add("");
                        i17 = zzj15;
                    } else {
                        i17 = zzj15 + i30;
                        if (!zzhd.zzd(bArr, zzj15, i17)) {
                            throw zzew.zzb();
                        }
                        zzeuVar.add(new String(bArr, zzj15, i30, zzev.zza));
                    }
                    while (i17 < i11) {
                        int zzj16 = zzdq.zzj(bArr, i17, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return i17;
                        }
                        i17 = zzdq.zzj(bArr, zzj16, zzdpVar);
                        int i31 = zzdpVar.zza;
                        if (i31 < 0) {
                            throw zzew.zzc();
                        }
                        if (i31 == 0) {
                            zzeuVar.add("");
                        } else {
                            int i32 = i17 + i31;
                            if (!zzhd.zzd(bArr, i17, i32)) {
                                throw zzew.zzb();
                            }
                            zzeuVar.add(new String(bArr, i17, i31, zzev.zza));
                            i17 = i32;
                        }
                    }
                    return i17;
                }
                break;
            case 27:
                if (i14 == 2) {
                    return zzdq.zze(zzy(i15), i12, bArr, i10, i11, zzeuVar, zzdpVar);
                }
                break;
            case 28:
                if (i14 == 2) {
                    int zzj17 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i33 = zzdpVar.zza;
                    if (i33 < 0) {
                        throw zzew.zzc();
                    }
                    if (i33 > bArr.length - zzj17) {
                        throw zzew.zzf();
                    }
                    if (i33 == 0) {
                        zzeuVar.add(zzeb.zzb);
                    } else {
                        zzeuVar.add(zzeb.zzk(bArr, zzj17, i33));
                        zzj17 += i33;
                    }
                    while (zzj17 < i11) {
                        int zzj18 = zzdq.zzj(bArr, zzj17, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return zzj17;
                        }
                        zzj17 = zzdq.zzj(bArr, zzj18, zzdpVar);
                        int i34 = zzdpVar.zza;
                        if (i34 < 0) {
                            throw zzew.zzc();
                        }
                        if (i34 > bArr.length - zzj17) {
                            throw zzew.zzf();
                        }
                        if (i34 == 0) {
                            zzeuVar.add(zzeb.zzb);
                        } else {
                            zzeuVar.add(zzeb.zzk(bArr, zzj17, i34));
                            zzj17 += i34;
                        }
                    }
                    return zzj17;
                }
                break;
            case 30:
            case 44:
                if (i14 == 2) {
                    zzl = zzdq.zzf(bArr, i10, zzeuVar, zzdpVar);
                } else if (i14 == 0) {
                    zzl = zzdq.zzl(i12, bArr, i10, i11, zzeuVar, zzdpVar);
                }
                zzeq zzeqVar = (zzeq) t10;
                zzgq zzgqVar = zzeqVar.zzc;
                if (zzgqVar == zzgq.zza()) {
                    zzgqVar = null;
                }
                Object zzd = zzgd.zzd(i13, zzeuVar, zzx(i15), zzgqVar, this.zzm);
                if (zzd == null) {
                    return zzl;
                }
                zzeqVar.zzc = (zzgq) zzd;
                return zzl;
            case 33:
            case 47:
                if (i14 == 2) {
                    zzer zzerVar3 = (zzer) zzeuVar;
                    int zzj19 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i35 = zzdpVar.zza + zzj19;
                    while (zzj19 < i35) {
                        zzj19 = zzdq.zzj(bArr, zzj19, zzdpVar);
                        zzerVar3.zze(zzee.zzb(zzdpVar.zza));
                    }
                    if (zzj19 == i35) {
                        return zzj19;
                    }
                    throw zzew.zzf();
                }
                if (i14 == 0) {
                    zzer zzerVar4 = (zzer) zzeuVar;
                    int zzj20 = zzdq.zzj(bArr, i10, zzdpVar);
                    zzerVar4.zze(zzee.zzb(zzdpVar.zza));
                    while (zzj20 < i11) {
                        int zzj21 = zzdq.zzj(bArr, zzj20, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return zzj20;
                        }
                        zzj20 = zzdq.zzj(bArr, zzj21, zzdpVar);
                        zzerVar4.zze(zzee.zzb(zzdpVar.zza));
                    }
                    return zzj20;
                }
                break;
            case 34:
            case 48:
                if (i14 == 2) {
                    zzff zzffVar5 = (zzff) zzeuVar;
                    int zzj22 = zzdq.zzj(bArr, i10, zzdpVar);
                    int i36 = zzdpVar.zza + zzj22;
                    while (zzj22 < i36) {
                        zzj22 = zzdq.zzm(bArr, zzj22, zzdpVar);
                        zzffVar5.zze(zzee.zzc(zzdpVar.zzb));
                    }
                    if (zzj22 == i36) {
                        return zzj22;
                    }
                    throw zzew.zzf();
                }
                if (i14 == 0) {
                    zzff zzffVar6 = (zzff) zzeuVar;
                    int zzm3 = zzdq.zzm(bArr, i10, zzdpVar);
                    zzffVar6.zze(zzee.zzc(zzdpVar.zzb));
                    while (zzm3 < i11) {
                        int zzj23 = zzdq.zzj(bArr, zzm3, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return zzm3;
                        }
                        zzm3 = zzdq.zzm(bArr, zzj23, zzdpVar);
                        zzffVar6.zze(zzee.zzc(zzdpVar.zzb));
                    }
                    return zzm3;
                }
                break;
            default:
                if (i14 == 3) {
                    zzgb zzy = zzy(i15);
                    int i37 = (i12 & (-8)) | 4;
                    int zzc = zzdq.zzc(zzy, bArr, i10, i11, i37, zzdpVar);
                    zzeuVar.add(zzdpVar.zzc);
                    while (zzc < i11) {
                        int zzj24 = zzdq.zzj(bArr, zzc, zzdpVar);
                        if (i12 != zzdpVar.zza) {
                            return zzc;
                        }
                        zzc = zzdq.zzc(zzy, bArr, zzj24, i11, i37, zzdpVar);
                        zzeuVar.add(zzdpVar.zzc);
                    }
                    return zzc;
                }
                break;
        }
        return i10;
    }

    private final int zzq(int i10) {
        if (i10 < this.zze || i10 > this.zzf) {
            return -1;
        }
        return zzt(i10, 0);
    }

    private final int zzr(int i10, int i11) {
        if (i10 < this.zze || i10 > this.zzf) {
            return -1;
        }
        return zzt(i10, i11);
    }

    private final int zzs(int i10) {
        return this.zzc[i10 + 2];
    }

    private final int zzt(int i10, int i11) {
        int length = (this.zzc.length / 3) - 1;
        while (i11 <= length) {
            int i12 = (length + i11) >>> 1;
            int i13 = i12 * 3;
            int i14 = this.zzc[i13];
            if (i10 == i14) {
                return i13;
            }
            if (i10 < i14) {
                length = i12 - 1;
            } else {
                i11 = i12 + 1;
            }
        }
        return -1;
    }

    private static int zzu(int i10) {
        return (i10 >>> 20) & Constants.MAX_HOST_LENGTH;
    }

    private final int zzv(int i10) {
        return this.zzc[i10 + 1];
    }

    private static <T> long zzw(T t10, long j10) {
        return ((Long) zzgz.zzf(t10, j10)).longValue();
    }

    private final zzet zzx(int i10) {
        int i11 = i10 / 3;
        return (zzet) this.zzd[i11 + i11 + 1];
    }

    private final zzgb zzy(int i10) {
        int i11 = i10 / 3;
        int i12 = i11 + i11;
        zzgb zzgbVar = (zzgb) this.zzd[i12];
        if (zzgbVar != null) {
            return zzgbVar;
        }
        zzgb<T> zzb2 = zzfy.zza().zzb((Class) this.zzd[i12 + 1]);
        this.zzd[i12] = zzb2;
        return zzb2;
    }

    private final Object zzz(int i10) {
        int i11 = i10 / 3;
        return this.zzd[i11 + i11];
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:4:0x001a. Please report as an issue. */
    @Override // com.google.android.gms.internal.auth.zzgb
    public final int zza(T t10) {
        int i10;
        int zzc;
        int length = this.zzc.length;
        int i11 = 0;
        for (int i12 = 0; i12 < length; i12 += 3) {
            int zzv = zzv(i12);
            int i13 = this.zzc[i12];
            long j10 = 1048575 & zzv;
            int i14 = 37;
            switch (zzu(zzv)) {
                case 0:
                    i10 = i11 * 53;
                    zzc = zzev.zzc(Double.doubleToLongBits(zzgz.zza(t10, j10)));
                    i11 = i10 + zzc;
                    break;
                case 1:
                    i10 = i11 * 53;
                    zzc = Float.floatToIntBits(zzgz.zzb(t10, j10));
                    i11 = i10 + zzc;
                    break;
                case 2:
                    i10 = i11 * 53;
                    zzc = zzev.zzc(zzgz.zzd(t10, j10));
                    i11 = i10 + zzc;
                    break;
                case 3:
                    i10 = i11 * 53;
                    zzc = zzev.zzc(zzgz.zzd(t10, j10));
                    i11 = i10 + zzc;
                    break;
                case 4:
                    i10 = i11 * 53;
                    zzc = zzgz.zzc(t10, j10);
                    i11 = i10 + zzc;
                    break;
                case 5:
                    i10 = i11 * 53;
                    zzc = zzev.zzc(zzgz.zzd(t10, j10));
                    i11 = i10 + zzc;
                    break;
                case 6:
                    i10 = i11 * 53;
                    zzc = zzgz.zzc(t10, j10);
                    i11 = i10 + zzc;
                    break;
                case 7:
                    i10 = i11 * 53;
                    zzc = zzev.zza(zzgz.zzt(t10, j10));
                    i11 = i10 + zzc;
                    break;
                case 8:
                    i10 = i11 * 53;
                    zzc = ((String) zzgz.zzf(t10, j10)).hashCode();
                    i11 = i10 + zzc;
                    break;
                case 9:
                    Object zzf = zzgz.zzf(t10, j10);
                    if (zzf != null) {
                        i14 = zzf.hashCode();
                    }
                    i11 = (i11 * 53) + i14;
                    break;
                case 10:
                    i10 = i11 * 53;
                    zzc = zzgz.zzf(t10, j10).hashCode();
                    i11 = i10 + zzc;
                    break;
                case 11:
                    i10 = i11 * 53;
                    zzc = zzgz.zzc(t10, j10);
                    i11 = i10 + zzc;
                    break;
                case 12:
                    i10 = i11 * 53;
                    zzc = zzgz.zzc(t10, j10);
                    i11 = i10 + zzc;
                    break;
                case 13:
                    i10 = i11 * 53;
                    zzc = zzgz.zzc(t10, j10);
                    i11 = i10 + zzc;
                    break;
                case 14:
                    i10 = i11 * 53;
                    zzc = zzev.zzc(zzgz.zzd(t10, j10));
                    i11 = i10 + zzc;
                    break;
                case 15:
                    i10 = i11 * 53;
                    zzc = zzgz.zzc(t10, j10);
                    i11 = i10 + zzc;
                    break;
                case 16:
                    i10 = i11 * 53;
                    zzc = zzev.zzc(zzgz.zzd(t10, j10));
                    i11 = i10 + zzc;
                    break;
                case 17:
                    Object zzf2 = zzgz.zzf(t10, j10);
                    if (zzf2 != null) {
                        i14 = zzf2.hashCode();
                    }
                    i11 = (i11 * 53) + i14;
                    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;
                    zzc = zzgz.zzf(t10, j10).hashCode();
                    i11 = i10 + zzc;
                    break;
                case 50:
                    i10 = i11 * 53;
                    zzc = zzgz.zzf(t10, j10).hashCode();
                    i11 = i10 + zzc;
                    break;
                case 51:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzev.zzc(Double.doubleToLongBits(((Double) zzgz.zzf(t10, j10)).doubleValue()));
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 52:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = Float.floatToIntBits(((Float) zzgz.zzf(t10, j10)).floatValue());
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 53:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzev.zzc(zzw(t10, j10));
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 54:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzev.zzc(zzw(t10, j10));
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 55:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzl(t10, j10);
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 56:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzev.zzc(zzw(t10, j10));
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 57:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzl(t10, j10);
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 58:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzev.zza(((Boolean) zzgz.zzf(t10, j10)).booleanValue());
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 59:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = ((String) zzgz.zzf(t10, j10)).hashCode();
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 60:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzgz.zzf(t10, j10).hashCode();
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 61:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzgz.zzf(t10, j10).hashCode();
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 62:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzl(t10, j10);
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 63:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzl(t10, j10);
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 64:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzl(t10, j10);
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 65:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzev.zzc(zzw(t10, j10));
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 66:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzl(t10, j10);
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 67:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzev.zzc(zzw(t10, j10));
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
                case 68:
                    if (zzJ(t10, i13, i12)) {
                        i10 = i11 * 53;
                        zzc = zzgz.zzf(t10, j10).hashCode();
                        i11 = i10 + zzc;
                        break;
                    } else {
                        break;
                    }
            }
        }
        return (i11 * 53) + this.zzm.zza(t10).hashCode();
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* JADX WARN: Code restructure failed: missing block: B:177:0x0326, code lost:
    
        if (r0 != r2) goto L111;
     */
    /* JADX WARN: Code restructure failed: missing block: B:178:0x0328, code lost:
    
        r15 = r28;
        r14 = r29;
        r12 = r30;
        r13 = r32;
        r11 = r33;
        r9 = r34;
        r1 = r17;
        r2 = r19;
        r3 = r20;
        r5 = r22;
        r6 = r24;
     */
    /* JADX WARN: Code restructure failed: missing block: B:179:0x0340, code lost:
    
        r7 = r33;
        r2 = r0;
     */
    /* JADX WARN: Code restructure failed: missing block: B:185:0x0368, code lost:
    
        if (r0 != r15) goto L111;
     */
    /* JADX WARN: Code restructure failed: missing block: B:187:0x038c, code lost:
    
        if (r0 != r15) goto L111;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:19:0x008a. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final int zzb(T t10, byte[] bArr, int i10, int i11, int i12, zzdp zzdpVar) throws IOException {
        Unsafe unsafe;
        int i13;
        T t11;
        int i14;
        int i15;
        int i16;
        int i17;
        int i18;
        int i19;
        int i20;
        int i21;
        int i22;
        int i23;
        int i24;
        int i25;
        int i26;
        zzft<T> zzftVar = this;
        T t12 = t10;
        byte[] bArr2 = bArr;
        int i27 = i11;
        int i28 = i12;
        zzdp zzdpVar2 = zzdpVar;
        Unsafe unsafe2 = zzb;
        int i29 = i10;
        int i30 = 0;
        int i31 = 0;
        int i32 = 0;
        int i33 = -1;
        int i34 = 1048575;
        while (true) {
            if (i29 < i27) {
                int i35 = i29 + 1;
                byte b10 = bArr2[i29];
                if (b10 < 0) {
                    int zzk = zzdq.zzk(b10, bArr2, i35, zzdpVar2);
                    i14 = zzdpVar2.zza;
                    i35 = zzk;
                } else {
                    i14 = b10;
                }
                int i36 = i14 >>> 3;
                int i37 = i14 & 7;
                int zzr = i36 > i33 ? zzftVar.zzr(i36, i31 / 3) : zzftVar.zzq(i36);
                if (zzr == -1) {
                    i15 = i36;
                    i16 = i35;
                    i17 = i14;
                    i18 = i32;
                    unsafe = unsafe2;
                    i13 = i28;
                    i19 = 0;
                } else {
                    int i38 = zzftVar.zzc[zzr + 1];
                    int zzu = zzu(i38);
                    i15 = i36;
                    int i39 = i14;
                    long j10 = i38 & 1048575;
                    if (zzu <= 17) {
                        int i40 = zzftVar.zzc[zzr + 2];
                        int i41 = 1 << (i40 >>> 20);
                        int i42 = i40 & 1048575;
                        if (i42 != i34) {
                            if (i34 != 1048575) {
                                unsafe2.putInt(t12, i34, i32);
                            }
                            i32 = unsafe2.getInt(t12, i42);
                            i23 = i42;
                        } else {
                            i23 = i34;
                        }
                        int i43 = i32;
                        switch (zzu) {
                            case 0:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                i16 = i35;
                                if (i37 == 1) {
                                    zzgz.zzl(t12, j10, Double.longBitsToDouble(zzdq.zzn(bArr2, i16)));
                                    i29 = i16 + 8;
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 1:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                i16 = i35;
                                if (i37 == 5) {
                                    zzgz.zzm(t12, j10, Float.intBitsToFloat(zzdq.zzb(bArr2, i16)));
                                    i29 = i16 + 4;
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 2:
                            case 3:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                i16 = i35;
                                if (i37 == 0) {
                                    int zzm = zzdq.zzm(bArr2, i16, zzdpVar2);
                                    unsafe2.putLong(t10, j10, zzdpVar2.zzb);
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i29 = zzm;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 4:
                            case 11:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                i16 = i35;
                                if (i37 == 0) {
                                    i29 = zzdq.zzj(bArr2, i16, zzdpVar2);
                                    unsafe2.putInt(t12, j10, zzdpVar2.zza);
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 5:
                            case 14:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                if (i37 == 1) {
                                    unsafe2.putLong(t10, j10, zzdq.zzn(bArr2, i35));
                                    i29 = i35 + 8;
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i16 = i35;
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 6:
                            case 13:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                if (i37 == 5) {
                                    unsafe2.putInt(t12, j10, zzdq.zzb(bArr2, i35));
                                    i29 = i35 + 4;
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i16 = i35;
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 7:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                if (i37 == 0) {
                                    i29 = zzdq.zzm(bArr2, i35, zzdpVar2);
                                    zzgz.zzk(t12, j10, zzdpVar2.zzb != 0);
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i16 = i35;
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 8:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                if (i37 == 2) {
                                    i29 = (i38 & 536870912) == 0 ? zzdq.zzg(bArr2, i35, zzdpVar2) : zzdq.zzh(bArr2, i35, zzdpVar2);
                                    unsafe2.putObject(t12, j10, zzdpVar2.zzc);
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i16 = i35;
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 9:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                if (i37 == 2) {
                                    i29 = zzdq.zzd(zzftVar.zzy(i24), bArr2, i35, i27, zzdpVar2);
                                    if ((i43 & i41) == 0) {
                                        unsafe2.putObject(t12, j10, zzdpVar2.zzc);
                                    } else {
                                        unsafe2.putObject(t12, j10, zzev.zzg(unsafe2.getObject(t12, j10), zzdpVar2.zzc));
                                    }
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i16 = i35;
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 10:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                if (i37 == 2) {
                                    i29 = zzdq.zza(bArr2, i35, zzdpVar2);
                                    unsafe2.putObject(t12, j10, zzdpVar2.zzc);
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i16 = i35;
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 12:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                if (i37 != 0) {
                                    i16 = i35;
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                } else {
                                    i29 = zzdq.zzj(bArr2, i35, zzdpVar2);
                                    int i44 = zzdpVar2.zza;
                                    zzet zzx = zzftVar.zzx(i24);
                                    if (zzx == null || zzx.zza()) {
                                        unsafe2.putInt(t12, j10, i44);
                                        i32 = i43 | i41;
                                        i34 = i25;
                                        i31 = i24;
                                        i30 = i26;
                                        i33 = i15;
                                        i28 = i12;
                                        break;
                                    } else {
                                        zzc(t10).zzf(i26, Long.valueOf(i44));
                                        i32 = i43;
                                        i31 = i24;
                                        i30 = i26;
                                        i33 = i15;
                                        i34 = i25;
                                        i28 = i12;
                                    }
                                }
                                break;
                            case 15:
                                bArr2 = bArr;
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                if (i37 == 0) {
                                    i29 = zzdq.zzj(bArr2, i35, zzdpVar2);
                                    unsafe2.putInt(t12, j10, zzee.zzb(zzdpVar2.zza));
                                    i32 = i43 | i41;
                                    i34 = i25;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i16 = i35;
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            case 16:
                                if (i37 == 0) {
                                    bArr2 = bArr;
                                    int zzm2 = zzdq.zzm(bArr2, i35, zzdpVar2);
                                    int i45 = i23;
                                    i26 = i39;
                                    unsafe2.putLong(t10, j10, zzee.zzc(zzdpVar2.zzb));
                                    i32 = i43 | i41;
                                    i34 = i45;
                                    i29 = zzm2;
                                    i31 = zzr;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i25 = i23;
                                    i26 = i39;
                                    i24 = zzr;
                                    i16 = i35;
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                            default:
                                i24 = zzr;
                                i25 = i23;
                                i26 = i39;
                                i16 = i35;
                                if (i37 == 3) {
                                    i29 = zzdq.zzc(zzftVar.zzy(i24), bArr, i16, i11, (i15 << 3) | 4, zzdpVar);
                                    if ((i43 & i41) == 0) {
                                        unsafe2.putObject(t12, j10, zzdpVar2.zzc);
                                    } else {
                                        unsafe2.putObject(t12, j10, zzev.zzg(unsafe2.getObject(t12, j10), zzdpVar2.zzc));
                                    }
                                    i32 = i43 | i41;
                                    bArr2 = bArr;
                                    i34 = i25;
                                    i27 = i11;
                                    i31 = i24;
                                    i30 = i26;
                                    i33 = i15;
                                    i28 = i12;
                                    break;
                                } else {
                                    i18 = i43;
                                    i19 = i24;
                                    unsafe = unsafe2;
                                    i17 = i26;
                                    i34 = i25;
                                    i13 = i12;
                                    break;
                                }
                        }
                    } else {
                        int i46 = zzr;
                        int i47 = i35;
                        if (zzu != 27) {
                            i19 = i46;
                            i18 = i32;
                            i20 = i34;
                            if (zzu <= 49) {
                                unsafe = unsafe2;
                                i22 = i39;
                                i29 = zzp(t10, bArr, i47, i11, i39, i15, i37, i19, i38, zzu, j10, zzdpVar);
                            } else {
                                i21 = i47;
                                unsafe = unsafe2;
                                i22 = i39;
                                if (zzu != 50) {
                                    i29 = zzn(t10, bArr, i21, i11, i22, i15, i37, i38, zzu, j10, i19, zzdpVar);
                                } else if (i37 == 2) {
                                    i29 = zzm(t10, bArr, i21, i11, i19, j10, zzdpVar);
                                }
                            }
                        } else if (i37 == 2) {
                            zzeu zzeuVar = (zzeu) unsafe2.getObject(t12, j10);
                            if (!zzeuVar.zzc()) {
                                int size = zzeuVar.size();
                                zzeuVar = zzeuVar.zzd(size == 0 ? 10 : size + size);
                                unsafe2.putObject(t12, j10, zzeuVar);
                            }
                            i30 = i39;
                            i29 = zzdq.zze(zzftVar.zzy(i46), i30, bArr, i47, i11, zzeuVar, zzdpVar);
                            bArr2 = bArr;
                            i27 = i11;
                            i33 = i15;
                            i31 = i46;
                            i32 = i32;
                            i34 = i34;
                            i28 = i12;
                        } else {
                            i19 = i46;
                            i18 = i32;
                            i20 = i34;
                            i21 = i47;
                            unsafe = unsafe2;
                            i22 = i39;
                        }
                        i13 = i12;
                        i16 = i21;
                        i17 = i22;
                        i34 = i20;
                    }
                }
                if (i17 != i13 || i13 == 0) {
                    i29 = zzdq.zzi(i17, bArr, i16, i11, zzc(t10), zzdpVar);
                    zzftVar = this;
                    t12 = t10;
                    bArr2 = bArr;
                    i27 = i11;
                    zzdpVar2 = zzdpVar;
                    i28 = i13;
                    i30 = i17;
                    i33 = i15;
                    i31 = i19;
                    i32 = i18;
                    unsafe2 = unsafe;
                } else {
                    i29 = i16;
                    i30 = i17;
                    i32 = i18;
                }
            } else {
                unsafe = unsafe2;
                i13 = i28;
            }
        }
        if (i34 != 1048575) {
            long j11 = i34;
            t11 = t10;
            unsafe.putInt(t11, j11, i32);
        } else {
            t11 = t10;
        }
        for (int i48 = this.zzj; i48 < this.zzk; i48++) {
            int i49 = this.zzi[i48];
            int i50 = this.zzc[i49];
            Object zzf = zzgz.zzf(t11, zzv(i49) & 1048575);
            if (zzf != null && zzx(i49) != null) {
                throw null;
            }
        }
        if (i13 == 0) {
            if (i29 != i11) {
                throw zzew.zzd();
            }
        } else if (i29 > i11 || i30 != i13) {
            throw zzew.zzd();
        }
        return i29;
    }

    @Override // com.google.android.gms.internal.auth.zzgb
    public final T zzd() {
        return (T) ((zzeq) this.zzg).zzj(4, null, null);
    }

    @Override // com.google.android.gms.internal.auth.zzgb
    public final void zze(T t10) {
        int i10;
        int i11 = this.zzj;
        while (true) {
            i10 = this.zzk;
            if (i11 >= i10) {
                break;
            }
            long zzv = zzv(this.zzi[i11]) & 1048575;
            Object zzf = zzgz.zzf(t10, zzv);
            if (zzf != null) {
                ((zzfk) zzf).zzc();
                zzgz.zzp(t10, zzv, zzf);
            }
            i11++;
        }
        int length = this.zzi.length;
        while (i10 < length) {
            this.zzl.zza(t10, this.zzi[i10]);
            i10++;
        }
        this.zzm.zze(t10);
    }

    @Override // com.google.android.gms.internal.auth.zzgb
    public final void zzf(T t10, T t11) {
        t11.getClass();
        for (int i10 = 0; i10 < this.zzc.length; i10 += 3) {
            int zzv = zzv(i10);
            long j10 = 1048575 & zzv;
            int i11 = this.zzc[i10];
            switch (zzu(zzv)) {
                case 0:
                    if (zzG(t11, i10)) {
                        zzgz.zzl(t10, j10, zzgz.zza(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 1:
                    if (zzG(t11, i10)) {
                        zzgz.zzm(t10, j10, zzgz.zzb(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 2:
                    if (zzG(t11, i10)) {
                        zzgz.zzo(t10, j10, zzgz.zzd(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 3:
                    if (zzG(t11, i10)) {
                        zzgz.zzo(t10, j10, zzgz.zzd(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 4:
                    if (zzG(t11, i10)) {
                        zzgz.zzn(t10, j10, zzgz.zzc(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 5:
                    if (zzG(t11, i10)) {
                        zzgz.zzo(t10, j10, zzgz.zzd(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 6:
                    if (zzG(t11, i10)) {
                        zzgz.zzn(t10, j10, zzgz.zzc(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 7:
                    if (zzG(t11, i10)) {
                        zzgz.zzk(t10, j10, zzgz.zzt(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 8:
                    if (zzG(t11, i10)) {
                        zzgz.zzp(t10, j10, zzgz.zzf(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 9:
                    zzB(t10, t11, i10);
                    break;
                case 10:
                    if (zzG(t11, i10)) {
                        zzgz.zzp(t10, j10, zzgz.zzf(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 11:
                    if (zzG(t11, i10)) {
                        zzgz.zzn(t10, j10, zzgz.zzc(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 12:
                    if (zzG(t11, i10)) {
                        zzgz.zzn(t10, j10, zzgz.zzc(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 13:
                    if (zzG(t11, i10)) {
                        zzgz.zzn(t10, j10, zzgz.zzc(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 14:
                    if (zzG(t11, i10)) {
                        zzgz.zzo(t10, j10, zzgz.zzd(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 15:
                    if (zzG(t11, i10)) {
                        zzgz.zzn(t10, j10, zzgz.zzc(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 16:
                    if (zzG(t11, i10)) {
                        zzgz.zzo(t10, j10, zzgz.zzd(t11, j10));
                        zzD(t10, i10);
                        break;
                    } else {
                        break;
                    }
                case 17:
                    zzB(t10, t11, i10);
                    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:
                    this.zzl.zzb(t10, t11, j10);
                    break;
                case 50:
                    zzgd.zzi(this.zzp, t10, t11, j10);
                    break;
                case 51:
                case 52:
                case 53:
                case 54:
                case 55:
                case 56:
                case 57:
                case 58:
                case 59:
                    if (zzJ(t11, i11, i10)) {
                        zzgz.zzp(t10, j10, zzgz.zzf(t11, j10));
                        zzE(t10, i11, i10);
                        break;
                    } else {
                        break;
                    }
                case 60:
                    zzC(t10, t11, i10);
                    break;
                case 61:
                case 62:
                case 63:
                case 64:
                case 65:
                case 66:
                case 67:
                    if (zzJ(t11, i11, i10)) {
                        zzgz.zzp(t10, j10, zzgz.zzf(t11, j10));
                        zzE(t10, i11, i10);
                        break;
                    } else {
                        break;
                    }
                case 68:
                    zzC(t10, t11, i10);
                    break;
            }
        }
        zzgd.zzf(this.zzm, t10, t11);
    }

    @Override // com.google.android.gms.internal.auth.zzgb
    public final void zzg(T t10, byte[] bArr, int i10, int i11, zzdp zzdpVar) throws IOException {
        if (this.zzh) {
            zzo(t10, bArr, i10, i11, zzdpVar);
        } else {
            zzb(t10, bArr, i10, i11, 0, zzdpVar);
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:4:0x0015. Please report as an issue. */
    /* JADX WARN: Removed duplicated region for block: B:17:0x01c2 A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:18:0x01c3 A[SYNTHETIC] */
    @Override // com.google.android.gms.internal.auth.zzgb
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean zzh(T t10, T t11) {
        int i10;
        boolean zzh;
        int length = this.zzc.length;
        for (0; i10 < length; i10 + 3) {
            int zzv = zzv(i10);
            long j10 = zzv & 1048575;
            switch (zzu(zzv)) {
                case 0:
                    i10 = (zzF(t10, t11, i10) && Double.doubleToLongBits(zzgz.zza(t10, j10)) == Double.doubleToLongBits(zzgz.zza(t11, j10))) ? i10 + 3 : 0;
                    return false;
                case 1:
                    if (zzF(t10, t11, i10) && Float.floatToIntBits(zzgz.zzb(t10, j10)) == Float.floatToIntBits(zzgz.zzb(t11, j10))) {
                    }
                    return false;
                case 2:
                    if (zzF(t10, t11, i10) && zzgz.zzd(t10, j10) == zzgz.zzd(t11, j10)) {
                    }
                    return false;
                case 3:
                    if (zzF(t10, t11, i10) && zzgz.zzd(t10, j10) == zzgz.zzd(t11, j10)) {
                    }
                    return false;
                case 4:
                    if (zzF(t10, t11, i10) && zzgz.zzc(t10, j10) == zzgz.zzc(t11, j10)) {
                    }
                    return false;
                case 5:
                    if (zzF(t10, t11, i10) && zzgz.zzd(t10, j10) == zzgz.zzd(t11, j10)) {
                    }
                    return false;
                case 6:
                    if (zzF(t10, t11, i10) && zzgz.zzc(t10, j10) == zzgz.zzc(t11, j10)) {
                    }
                    return false;
                case 7:
                    if (zzF(t10, t11, i10) && zzgz.zzt(t10, j10) == zzgz.zzt(t11, j10)) {
                    }
                    return false;
                case 8:
                    if (zzF(t10, t11, i10) && zzgd.zzh(zzgz.zzf(t10, j10), zzgz.zzf(t11, j10))) {
                    }
                    return false;
                case 9:
                    if (zzF(t10, t11, i10) && zzgd.zzh(zzgz.zzf(t10, j10), zzgz.zzf(t11, j10))) {
                    }
                    return false;
                case 10:
                    if (zzF(t10, t11, i10) && zzgd.zzh(zzgz.zzf(t10, j10), zzgz.zzf(t11, j10))) {
                    }
                    return false;
                case 11:
                    if (zzF(t10, t11, i10) && zzgz.zzc(t10, j10) == zzgz.zzc(t11, j10)) {
                    }
                    return false;
                case 12:
                    if (zzF(t10, t11, i10) && zzgz.zzc(t10, j10) == zzgz.zzc(t11, j10)) {
                    }
                    return false;
                case 13:
                    if (zzF(t10, t11, i10) && zzgz.zzc(t10, j10) == zzgz.zzc(t11, j10)) {
                    }
                    return false;
                case 14:
                    if (zzF(t10, t11, i10) && zzgz.zzd(t10, j10) == zzgz.zzd(t11, j10)) {
                    }
                    return false;
                case 15:
                    if (zzF(t10, t11, i10) && zzgz.zzc(t10, j10) == zzgz.zzc(t11, j10)) {
                    }
                    return false;
                case 16:
                    if (zzF(t10, t11, i10) && zzgz.zzd(t10, j10) == zzgz.zzd(t11, j10)) {
                    }
                    return false;
                case 17:
                    if (zzF(t10, t11, i10) && zzgd.zzh(zzgz.zzf(t10, j10), zzgz.zzf(t11, j10))) {
                    }
                    return false;
                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:
                    zzh = zzgd.zzh(zzgz.zzf(t10, j10), zzgz.zzf(t11, j10));
                    if (zzh) {
                        return false;
                    }
                case 50:
                    zzh = zzgd.zzh(zzgz.zzf(t10, j10), zzgz.zzf(t11, j10));
                    if (zzh) {
                    }
                    break;
                case 51:
                case 52:
                case 53:
                case 54:
                case 55:
                case 56:
                case 57:
                case 58:
                case 59:
                case 60:
                case 61:
                case 62:
                case 63:
                case 64:
                case 65:
                case 66:
                case 67:
                case 68:
                    long zzs = zzs(i10) & 1048575;
                    if (zzgz.zzc(t10, zzs) == zzgz.zzc(t11, zzs) && zzgd.zzh(zzgz.zzf(t10, j10), zzgz.zzf(t11, j10))) {
                    }
                    return false;
                default:
            }
        }
        return this.zzm.zza(t10).equals(this.zzm.zza(t11));
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // com.google.android.gms.internal.auth.zzgb
    public final boolean zzi(T t10) {
        int i10;
        int i11;
        int i12 = 1048575;
        int i13 = 0;
        int i14 = 0;
        while (i14 < this.zzj) {
            int i15 = this.zzi[i14];
            int i16 = this.zzc[i15];
            int zzv = zzv(i15);
            int i17 = this.zzc[i15 + 2];
            int i18 = i17 & 1048575;
            int i19 = 1 << (i17 >>> 20);
            if (i18 != i12) {
                if (i18 != 1048575) {
                    i13 = zzb.getInt(t10, i18);
                }
                i11 = i13;
                i10 = i18;
            } else {
                i10 = i12;
                i11 = i13;
            }
            if ((268435456 & zzv) != 0 && !zzH(t10, i15, i10, i11, i19)) {
                return false;
            }
            int zzu = zzu(zzv);
            if (zzu != 9 && zzu != 17) {
                if (zzu != 27) {
                    if (zzu == 60 || zzu == 68) {
                        if (zzJ(t10, i16, i15) && !zzI(t10, zzv, zzy(i15))) {
                            return false;
                        }
                    } else if (zzu != 49) {
                        if (zzu == 50 && !((zzfk) zzgz.zzf(t10, zzv & 1048575)).isEmpty()) {
                            throw null;
                        }
                    }
                }
                List list = (List) zzgz.zzf(t10, zzv & 1048575);
                if (list.isEmpty()) {
                    continue;
                } else {
                    zzgb zzy = zzy(i15);
                    for (int i20 = 0; i20 < list.size(); i20++) {
                        if (!zzy.zzi(list.get(i20))) {
                            return false;
                        }
                    }
                }
            } else if (zzH(t10, i15, i10, i11, i19) && !zzI(t10, zzv, zzy(i15))) {
                return false;
            }
            i14++;
            i12 = i10;
            i13 = i11;
        }
        return true;
    }
}
