359 lines
13 KiB
Java
359 lines
13 KiB
Java
|
package o;
|
||
|
|
||
|
import android.graphics.Bitmap;
|
||
|
import android.graphics.Matrix;
|
||
|
import android.text.TextUtils;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import java.io.ByteArrayOutputStream;
|
||
|
import java.io.OutputStream;
|
||
|
import java.lang.reflect.Method;
|
||
|
import net.sf.scuba.smartcards.ISO7816;
|
||
|
|
||
|
/* renamed from: o.diM, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C9362diM {
|
||
|
private static final byte[] $$a = {47, ISO7816.INS_APPEND_RECORD, -94, -105};
|
||
|
private static final int $$b = 67;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int d = 0;
|
||
|
private static int h = 1;
|
||
|
private static char a = 50186;
|
||
|
private static char e = 52138;
|
||
|
private static char c = 14695;
|
||
|
private static char b = 64505;
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x002c). 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 g(int r6, short r7, int r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
int r6 = r6 * 4
|
||
|
int r0 = 1 - r6
|
||
|
byte[] r1 = o.C9362diM.$$a
|
||
|
int r8 = 67 - r8
|
||
|
int r7 = r7 + 4
|
||
|
byte[] r0 = new byte[r0]
|
||
|
r2 = 0
|
||
|
int r6 = 0 - r6
|
||
|
if (r1 != 0) goto L15
|
||
|
r3 = r8
|
||
|
r4 = r2
|
||
|
r8 = r7
|
||
|
goto L2c
|
||
|
L15:
|
||
|
r3 = r2
|
||
|
L16:
|
||
|
byte r4 = (byte) r8
|
||
|
r0[r3] = r4
|
||
|
int r4 = r3 + 1
|
||
|
if (r3 != r6) goto L25
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r0, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L25:
|
||
|
int r7 = r7 + 1
|
||
|
r3 = r1[r7]
|
||
|
r5 = r8
|
||
|
r8 = r7
|
||
|
r7 = r5
|
||
|
L2c:
|
||
|
int r7 = r7 + r3
|
||
|
r3 = r4
|
||
|
r5 = r8
|
||
|
r8 = r7
|
||
|
r7 = r5
|
||
|
goto L16
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.C9362diM.g(int, short, int, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
public static final byte[] Gj_(Bitmap bitmap, int i, int i2, int i3, int i4, int i5) {
|
||
|
int i6 = 2 % 2;
|
||
|
C14957gcv.e(bitmap, "");
|
||
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
||
|
Gi_(bitmap, i, i2, i3, i4, byteArrayOutputStream, i5);
|
||
|
byte[] byteArray = byteArrayOutputStream.toByteArray();
|
||
|
C14957gcv.c(byteArray, "");
|
||
|
int i7 = d + 63;
|
||
|
h = i7 % 128;
|
||
|
int i8 = i7 % 2;
|
||
|
return byteArray;
|
||
|
}
|
||
|
|
||
|
private static void Gi_(Bitmap bitmap, int i, int i2, int i3, int i4, OutputStream outputStream, int i5) {
|
||
|
int i6 = 2 % 2;
|
||
|
int i7 = d + 27;
|
||
|
h = i7 % 128;
|
||
|
int i8 = i7 % 2;
|
||
|
C14957gcv.e(bitmap, "");
|
||
|
C14957gcv.e(outputStream, "");
|
||
|
float width = bitmap.getWidth();
|
||
|
float height = bitmap.getHeight();
|
||
|
b("src width = ".concat(String.valueOf(width)));
|
||
|
b("src height = ".concat(String.valueOf(height)));
|
||
|
float Gh_ = Gh_(bitmap, i, i2);
|
||
|
b("scale = ".concat(String.valueOf(Gh_)));
|
||
|
float f = width / Gh_;
|
||
|
float f2 = height / Gh_;
|
||
|
b("dst width = ".concat(String.valueOf(f)));
|
||
|
b("dst height = ".concat(String.valueOf(f2)));
|
||
|
Bitmap createScaledBitmap = Bitmap.createScaledBitmap(bitmap, (int) f, (int) f2, true);
|
||
|
C14957gcv.c(createScaledBitmap, "");
|
||
|
Gl_(createScaledBitmap, i4).compress((Bitmap.CompressFormat) b(new Object[]{Integer.valueOf(i5)}), i3, outputStream);
|
||
|
int i9 = d + 29;
|
||
|
h = i9 % 128;
|
||
|
if (i9 % 2 != 0) {
|
||
|
return;
|
||
|
}
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x004a, code lost:
|
||
|
|
||
|
java.lang.System.out.println(r5);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x0023, code lost:
|
||
|
|
||
|
if ((!r1) != true) goto L9;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0019, code lost:
|
||
|
|
||
|
if (r1 != false) goto L9;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x0025, code lost:
|
||
|
|
||
|
if (r5 != null) goto L11;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x0027, code lost:
|
||
|
|
||
|
r5 = o.C9362diM.d + 27;
|
||
|
o.C9362diM.h = r5 % 128;
|
||
|
r5 = r5 % 2;
|
||
|
r2 = new java.lang.Object[1];
|
||
|
f(new char[]{15732, 58126, 6326, 59593}, 4 - android.text.TextUtils.indexOf("", "", 0, 0), r2);
|
||
|
r5 = ((java.lang.String) r2[0]).intern();
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static final void b(java.lang.Object r5) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = o.C9362diM.d
|
||
|
int r1 = r1 + 39
|
||
|
int r2 = r1 % 128
|
||
|
o.C9362diM.h = r2
|
||
|
int r1 = r1 % r0
|
||
|
r2 = 1
|
||
|
r3 = 0
|
||
|
if (r1 != 0) goto L1c
|
||
|
o.goN$IeS r1 = o.goN.a
|
||
|
boolean r1 = o.goN.a()
|
||
|
r4 = 48
|
||
|
int r4 = r4 / r3
|
||
|
if (r1 == 0) goto L4f
|
||
|
goto L25
|
||
|
L1c:
|
||
|
o.goN$IeS r1 = o.goN.a
|
||
|
boolean r1 = o.goN.a()
|
||
|
r1 = r1 ^ r2
|
||
|
if (r1 == r2) goto L4f
|
||
|
L25:
|
||
|
if (r5 != 0) goto L4a
|
||
|
int r5 = o.C9362diM.d
|
||
|
int r5 = r5 + 27
|
||
|
int r1 = r5 % 128
|
||
|
o.C9362diM.h = r1
|
||
|
int r5 = r5 % r0
|
||
|
r5 = 4
|
||
|
char[] r1 = new char[r5]
|
||
|
r1 = {x005a: FILL_ARRAY_DATA , data: [15732, -7410, 6326, -5943} // fill-array
|
||
|
java.lang.String r4 = ""
|
||
|
int r4 = android.text.TextUtils.indexOf(r4, r4, r3, r3)
|
||
|
int r5 = r5 - r4
|
||
|
java.lang.Object[] r2 = new java.lang.Object[r2]
|
||
|
f(r1, r5, r2)
|
||
|
r5 = r2[r3]
|
||
|
java.lang.String r5 = (java.lang.String) r5
|
||
|
java.lang.String r5 = r5.intern()
|
||
|
L4a:
|
||
|
java.io.PrintStream r1 = java.lang.System.out
|
||
|
r1.println(r5)
|
||
|
L4f:
|
||
|
int r5 = o.C9362diM.d
|
||
|
int r5 = r5 + 51
|
||
|
int r1 = r5 % 128
|
||
|
o.C9362diM.h = r1
|
||
|
int r5 = r5 % r0
|
||
|
return
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.C9362diM.b(java.lang.Object):void");
|
||
|
}
|
||
|
|
||
|
public static final Bitmap Gl_(Bitmap bitmap, int i) {
|
||
|
int i2 = 2 % 2;
|
||
|
int i3 = d + 27;
|
||
|
h = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
C14957gcv.e(bitmap, "");
|
||
|
if (i % 360 != 0) {
|
||
|
Matrix matrix = new Matrix();
|
||
|
matrix.setRotate(i);
|
||
|
bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, false);
|
||
|
C14957gcv.c(bitmap, "");
|
||
|
}
|
||
|
int i5 = d + 117;
|
||
|
h = i5 % 128;
|
||
|
int i6 = i5 % 2;
|
||
|
return bitmap;
|
||
|
}
|
||
|
|
||
|
public static final float Gh_(Bitmap bitmap, int i, int i2) {
|
||
|
int i3 = 2 % 2;
|
||
|
int i4 = h + 15;
|
||
|
d = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
C14957gcv.e(bitmap, "");
|
||
|
float width = bitmap.getWidth() / i;
|
||
|
float height = bitmap.getHeight() / i2;
|
||
|
b("width scale = ".concat(String.valueOf(width)));
|
||
|
b("height scale = ".concat(String.valueOf(height)));
|
||
|
float max = Math.max(1.0f, Math.min(width, height));
|
||
|
int i6 = h + 5;
|
||
|
d = i6 % 128;
|
||
|
if (i6 % 2 == 0) {
|
||
|
return max;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public static /* synthetic */ Object b(Object[] objArr) {
|
||
|
Bitmap.CompressFormat compressFormat;
|
||
|
int intValue = ((Number) objArr[0]).intValue();
|
||
|
int i = 2 % 2;
|
||
|
int i2 = h;
|
||
|
int i3 = i2 + 73;
|
||
|
d = i3 % 128;
|
||
|
if (i3 % 2 == 0 ? intValue == 1 : intValue == 1) {
|
||
|
compressFormat = Bitmap.CompressFormat.PNG;
|
||
|
} else {
|
||
|
int i4 = i2 + 43;
|
||
|
d = i4 % 128;
|
||
|
if (i4 % 2 == 0 ? intValue == 3 : intValue == 2) {
|
||
|
compressFormat = Bitmap.CompressFormat.WEBP;
|
||
|
} else {
|
||
|
compressFormat = Bitmap.CompressFormat.JPEG;
|
||
|
}
|
||
|
}
|
||
|
int i5 = d + 109;
|
||
|
h = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
return compressFormat;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
private static void f(char[] cArr, int i, Object[] objArr) {
|
||
|
int i2 = 2 % 2;
|
||
|
jTb jtb = new jTb();
|
||
|
char[] cArr2 = new char[cArr.length];
|
||
|
int i3 = 0;
|
||
|
jtb.b = 0;
|
||
|
char[] cArr3 = new char[2];
|
||
|
while (jtb.b < cArr.length) {
|
||
|
int i4 = $10 + 23;
|
||
|
$11 = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
cArr3[i3] = cArr[jtb.b];
|
||
|
cArr3[1] = cArr[jtb.b + 1];
|
||
|
int i6 = $11 + 107;
|
||
|
$10 = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
int i8 = 58224;
|
||
|
int i9 = i3;
|
||
|
while (i9 < 16) {
|
||
|
int i10 = $10 + 31;
|
||
|
$11 = i10 % 128;
|
||
|
int i11 = i10 % 2;
|
||
|
char c2 = cArr3[1];
|
||
|
char c3 = cArr3[i3];
|
||
|
char[] cArr4 = cArr3;
|
||
|
try {
|
||
|
Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf((c3 + i8) ^ ((c3 << 4) + ((char) (c ^ 41718355337583039L)))), Integer.valueOf(c3 >>> 5), Integer.valueOf(b)};
|
||
|
Object obj = xzZ.y.get(597144044);
|
||
|
if (obj == null) {
|
||
|
Class cls = (Class) xzZ.c(412 - View.combineMeasuredStates(0, 0), 5 - View.MeasureSpec.getSize(0), (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16));
|
||
|
byte b2 = (byte) 0;
|
||
|
byte b3 = (byte) (b2 - 1);
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
g(b2, b3, (byte) (-b3), objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(597144044, obj);
|
||
|
}
|
||
|
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
||
|
cArr4[1] = charValue;
|
||
|
Object[] objArr4 = {Integer.valueOf(cArr4[0]), Integer.valueOf((charValue + i8) ^ ((charValue << 4) + ((char) (a ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(e)};
|
||
|
Object obj2 = xzZ.y.get(597144044);
|
||
|
if (obj2 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(412 - (ViewConfiguration.getJumpTapTimeout() >> 16), (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) TextUtils.getCapsMode("", 0, 0));
|
||
|
byte b4 = (byte) 0;
|
||
|
byte b5 = (byte) (b4 - 1);
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
g(b4, b5, (byte) (-b5), objArr5);
|
||
|
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(597144044, obj2);
|
||
|
}
|
||
|
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
|
||
|
i8 -= 40503;
|
||
|
i9++;
|
||
|
cArr3 = cArr4;
|
||
|
i3 = 0;
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
char[] cArr5 = cArr3;
|
||
|
cArr2[jtb.b] = cArr5[0];
|
||
|
cArr2[jtb.b + 1] = cArr5[1];
|
||
|
Object[] objArr6 = {jtb, jtb};
|
||
|
Object obj3 = xzZ.y.get(943004485);
|
||
|
if (obj3 == null) {
|
||
|
Class cls3 = (Class) xzZ.c((ViewConfiguration.getJumpTapTimeout() >> 16) + 98, 4 - TextUtils.lastIndexOf("", '0', 0, 0), (char) (ViewConfiguration.getWindowTouchSlop() >> 8));
|
||
|
byte b6 = (byte) 0;
|
||
|
byte b7 = (byte) (b6 - 1);
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
g(b6, b7, (byte) (b7 + 1), objArr7);
|
||
|
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
|
||
|
xzZ.y.put(943004485, obj3);
|
||
|
}
|
||
|
((Method) obj3).invoke(null, objArr6);
|
||
|
int i12 = $10 + 55;
|
||
|
$11 = i12 % 128;
|
||
|
int i13 = i12 % 2;
|
||
|
cArr3 = cArr5;
|
||
|
i3 = 0;
|
||
|
}
|
||
|
objArr[0] = new String(cArr2, 0, i);
|
||
|
}
|
||
|
|
||
|
private static Bitmap.CompressFormat Gk_(int i) {
|
||
|
return (Bitmap.CompressFormat) b(new Object[]{Integer.valueOf(i)});
|
||
|
}
|
||
|
}
|