135 lines
4.2 KiB
Java
135 lines
4.2 KiB
Java
|
package c.i.e.r.d;
|
||
|
|
||
|
import c.i.e.k;
|
||
|
import java.util.Formatter;
|
||
|
/* compiled from: DetectionResult */
|
||
|
public final class f {
|
||
|
public final a a;
|
||
|
public final g[] b;
|
||
|
|
||
|
/* renamed from: c reason: collision with root package name */
|
||
|
public c f1440c;
|
||
|
public final int d;
|
||
|
|
||
|
public f(a aVar, c cVar) {
|
||
|
this.a = aVar;
|
||
|
int i = aVar.a;
|
||
|
this.d = i;
|
||
|
this.f1440c = cVar;
|
||
|
this.b = new g[(i + 2)];
|
||
|
}
|
||
|
|
||
|
public static int b(int i, int i2, d dVar) {
|
||
|
if (dVar.a()) {
|
||
|
return i2;
|
||
|
}
|
||
|
if (!(i != -1 && dVar.f1438c == (i % 3) * 3)) {
|
||
|
return i2 + 1;
|
||
|
}
|
||
|
dVar.e = i;
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
public final void a(g gVar) {
|
||
|
int i;
|
||
|
if (gVar != null) {
|
||
|
h hVar = (h) gVar;
|
||
|
a aVar = this.a;
|
||
|
d[] dVarArr = hVar.b;
|
||
|
for (d dVar : dVarArr) {
|
||
|
if (dVar != null) {
|
||
|
dVar.b();
|
||
|
}
|
||
|
}
|
||
|
hVar.d(dVarArr, aVar);
|
||
|
c cVar = hVar.a;
|
||
|
boolean z2 = hVar.f1441c;
|
||
|
k kVar = z2 ? cVar.b : cVar.d;
|
||
|
k kVar2 = z2 ? cVar.f1437c : cVar.e;
|
||
|
int b = hVar.b((int) kVar.b);
|
||
|
int b2 = hVar.b((int) kVar2.b);
|
||
|
int i2 = -1;
|
||
|
int i3 = 0;
|
||
|
int i4 = 1;
|
||
|
while (b < b2) {
|
||
|
if (dVarArr[b] != null) {
|
||
|
d dVar2 = dVarArr[b];
|
||
|
int i5 = dVar2.e;
|
||
|
int i6 = i5 - i2;
|
||
|
if (i6 == 0) {
|
||
|
i3++;
|
||
|
} else {
|
||
|
if (i6 == 1) {
|
||
|
int max = Math.max(i4, i3);
|
||
|
i = dVar2.e;
|
||
|
i4 = max;
|
||
|
} else if (i6 < 0 || i5 >= aVar.e || i6 > b) {
|
||
|
dVarArr[b] = null;
|
||
|
} else {
|
||
|
if (i4 > 2) {
|
||
|
i6 *= i4 - 2;
|
||
|
}
|
||
|
boolean z3 = i6 >= b;
|
||
|
for (int i7 = 1; i7 <= i6 && !z3; i7++) {
|
||
|
z3 = dVarArr[b - i7] != null;
|
||
|
}
|
||
|
if (z3) {
|
||
|
dVarArr[b] = null;
|
||
|
} else {
|
||
|
i = dVar2.e;
|
||
|
}
|
||
|
}
|
||
|
i2 = i;
|
||
|
i3 = 1;
|
||
|
}
|
||
|
}
|
||
|
b++;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARNING: Code restructure failed: missing block: B:25:0x0076, code lost:
|
||
|
r2 = move-exception;
|
||
|
*/
|
||
|
/* JADX WARNING: Code restructure failed: missing block: B:27:?, code lost:
|
||
|
r0.close();
|
||
|
*/
|
||
|
/* JADX WARNING: Code restructure failed: missing block: B:28:0x007b, code lost:
|
||
|
r0 = move-exception;
|
||
|
*/
|
||
|
/* JADX WARNING: Code restructure failed: missing block: B:29:0x007c, code lost:
|
||
|
r1.addSuppressed(r0);
|
||
|
*/
|
||
|
/* JADX WARNING: Code restructure failed: missing block: B:30:0x007f, code lost:
|
||
|
throw r2;
|
||
|
*/
|
||
|
public String toString() {
|
||
|
g[] gVarArr = this.b;
|
||
|
g gVar = gVarArr[0];
|
||
|
if (gVar == null) {
|
||
|
gVar = gVarArr[this.d + 1];
|
||
|
}
|
||
|
Formatter formatter = new Formatter();
|
||
|
for (int i = 0; i < gVar.b.length; i++) {
|
||
|
formatter.format("CW %3d:", Integer.valueOf(i));
|
||
|
for (int i2 = 0; i2 < this.d + 2; i2++) {
|
||
|
g[] gVarArr2 = this.b;
|
||
|
if (gVarArr2[i2] == null) {
|
||
|
formatter.format(" | ", new Object[0]);
|
||
|
} else {
|
||
|
d dVar = gVarArr2[i2].b[i];
|
||
|
if (dVar == null) {
|
||
|
formatter.format(" | ", new Object[0]);
|
||
|
} else {
|
||
|
formatter.format(" %3d|%3d", Integer.valueOf(dVar.e), Integer.valueOf(dVar.d));
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
formatter.format("%n", new Object[0]);
|
||
|
}
|
||
|
String formatter2 = formatter.toString();
|
||
|
formatter.close();
|
||
|
return formatter2;
|
||
|
}
|
||
|
}
|