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

187 lines
5.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import o.MTP;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public abstract class ZQK {
private static final ZQK b;
private static final ZQK d;
/* JADX INFO: Access modifiers changed from: package-private */
public abstract <L> List<L> b(Object obj, long j);
/* JADX INFO: Access modifiers changed from: package-private */
public abstract void e(Object obj, long j);
/* JADX INFO: Access modifiers changed from: package-private */
public abstract <L> void e(Object obj, Object obj2, long j);
/* synthetic */ ZQK(byte b2) {
this();
}
private ZQK() {
}
static {
byte b2 = 0;
d = new RVV(b2);
b = new IeS(b2);
}
/* loaded from: classes2.dex */
static final class RVV extends ZQK {
private static final Class<?> d = Collections.unmodifiableList(Collections.emptyList()).getClass();
private RVV() {
super((byte) 0);
}
/* synthetic */ RVV(byte b) {
this();
}
@Override // o.ZQK
final <L> List<L> b(Object obj, long j) {
return d(obj, j, 10);
}
@Override // o.ZQK
final void e(Object obj, long j) {
Object unmodifiableList;
List list = (List) vqr.j(obj, j);
if (list instanceof VWY) {
unmodifiableList = ((VWY) list).c();
} else {
if (d.isAssignableFrom(list.getClass())) {
return;
}
if ((list instanceof VAu) && (list instanceof MTP.RVV)) {
MTP.RVV rvv = (MTP.RVV) list;
if (rvv.e()) {
rvv.a();
return;
}
return;
}
unmodifiableList = Collections.unmodifiableList(list);
}
vqr.e(obj, j, unmodifiableList);
}
private static <L> List<L> d(Object obj, long j, int i) {
AbstractList dMn;
List<L> arrayList;
List<L> list = (List) vqr.j(obj, j);
if (list.isEmpty()) {
if (list instanceof VWY) {
arrayList = new DMn(i);
} else if ((list instanceof VAu) && (list instanceof MTP.RVV)) {
arrayList = ((MTP.RVV) list).b(i);
} else {
arrayList = new ArrayList<>(i);
}
vqr.e(obj, j, arrayList);
return arrayList;
}
if (d.isAssignableFrom(list.getClass())) {
dMn = new ArrayList(list.size() + i);
dMn.addAll(list);
vqr.e(obj, j, dMn);
} else if (list instanceof xls) {
dMn = new DMn(list.size() + i);
dMn.addAll((xls) list);
vqr.e(obj, j, dMn);
} else {
if (!(list instanceof VAu) || !(list instanceof MTP.RVV)) {
return list;
}
MTP.RVV rvv = (MTP.RVV) list;
if (rvv.e()) {
return list;
}
MTP.RVV b = rvv.b(list.size() + i);
vqr.e(obj, j, b);
return b;
}
return dMn;
}
@Override // o.ZQK
final <E> void e(Object obj, Object obj2, long j) {
List list = (List) vqr.j(obj2, j);
List d2 = d(obj, j, list.size());
int size = d2.size();
int size2 = list.size();
if (size > 0 && size2 > 0) {
d2.addAll(list);
}
if (size > 0) {
list = d2;
}
vqr.e(obj, j, list);
}
}
/* loaded from: classes2.dex */
static final class IeS extends ZQK {
private IeS() {
super((byte) 0);
}
/* synthetic */ IeS(byte b) {
this();
}
@Override // o.ZQK
final void e(Object obj, long j) {
((MTP.RVV) vqr.j(obj, j)).a();
}
@Override // o.ZQK
final <E> void e(Object obj, Object obj2, long j) {
MTP.RVV rvv = (MTP.RVV) vqr.j(obj, j);
MTP.RVV rvv2 = (MTP.RVV) vqr.j(obj2, j);
int size = rvv.size();
int size2 = rvv2.size();
if (size > 0 && size2 > 0) {
if (!rvv.e()) {
rvv = rvv.b(size2 + size);
}
rvv.addAll(rvv2);
}
if (size > 0) {
rvv2 = rvv;
}
vqr.e(obj, j, rvv2);
}
@Override // o.ZQK
final <L> List<L> b(Object obj, long j) {
MTP.RVV rvv = (MTP.RVV) vqr.j(obj, j);
if (rvv.e()) {
return rvv;
}
int size = rvv.size();
MTP.RVV b = rvv.b(size == 0 ? 10 : size << 1);
vqr.e(obj, j, b);
return b;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static ZQK d() {
return b;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static ZQK b() {
return d;
}
}