153 lines
5.1 KiB
Java
153 lines
5.1 KiB
Java
|
package com.google.android.gms.internal.firebase_ml;
|
||
|
|
||
|
import net.sf.scuba.smartcards.ISO7816;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
final class zzxh extends zzxg {
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzxg
|
||
|
final int zzb(int i, byte[] bArr, int i2, int i3) {
|
||
|
int zzg;
|
||
|
int zzg2;
|
||
|
while (i2 < i3 && bArr[i2] >= 0) {
|
||
|
i2++;
|
||
|
}
|
||
|
if (i2 >= i3) {
|
||
|
return 0;
|
||
|
}
|
||
|
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) {
|
||
|
}
|
||
|
}
|
||
|
return -1;
|
||
|
}
|
||
|
if (b >= -16) {
|
||
|
if (i4 < i3 - 2) {
|
||
|
byte b2 = bArr[i4];
|
||
|
if (b2 <= -65 && (((b << 28) + (b2 + ISO7816.INS_MANAGE_CHANNEL)) >> 30) == 0 && bArr[i2 + 2] <= -65) {
|
||
|
i4 = i2 + 4;
|
||
|
if (bArr[i2 + 3] > -65) {
|
||
|
}
|
||
|
}
|
||
|
return -1;
|
||
|
}
|
||
|
zzg = zzxe.zzg(bArr, i4, i3);
|
||
|
return zzg;
|
||
|
}
|
||
|
if (i4 < i3 - 1) {
|
||
|
byte b3 = bArr[i4];
|
||
|
if (b3 <= -65 && ((b != -32 || b3 >= -96) && (b != -19 || b3 < -96))) {
|
||
|
i4 = i2 + 3;
|
||
|
if (bArr[i2 + 2] > -65) {
|
||
|
}
|
||
|
}
|
||
|
return -1;
|
||
|
}
|
||
|
zzg2 = zzxe.zzg(bArr, i4, i3);
|
||
|
return zzg2;
|
||
|
}
|
||
|
i2 = i4;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzxg
|
||
|
public final String zzh(byte[] bArr, int i, int i2) throws zzuo {
|
||
|
boolean zze;
|
||
|
boolean zze2;
|
||
|
boolean zzf;
|
||
|
boolean zzg;
|
||
|
boolean zze3;
|
||
|
if ((i | i2 | ((bArr.length - i) - i2)) < 0) {
|
||
|
throw new ArrayIndexOutOfBoundsException(String.format("buffer length=%d, index=%d, size=%d", Integer.valueOf(bArr.length), Integer.valueOf(i), Integer.valueOf(i2)));
|
||
|
}
|
||
|
int i3 = i + i2;
|
||
|
char[] cArr = new char[i2];
|
||
|
int i4 = 0;
|
||
|
while (i < i3) {
|
||
|
byte b = bArr[i];
|
||
|
zze3 = zzxf.zze(b);
|
||
|
if (!zze3) {
|
||
|
break;
|
||
|
}
|
||
|
i++;
|
||
|
zzxf.zza(b, cArr, i4);
|
||
|
i4++;
|
||
|
}
|
||
|
int i5 = i4;
|
||
|
while (i < i3) {
|
||
|
int i6 = i + 1;
|
||
|
byte b2 = bArr[i];
|
||
|
zze = zzxf.zze(b2);
|
||
|
if (zze) {
|
||
|
zzxf.zza(b2, cArr, i5);
|
||
|
i5++;
|
||
|
i = i6;
|
||
|
while (i < i3) {
|
||
|
byte b3 = bArr[i];
|
||
|
zze2 = zzxf.zze(b3);
|
||
|
if (zze2) {
|
||
|
i++;
|
||
|
zzxf.zza(b3, cArr, i5);
|
||
|
i5++;
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
zzf = zzxf.zzf(b2);
|
||
|
if (!zzf) {
|
||
|
zzg = zzxf.zzg(b2);
|
||
|
if (zzg) {
|
||
|
if (i6 < i3 - 1) {
|
||
|
zzxf.zza(b2, bArr[i6], bArr[i + 2], cArr, i5);
|
||
|
i5++;
|
||
|
i += 3;
|
||
|
} else {
|
||
|
throw zzuo.zzrr();
|
||
|
}
|
||
|
} else if (i6 < i3 - 2) {
|
||
|
zzxf.zza(b2, bArr[i6], bArr[i + 2], bArr[i + 3], cArr, i5);
|
||
|
i5 += 2;
|
||
|
i += 4;
|
||
|
} else {
|
||
|
throw zzuo.zzrr();
|
||
|
}
|
||
|
} else if (i6 < i3) {
|
||
|
i += 2;
|
||
|
zzxf.zza(b2, bArr[i6], cArr, i5);
|
||
|
i5++;
|
||
|
} else {
|
||
|
throw zzuo.zzrr();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return new String(cArr, 0, i5);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x001d, code lost:
|
||
|
|
||
|
return r10 + r0;
|
||
|
*/
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzxg
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public final int zzb(java.lang.CharSequence r8, byte[] r9, int r10, int r11) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 257
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.firebase_ml.zzxh.zzb(java.lang.CharSequence, byte[], int, int):int");
|
||
|
}
|
||
|
}
|