- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1310 lines
42 KiB
Java
1310 lines
42 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Point;
|
|
import android.os.Bundle;
|
|
import android.text.TextUtils;
|
|
import android.util.Pair;
|
|
import android.util.SparseArray;
|
|
import android.util.SparseBooleanArray;
|
|
import androidx.core.view.PointerIconCompat;
|
|
import com.applovin.impl.be;
|
|
import com.applovin.impl.h8;
|
|
import com.applovin.impl.i0;
|
|
import com.applovin.impl.m6;
|
|
import com.applovin.impl.o2;
|
|
import com.applovin.impl.tc;
|
|
import com.applovin.impl.uo;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.C;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Comparator;
|
|
import java.util.HashMap;
|
|
import java.util.HashSet;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class m6 extends tc {
|
|
private static final int[] f = new int[0];
|
|
private static final wg g = wg.a(new Comparator() { // from class: com.applovin.impl.m6$$ExternalSyntheticLambda0
|
|
@Override // java.util.Comparator
|
|
public final int compare(Object obj, Object obj2) {
|
|
int a2;
|
|
a2 = m6.a((Integer) obj, (Integer) obj2);
|
|
return a2;
|
|
}
|
|
});
|
|
private static final wg h = wg.a(new Comparator() { // from class: com.applovin.impl.m6$$ExternalSyntheticLambda1
|
|
@Override // java.util.Comparator
|
|
public final int compare(Object obj, Object obj2) {
|
|
int b2;
|
|
b2 = m6.b((Integer) obj, (Integer) obj2);
|
|
return b2;
|
|
}
|
|
});
|
|
private final h8.b d;
|
|
private final AtomicReference e;
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ int b(Integer num, Integer num2) {
|
|
return 0;
|
|
}
|
|
|
|
@Override // com.applovin.impl.vo
|
|
public boolean b() {
|
|
return true;
|
|
}
|
|
|
|
public static final class e extends uo.a {
|
|
private boolean A;
|
|
private boolean B;
|
|
private boolean C;
|
|
private boolean D;
|
|
private int E;
|
|
private boolean F;
|
|
private boolean G;
|
|
private boolean H;
|
|
private final SparseArray I;
|
|
private final SparseBooleanArray J;
|
|
private boolean x;
|
|
private boolean y;
|
|
private boolean z;
|
|
|
|
private void c() {
|
|
this.x = true;
|
|
this.y = false;
|
|
this.z = true;
|
|
this.A = true;
|
|
this.B = false;
|
|
this.C = false;
|
|
this.D = false;
|
|
this.E = 0;
|
|
this.F = true;
|
|
this.G = false;
|
|
this.H = true;
|
|
}
|
|
|
|
public e a(int i) {
|
|
this.E = i;
|
|
return this;
|
|
}
|
|
|
|
public e a(boolean z) {
|
|
this.D = z;
|
|
return this;
|
|
}
|
|
|
|
public e b(boolean z) {
|
|
this.B = z;
|
|
return this;
|
|
}
|
|
|
|
public e c(boolean z) {
|
|
this.C = z;
|
|
return this;
|
|
}
|
|
|
|
public e d(boolean z) {
|
|
this.H = z;
|
|
return this;
|
|
}
|
|
|
|
public e e(boolean z) {
|
|
this.y = z;
|
|
return this;
|
|
}
|
|
|
|
public e f(boolean z) {
|
|
this.z = z;
|
|
return this;
|
|
}
|
|
|
|
public e g(boolean z) {
|
|
this.A = z;
|
|
return this;
|
|
}
|
|
|
|
public e h(boolean z) {
|
|
this.F = z;
|
|
return this;
|
|
}
|
|
|
|
public e i(boolean z) {
|
|
this.x = z;
|
|
return this;
|
|
}
|
|
|
|
public e j(boolean z) {
|
|
this.G = z;
|
|
return this;
|
|
}
|
|
|
|
public e() {
|
|
this.I = new SparseArray();
|
|
this.J = new SparseBooleanArray();
|
|
c();
|
|
}
|
|
|
|
public e(Context context) {
|
|
super(context);
|
|
this.I = new SparseArray();
|
|
this.J = new SparseBooleanArray();
|
|
c();
|
|
}
|
|
|
|
private e(Bundle bundle) {
|
|
super(bundle);
|
|
d dVar = d.O;
|
|
i(bundle.getBoolean(d.b(1000), dVar.C));
|
|
e(bundle.getBoolean(d.b(1001), dVar.D));
|
|
f(bundle.getBoolean(d.b(1002), dVar.E));
|
|
g(bundle.getBoolean(d.b(1003), dVar.F));
|
|
b(bundle.getBoolean(d.b(1004), dVar.G));
|
|
c(bundle.getBoolean(d.b(1005), dVar.H));
|
|
a(bundle.getBoolean(d.b(1006), dVar.I));
|
|
a(bundle.getInt(d.b(1007), dVar.B));
|
|
h(bundle.getBoolean(d.b(1008), dVar.J));
|
|
j(bundle.getBoolean(d.b(1009), dVar.K));
|
|
d(bundle.getBoolean(d.b(1010), dVar.L));
|
|
this.I = new SparseArray();
|
|
a(bundle);
|
|
this.J = a(bundle.getIntArray(d.b(1014)));
|
|
}
|
|
|
|
@Override // com.applovin.impl.uo.a
|
|
/* renamed from: b, reason: merged with bridge method [inline-methods] */
|
|
public e a(int i, int i2, boolean z) {
|
|
super.a(i, i2, z);
|
|
return this;
|
|
}
|
|
|
|
private SparseBooleanArray a(int[] iArr) {
|
|
if (iArr == null) {
|
|
return new SparseBooleanArray();
|
|
}
|
|
SparseBooleanArray sparseBooleanArray = new SparseBooleanArray(iArr.length);
|
|
for (int i : iArr) {
|
|
sparseBooleanArray.append(i, true);
|
|
}
|
|
return sparseBooleanArray;
|
|
}
|
|
|
|
@Override // com.applovin.impl.uo.a
|
|
/* renamed from: b, reason: merged with bridge method [inline-methods] */
|
|
public e a(Context context, boolean z) {
|
|
super.a(context, z);
|
|
return this;
|
|
}
|
|
|
|
@Override // com.applovin.impl.uo.a
|
|
/* renamed from: b, reason: merged with bridge method [inline-methods] */
|
|
public d a() {
|
|
return new d(this);
|
|
}
|
|
|
|
@Override // com.applovin.impl.uo.a
|
|
/* renamed from: c, reason: merged with bridge method [inline-methods] */
|
|
public e a(Context context) {
|
|
super.a(context);
|
|
return this;
|
|
}
|
|
|
|
public final e a(int i, po poVar, f fVar) {
|
|
Map map = (Map) this.I.get(i);
|
|
if (map == null) {
|
|
map = new HashMap();
|
|
this.I.put(i, map);
|
|
}
|
|
if (map.containsKey(poVar) && xp.a(map.get(poVar), fVar)) {
|
|
return this;
|
|
}
|
|
map.put(poVar, fVar);
|
|
return this;
|
|
}
|
|
|
|
private void a(Bundle bundle) {
|
|
int[] intArray = bundle.getIntArray(d.b(1011));
|
|
List a = p2.a(po.f, bundle.getParcelableArrayList(d.b(PointerIconCompat.TYPE_NO_DROP)), eb.h());
|
|
SparseArray a2 = p2.a(f.f, bundle.getSparseParcelableArray(d.b(1013)), new SparseArray());
|
|
if (intArray == null || intArray.length != a.size()) {
|
|
return;
|
|
}
|
|
for (int i = 0; i < intArray.length; i++) {
|
|
a(intArray[i], (po) a.get(i), (f) a2.get(i));
|
|
}
|
|
}
|
|
}
|
|
|
|
public static final class d extends uo implements o2 {
|
|
public static final d O;
|
|
public static final d P;
|
|
public static final o2.a Q;
|
|
public final int B;
|
|
public final boolean C;
|
|
public final boolean D;
|
|
public final boolean E;
|
|
public final boolean F;
|
|
public final boolean G;
|
|
public final boolean H;
|
|
public final boolean I;
|
|
public final boolean J;
|
|
public final boolean K;
|
|
public final boolean L;
|
|
private final SparseArray M;
|
|
private final SparseBooleanArray N;
|
|
|
|
static {
|
|
d a = new e().a();
|
|
O = a;
|
|
P = a;
|
|
Q = new o2.a() { // from class: com.applovin.impl.m6$d$$ExternalSyntheticLambda0
|
|
@Override // com.applovin.impl.o2.a
|
|
public final o2 a(Bundle bundle) {
|
|
m6.d b;
|
|
b = m6.d.b(bundle);
|
|
return b;
|
|
}
|
|
};
|
|
}
|
|
|
|
private d(e eVar) {
|
|
super(eVar);
|
|
this.C = eVar.x;
|
|
this.D = eVar.y;
|
|
this.E = eVar.z;
|
|
this.F = eVar.A;
|
|
this.G = eVar.B;
|
|
this.H = eVar.C;
|
|
this.I = eVar.D;
|
|
this.B = eVar.E;
|
|
this.J = eVar.F;
|
|
this.K = eVar.G;
|
|
this.L = eVar.H;
|
|
this.M = eVar.I;
|
|
this.N = eVar.J;
|
|
}
|
|
|
|
public final boolean d(int i) {
|
|
return this.N.get(i);
|
|
}
|
|
|
|
public final boolean b(int i, po poVar) {
|
|
Map map = (Map) this.M.get(i);
|
|
return map != null && map.containsKey(poVar);
|
|
}
|
|
|
|
@Override // com.applovin.impl.uo
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || d.class != obj.getClass()) {
|
|
return false;
|
|
}
|
|
d dVar = (d) obj;
|
|
return super.equals(dVar) && this.C == dVar.C && this.D == dVar.D && this.E == dVar.E && this.F == dVar.F && this.G == dVar.G && this.H == dVar.H && this.I == dVar.I && this.B == dVar.B && this.J == dVar.J && this.K == dVar.K && this.L == dVar.L && a(this.N, dVar.N) && a(this.M, dVar.M);
|
|
}
|
|
|
|
@Override // com.applovin.impl.uo
|
|
public int hashCode() {
|
|
return ((((((((((((((((((((((super.hashCode() + 31) * 31) + (this.C ? 1 : 0)) * 31) + (this.D ? 1 : 0)) * 31) + (this.E ? 1 : 0)) * 31) + (this.F ? 1 : 0)) * 31) + (this.G ? 1 : 0)) * 31) + (this.H ? 1 : 0)) * 31) + (this.I ? 1 : 0)) * 31) + this.B) * 31) + (this.J ? 1 : 0)) * 31) + (this.K ? 1 : 0)) * 31) + (this.L ? 1 : 0);
|
|
}
|
|
|
|
private static boolean a(SparseBooleanArray sparseBooleanArray, SparseBooleanArray sparseBooleanArray2) {
|
|
int size = sparseBooleanArray.size();
|
|
if (sparseBooleanArray2.size() != size) {
|
|
return false;
|
|
}
|
|
for (int i = 0; i < size; i++) {
|
|
if (sparseBooleanArray2.indexOfKey(sparseBooleanArray.keyAt(i)) < 0) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static String b(int i) {
|
|
return Integer.toString(i, 36);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ d b(Bundle bundle) {
|
|
return new e(bundle).a();
|
|
}
|
|
|
|
private static boolean a(SparseArray sparseArray, SparseArray sparseArray2) {
|
|
int size = sparseArray.size();
|
|
if (sparseArray2.size() != size) {
|
|
return false;
|
|
}
|
|
for (int i = 0; i < size; i++) {
|
|
int indexOfKey = sparseArray2.indexOfKey(sparseArray.keyAt(i));
|
|
if (indexOfKey < 0 || !a((Map) sparseArray.valueAt(i), (Map) sparseArray2.valueAt(indexOfKey))) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
private static boolean a(Map map, Map map2) {
|
|
if (map2.size() != map.size()) {
|
|
return false;
|
|
}
|
|
for (Map.Entry entry : map.entrySet()) {
|
|
po poVar = (po) entry.getKey();
|
|
if (!map2.containsKey(poVar) || !xp.a(entry.getValue(), map2.get(poVar))) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public final f a(int i, po poVar) {
|
|
Map map = (Map) this.M.get(i);
|
|
if (map != null) {
|
|
return (f) map.get(poVar);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public static d a(Context context) {
|
|
return new e(context).a();
|
|
}
|
|
}
|
|
|
|
public static final class f implements o2 {
|
|
public static final o2.a f = new o2.a() { // from class: com.applovin.impl.m6$f$$ExternalSyntheticLambda0
|
|
@Override // com.applovin.impl.o2.a
|
|
public final o2 a(Bundle bundle) {
|
|
m6.f a;
|
|
a = m6.f.a(bundle);
|
|
return a;
|
|
}
|
|
};
|
|
public final int a;
|
|
public final int[] b;
|
|
public final int c;
|
|
public final int d;
|
|
|
|
public f(int i, int[] iArr, int i2) {
|
|
this.a = i;
|
|
int[] copyOf = Arrays.copyOf(iArr, iArr.length);
|
|
this.b = copyOf;
|
|
this.c = iArr.length;
|
|
this.d = i2;
|
|
Arrays.sort(copyOf);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return (((this.a * 31) + Arrays.hashCode(this.b)) * 31) + this.d;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || f.class != obj.getClass()) {
|
|
return false;
|
|
}
|
|
f fVar = (f) obj;
|
|
return this.a == fVar.a && Arrays.equals(this.b, fVar.b) && this.d == fVar.d;
|
|
}
|
|
|
|
private static String a(int i) {
|
|
return Integer.toString(i, 36);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ f a(Bundle bundle) {
|
|
boolean z = false;
|
|
int i = bundle.getInt(a(0), -1);
|
|
int[] intArray = bundle.getIntArray(a(1));
|
|
int i2 = bundle.getInt(a(2), -1);
|
|
if (i >= 0 && i2 >= 0) {
|
|
z = true;
|
|
}
|
|
b1.a(z);
|
|
b1.a(intArray);
|
|
return new f(i, intArray, i2);
|
|
}
|
|
}
|
|
|
|
public m6(Context context) {
|
|
this(context, new i0.b());
|
|
}
|
|
|
|
private static int b(oo ooVar, int[] iArr, int i, String str, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, List list) {
|
|
int i10 = 0;
|
|
for (int i11 = 0; i11 < list.size(); i11++) {
|
|
int intValue = ((Integer) list.get(i11)).intValue();
|
|
if (a(ooVar.a(intValue), str, iArr[intValue], i, i2, i3, i4, i5, i6, i7, i8, i9)) {
|
|
i10++;
|
|
}
|
|
}
|
|
return i10;
|
|
}
|
|
|
|
private static void a(oo ooVar, int[] iArr, int i, String str, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, List list) {
|
|
for (int size = list.size() - 1; size >= 0; size--) {
|
|
int intValue = ((Integer) list.get(size)).intValue();
|
|
if (!a(ooVar.a(intValue), str, iArr[intValue], i, i2, i3, i4, i5, i6, i7, i8, i9)) {
|
|
list.remove(size);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static final class h implements Comparable {
|
|
public final boolean a;
|
|
private final d b;
|
|
private final boolean c;
|
|
private final boolean d;
|
|
private final int f;
|
|
private final int g;
|
|
private final int h;
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:33:0x0053, code lost:
|
|
|
|
if (r10 < r8.h) goto L41;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:37:0x005b, code lost:
|
|
|
|
if (r10 < r8.i) goto L41;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:32:0x004e */
|
|
/* JADX WARN: Removed duplicated region for block: B:36:0x0059 */
|
|
/* JADX WARN: Removed duplicated region for block: B:41:0x0079 */
|
|
/* JADX WARN: Removed duplicated region for block: B:52:0x008d A[SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public h(com.applovin.impl.f9 r7, com.applovin.impl.m6.d r8, int r9, boolean r10) {
|
|
/*
|
|
r6 = this;
|
|
r6.<init>()
|
|
r6.b = r8
|
|
r0 = -1082130432(0xffffffffbf800000, float:-1.0)
|
|
r1 = 1
|
|
r2 = 0
|
|
r3 = -1
|
|
if (r10 == 0) goto L33
|
|
int r4 = r7.r
|
|
if (r4 == r3) goto L14
|
|
int r5 = r8.a
|
|
if (r4 > r5) goto L33
|
|
L14:
|
|
int r4 = r7.s
|
|
if (r4 == r3) goto L1c
|
|
int r5 = r8.b
|
|
if (r4 > r5) goto L33
|
|
L1c:
|
|
float r4 = r7.t
|
|
int r5 = (r4 > r0 ? 1 : (r4 == r0 ? 0 : -1))
|
|
if (r5 == 0) goto L29
|
|
int r5 = r8.c
|
|
float r5 = (float) r5
|
|
int r4 = (r4 > r5 ? 1 : (r4 == r5 ? 0 : -1))
|
|
if (r4 > 0) goto L33
|
|
L29:
|
|
int r4 = r7.i
|
|
if (r4 == r3) goto L31
|
|
int r5 = r8.d
|
|
if (r4 > r5) goto L33
|
|
L31:
|
|
r4 = r1
|
|
goto L34
|
|
L33:
|
|
r4 = r2
|
|
L34:
|
|
r6.a = r4
|
|
if (r10 == 0) goto L5e
|
|
int r10 = r7.r
|
|
if (r10 == r3) goto L40
|
|
int r4 = r8.f
|
|
if (r10 < r4) goto L5e
|
|
L40:
|
|
int r10 = r7.s
|
|
if (r10 == r3) goto L48
|
|
int r4 = r8.g
|
|
if (r10 < r4) goto L5e
|
|
L48:
|
|
float r10 = r7.t
|
|
int r0 = (r10 > r0 ? 1 : (r10 == r0 ? 0 : -1))
|
|
if (r0 == 0) goto L55
|
|
int r0 = r8.h
|
|
float r0 = (float) r0
|
|
int r10 = (r10 > r0 ? 1 : (r10 == r0 ? 0 : -1))
|
|
if (r10 < 0) goto L5e
|
|
L55:
|
|
int r10 = r7.i
|
|
if (r10 == r3) goto L5f
|
|
int r0 = r8.i
|
|
if (r10 < r0) goto L5e
|
|
goto L5f
|
|
L5e:
|
|
r1 = r2
|
|
L5f:
|
|
r6.c = r1
|
|
boolean r9 = com.applovin.impl.m6.a(r9, r2)
|
|
r6.d = r9
|
|
int r9 = r7.i
|
|
r6.f = r9
|
|
int r9 = r7.b()
|
|
r6.g = r9
|
|
L71:
|
|
com.applovin.impl.eb r9 = r8.m
|
|
int r9 = r9.size()
|
|
if (r2 >= r9) goto L8d
|
|
java.lang.String r9 = r7.m
|
|
if (r9 == 0) goto L8a
|
|
com.applovin.impl.eb r10 = r8.m
|
|
java.lang.Object r10 = r10.get(r2)
|
|
boolean r9 = r9.equals(r10)
|
|
if (r9 == 0) goto L8a
|
|
goto L90
|
|
L8a:
|
|
int r2 = r2 + 1
|
|
goto L71
|
|
L8d:
|
|
r2 = 2147483647(0x7fffffff, float:NaN)
|
|
L90:
|
|
r6.h = r2
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.m6.h.<init>(com.applovin.impl.f9, com.applovin.impl.m6$d, int, boolean):void");
|
|
}
|
|
|
|
@Override // java.lang.Comparable
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public int compareTo(h hVar) {
|
|
wg c;
|
|
if (this.a && this.d) {
|
|
c = m6.g;
|
|
} else {
|
|
c = m6.g.c();
|
|
}
|
|
return y3.e().a(this.d, hVar.d).a(this.a, hVar.a).a(this.c, hVar.c).a(Integer.valueOf(this.h), Integer.valueOf(hVar.h), wg.a().c()).a(Integer.valueOf(this.f), Integer.valueOf(hVar.f), this.b.v ? m6.g.c() : m6.h).a(Integer.valueOf(this.g), Integer.valueOf(hVar.g), c).a(Integer.valueOf(this.f), Integer.valueOf(hVar.f), c).d();
|
|
}
|
|
}
|
|
|
|
public static final class b implements Comparable {
|
|
public final boolean a;
|
|
private final String b;
|
|
private final d c;
|
|
private final boolean d;
|
|
private final int f;
|
|
private final int g;
|
|
private final int h;
|
|
private final int i;
|
|
private final int j;
|
|
private final boolean k;
|
|
private final int l;
|
|
private final int m;
|
|
private final int n;
|
|
private final int o;
|
|
|
|
public b(f9 f9Var, d dVar, int i) {
|
|
int i2;
|
|
int i3;
|
|
int i4;
|
|
this.c = dVar;
|
|
this.b = m6.a(f9Var.c);
|
|
int i5 = 0;
|
|
this.d = m6.a(i, false);
|
|
int i6 = 0;
|
|
while (true) {
|
|
i2 = Integer.MAX_VALUE;
|
|
if (i6 >= dVar.n.size()) {
|
|
i3 = 0;
|
|
i6 = Integer.MAX_VALUE;
|
|
break;
|
|
} else {
|
|
i3 = m6.a(f9Var, (String) dVar.n.get(i6), false);
|
|
if (i3 > 0) {
|
|
break;
|
|
} else {
|
|
i6++;
|
|
}
|
|
}
|
|
}
|
|
this.g = i6;
|
|
this.f = i3;
|
|
this.h = Integer.bitCount(f9Var.f & dVar.o);
|
|
boolean z = true;
|
|
this.k = (f9Var.d & 1) != 0;
|
|
int i7 = f9Var.z;
|
|
this.l = i7;
|
|
this.m = f9Var.A;
|
|
int i8 = f9Var.i;
|
|
this.n = i8;
|
|
if ((i8 != -1 && i8 > dVar.q) || (i7 != -1 && i7 > dVar.p)) {
|
|
z = false;
|
|
}
|
|
this.a = z;
|
|
String[] e = xp.e();
|
|
int i9 = 0;
|
|
while (true) {
|
|
if (i9 >= e.length) {
|
|
i4 = 0;
|
|
i9 = Integer.MAX_VALUE;
|
|
break;
|
|
} else {
|
|
i4 = m6.a(f9Var, e[i9], false);
|
|
if (i4 > 0) {
|
|
break;
|
|
} else {
|
|
i9++;
|
|
}
|
|
}
|
|
}
|
|
this.i = i9;
|
|
this.j = i4;
|
|
while (true) {
|
|
if (i5 < dVar.r.size()) {
|
|
String str = f9Var.m;
|
|
if (str != null && str.equals(dVar.r.get(i5))) {
|
|
i2 = i5;
|
|
break;
|
|
}
|
|
i5++;
|
|
} else {
|
|
break;
|
|
}
|
|
}
|
|
this.o = i2;
|
|
}
|
|
|
|
@Override // java.lang.Comparable
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public int compareTo(b bVar) {
|
|
wg c;
|
|
if (this.a && this.d) {
|
|
c = m6.g;
|
|
} else {
|
|
c = m6.g.c();
|
|
}
|
|
y3 a = y3.e().a(this.d, bVar.d).a(Integer.valueOf(this.g), Integer.valueOf(bVar.g), wg.a().c()).a(this.f, bVar.f).a(this.h, bVar.h).a(this.a, bVar.a).a(Integer.valueOf(this.o), Integer.valueOf(bVar.o), wg.a().c()).a(Integer.valueOf(this.n), Integer.valueOf(bVar.n), this.c.v ? m6.g.c() : m6.h).a(this.k, bVar.k).a(Integer.valueOf(this.i), Integer.valueOf(bVar.i), wg.a().c()).a(this.j, bVar.j).a(Integer.valueOf(this.l), Integer.valueOf(bVar.l), c).a(Integer.valueOf(this.m), Integer.valueOf(bVar.m), c);
|
|
Integer valueOf = Integer.valueOf(this.n);
|
|
Integer valueOf2 = Integer.valueOf(bVar.n);
|
|
if (!xp.a((Object) this.b, (Object) bVar.b)) {
|
|
c = m6.h;
|
|
}
|
|
return a.a(valueOf, valueOf2, c).d();
|
|
}
|
|
}
|
|
|
|
public static final class g implements Comparable {
|
|
public final boolean a;
|
|
private final boolean b;
|
|
private final boolean c;
|
|
private final boolean d;
|
|
private final int f;
|
|
private final int g;
|
|
private final int h;
|
|
private final int i;
|
|
private final boolean j;
|
|
|
|
public g(f9 f9Var, d dVar, int i, String str) {
|
|
eb ebVar;
|
|
int i2;
|
|
boolean z = false;
|
|
this.b = m6.a(i, false);
|
|
int i3 = f9Var.d & (~dVar.B);
|
|
this.c = (i3 & 1) != 0;
|
|
this.d = (i3 & 2) != 0;
|
|
if (dVar.s.isEmpty()) {
|
|
ebVar = eb.a("");
|
|
} else {
|
|
ebVar = dVar.s;
|
|
}
|
|
int i4 = 0;
|
|
while (true) {
|
|
if (i4 >= ebVar.size()) {
|
|
i4 = Integer.MAX_VALUE;
|
|
i2 = 0;
|
|
break;
|
|
} else {
|
|
i2 = m6.a(f9Var, (String) ebVar.get(i4), dVar.u);
|
|
if (i2 > 0) {
|
|
break;
|
|
} else {
|
|
i4++;
|
|
}
|
|
}
|
|
}
|
|
this.f = i4;
|
|
this.g = i2;
|
|
int bitCount = Integer.bitCount(f9Var.f & dVar.t);
|
|
this.h = bitCount;
|
|
this.j = (f9Var.f & 1088) != 0;
|
|
int a = m6.a(f9Var, str, m6.a(str) == null);
|
|
this.i = a;
|
|
if (i2 > 0 || ((dVar.s.isEmpty() && bitCount > 0) || this.c || (this.d && a > 0))) {
|
|
z = true;
|
|
}
|
|
this.a = z;
|
|
}
|
|
|
|
@Override // java.lang.Comparable
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public int compareTo(g gVar) {
|
|
y3 a = y3.e().a(this.b, gVar.b).a(Integer.valueOf(this.f), Integer.valueOf(gVar.f), wg.a().c()).a(this.g, gVar.g).a(this.h, gVar.h).a(this.c, gVar.c).a(Boolean.valueOf(this.d), Boolean.valueOf(gVar.d), this.g == 0 ? wg.a() : wg.a().c()).a(this.i, gVar.i);
|
|
if (this.h == 0) {
|
|
a = a.b(this.j, gVar.j);
|
|
}
|
|
return a.d();
|
|
}
|
|
}
|
|
|
|
public static final class c implements Comparable {
|
|
private final boolean a;
|
|
private final boolean b;
|
|
|
|
@Override // java.lang.Comparable
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public int compareTo(c cVar) {
|
|
return y3.e().a(this.b, cVar.b).a(this.a, cVar.a).d();
|
|
}
|
|
|
|
public c(f9 f9Var, int i) {
|
|
this.a = (f9Var.d & 1) != 0;
|
|
this.b = m6.a(i, false);
|
|
}
|
|
}
|
|
|
|
public m6(Context context, h8.b bVar) {
|
|
this(d.a(context), bVar);
|
|
}
|
|
|
|
public h8.a b(po poVar, int[][] iArr, int i, d dVar, boolean z) {
|
|
h8.a a2 = (dVar.w || dVar.v || !z) ? null : a(poVar, iArr, i, dVar);
|
|
return a2 == null ? a(poVar, iArr, dVar) : a2;
|
|
}
|
|
|
|
private static int[] a(oo ooVar, int[] iArr, int i, int i2, boolean z, boolean z2, boolean z3) {
|
|
f9 a2 = ooVar.a(i);
|
|
int[] iArr2 = new int[ooVar.a];
|
|
int i3 = 0;
|
|
for (int i4 = 0; i4 < ooVar.a; i4++) {
|
|
if (i4 == i || a(ooVar.a(i4), iArr[i4], a2, i2, z, z2, z3)) {
|
|
iArr2[i3] = i4;
|
|
i3++;
|
|
}
|
|
}
|
|
return Arrays.copyOf(iArr2, i3);
|
|
}
|
|
|
|
public m6(d dVar, h8.b bVar) {
|
|
this.d = bVar;
|
|
this.e = new AtomicReference(dVar);
|
|
}
|
|
|
|
private static int[] a(oo ooVar, int[] iArr, boolean z, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10, int i11, boolean z2) {
|
|
String str;
|
|
int i12;
|
|
int i13;
|
|
HashSet hashSet;
|
|
if (ooVar.a < 2) {
|
|
return f;
|
|
}
|
|
List a2 = a(ooVar, i10, i11, z2);
|
|
if (a2.size() < 2) {
|
|
return f;
|
|
}
|
|
if (z) {
|
|
str = null;
|
|
} else {
|
|
HashSet hashSet2 = new HashSet();
|
|
String str2 = null;
|
|
int i14 = 0;
|
|
int i15 = 0;
|
|
while (i15 < a2.size()) {
|
|
String str3 = ooVar.a(((Integer) a2.get(i15)).intValue()).m;
|
|
if (hashSet2.add(str3)) {
|
|
i12 = i14;
|
|
i13 = i15;
|
|
hashSet = hashSet2;
|
|
int b2 = b(ooVar, iArr, i, str3, i2, i3, i4, i5, i6, i7, i8, i9, a2);
|
|
if (b2 > i12) {
|
|
i14 = b2;
|
|
str2 = str3;
|
|
i15 = i13 + 1;
|
|
hashSet2 = hashSet;
|
|
}
|
|
} else {
|
|
i12 = i14;
|
|
i13 = i15;
|
|
hashSet = hashSet2;
|
|
}
|
|
i14 = i12;
|
|
i15 = i13 + 1;
|
|
hashSet2 = hashSet;
|
|
}
|
|
str = str2;
|
|
}
|
|
a(ooVar, iArr, i, str, i2, i3, i4, i5, i6, i7, i8, i9, a2);
|
|
return a2.size() < 2 ? f : ub.a(a2);
|
|
}
|
|
|
|
public static int a(f9 f9Var, String str, boolean z) {
|
|
if (!TextUtils.isEmpty(str) && str.equals(f9Var.c)) {
|
|
return 4;
|
|
}
|
|
String a2 = a(str);
|
|
String a3 = a(f9Var.c);
|
|
if (a3 == null || a2 == null) {
|
|
return (z && a3 == null) ? 1 : 0;
|
|
}
|
|
if (a3.startsWith(a2) || a2.startsWith(a3)) {
|
|
return 3;
|
|
}
|
|
return xp.b(a3, "-")[0].equals(xp.b(a2, "-")[0]) ? 2 : 0;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:7:0x000c, code lost:
|
|
|
|
if ((r6 > r7) != (r4 > r5)) goto L12;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private static android.graphics.Point a(boolean r3, int r4, int r5, int r6, int r7) {
|
|
/*
|
|
if (r3 == 0) goto Lf
|
|
r3 = 0
|
|
r0 = 1
|
|
if (r6 <= r7) goto L8
|
|
r1 = r0
|
|
goto L9
|
|
L8:
|
|
r1 = r3
|
|
L9:
|
|
if (r4 <= r5) goto Lc
|
|
r3 = r0
|
|
Lc:
|
|
if (r1 == r3) goto Lf
|
|
goto L12
|
|
Lf:
|
|
r2 = r5
|
|
r5 = r4
|
|
r4 = r2
|
|
L12:
|
|
int r3 = r6 * r4
|
|
int r0 = r7 * r5
|
|
if (r3 < r0) goto L22
|
|
android.graphics.Point r3 = new android.graphics.Point
|
|
int r4 = com.applovin.impl.xp.a(r0, r6)
|
|
r3.<init>(r5, r4)
|
|
return r3
|
|
L22:
|
|
android.graphics.Point r5 = new android.graphics.Point
|
|
int r3 = com.applovin.impl.xp.a(r3, r7)
|
|
r5.<init>(r3, r4)
|
|
return r5
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.m6.a(boolean, int, int, int, int):android.graphics.Point");
|
|
}
|
|
|
|
public static boolean a(int i, boolean z) {
|
|
int d2 = ri.d(i);
|
|
return d2 == 4 || (z && d2 == 3);
|
|
}
|
|
|
|
private static boolean a(f9 f9Var, int i, f9 f9Var2, int i2, boolean z, boolean z2, boolean z3) {
|
|
int i3;
|
|
int i4;
|
|
String str;
|
|
int i5;
|
|
if (!a(i, false) || (i3 = f9Var.i) == -1 || i3 > i2) {
|
|
return false;
|
|
}
|
|
if (!z3 && ((i5 = f9Var.z) == -1 || i5 != f9Var2.z)) {
|
|
return false;
|
|
}
|
|
if (z || ((str = f9Var.m) != null && TextUtils.equals(str, f9Var2.m))) {
|
|
return z2 || ((i4 = f9Var.A) != -1 && i4 == f9Var2.A);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
private static boolean a(f9 f9Var, String str, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10) {
|
|
int i11;
|
|
if ((f9Var.f & 16384) != 0 || !a(i, false) || (i & i2) == 0) {
|
|
return false;
|
|
}
|
|
if (str != null && !xp.a((Object) f9Var.m, (Object) str)) {
|
|
return false;
|
|
}
|
|
int i12 = f9Var.r;
|
|
if (i12 != -1 && (i7 > i12 || i12 > i3)) {
|
|
return false;
|
|
}
|
|
int i13 = f9Var.s;
|
|
if (i13 != -1 && (i8 > i13 || i13 > i4)) {
|
|
return false;
|
|
}
|
|
float f2 = f9Var.t;
|
|
return (f2 == -1.0f || (((float) i9) <= f2 && f2 <= ((float) i5))) && (i11 = f9Var.i) != -1 && i10 <= i11 && i11 <= i6;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static /* synthetic */ int a(Integer num, Integer num2) {
|
|
if (num.intValue() == -1) {
|
|
return num2.intValue() == -1 ? 0 : -1;
|
|
}
|
|
if (num2.intValue() == -1) {
|
|
return 1;
|
|
}
|
|
return num.intValue() - num2.intValue();
|
|
}
|
|
|
|
private static void a(tc.a aVar, int[][][] iArr, si[] siVarArr, h8[] h8VarArr) {
|
|
boolean z;
|
|
boolean z2 = false;
|
|
int i = -1;
|
|
int i2 = -1;
|
|
for (int i3 = 0; i3 < aVar.a(); i3++) {
|
|
int a2 = aVar.a(i3);
|
|
h8 h8Var = h8VarArr[i3];
|
|
if ((a2 == 1 || a2 == 2) && h8Var != null && a(iArr[i3], aVar.b(i3), h8Var)) {
|
|
if (a2 == 1) {
|
|
if (i2 != -1) {
|
|
z = false;
|
|
break;
|
|
}
|
|
i2 = i3;
|
|
} else {
|
|
if (i != -1) {
|
|
z = false;
|
|
break;
|
|
}
|
|
i = i3;
|
|
}
|
|
}
|
|
}
|
|
z = true;
|
|
if (i2 != -1 && i != -1) {
|
|
z2 = true;
|
|
}
|
|
if (z && z2) {
|
|
si siVar = new si(true);
|
|
siVarArr[i2] = siVar;
|
|
siVarArr[i] = siVar;
|
|
}
|
|
}
|
|
|
|
public static String a(String str) {
|
|
if (TextUtils.isEmpty(str) || TextUtils.equals(str, C.LANGUAGE_UNDETERMINED)) {
|
|
return null;
|
|
}
|
|
return str;
|
|
}
|
|
|
|
private static boolean a(int[][] iArr, po poVar, h8 h8Var) {
|
|
if (h8Var == null) {
|
|
return false;
|
|
}
|
|
int a2 = poVar.a(h8Var.a());
|
|
for (int i = 0; i < h8Var.b(); i++) {
|
|
if (ri.c(iArr[a2][h8Var.b(i)]) != 32) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
private static h8.a a(po poVar, int[][] iArr, int i, d dVar) {
|
|
po poVar2 = poVar;
|
|
d dVar2 = dVar;
|
|
int i2 = dVar2.E ? 24 : 16;
|
|
boolean z = dVar2.D && (i & i2) != 0;
|
|
int i3 = 0;
|
|
while (i3 < poVar2.a) {
|
|
oo a2 = poVar2.a(i3);
|
|
int i4 = i3;
|
|
int[] a3 = a(a2, iArr[i3], z, i2, dVar2.a, dVar2.b, dVar2.c, dVar2.d, dVar2.f, dVar2.g, dVar2.h, dVar2.i, dVar2.j, dVar2.k, dVar2.l);
|
|
if (a3.length > 0) {
|
|
return new h8.a(a2, a3);
|
|
}
|
|
i3 = i4 + 1;
|
|
poVar2 = poVar;
|
|
dVar2 = dVar;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public h8.a[] a(tc.a aVar, int[][][] iArr, int[] iArr2, d dVar) {
|
|
boolean z;
|
|
String str;
|
|
int i;
|
|
String str2;
|
|
b bVar;
|
|
int i2;
|
|
int a2 = aVar.a();
|
|
h8.a[] aVarArr = new h8.a[a2];
|
|
int i3 = 0;
|
|
boolean z2 = false;
|
|
int i4 = 0;
|
|
boolean z3 = false;
|
|
while (true) {
|
|
if (i4 >= a2) {
|
|
break;
|
|
}
|
|
if (2 == aVar.a(i4)) {
|
|
if (!z2) {
|
|
h8.a b2 = b(aVar.b(i4), iArr[i4], iArr2[i4], dVar, true);
|
|
aVarArr[i4] = b2;
|
|
z2 = b2 != null;
|
|
}
|
|
z3 |= aVar.b(i4).a > 0;
|
|
}
|
|
i4++;
|
|
}
|
|
int i5 = 0;
|
|
int i6 = -1;
|
|
String str3 = null;
|
|
b bVar2 = null;
|
|
while (i5 < a2) {
|
|
if (z == aVar.a(i5)) {
|
|
boolean z4 = (dVar.L || !z3) ? z : false;
|
|
i = i6;
|
|
str2 = str3;
|
|
bVar = bVar2;
|
|
i2 = i5;
|
|
Pair a3 = a(aVar.b(i5), iArr[i5], iArr2[i5], dVar, z4);
|
|
if (a3 != null && (bVar == null || ((b) a3.second).compareTo(bVar) > 0)) {
|
|
if (i != -1) {
|
|
aVarArr[i] = null;
|
|
}
|
|
h8.a aVar2 = (h8.a) a3.first;
|
|
aVarArr[i2] = aVar2;
|
|
str3 = aVar2.a.a(aVar2.b[0]).c;
|
|
bVar2 = (b) a3.second;
|
|
i6 = i2;
|
|
i5 = i2 + 1;
|
|
z = true;
|
|
}
|
|
} else {
|
|
i = i6;
|
|
str2 = str3;
|
|
bVar = bVar2;
|
|
i2 = i5;
|
|
}
|
|
i6 = i;
|
|
bVar2 = bVar;
|
|
str3 = str2;
|
|
i5 = i2 + 1;
|
|
z = true;
|
|
}
|
|
String str4 = str3;
|
|
int i7 = -1;
|
|
g gVar = null;
|
|
while (i3 < a2) {
|
|
int a4 = aVar.a(i3);
|
|
if (a4 != 1) {
|
|
if (a4 != 2) {
|
|
if (a4 != 3) {
|
|
aVarArr[i3] = a(a4, aVar.b(i3), iArr[i3], dVar);
|
|
} else {
|
|
str = str4;
|
|
Pair a5 = a(aVar.b(i3), iArr[i3], dVar, str);
|
|
if (a5 != null && (gVar == null || ((g) a5.second).compareTo(gVar) > 0)) {
|
|
if (i7 != -1) {
|
|
aVarArr[i7] = null;
|
|
}
|
|
aVarArr[i3] = (h8.a) a5.first;
|
|
gVar = (g) a5.second;
|
|
i7 = i3;
|
|
}
|
|
}
|
|
}
|
|
str = str4;
|
|
} else {
|
|
str = str4;
|
|
}
|
|
i3++;
|
|
str4 = str;
|
|
}
|
|
return aVarArr;
|
|
}
|
|
|
|
public Pair a(po poVar, int[][] iArr, int i, d dVar, boolean z) {
|
|
h8.a aVar = null;
|
|
int i2 = -1;
|
|
int i3 = -1;
|
|
b bVar = null;
|
|
for (int i4 = 0; i4 < poVar.a; i4++) {
|
|
oo a2 = poVar.a(i4);
|
|
int[] iArr2 = iArr[i4];
|
|
for (int i5 = 0; i5 < a2.a; i5++) {
|
|
if (a(iArr2[i5], dVar.J)) {
|
|
b bVar2 = new b(a2.a(i5), dVar, iArr2[i5]);
|
|
if ((bVar2.a || dVar.F) && (bVar == null || bVar2.compareTo(bVar) > 0)) {
|
|
i2 = i4;
|
|
i3 = i5;
|
|
bVar = bVar2;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (i2 == -1) {
|
|
return null;
|
|
}
|
|
oo a3 = poVar.a(i2);
|
|
if (!dVar.w && !dVar.v && z) {
|
|
int[] a4 = a(a3, iArr[i2], i3, dVar.q, dVar.G, dVar.H, dVar.I);
|
|
if (a4.length > 1) {
|
|
aVar = new h8.a(a3, a4);
|
|
}
|
|
}
|
|
if (aVar == null) {
|
|
aVar = new h8.a(a3, i3);
|
|
}
|
|
return Pair.create(aVar, (b) b1.a(bVar));
|
|
}
|
|
|
|
private static h8.a a(po poVar, int[][] iArr, d dVar) {
|
|
int i = -1;
|
|
oo ooVar = null;
|
|
h hVar = null;
|
|
for (int i2 = 0; i2 < poVar.a; i2++) {
|
|
oo a2 = poVar.a(i2);
|
|
List a3 = a(a2, dVar.j, dVar.k, dVar.l);
|
|
int[] iArr2 = iArr[i2];
|
|
for (int i3 = 0; i3 < a2.a; i3++) {
|
|
f9 a4 = a2.a(i3);
|
|
if ((a4.f & 16384) == 0 && a(iArr2[i3], dVar.J)) {
|
|
h hVar2 = new h(a4, dVar, iArr2[i3], a3.contains(Integer.valueOf(i3)));
|
|
if ((hVar2.a || dVar.C) && (hVar == null || hVar2.compareTo(hVar) > 0)) {
|
|
ooVar = a2;
|
|
i = i3;
|
|
hVar = hVar2;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (ooVar == null) {
|
|
return null;
|
|
}
|
|
return new h8.a(ooVar, i);
|
|
}
|
|
|
|
public h8.a a(int i, po poVar, int[][] iArr, d dVar) {
|
|
oo ooVar = null;
|
|
c cVar = null;
|
|
int i2 = 0;
|
|
for (int i3 = 0; i3 < poVar.a; i3++) {
|
|
oo a2 = poVar.a(i3);
|
|
int[] iArr2 = iArr[i3];
|
|
for (int i4 = 0; i4 < a2.a; i4++) {
|
|
if (a(iArr2[i4], dVar.J)) {
|
|
c cVar2 = new c(a2.a(i4), iArr2[i4]);
|
|
if (cVar == null || cVar2.compareTo(cVar) > 0) {
|
|
ooVar = a2;
|
|
i2 = i4;
|
|
cVar = cVar2;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (ooVar == null) {
|
|
return null;
|
|
}
|
|
return new h8.a(ooVar, i2);
|
|
}
|
|
|
|
public Pair a(po poVar, int[][] iArr, d dVar, String str) {
|
|
int i = -1;
|
|
oo ooVar = null;
|
|
g gVar = null;
|
|
for (int i2 = 0; i2 < poVar.a; i2++) {
|
|
oo a2 = poVar.a(i2);
|
|
int[] iArr2 = iArr[i2];
|
|
for (int i3 = 0; i3 < a2.a; i3++) {
|
|
if (a(iArr2[i3], dVar.J)) {
|
|
g gVar2 = new g(a2.a(i3), dVar, iArr2[i3], str);
|
|
if (gVar2.a && (gVar == null || gVar2.compareTo(gVar) > 0)) {
|
|
ooVar = a2;
|
|
i = i3;
|
|
gVar = gVar2;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (ooVar == null) {
|
|
return null;
|
|
}
|
|
return Pair.create(new h8.a(ooVar, i), (g) b1.a(gVar));
|
|
}
|
|
|
|
@Override // com.applovin.impl.tc
|
|
public final Pair a(tc.a aVar, int[][][] iArr, int[] iArr2, be.a aVar2, fo foVar) {
|
|
d dVar = (d) this.e.get();
|
|
int a2 = aVar.a();
|
|
h8.a[] a3 = a(aVar, iArr, iArr2, dVar);
|
|
int i = 0;
|
|
while (true) {
|
|
if (i >= a2) {
|
|
break;
|
|
}
|
|
int a4 = aVar.a(i);
|
|
if (!dVar.d(i) && !dVar.x.contains(Integer.valueOf(a4))) {
|
|
po b2 = aVar.b(i);
|
|
if (dVar.b(i, b2)) {
|
|
f a5 = dVar.a(i, b2);
|
|
a3[i] = a5 != null ? new h8.a(b2.a(a5.a), a5.b, a5.d) : null;
|
|
}
|
|
} else {
|
|
a3[i] = null;
|
|
}
|
|
i++;
|
|
}
|
|
h8[] a6 = this.d.a(a3, a(), aVar2, foVar);
|
|
si[] siVarArr = new si[a2];
|
|
for (int i2 = 0; i2 < a2; i2++) {
|
|
siVarArr[i2] = (dVar.d(i2) || dVar.x.contains(Integer.valueOf(aVar.a(i2))) || (aVar.a(i2) != -2 && a6[i2] == null)) ? null : si.b;
|
|
}
|
|
if (dVar.K) {
|
|
a(aVar, iArr, siVarArr, a6);
|
|
}
|
|
return Pair.create(siVarArr, a6);
|
|
}
|
|
|
|
private static List a(oo ooVar, int i, int i2, boolean z) {
|
|
int i3;
|
|
ArrayList arrayList = new ArrayList(ooVar.a);
|
|
for (int i4 = 0; i4 < ooVar.a; i4++) {
|
|
arrayList.add(Integer.valueOf(i4));
|
|
}
|
|
if (i != Integer.MAX_VALUE && i2 != Integer.MAX_VALUE) {
|
|
int i5 = Integer.MAX_VALUE;
|
|
for (int i6 = 0; i6 < ooVar.a; i6++) {
|
|
f9 a2 = ooVar.a(i6);
|
|
int i7 = a2.r;
|
|
if (i7 > 0 && (i3 = a2.s) > 0) {
|
|
Point a3 = a(z, i, i2, i7, i3);
|
|
int i8 = a2.r;
|
|
int i9 = a2.s;
|
|
int i10 = i8 * i9;
|
|
if (i8 >= ((int) (a3.x * 0.98f)) && i9 >= ((int) (a3.y * 0.98f)) && i10 < i5) {
|
|
i5 = i10;
|
|
}
|
|
}
|
|
}
|
|
if (i5 != Integer.MAX_VALUE) {
|
|
for (int size = arrayList.size() - 1; size >= 0; size--) {
|
|
int b2 = ooVar.a(((Integer) arrayList.get(size)).intValue()).b();
|
|
if (b2 == -1 || b2 > i5) {
|
|
arrayList.remove(size);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return arrayList;
|
|
}
|
|
}
|