what-the-bank/sources/o/qHg.java

53 lines
1.7 KiB
Java

package o;
import java.io.IOException;
/* loaded from: classes.dex */
public final class qHg {
public static void e(shM shm, long j, yXE<?> yxe, ExA exA) {
while (true) {
if (j != -1) {
try {
if (shm.c >= j) {
return;
}
} catch (IOException e) {
String message = e.getMessage();
T t = yxe.d;
BrP.b(new Object[]{t, message}, -1786863991, 1786863992, System.identityHashCode(t));
return;
}
}
long f = shm.f();
String str = new String(shm.a(4));
boolean z = f == 1;
if (z) {
f = shm.g();
}
long j2 = f;
if (j2 > 2147483647L) {
T t2 = yxe.d;
BrP.b(new Object[]{t2, "Box size too large."}, -1786863991, 1786863992, System.identityHashCode(t2));
return;
}
if (j2 >= 8) {
if (yxe.c(str)) {
e(shm, (shm.c + j2) - 8, yxe.e(str, j2, exA), exA);
} else if (yxe.e(str)) {
yxe = yxe.c(str, shm.a(((int) j2) - 8), j2, exA);
} else if (!z) {
shm.b(j2 - 8);
} else if (j2 < 16) {
return;
} else {
shm.b(j2 - 16);
}
} else {
T t3 = yxe.d;
BrP.b(new Object[]{t3, "Box size too small."}, -1786863991, 1786863992, System.identityHashCode(t3));
return;
}
}
}
}