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

127 lines
3.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.google.common.primitives.UnsignedBytes;
import java.io.IOException;
import java.util.Comparator;
import java.util.SortedSet;
import java.util.TreeSet;
/* loaded from: classes.dex */
public final class DkZ extends KBx {
private long a;
public SortedSet<Sts> c;
private int f;
private int g;
private int h;
private int i;
private int j;
private int k;
private long l;
private long n;
/* renamed from: o, reason: collision with root package name */
private int f8133o;
public DkZ(Eaa eaa, C6804ccN c6804ccN) throws IOException {
super(eaa, c6804ccN);
this.c = new TreeSet(new Comparator<Sts>(this) { // from class: o.DkZ.2
private DkZ b;
{
this.b = this;
}
@Override // java.util.Comparator
public final /* bridge */ /* synthetic */ int compare(Sts sts, Sts sts2) {
Sts sts3 = sts;
Sts sts4 = sts2;
if (sts3.d < sts4.d) {
return -1;
}
return sts3.d == sts4.d ? 0 : 1;
}
});
short b = (short) (eaa.b() & UnsignedBytes.MAX_VALUE);
int i = 4;
this.f8133o = (b & 240) >> 4;
this.k = b & 15;
short b2 = (short) (eaa.b() & UnsignedBytes.MAX_VALUE);
this.i = (b2 & 240) >> 4;
int i2 = 2;
int i3 = 1;
if (((KBx) this).e == 1 || ((KBx) this).e == 2) {
this.j = b2 & 15;
}
if (((KBx) this).e < 2) {
this.l = eaa.h();
} else if (((KBx) this).e == 2) {
this.l = eaa.f();
}
int i4 = 0;
while (i4 < this.l) {
if (((KBx) this).e < i2) {
this.n = eaa.h();
} else if (((KBx) this).e == i2) {
this.n = eaa.f();
}
if (((KBx) this).e == i3 || ((KBx) this).e == i2) {
this.f = eaa.h() & 15;
}
this.g = eaa.h();
int i5 = this.i;
if (i5 == i) {
this.a = eaa.a();
} else {
this.a = i5 == 8 ? eaa.g() : 0L;
}
this.h = eaa.h();
Long l = null;
int i6 = 0;
while (i6 < this.h) {
if (((KBx) this).e == i3 || (((KBx) this).e == i2 && this.j > 0)) {
l = c(this.j, eaa);
}
this.c.add(new Sts(this.n, l, this.a + c(this.f8133o, eaa).longValue(), c(this.k, eaa).longValue()));
i6++;
i2 = 2;
i3 = 1;
}
i4++;
i = 4;
i2 = 2;
i3 = 1;
}
}
private static Long c(int i, Eaa eaa) throws IOException {
if (i == 1) {
return Long.valueOf((short) (eaa.b() & UnsignedBytes.MAX_VALUE));
}
if (i == 2) {
return Long.valueOf(eaa.h());
}
if (i == 4) {
return Long.valueOf(eaa.f());
}
if (i != 8) {
return null;
}
return Long.valueOf(eaa.g());
}
/* loaded from: classes.dex */
public static class Sts {
public long a;
private Long b;
public long c;
public long d;
public Sts(long j, Long l, long j2, long j3) {
this.a = j;
this.b = l;
this.d = j2;
this.c = j3;
}
}
}