package com.google.android.gms.internal.p002firebaseauthapi; import net.sf.scuba.smartcards.ISO7816; /* loaded from: classes2.dex */ final class zzaga extends zzafz { @Override // com.google.android.gms.internal.p002firebaseauthapi.zzafz final int zza(int i, byte[] bArr, int i2, int i3) { while (i2 < i3 && bArr[i2] >= 0) { i2++; } if (i2 < i3) { while (i2 < i3) { int i4 = i2 + 1; byte b = bArr[i2]; if (b < 0) { if (b < -32) { if (i4 >= i3) { return b; } if (b >= -62) { i2 += 2; if (bArr[i4] > -65) { } } } else if (b < -16) { if (i4 < i3 - 1) { byte b2 = bArr[i4]; if (b2 <= -65 && ((b != -32 || b2 >= -96) && (b != -19 || b2 < -96))) { i4 = i2 + 3; if (bArr[i2 + 2] > -65) { } } } else { return zzagc.zza(bArr, i4, i3); } } else if (i4 < i3 - 2) { byte b3 = bArr[i4]; if (b3 <= -65 && (((b << 28) + (b3 + ISO7816.INS_MANAGE_CHANNEL)) >> 30) == 0 && bArr[i2 + 2] <= -65) { i4 = i2 + 4; if (bArr[i2 + 3] > -65) { } } } else { return zzagc.zza(bArr, i4, i3); } return -1; } i2 = i4; } } return 0; } }