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

141 lines
5.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Bitmap;
/* loaded from: classes.dex */
public final class Vey implements nuW<Bitmap> {
private static wrW<Integer> a = wrW.a("com.bumptech.glide.load.resource.bitmap.BitmapEncoder.CompressionQuality", 90);
private static wrW<Bitmap.CompressFormat> b = wrW.c("com.bumptech.glide.load.resource.bitmap.BitmapEncoder.CompressionFormat");
private final Opg d;
public Vey(Opg opg) {
this.d = opg;
}
@Deprecated
public Vey() {
this.d = null;
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Removed duplicated region for block: B:27:0x0088 */
@Override // o.gaU
/* renamed from: c, reason: merged with bridge method [inline-methods] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public boolean d(o.Ezi<android.graphics.Bitmap> r7, java.io.File r8, o.unA r9) {
/*
r6 = this;
java.lang.Object r7 = r7.e()
android.graphics.Bitmap r7 = (android.graphics.Bitmap) r7
o.wrW<android.graphics.Bitmap$CompressFormat> r0 = o.Vey.b
o.nyh<o.wrW<?>, java.lang.Object> r1 = r9.d
boolean r1 = r1.containsKey(r0)
if (r1 == 0) goto L17
o.nyh<o.wrW<?>, java.lang.Object> r1 = r9.d
java.lang.Object r0 = r1.get(r0)
goto L19
L17:
T r0 = r0.a
L19:
android.graphics.Bitmap$CompressFormat r0 = (android.graphics.Bitmap.CompressFormat) r0
if (r0 == 0) goto L1e
goto L29
L1e:
boolean r0 = r7.hasAlpha()
if (r0 == 0) goto L27
android.graphics.Bitmap$CompressFormat r0 = android.graphics.Bitmap.CompressFormat.PNG
goto L29
L27:
android.graphics.Bitmap$CompressFormat r0 = android.graphics.Bitmap.CompressFormat.JPEG
L29:
r7.getWidth()
r7.getHeight()
long r1 = o.PYC.e()
o.wrW<java.lang.Integer> r3 = o.Vey.a
o.nyh<o.wrW<?>, java.lang.Object> r4 = r9.d
boolean r4 = r4.containsKey(r3)
if (r4 == 0) goto L44
o.nyh<o.wrW<?>, java.lang.Object> r4 = r9.d
java.lang.Object r3 = r4.get(r3)
goto L46
L44:
T r3 = r3.a
L46:
java.lang.Integer r3 = (java.lang.Integer) r3
int r3 = r3.intValue()
r4 = 0
java.io.FileOutputStream r5 = new java.io.FileOutputStream // Catch: java.lang.Throwable -> L6d java.io.IOException -> L75
r5.<init>(r8) // Catch: java.lang.Throwable -> L6d java.io.IOException -> L75
o.Opg r8 = r6.d // Catch: java.lang.Throwable -> L6b java.io.IOException -> L76
if (r8 == 0) goto L5f
o.Ytq r8 = new o.Ytq // Catch: java.lang.Throwable -> L6b java.io.IOException -> L76
o.Opg r4 = r6.d // Catch: java.lang.Throwable -> L6b java.io.IOException -> L76
r8.<init>(r5, r4) // Catch: java.lang.Throwable -> L6b java.io.IOException -> L76
r4 = r8
goto L60
L5f:
r4 = r5
L60:
r7.compress(r0, r3, r4) // Catch: java.lang.Throwable -> L6d java.io.IOException -> L75
r4.close() // Catch: java.lang.Throwable -> L6d java.io.IOException -> L75
r4.close() // Catch: java.io.IOException -> L69 java.lang.Throwable -> L7c
L69:
r8 = 1
goto L7f
L6b:
r7 = move-exception
goto L6f
L6d:
r7 = move-exception
r5 = r4
L6f:
if (r5 == 0) goto L74
r5.close() // Catch: java.io.IOException -> L74 java.lang.Throwable -> L7c
L74:
throw r7
L75:
r5 = r4
L76:
if (r5 == 0) goto L7e
r5.close() // Catch: java.lang.Throwable -> L7c java.io.IOException -> L7e
goto L7e
L7c:
r7 = move-exception
throw r7
L7e:
r8 = 0
L7f:
java.lang.String r3 = "BitmapEncoder"
r4 = 2
boolean r3 = android.util.Log.isLoggable(r3, r4)
if (r3 == 0) goto Laa
java.util.Objects.toString(r0)
o.FKd.FX_(r7)
o.PYC.e(r1)
o.wrW<android.graphics.Bitmap$CompressFormat> r0 = o.Vey.b
o.nyh<o.wrW<?>, java.lang.Object> r1 = r9.d
boolean r1 = r1.containsKey(r0)
if (r1 == 0) goto La2
o.nyh<o.wrW<?>, java.lang.Object> r9 = r9.d
java.lang.Object r9 = r9.get(r0)
goto La4
La2:
T r9 = r0.a
La4:
java.util.Objects.toString(r9)
r7.hasAlpha()
Laa:
return r8
*/
throw new UnsupportedOperationException("Method not decompiled: o.Vey.d(o.Ezi, java.io.File, o.unA):boolean");
}
@Override // o.nuW
public final XQd d(unA una) {
return XQd.TRANSFORMED;
}
}