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

121 lines
3.2 KiB
Java

package o;
import io.flutter.embedding.android.KeyboardMap;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
/* renamed from: o.upH, reason: case insensitive filesystem */
/* loaded from: classes.dex */
final class C17213upH {
/* renamed from: o.upH$RVV */
/* loaded from: classes.dex */
interface RVV {
long a();
int b() throws IOException;
void c(int i) throws IOException;
long d() throws IOException;
int e() throws IOException;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static C15166giu e(ByteBuffer byteBuffer) throws IOException {
long j;
ByteBuffer duplicate = byteBuffer.duplicate();
Sts sts = new Sts(duplicate);
sts.c(4);
int b = sts.b();
if (b > 100) {
throw new IOException("Cannot read metadata.");
}
sts.c(6);
int i = 0;
while (true) {
if (i >= b) {
j = -1;
break;
}
int e = sts.e();
sts.c(4);
j = sts.d();
sts.c(4);
if (1835365473 == e) {
break;
}
i++;
}
if (j != -1) {
sts.c((int) (j - sts.a()));
sts.c(12);
long d = sts.d();
for (int i2 = 0; i2 < d; i2++) {
int e2 = sts.e();
long d2 = sts.d();
long d3 = sts.d();
if (1164798569 == e2 || 1701669481 == e2) {
duplicate.position((int) new IeS(d2 + j, d3).d);
C15166giu c15166giu = new C15166giu();
duplicate.order(ByteOrder.LITTLE_ENDIAN);
c15166giu.a(duplicate.getInt(duplicate.position()) + duplicate.position(), duplicate);
return c15166giu;
}
}
}
throw new IOException("Cannot read metadata.");
}
/* renamed from: o.upH$IeS */
/* loaded from: classes.dex */
static class IeS {
private final long a;
final long d;
IeS(long j, long j2) {
this.d = j;
this.a = j2;
}
}
/* renamed from: o.upH$Sts */
/* loaded from: classes.dex */
static class Sts implements RVV {
private final ByteBuffer a;
Sts(ByteBuffer byteBuffer) {
this.a = byteBuffer;
byteBuffer.order(ByteOrder.BIG_ENDIAN);
}
@Override // o.C17213upH.RVV
public final int b() throws IOException {
return this.a.getShort() & 65535;
}
@Override // o.C17213upH.RVV
public final long d() throws IOException {
return this.a.getInt() & KeyboardMap.kValueMask;
}
@Override // o.C17213upH.RVV
public final int e() throws IOException {
return this.a.getInt();
}
@Override // o.C17213upH.RVV
public final void c(int i) throws IOException {
ByteBuffer byteBuffer = this.a;
byteBuffer.position(byteBuffer.position() + i);
}
@Override // o.C17213upH.RVV
public final long a() {
return this.a.position();
}
}
}