293 lines
12 KiB
Java
293 lines
12 KiB
Java
package o;
|
|
|
|
import com.google.common.base.Ascii;
|
|
import com.kofax.kmc.kut.utilities.IpLibUtil;
|
|
import net.sf.scuba.smartcards.ISO7816;
|
|
import net.sf.scuba.smartcards.ISOFileInfo;
|
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
|
import org.jmrtd.cbeff.ISO781611;
|
|
|
|
/* renamed from: o.fVc, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C13259fVc<T> extends AbstractC13175fSw<Boolean> implements InterfaceC13204fTr<Boolean> {
|
|
private InterfaceC13193fTg<? super T> a;
|
|
private InterfaceC13169fSq<T> d;
|
|
private static final byte[] e = {119, 83, -12, -52, 2, -7, -1, 3, -8, 4, -8, 7, -11, -1, 4, -9, -1, 5, -10, 8, -12, 4, -8, -1, 6, -11, 9, -13, -1, 7, -12, -1, 8, -13, 11, -15, 3, -3, -6, 3, -2, -7, -1, 9, -14, 3, -1, -8, 3, -2, -7, -1, 10, -15, -1, 2, -3, -6, -1, 2, -2, -7, -1, 2, -2, -7, -1, 8, -13, 3, 1, -10, 3, 2, -11, 3, 3, -12, 3, -3, -6, 3, -2, -7, -1, 9, -14, 3, -1, -8, 3, -2, -7, -1, 2, -1, -8, -1, 2, 0, -9, -1, 2, 1, -10, -1, 3, -8, 3, 4, -13, -1, 4, -9, -1, 5, -10, -1, 2, 2, -11, 3, 6, -15, -1, 2, 3, -12, 7, -11, -1, 2, 3, -12, -1, 2, 4, -13, -1, 2, 4, -11, 19, -23, -53, 60, -13, 11, -9, -59, 35, Ascii.US, -4, -11, 3, -9, -5, -6, -5, 9, -11, 19, -23, -53, 60, -13, 11, -9, -59, Ascii.EM, 35, 4, -17, 0, -4, 11, -23, 9, 7, -18, -24, Ascii.NAK, 3, 4, ISO7816.INS_CREATE_FILE, 9, 9, 7, -18, -11, 19, -23, -53, 60, -13, 11, -9, -59, Ascii.NAK, 49, -23, 0, 9, 2, -13, 4, -3};
|
|
private static final int g = 100;
|
|
private static int b = 0;
|
|
private static int c = 1;
|
|
|
|
public C13259fVc(InterfaceC13169fSq<T> interfaceC13169fSq, InterfaceC13193fTg<? super T> interfaceC13193fTg) {
|
|
this.d = interfaceC13169fSq;
|
|
this.a = interfaceC13193fTg;
|
|
}
|
|
|
|
@Override // o.AbstractC13175fSw
|
|
public final void e(InterfaceC13176fSx<? super Boolean> interfaceC13176fSx) {
|
|
this.d.subscribe(new Sts(interfaceC13176fSx, this.a));
|
|
}
|
|
|
|
@Override // o.InterfaceC13204fTr
|
|
public final AbstractC13163fSk<Boolean> b() {
|
|
return new fUZ(this.d, this.a);
|
|
}
|
|
|
|
/* renamed from: o.fVc$Sts */
|
|
/* loaded from: classes6.dex */
|
|
static final class Sts<T> implements InterfaceC13174fSv<T>, fSJ {
|
|
private InterfaceC13193fTg<? super T> a;
|
|
private fSJ b;
|
|
private boolean d;
|
|
private InterfaceC13176fSx<? super Boolean> e;
|
|
|
|
Sts(InterfaceC13176fSx<? super Boolean> interfaceC13176fSx, InterfaceC13193fTg<? super T> interfaceC13193fTg) {
|
|
this.e = interfaceC13176fSx;
|
|
this.a = interfaceC13193fTg;
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onSubscribe(fSJ fsj) {
|
|
if (EnumC13192fTf.d(this.b, fsj)) {
|
|
this.b = fsj;
|
|
this.e.onSubscribe(this);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onNext(T t) {
|
|
if (this.d) {
|
|
return;
|
|
}
|
|
try {
|
|
if (this.a.a(t)) {
|
|
return;
|
|
}
|
|
this.d = true;
|
|
this.b.dispose();
|
|
this.e.e(Boolean.FALSE);
|
|
} catch (Throwable th) {
|
|
C13147fSI.c(th);
|
|
this.b.dispose();
|
|
onError(th);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
if (this.d) {
|
|
C13418fZu.c(th);
|
|
} else {
|
|
this.d = true;
|
|
this.e.onError(th);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onComplete() {
|
|
if (this.d) {
|
|
return;
|
|
}
|
|
this.d = true;
|
|
this.e.e(Boolean.TRUE);
|
|
}
|
|
|
|
@Override // o.fSJ
|
|
public final void dispose() {
|
|
this.b.dispose();
|
|
}
|
|
|
|
@Override // o.fSJ
|
|
public final boolean isDisposed() {
|
|
return this.b.isDisposed();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Failed to find 'out' block for switch in B:16:0x0129. Please report as an issue. */
|
|
public static void c(long j, long j2) {
|
|
C13322fXT c13322fXT = new C13322fXT(j, j2);
|
|
byte[] bArr = e;
|
|
char c2 = 'c';
|
|
short s = bArr[99];
|
|
Object[] objArr = new Object[1];
|
|
f((byte) 73, s, s, objArr);
|
|
char c3 = 0;
|
|
String str = (String) objArr[0];
|
|
short s2 = (short) CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA;
|
|
Object[] objArr2 = new Object[1];
|
|
f((byte) 74, s2, s2, objArr2);
|
|
try {
|
|
Object[] objArr3 = {(String) objArr2[0]};
|
|
char c4 = 2;
|
|
short s3 = (short) 122;
|
|
Object[] objArr4 = new Object[1];
|
|
f((byte) (-bArr[2]), s3, s2, objArr4);
|
|
Class<?> cls = Class.forName((String) objArr4[0]);
|
|
Object[] objArr5 = new Object[1];
|
|
f(bArr[7], (short) 133, (short) CipherSuite.TLS_DH_RSA_WITH_SEED_CBC_SHA, objArr5);
|
|
String str2 = (String) objArr5[0];
|
|
Object[] objArr6 = new Object[1];
|
|
f((byte) (-bArr[2]), s3, s2, objArr6);
|
|
Object[] objArr7 = (Object[]) cls.getMethod(str2, Class.forName((String) objArr6[0])).invoke(str, objArr3);
|
|
int[] iArr = new int[objArr7.length];
|
|
int i = 0;
|
|
while (i < objArr7.length) {
|
|
Object[] objArr8 = {objArr7[i]};
|
|
byte[] bArr2 = e;
|
|
byte b2 = (byte) (-bArr2[c4]);
|
|
short s4 = (short) 121;
|
|
short s5 = (short) CipherSuite.TLS_RSA_WITH_AES_128_GCM_SHA256;
|
|
Object[] objArr9 = new Object[1];
|
|
f(b2, s4, s5, objArr9);
|
|
Class<?> cls2 = Class.forName((String) objArr9[c3]);
|
|
byte b3 = bArr2[c2];
|
|
Object[] objArr10 = new Object[1];
|
|
f(b3, (short) (b3 | ISOFileInfo.FILE_IDENTIFIER), (short) CipherSuite.TLS_RSA_PSK_WITH_AES_128_GCM_SHA256, objArr10);
|
|
String str3 = (String) objArr10[0];
|
|
Object[] objArr11 = new Object[1];
|
|
f((byte) (-bArr2[2]), s3, s2, objArr11);
|
|
Object invoke = cls2.getMethod(str3, Class.forName((String) objArr11[0])).invoke(null, objArr8);
|
|
Object[] objArr12 = new Object[1];
|
|
f((byte) (-bArr2[2]), s4, s5, objArr12);
|
|
Class<?> cls3 = Class.forName((String) objArr12[0]);
|
|
byte b4 = (byte) (-bArr2[27]);
|
|
short s6 = (short) ISO781611.BIOMETRIC_SUBTYPE_TAG;
|
|
Object[] objArr13 = new Object[1];
|
|
f(b4, s6, (short) (s6 | 48), objArr13);
|
|
iArr[i] = ((Integer) cls3.getMethod((String) objArr13[0], null).invoke(invoke, null)).intValue();
|
|
i++;
|
|
c2 = 'c';
|
|
c3 = 0;
|
|
c4 = 2;
|
|
}
|
|
int i2 = 0;
|
|
while (true) {
|
|
int i3 = i2 + 1;
|
|
try {
|
|
} catch (Throwable th) {
|
|
byte[] bArr3 = e;
|
|
byte b5 = (byte) (-bArr3[2]);
|
|
short s7 = bArr3[0];
|
|
short s8 = (short) CipherSuite.TLS_RSA_PSK_WITH_NULL_SHA384;
|
|
Object[] objArr14 = new Object[1];
|
|
f(b5, s7, s8, objArr14);
|
|
if (!Class.forName((String) objArr14[0]).isInstance(th) || i3 < 34 || i3 > 35) {
|
|
Object[] objArr15 = new Object[1];
|
|
f((byte) (-bArr3[2]), bArr3[0], s8, objArr15);
|
|
if (!Class.forName((String) objArr15[0]).isInstance(th) || i3 < 36 || i3 > 38) {
|
|
throw th;
|
|
}
|
|
}
|
|
c13322fXT.h = th;
|
|
c13322fXT.b(21);
|
|
i2 = 43;
|
|
}
|
|
switch (c13322fXT.b(iArr[i2])) {
|
|
case IpLibUtil.KIPP_BAD_PDF /* -17 */:
|
|
c13322fXT.b(20);
|
|
throw ((Throwable) c13322fXT.j);
|
|
break;
|
|
case IpLibUtil.KIPP_CANNOT_APPEND_TO_FILETYPE /* -16 */:
|
|
i2 = 38;
|
|
case IpLibUtil.KIPP_BAD_FILE_TO_APPEND_TO /* -15 */:
|
|
c13322fXT.b(18);
|
|
i2 = c13322fXT.d != 0 ? 34 : 1;
|
|
case IpLibUtil.KIPP_BAD_FILE_FORMAT_INTERNALS /* -14 */:
|
|
i2 = 39;
|
|
case IpLibUtil.KIPP_IMAGE_DOES_NOT_EXIST /* -13 */:
|
|
i2 = 41;
|
|
case IpLibUtil.KIPP_UNKNOWN_FILETYPE /* -12 */:
|
|
c13322fXT.b(13);
|
|
i2 = c13322fXT.d == 0 ? 33 : i3;
|
|
case -11:
|
|
i2 = 9;
|
|
case -10:
|
|
i2 = 21;
|
|
case -9:
|
|
c13322fXT.b(13);
|
|
if (c13322fXT.d == 0) {
|
|
i2 = 20;
|
|
}
|
|
case -8:
|
|
c13322fXT.b = 1;
|
|
c13322fXT.b(3);
|
|
c13322fXT.b(4);
|
|
c = c13322fXT.d;
|
|
case -7:
|
|
c13322fXT.b = b;
|
|
c13322fXT.b(8);
|
|
case -6:
|
|
return;
|
|
case -5:
|
|
i2 = 22;
|
|
case -4:
|
|
i2 = 11;
|
|
case -3:
|
|
c13322fXT.b = 1;
|
|
c13322fXT.b(3);
|
|
c13322fXT.b(4);
|
|
C12910fKv.c(c13322fXT.d != 0);
|
|
case -2:
|
|
c13322fXT.h = C12910fKv.e;
|
|
c13322fXT.b(1);
|
|
case -1:
|
|
i2 = 6;
|
|
default:
|
|
}
|
|
}
|
|
throw th;
|
|
} catch (Throwable th2) {
|
|
Throwable cause = th2.getCause();
|
|
if (cause == null) {
|
|
throw th2;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0028). Please report as a decompilation issue!!! */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private static void f(int r6, int r7, short r8, java.lang.Object[] r9) {
|
|
/*
|
|
int r8 = r8 + 4
|
|
byte[] r0 = o.C13259fVc.e
|
|
int r1 = 138 - r7
|
|
int r6 = 118 - r6
|
|
byte[] r1 = new byte[r1]
|
|
int r7 = 137 - r7
|
|
r2 = 0
|
|
if (r0 != 0) goto L13
|
|
r4 = r7
|
|
r6 = r8
|
|
r3 = r2
|
|
goto L28
|
|
L13:
|
|
r3 = r2
|
|
r5 = r8
|
|
r8 = r6
|
|
r6 = r5
|
|
L17:
|
|
byte r4 = (byte) r8
|
|
r1[r3] = r4
|
|
if (r3 != r7) goto L24
|
|
java.lang.String r6 = new java.lang.String
|
|
r6.<init>(r1, r2)
|
|
r9[r2] = r6
|
|
return
|
|
L24:
|
|
int r3 = r3 + 1
|
|
r4 = r0[r6]
|
|
L28:
|
|
int r8 = r8 + r4
|
|
int r8 = r8 + 2
|
|
int r6 = r6 + 1
|
|
goto L17
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.C13259fVc.f(int, int, short, java.lang.Object[]):void");
|
|
}
|
|
}
|