正在查看: Premium Loader v1.0 应用的 j6.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Premium Loader v1.0 应用的 j6.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package k4;
import android.content.ContentProviderClient;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.ProviderInfo;
import android.content.pm.ResolveInfo;
import android.content.pm.Signature;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Debug;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import android.os.Trace;
import android.text.SpannableStringBuilder;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.EdgeEffect;
import android.widget.TextView;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.concurrent.atomic.AtomicReference;
import java.util.zip.DataFormatException;
import java.util.zip.Deflater;
import java.util.zip.DeflaterOutputStream;
import java.util.zip.Inflater;
import premium.loader.R;
import top.bienvenido.mundo.common.initialize.MNative;
public abstract class j6 {
public static boolean f3285a = false;
public static String f3286b = "";
public static String f3287c = "";
public static String f3288d = "";
public static String f3289e = "";
public static boolean f3290f;
public static int f3291g;
public static boolean f3292h;
public static Method f3293i;
public static boolean f3296l;
public static long n;
public static Method f3298o;
public static final c0.b f3294j = new c0.b();
public static final x f3295k = new x();
public static final int[] f3297m = {325967443, 325967270, -1046965711};
public static final String[] f3299p = {"standard", "accelerate", "decelerate", "linear"};
public static final boolean[] f3300q = new boolean[3];
public static final float[][] f3301r = {new float[]{0.401288f, 0.650173f, -0.051461f}, new float[]{-0.250268f, 1.204414f, 0.045854f}, new float[]{-0.002079f, 0.048952f, 0.953127f}};
public static final float[][] f3302s = {new float[]{1.8620678f, -1.0112547f, 0.14918678f}, new float[]{0.38752654f, 0.62144744f, -0.00897398f}, new float[]{-0.0158415f, -0.03412294f, 1.0499644f}};
public static final float[] f3303t = {95.047f, 100.0f, 108.883f};
public static final float[][] f3304u = {new float[]{0.41233894f, 0.35762063f, 0.18051042f}, new float[]{0.2126f, 0.7152f, 0.0722f}, new float[]{0.01932141f, 0.11916382f, 0.9503448f}};
public static final byte[] f3305v = {112, 114, 111, 0};
public static final byte[] f3306w = {112, 114, 109, 0};
public static final int[] f3307x = {R.attr.colorPrimary};
public static final int[] f3308y = {R.attr.colorPrimaryVariant};
public j6() {
new AtomicReference();
}
public static byte[] A(FileInputStream fileInputStream, int i5, int i6) {
Inflater inflater = new Inflater();
try {
byte[] bArr = new byte[i6];
byte[] bArr2 = new byte[2048];
int i7 = 0;
int i8 = 0;
while (!inflater.finished() && !inflater.needsDictionary() && i7 < i5) {
int read = fileInputStream.read(bArr2);
if (read < 0) {
throw new IllegalStateException("Invalid zip data. Stream ended after $totalBytesRead bytes. Expected " + i5 + " bytes");
}
inflater.setInput(bArr2, 0, read);
try {
i8 += inflater.inflate(bArr, i8, i6 - i8);
i7 += read;
} catch (DataFormatException e5) {
throw new IllegalStateException(e5.getMessage());
}
}
throw new IllegalStateException("Didn't read enough bytes during decompression. expected=" + i5 + " actual=" + i7);
} finally {
inflater.end();
}
}
public static x0.c[] B(FileInputStream fileInputStream, byte[] bArr, byte[] bArr2, x0.c[] cVarArr) {
byte[] bArr3 = l2.f.f3782w;
if (!Arrays.equals(bArr, bArr3)) {
if (!Arrays.equals(bArr, l2.f.f3783x)) {
throw new IllegalStateException("Unsupported meta version");
}
int G = G(fileInputStream);
byte[] A = A(fileInputStream, (int) F(fileInputStream, 4), (int) F(fileInputStream, 4));
if (fileInputStream.read() > 0) {
throw new IllegalStateException("Content found after the end of file");
}
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(A);
try {
x0.c[] D = D(byteArrayInputStream, bArr2, G, cVarArr);
byteArrayInputStream.close();
return D;
} catch (Throwable th) {
try {
byteArrayInputStream.close();
} catch (Throwable th2) {
th.addSuppressed(th2);
}
throw th;
}
}
if (Arrays.equals(l2.f.f3777r, bArr2)) {
throw new IllegalStateException("Requires new Baseline Profile Metadata. Please rebuild the APK with Android Gradle Plugin 7.2 Canary 7 or higher");
}
if (!Arrays.equals(bArr, bArr3)) {
throw new IllegalStateException("Unsupported meta version");
}
int F = (int) F(fileInputStream, 1);
byte[] A2 = A(fileInputStream, (int) F(fileInputStream, 4), (int) F(fileInputStream, 4));
if (fileInputStream.read() > 0) {
throw new IllegalStateException("Content found after the end of file");
}
ByteArrayInputStream byteArrayInputStream2 = new ByteArrayInputStream(A2);
try {
x0.c[] C = C(byteArrayInputStream2, F, cVarArr);
byteArrayInputStream2.close();
return C;
} catch (Throwable th3) {
try {
byteArrayInputStream2.close();
} catch (Throwable th4) {
th3.addSuppressed(th4);
}
throw th3;
}
}
public static x0.c[] C(ByteArrayInputStream byteArrayInputStream, int i5, x0.c[] cVarArr) {
if (byteArrayInputStream.available() == 0) {
return new x0.c[0];
}
if (i5 != cVarArr.length) {
throw new IllegalStateException("Mismatched number of dex files found in metadata");
}
String[] strArr = new String[i5];
int[] iArr = new int[i5];
for (int i6 = 0; i6 < i5; i6++) {
int G = G(byteArrayInputStream);
iArr[i6] = G(byteArrayInputStream);
strArr[i6] = new String(y(byteArrayInputStream, G), StandardCharsets.UTF_8);
}
for (int i7 = 0; i7 < i5; i7++) {
x0.c cVar = cVarArr[i7];
if (!cVar.f4774b.equals(strArr[i7])) {
throw new IllegalStateException("Order of dexfiles in metadata did not match baseline");
}
int i8 = iArr[i7];
cVar.f4777e = i8;
cVar.f4780h = z(byteArrayInputStream, i8);
}
return cVarArr;
}
public static x0.c[] D(ByteArrayInputStream byteArrayInputStream, byte[] bArr, int i5, x0.c[] cVarArr) {
x0.c cVar;
if (byteArrayInputStream.available() == 0) {
return new x0.c[0];
}
if (i5 != cVarArr.length) {
throw new IllegalStateException("Mismatched number of dex files found in metadata");
}
for (int i6 = 0; i6 < i5; i6++) {
G(byteArrayInputStream);
String str = new String(y(byteArrayInputStream, G(byteArrayInputStream)), StandardCharsets.UTF_8);
long F = F(byteArrayInputStream, 4);
int G = G(byteArrayInputStream);
if (cVarArr.length > 0) {
int indexOf = str.indexOf("!");
if (indexOf < 0) {
indexOf = str.indexOf(":");
}
String substring = indexOf > 0 ? str.substring(indexOf + 1) : str;
for (int i7 = 0; i7 < cVarArr.length; i7++) {
if (cVarArr[i7].f4774b.equals(substring)) {
cVar = cVarArr[i7];
break;
}
}
}
cVar = null;
if (cVar == null) {
throw new IllegalStateException("Missing profile key: ".concat(str));
}
cVar.f4776d = F;
int[] z4 = z(byteArrayInputStream, G);
if (Arrays.equals(bArr, l2.f.f3781v)) {
cVar.f4777e = G;
cVar.f4780h = z4;
}
}
return cVarArr;
}
public static x0.c[] E(FileInputStream fileInputStream, byte[] bArr, String str) {
if (!Arrays.equals(bArr, l2.f.f3778s)) {
throw new IllegalStateException("Unsupported version");
}
int F = (int) F(fileInputStream, 1);
byte[] A = A(fileInputStream, (int) F(fileInputStream, 4), (int) F(fileInputStream, 4));
if (fileInputStream.read() > 0) {
throw new IllegalStateException("Content found after the end of file");
}
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(A);
try {
x0.c[] H = H(byteArrayInputStream, str, F);
byteArrayInputStream.close();
return H;
} catch (Throwable th) {
try {
byteArrayInputStream.close();
} catch (Throwable th2) {
th.addSuppressed(th2);
}
throw th;
}
}
public static long F(InputStream inputStream, int i5) {
byte[] y4 = y(inputStream, i5);
long j5 = 0;
for (int i6 = 0; i6 < i5; i6++) {
j5 += (y4[i6] & 255) << (i6 * 8);
}
return j5;
}
public static int G(InputStream inputStream) {
return (int) F(inputStream, 2);
}
public static x0.c[] H(ByteArrayInputStream byteArrayInputStream, String str, int i5) {
TreeMap treeMap;
if (byteArrayInputStream.available() == 0) {
return new x0.c[0];
}
x0.c[] cVarArr = new x0.c[i5];
for (int i6 = 0; i6 < i5; i6++) {
int G = G(byteArrayInputStream);
int G2 = G(byteArrayInputStream);
cVarArr[i6] = new x0.c(str, new String(y(byteArrayInputStream, G), StandardCharsets.UTF_8), F(byteArrayInputStream, 4), G2, (int) F(byteArrayInputStream, 4), (int) F(byteArrayInputStream, 4), new int[G2], new TreeMap());
}
for (int i7 = 0; i7 < i5; i7++) {
x0.c cVar = cVarArr[i7];
int available = byteArrayInputStream.available() - cVar.f4778f;
int i8 = 0;
while (true) {
int available2 = byteArrayInputStream.available();
treeMap = cVar.f4781i;
if (available2 <= available) {
break;
}
i8 += G(byteArrayInputStream);
treeMap.put(Integer.valueOf(i8), 1);
for (int G3 = G(byteArrayInputStream); G3 > 0; G3--) {
G(byteArrayInputStream);
int F = (int) F(byteArrayInputStream, 1);
if (F != 6 && F != 7) {
while (F > 0) {
F(byteArrayInputStream, 1);
for (int F2 = (int) F(byteArrayInputStream, 1); F2 > 0; F2--) {
G(byteArrayInputStream);
}
F--;
}
}
}
}
if (byteArrayInputStream.available() != available) {
throw new IllegalStateException("Read too much data during profile line parse");
}
cVar.f4780h = z(byteArrayInputStream, cVar.f4777e);
int i9 = cVar.f4779g;
BitSet valueOf = BitSet.valueOf(y(byteArrayInputStream, ((((i9 * 2) + 8) - 1) & (-8)) / 8));
for (int i10 = 0; i10 < i9; i10++) {
int i11 = valueOf.get(u(2, i10, i9)) ? 2 : 0;
if (valueOf.get(u(4, i10, i9))) {
i11 |= 4;
}
if (i11 != 0) {
Integer num = (Integer) treeMap.get(Integer.valueOf(i10));
if (num == null) {
num = 0;
}
treeMap.put(Integer.valueOf(i10), Integer.valueOf(i11 | num.intValue()));
}
}
}
return cVarArr;
}
public static final void J(String str) {
System.err.println("SLF4J: " + str);
}
public static final void K(String str, Throwable th) {
System.err.println(str);
System.err.println("Reported exception:");
th.printStackTrace();
}
public static final void L(View view, androidx.lifecycle.r rVar) {
z2.a.B(view, "<this>");
view.setTag(R.id.view_tree_lifecycle_owner, rVar);
}
public static final void M(View view, z0.f fVar) {
z2.a.B(view, "<this>");
view.setTag(R.id.view_tree_saved_state_registry_owner, fVar);
}
public static void N(TextView textView, int i5) {
l2.f.f(i5);
if (i5 != textView.getPaint().getFontMetricsInt(null)) {
textView.setLineSpacing(i5 - r0, 1.0f);
}
}
public static void O(TextView textView, int i5, float f5) {
if (Build.VERSION.SDK_INT >= 34) {
l0.o.a(textView, i5, f5);
} else {
N(textView, Math.round(TypedValue.applyDimension(i5, f5, textView.getResources().getDisplayMetrics())));
}
}
public static void P(EditorInfo editorInfo, CharSequence charSequence, int i5, int i6) {
if (editorInfo.extras == null) {
editorInfo.extras = new Bundle();
}
editorInfo.extras.putCharSequence("androidx.core.view.inputmethod.EditorInfoCompat.CONTENT_SURROUNDING_TEXT", charSequence != null ? new SpannableStringBuilder(charSequence) : null);
editorInfo.extras.putInt("androidx.core.view.inputmethod.EditorInfoCompat.CONTENT_SELECTION_HEAD", i5);
editorInfo.extras.putInt("androidx.core.view.inputmethod.EditorInfoCompat.CONTENT_SELECTION_END", i6);
}
public static int Q(Context context, int i5) {
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(android.R.style.Animation.Activity, new int[]{i5});
int resourceId = obtainStyledAttributes.getResourceId(0, -1);
obtainStyledAttributes.recycle();
return resourceId;
}
public static boolean R(ByteArrayOutputStream byteArrayOutputStream, byte[] bArr, x0.c[] cVarArr) {
ArrayList arrayList;
int length;
byte[] bArr2 = l2.f.f3777r;
int i5 = 0;
if (!Arrays.equals(bArr, bArr2)) {
byte[] bArr3 = l2.f.f3778s;
if (Arrays.equals(bArr, bArr3)) {
byte[] k2 = k(cVarArr, bArr3);
W(byteArrayOutputStream, cVarArr.length, 1);
W(byteArrayOutputStream, k2.length, 4);
byte[] g5 = g(k2);
W(byteArrayOutputStream, g5.length, 4);
byteArrayOutputStream.write(g5);
return true;
}
byte[] bArr4 = l2.f.f3780u;
if (Arrays.equals(bArr, bArr4)) {
W(byteArrayOutputStream, cVarArr.length, 1);
for (x0.c cVar : cVarArr) {
int size = cVar.f4781i.size() * 4;
String n4 = n(cVar.f4773a, cVar.f4774b, bArr4);
X(byteArrayOutputStream, n4.getBytes(StandardCharsets.UTF_8).length);
X(byteArrayOutputStream, cVar.f4780h.length);
W(byteArrayOutputStream, size, 4);
W(byteArrayOutputStream, cVar.f4775c, 4);
byteArrayOutputStream.write(n4.getBytes(StandardCharsets.UTF_8));
Iterator it = cVar.f4781i.keySet().iterator();
while (it.hasNext()) {
X(byteArrayOutputStream, ((Integer) it.next()).intValue());
X(byteArrayOutputStream, 0);
}
for (int i6 : cVar.f4780h) {
X(byteArrayOutputStream, i6);
}
}
return true;
}
byte[] bArr5 = l2.f.f3779t;
if (Arrays.equals(bArr, bArr5)) {
byte[] k5 = k(cVarArr, bArr5);
W(byteArrayOutputStream, cVarArr.length, 1);
W(byteArrayOutputStream, k5.length, 4);
byte[] g6 = g(k5);
W(byteArrayOutputStream, g6.length, 4);
byteArrayOutputStream.write(g6);
return true;
}
byte[] bArr6 = l2.f.f3781v;
if (!Arrays.equals(bArr, bArr6)) {
return false;
}
X(byteArrayOutputStream, cVarArr.length);
for (x0.c cVar2 : cVarArr) {
String n5 = n(cVar2.f4773a, cVar2.f4774b, bArr6);
X(byteArrayOutputStream, n5.getBytes(StandardCharsets.UTF_8).length);
TreeMap treeMap = cVar2.f4781i;
X(byteArrayOutputStream, treeMap.size());
X(byteArrayOutputStream, cVar2.f4780h.length);
W(byteArrayOutputStream, cVar2.f4775c, 4);
byteArrayOutputStream.write(n5.getBytes(StandardCharsets.UTF_8));
Iterator it2 = treeMap.keySet().iterator();
while (it2.hasNext()) {
X(byteArrayOutputStream, ((Integer) it2.next()).intValue());
}
for (int i7 : cVar2.f4780h) {
X(byteArrayOutputStream, i7);
}
}
return true;
}
ArrayList arrayList2 = new ArrayList(3);
ArrayList arrayList3 = new ArrayList(3);
ByteArrayOutputStream byteArrayOutputStream2 = new ByteArrayOutputStream();
try {
X(byteArrayOutputStream2, cVarArr.length);
int i8 = 2;
int i9 = 2;
for (x0.c cVar3 : cVarArr) {
W(byteArrayOutputStream2, cVar3.f4775c, 4);
W(byteArrayOutputStream2, cVar3.f4776d, 4);
W(byteArrayOutputStream2, cVar3.f4779g, 4);
String n6 = n(cVar3.f4773a, cVar3.f4774b, bArr2);
int length2 = n6.getBytes(StandardCharsets.UTF_8).length;
X(byteArrayOutputStream2, length2);
i9 = i9 + 4 + 4 + 4 + 2 + (length2 * 1);
byteArrayOutputStream2.write(n6.getBytes(StandardCharsets.UTF_8));
}
byte[] byteArray = byteArrayOutputStream2.toByteArray();
if (i9 != byteArray.length) {
throw new IllegalStateException("Expected size " + i9 + ", does not match actual size " + byteArray.length);
}
x0.l lVar = new x0.l(1, byteArray, false);
byteArrayOutputStream2.close();
arrayList2.add(lVar);
ByteArrayOutputStream byteArrayOutputStream3 = new ByteArrayOutputStream();
int i10 = 0;
for (int i11 = 0; i11 < cVarArr.length; i11++) {
try {
x0.c cVar4 = cVarArr[i11];
X(byteArrayOutputStream3, i11);
X(byteArrayOutputStream3, cVar4.f4777e);
i10 = i10 + 2 + 2 + (cVar4.f4777e * 2);
S(byteArrayOutputStream3, cVar4);
} finally {
}
}
byte[] byteArray2 = byteArrayOutputStream3.toByteArray();
if (i10 != byteArray2.length) {
throw new IllegalStateException("Expected size " + i10 + ", does not match actual size " + byteArray2.length);
}
x0.l lVar2 = new x0.l(3, byteArray2, true);
byteArrayOutputStream3.close();
arrayList2.add(lVar2);
byteArrayOutputStream2 = new ByteArrayOutputStream();
int i12 = 0;
int i13 = 0;
while (i12 < cVarArr.length) {
try {
x0.c cVar5 = cVarArr[i12];
Iterator it3 = cVar5.f4781i.entrySet().iterator();
int i14 = i5;
while (it3.hasNext()) {
i14 |= ((Integer) ((Map.Entry) it3.next()).getValue()).intValue();
}
ByteArrayOutputStream byteArrayOutputStream4 = new ByteArrayOutputStream();
try {
U(byteArrayOutputStream4, cVar5);
byte[] byteArray3 = byteArrayOutputStream4.toByteArray();
byteArrayOutputStream4.close();
byteArrayOutputStream4 = new ByteArrayOutputStream();
try {
V(byteArrayOutputStream4, cVar5);
byte[] byteArray4 = byteArrayOutputStream4.toByteArray();
byteArrayOutputStream4.close();
X(byteArrayOutputStream2, i12);
int length3 = byteArray3.length + i8 + byteArray4.length;
int i15 = i13 + 2 + 4;
ArrayList arrayList4 = arrayList3;
W(byteArrayOutputStream2, length3, 4);
X(byteArrayOutputStream2, i14);
byteArrayOutputStream2.write(byteArray3);
byteArrayOutputStream2.write(byteArray4);
i13 = i15 + length3;
i12++;
arrayList3 = arrayList4;
i5 = 0;
i8 = 2;
} finally {
}
} finally {
}
} finally {
}
}
ArrayList arrayList5 = arrayList3;
byte[] byteArray5 = byteArrayOutputStream2.toByteArray();
if (i13 != byteArray5.length) {
throw new IllegalStateException("Expected size " + i13 + ", does not match actual size " + byteArray5.length);
}
x0.l lVar3 = new x0.l(4, byteArray5, true);
byteArrayOutputStream2.close();
arrayList2.add(lVar3);
long j5 = 4;
long size2 = j5 + j5 + 4 + (arrayList2.size() * 16);
W(byteArrayOutputStream, arrayList2.size(), 4);
int i16 = 0;
while (i16 < arrayList2.size()) {
x0.l lVar4 = (x0.l) arrayList2.get(i16);
W(byteArrayOutputStream, androidx.activity.j.d(lVar4.f4792a), 4);
W(byteArrayOutputStream, size2, 4);
boolean z4 = lVar4.f4794c;
byte[] bArr7 = lVar4.f4793b;
if (z4) {
long length4 = bArr7.length;
byte[] g7 = g(bArr7);
arrayList = arrayList5;
arrayList.add(g7);
W(byteArrayOutputStream, g7.length, 4);
W(byteArrayOutputStream, length4, 4);
length = g7.length;
} else {
arrayList = arrayList5;
arrayList.add(bArr7);
W(byteArrayOutputStream, bArr7.length, 4);
W(byteArrayOutputStream, 0L, 4);
length = bArr7.length;
}
size2 += length;
i16++;
arrayList5 = arrayList;
}
ArrayList arrayList6 = arrayList5;
for (int i17 = 0; i17 < arrayList6.size(); i17++) {
byteArrayOutputStream.write((byte[]) arrayList6.get(i17));
}
return true;
} finally {
try {
byteArrayOutputStream2.close();
throw th;
} catch (Throwable th) {
th.addSuppressed(th);
}
}
}
public static void S(ByteArrayOutputStream byteArrayOutputStream, x0.c cVar) {
int i5 = 0;
for (int i6 : cVar.f4780h) {
Integer valueOf = Integer.valueOf(i6);
X(byteArrayOutputStream, valueOf.intValue() - i5);
i5 = valueOf.intValue();
}
}
public static void T(ByteArrayOutputStream byteArrayOutputStream, x0.c cVar, String str) {
X(byteArrayOutputStream, str.getBytes(StandardCharsets.UTF_8).length);
X(byteArrayOutputStream, cVar.f4777e);
W(byteArrayOutputStream, cVar.f4778f, 4);
W(byteArrayOutputStream, cVar.f4775c, 4);
W(byteArrayOutputStream, cVar.f4779g, 4);
byteArrayOutputStream.write(str.getBytes(StandardCharsets.UTF_8));
}
public static void U(ByteArrayOutputStream byteArrayOutputStream, x0.c cVar) {
byte[] bArr = new byte[((((cVar.f4779g * 2) + 8) - 1) & (-8)) / 8];
for (Map.Entry entry : cVar.f4781i.entrySet()) {
int intValue = ((Integer) entry.getKey()).intValue();
int intValue2 = ((Integer) entry.getValue()).intValue();
int i5 = intValue2 & 2;
int i6 = cVar.f4779g;
if (i5 != 0) {
int u4 = u(2, intValue, i6);
int i7 = u4 / 8;
bArr[i7] = (byte) ((1 << (u4 % 8)) | bArr[i7]);
}
if ((intValue2 & 4) != 0) {
int u5 = u(4, intValue, i6);
int i8 = u5 / 8;
bArr[i8] = (byte) ((1 << (u5 % 8)) | bArr[i8]);
}
}
byteArrayOutputStream.write(bArr);
}
public static void V(ByteArrayOutputStream byteArrayOutputStream, x0.c cVar) {
int i5 = 0;
for (Map.Entry entry : cVar.f4781i.entrySet()) {
int intValue = ((Integer) entry.getKey()).intValue();
if ((((Integer) entry.getValue()).intValue() & 1) != 0) {
X(byteArrayOutputStream, intValue - i5);
X(byteArrayOutputStream, 0);
i5 = intValue;
}
}
}
public static void W(ByteArrayOutputStream byteArrayOutputStream, long j5, int i5) {
byte[] bArr = new byte[i5];
for (int i6 = 0; i6 < i5; i6++) {
bArr[i6] = (byte) ((j5 >> (i6 * 8)) & 255);
}
byteArrayOutputStream.write(bArr);
}
public static void X(ByteArrayOutputStream byteArrayOutputStream, int i5) {
W(byteArrayOutputStream, i5, 2);
}
public static float Y() {
return ((float) Math.pow((50.0f + 16.0d) / 116.0d, 3.0d)) * 100.0f;
}
public static int Z(int i5, int i6, int[] iArr) {
int i7 = i5 - 1;
int i8 = 0;
while (i8 <= i7) {
int i9 = (i8 + i7) >>> 1;
int i10 = iArr[i9];
if (i10 < i6) {
i8 = i9 + 1;
} else {
if (i10 <= i6) {
return i9;
}
i7 = i9 - 1;
}
}
return ~i8;
}
public static int a0(String str, boolean z4) {
ApplicationInfo D0 = z4 ? y6.f3634b.D0(0, str) : (ApplicationInfo) a4.a(new n(3, str));
if (D0 != null) {
return D0.uid;
}
return -1;
}
public static ActivityInfo b0(String str) {
ResolveInfo resolveInfo;
Intent intent = new Intent("android.intent.action.MAIN").addCategory("android.intent.category.LAUNCHER").setPackage(str);
if (Debug.isDebuggerConnected()) {
intent.setPackage("com.android.vending");
}
y6 y6Var = y6.f3634b;
y6Var.getClass();
if (y6.f3635c.containsKey(str)) {
List c5 = y6Var.c(intent, null, 0);
i0(c5);
resolveInfo = (ResolveInfo) p3.h.B1(c5);
} else {
resolveInfo = (ResolveInfo) a4.a(new v1(intent, 1));
}
if (resolveInfo != null) {
return resolveInfo.activityInfo;
}
return null;
}
public static void c(Context context, AttributeSet attributeSet, int i5, int i6) {
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, l1.a.D, i5, i6);
boolean z4 = obtainStyledAttributes.getBoolean(1, false);
obtainStyledAttributes.recycle();
if (z4) {
TypedValue typedValue = new TypedValue();
if (!context.getTheme().resolveAttribute(R.attr.isMaterialTheme, typedValue, true) || (typedValue.type == 18 && typedValue.data == 0)) {
e(context, f3308y, "Theme.MaterialComponents");
}
}
e(context, f3307x, "Theme.AppCompat");
}
public static final File c0(File file, String... strArr) {
int length = strArr.length;
int i5 = 0;
while (i5 < length) {
File file2 = new File(file, strArr[i5]);
i5++;
file = file2;
}
return file;
}
public static void d(Context context, AttributeSet attributeSet, int[] iArr, int i5, int i6, int... iArr2) {
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, l1.a.D, i5, i6);
boolean z4 = false;
if (!obtainStyledAttributes.getBoolean(2, false)) {
obtainStyledAttributes.recycle();
return;
}
if (iArr2.length != 0) {
TypedArray obtainStyledAttributes2 = context.obtainStyledAttributes(attributeSet, iArr, i5, i6);
for (int i7 : iArr2) {
if (obtainStyledAttributes2.getResourceId(i7, -1) == -1) {
obtainStyledAttributes2.recycle();
break;
}
}
obtainStyledAttributes2.recycle();
z4 = true;
}
obtainStyledAttributes.recycle();
if (!z4) {
throw new IllegalArgumentException("This component requires that you specify a valid TextAppearance attribute. Update your app theme to inherit from Theme.MaterialComponents (or a descendant).");
}
}
public static Object d0(Parcel parcel, Parcelable.Creator creator) {
if (parcel.readInt() != 0) {
return creator.createFromParcel(parcel);
}
return null;
}
public static void e(Context context, int[] iArr, String str) {
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(iArr);
boolean z4 = false;
int i5 = 0;
while (true) {
if (i5 >= iArr.length) {
obtainStyledAttributes.recycle();
z4 = true;
break;
} else {
if (!obtainStyledAttributes.hasValue(i5)) {
obtainStyledAttributes.recycle();
break;
}
i5++;
}
}
if (!z4) {
throw new IllegalArgumentException(androidx.activity.j.g("The style on this component requires your app theme to be ", str, " (or a descendant)."));
}
}
public static String e0(String str) {
int i5 = 0;
char c5 = 0;
for (int i6 = 0; i6 < str.length(); i6++) {
char charAt = str.charAt(i6);
if (charAt == '\'' || charAt == '\"') {
if (c5 == 0) {
c5 = charAt;
} else if (c5 == charAt) {
c5 = 0;
}
}
if (c5 == 0) {
if (charAt == '(') {
i5++;
} else if (charAt == ')') {
i5--;
}
}
}
if (i5 == 0) {
return str;
}
StringBuilder sb = new StringBuilder(Math.abs(i5) + str.length());
sb.append(str);
while (i5 > 0) {
sb.append(')');
i5--;
}
while (i5 < 0) {
sb.insert(0, '(');
i5++;
}
return sb.toString();
}
public static void f(Cursor cursor) {
if (cursor != null) {
try {
cursor.close();
} catch (RuntimeException e5) {
throw e5;
} catch (Exception unused) {
}
}
}
public static String f0(String str, String str2) {
return z2.a.o(str2, "default_channel") ? str2 : androidx.activity.j.f(p0(str), str2);
}
public static byte[] g(byte[] bArr) {
Deflater deflater = new Deflater(1);
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
try {
DeflaterOutputStream deflaterOutputStream = new DeflaterOutputStream(byteArrayOutputStream, deflater);
try {
deflaterOutputStream.write(bArr);
deflaterOutputStream.close();
deflater.end();
return byteArrayOutputStream.toByteArray();
} finally {
}
} catch (Throwable th) {
deflater.end();
throw th;
}
}
public static void g0(Bundle bundle) {
try {
Iterator it = t.f3507d.iterator();
while (it.hasNext()) {
((u3.l) it.next()).f(bundle);
}
} catch (Exception unused) {
}
try {
IBinder binder = bundle.getBinder("https://www.62v.net/jnative/binder");
if (binder != null) {
?? r32 = {binder, String.valueOf(bundle.getInt(Integer.TYPE.getName(), 0))};
synchronized (t.f3507d) {
MNative.a(1001, r32);
}
}
} catch (Throwable unused2) {
}
}
public static int h(androidx.recyclerview.widget.e1 e1Var, androidx.recyclerview.widget.d0 d0Var, View view, View view2, androidx.recyclerview.widget.r0 r0Var, boolean z4) {
if (r0Var.v() == 0 || e1Var.b() == 0 || view == null || view2 == null) {
return 0;
}
if (!z4) {
return Math.abs(androidx.recyclerview.widget.r0.H(view) - androidx.recyclerview.widget.r0.H(view2)) + 1;
}
return Math.min(d0Var.i(), d0Var.b(view2) - d0Var.d(view));
}
public static void h0(Parcel parcel, List list, int i5) {
if (list == null) {
parcel.writeInt(-1);
return;
}
int size = list.size();
parcel.writeInt(size);
for (int i6 = 0; i6 < size; i6++) {
Parcelable parcelable = (Parcelable) list.get(i6);
if (parcelable != null) {
parcel.writeInt(1);
parcelable.writeToParcel(parcel, i5);
} else {
parcel.writeInt(0);
}
}
}
public static int i(androidx.recyclerview.widget.e1 e1Var, androidx.recyclerview.widget.d0 d0Var, View view, View view2, androidx.recyclerview.widget.r0 r0Var, boolean z4, boolean z5) {
if (r0Var.v() == 0 || e1Var.b() == 0 || view == null || view2 == null) {
return 0;
}
int max = z5 ? Math.max(0, (e1Var.b() - Math.max(androidx.recyclerview.widget.r0.H(view), androidx.recyclerview.widget.r0.H(view2))) - 1) : Math.max(0, Math.min(androidx.recyclerview.widget.r0.H(view), androidx.recyclerview.widget.r0.H(view2)));
if (z4) {
return Math.round((max * (Math.abs(d0Var.b(view2) - d0Var.d(view)) / (Math.abs(androidx.recyclerview.widget.r0.H(view) - androidx.recyclerview.widget.r0.H(view2)) + 1))) + (d0Var.h() - d0Var.d(view)));
}
return max;
}
public static final void i0(List list) {
final f0.h hVar = new f0.h(1);
p3.f.A1(list, new Comparator() {
@Override
public final int compare(Object obj, Object obj2) {
return ((Number) hVar.e(obj, obj2)).intValue();
}
});
}
public static int j(androidx.recyclerview.widget.e1 e1Var, androidx.recyclerview.widget.d0 d0Var, View view, View view2, androidx.recyclerview.widget.r0 r0Var, boolean z4) {
if (r0Var.v() == 0 || e1Var.b() == 0 || view == null || view2 == null) {
return 0;
}
if (!z4) {
return e1Var.b();
}
return (int) (((d0Var.b(view2) - d0Var.d(view)) / (Math.abs(androidx.recyclerview.widget.r0.H(view) - androidx.recyclerview.widget.r0.H(view2)) + 1)) * e1Var.b());
}
public static boolean j0() {
try {
Object a5 = MNative.a(43892, null);
if (a5 == null) {
return false;
}
return Boolean.parseBoolean(a5.toString());
} catch (Throwable unused) {
return false;
}
}
public static byte[] k(x0.c[] cVarArr, byte[] bArr) {
int i5 = 0;
int i6 = 0;
for (x0.c cVar : cVarArr) {
i6 += (((((cVar.f4779g * 2) + 8) - 1) & (-8)) / 8) + (cVar.f4777e * 2) + n(cVar.f4773a, cVar.f4774b, bArr).getBytes(StandardCharsets.UTF_8).length + 16 + cVar.f4778f;
}
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(i6);
if (Arrays.equals(bArr, l2.f.f3779t)) {
int length = cVarArr.length;
while (i5 < length) {
x0.c cVar2 = cVarArr[i5];
T(byteArrayOutputStream, cVar2, n(cVar2.f4773a, cVar2.f4774b, bArr));
V(byteArrayOutputStream, cVar2);
S(byteArrayOutputStream, cVar2);
U(byteArrayOutputStream, cVar2);
i5++;
}
} else {
for (x0.c cVar3 : cVarArr) {
T(byteArrayOutputStream, cVar3, n(cVar3.f4773a, cVar3.f4774b, bArr));
}
int length2 = cVarArr.length;
while (i5 < length2) {
x0.c cVar4 = cVarArr[i5];
V(byteArrayOutputStream, cVar4);
S(byteArrayOutputStream, cVar4);
U(byteArrayOutputStream, cVar4);
i5++;
}
}
if (byteArrayOutputStream.size() == i6) {
return byteArrayOutputStream.toByteArray();
}
throw new IllegalStateException("The bytes saved do not match expectation. actual=" + byteArrayOutputStream.size() + " expected=" + i6);
}
public static final boolean k0(int i5, int i6) {
return (i5 & i6) == i6;
}
public static boolean l(File file) {
if (!file.isDirectory()) {
file.delete();
return true;
}
File[] listFiles = file.listFiles();
if (listFiles == null) {
return false;
}
boolean z4 = true;
for (File file2 : listFiles) {
z4 = l(file2) && z4;
}
return z4;
}
public static boolean l0(int i5, String str) {
String str2;
if (i5 <= 2) {
try {
if (str.length() != 0) {
int i6 = MNative.f4569a;
o1 o1Var = o5.f3426a;
Object a5 = o5.a(a4.f3105a);
if (a5 instanceof Proxy) {
str2 = "";
} else {
if (a5 == null) {
return true;
}
str2 = str;
}
MNative.a(43891, str2);
if (j0()) {
return true;
}
return l0(i5 + 1, str);
}
} catch (Throwable unused) {
}
}
return false;
}
public static final boolean m(char c5, char c6, boolean z4) {
if (c5 == c6) {
return true;
}
if (!z4) {
return false;
}
char upperCase = Character.toUpperCase(c5);
char upperCase2 = Character.toUpperCase(c6);
return upperCase == upperCase2 || Character.toLowerCase(upperCase) == Character.toLowerCase(upperCase2);
}
public static int[] m0(int[] iArr, int i5, int i6, int i7) {
if (i5 + 1 <= iArr.length) {
System.arraycopy(iArr, i6, iArr, i6 + 1, i5 - i6);
iArr[i6] = i7;
return iArr;
}
int[] iArr2 = new int[i5 >= 4 ? i5 * 2 : 4];
System.arraycopy(iArr, 0, iArr2, 0, i6);
iArr2[i6] = i7;
System.arraycopy(iArr, i6, iArr2, i6 + 1, iArr.length - i6);
return iArr2;
}
public static String n(String str, String str2, byte[] bArr) {
byte[] bArr2 = l2.f.f3781v;
boolean equals = Arrays.equals(bArr, bArr2);
byte[] bArr3 = l2.f.f3780u;
String str3 = (equals || Arrays.equals(bArr, bArr3)) ? ":" : "!";
if (str.length() <= 0) {
if ("!".equals(str3)) {
return str2.replace(":", "!");
}
if (":".equals(str3)) {
str2 = str2.replace("!", ":");
}
return str2;
}
if (str2.equals("classes.dex")) {
return str;
}
if (str2.contains("!") || str2.contains(":")) {
if ("!".equals(str3)) {
return str2.replace(":", "!");
}
if (":".equals(str3)) {
str2 = str2.replace("!", ":");
}
return str2;
}
if (str2.endsWith(".apk")) {
return str2;
}
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append((Arrays.equals(bArr, bArr2) || Arrays.equals(bArr, bArr3)) ? ":" : "!");
sb.append(str2);
return sb.toString();
}
public static Object n0(Parcel parcel, Parcelable.Creator creator) {
if (parcel.readInt() != 0) {
return creator.createFromParcel(parcel);
}
return null;
}
public static float o(EdgeEffect edgeEffect) {
if (Build.VERSION.SDK_INT >= 31) {
return l0.e.b(edgeEffect);
}
return 0.0f;
}
public static void o0() {
String[] strArr = {"L"};
try {
l2 l2Var = new l2(Class.forName("dalvik.system.VMRuntime"));
l2Var.a(l2Var.a(null, "getRuntime", z2.a.f4931m), "setHiddenApiExemptions", new String[][]{strArr});
} catch (Throwable unused) {
}
}
public static androidx.recyclerview.widget.p0 p(Context context, androidx.appcompat.widget.s sVar) {
Object obj;
int i5;
Cursor cursor;
Uri uri;
Uri uri2;
ArrayList arrayList;
Uri uri3;
Uri withAppendedId;
boolean z4;
boolean z5;
boolean z6;
PackageManager packageManager = context.getPackageManager();
Resources resources = context.getResources();
String str = (String) sVar.f526c;
ProviderInfo resolveContentProvider = packageManager.resolveContentProvider(str, 0);
if (resolveContentProvider == null) {
throw new PackageManager.NameNotFoundException("No package found for authority: " + str);
}
String str2 = resolveContentProvider.packageName;
String str3 = (String) sVar.f527d;
if (!str2.equals(str3)) {
throw new PackageManager.NameNotFoundException("Found content provider " + str + ", but package was not " + str3);
}
Signature[] signatureArr = packageManager.getPackageInfo(resolveContentProvider.packageName, 64).signatures;
ArrayList arrayList2 = new ArrayList();
for (Signature signature : signatureArr) {
arrayList2.add(signature.toByteArray());
}
c0.b bVar = f3294j;
Collections.sort(arrayList2, bVar);
List list = (List) sVar.f529f;
if (list == null) {
list = l2.f.a0(sVar.f525b, resources);
}
int i6 = 0;
while (true) {
obj = null;
i5 = 1;
if (i6 >= list.size()) {
resolveContentProvider = null;
break;
}
ArrayList arrayList3 = new ArrayList((Collection) list.get(i6));
Collections.sort(arrayList3, bVar);
if (arrayList2.size() == arrayList3.size()) {
for (int i7 = 0; i7 < arrayList2.size(); i7++) {
if (Arrays.equals((byte[]) arrayList2.get(i7), (byte[]) arrayList3.get(i7))) {
}
}
z6 = true;
if (!z6) {
break;
}
i6++;
}
z6 = false;
if (!z6) {
}
}
if (resolveContentProvider == null) {
return new androidx.recyclerview.widget.p0(i5, obj);
}
String str4 = resolveContentProvider.authority;
ArrayList arrayList4 = new ArrayList();
Uri build = new Uri.Builder().scheme("content").authority(str4).build();
Uri build2 = new Uri.Builder().scheme("content").authority(str4).appendPath("file").build();
ContentProviderClient acquireUnstableContentProviderClient = context.getContentResolver().acquireUnstableContentProviderClient(build);
try {
String[] strArr = {"_id", "file_id", "font_ttc_index", "font_variation_settings", "font_weight", "font_italic", "result_code"};
String[] strArr2 = {(String) sVar.f528e};
if (acquireUnstableContentProviderClient != null) {
uri = build2;
uri2 = build;
try {
cursor = acquireUnstableContentProviderClient.query(build, strArr, "query = ?", strArr2, null, null);
} catch (RemoteException e5) {
Log.w("FontsProvider", "Unable to query the content provider", e5);
}
if (cursor != null) {
try {
if (cursor.getCount() > 0) {
int columnIndex = cursor.getColumnIndex("result_code");
arrayList = new ArrayList();
int columnIndex2 = cursor.getColumnIndex("_id");
int columnIndex3 = cursor.getColumnIndex("file_id");
int columnIndex4 = cursor.getColumnIndex("font_ttc_index");
int columnIndex5 = cursor.getColumnIndex("font_weight");
int columnIndex6 = cursor.getColumnIndex("font_italic");
while (cursor.moveToNext()) {
int i8 = columnIndex != -1 ? cursor.getInt(columnIndex) : 0;
int i9 = columnIndex4 != -1 ? cursor.getInt(columnIndex4) : 0;
if (columnIndex3 == -1) {
withAppendedId = ContentUris.withAppendedId(uri2, cursor.getLong(columnIndex2));
uri3 = uri;
} else {
uri3 = uri;
withAppendedId = ContentUris.withAppendedId(uri3, cursor.getLong(columnIndex3));
}
int i10 = columnIndex5 != -1 ? cursor.getInt(columnIndex5) : 400;
if (columnIndex6 != -1) {
z4 = true;
if (cursor.getInt(columnIndex6) == 1) {
z5 = true;
arrayList.add(new c0.g(withAppendedId, i9, i10, z5, i8));
uri = uri3;
}
} else {
z4 = true;
}
z5 = false;
arrayList.add(new c0.g(withAppendedId, i9, i10, z5, i8));
uri = uri3;
}
if (cursor != null) {
cursor.close();
}
if (acquireUnstableContentProviderClient != null) {
acquireUnstableContentProviderClient.close();
}
return new androidx.recyclerview.widget.p0(0, (c0.g[]) arrayList.toArray(new c0.g[0]));
}
} catch (Throwable th) {
th = th;
if (cursor != null) {
cursor.close();
}
if (acquireUnstableContentProviderClient != null) {
acquireUnstableContentProviderClient.close();
}
throw th;
}
}
arrayList = arrayList4;
if (cursor != null) {
}
if (acquireUnstableContentProviderClient != null) {
}
return new androidx.recyclerview.widget.p0(0, (c0.g[]) arrayList.toArray(new c0.g[0]));
}
uri = build2;
uri2 = build;
cursor = null;
if (cursor != null) {
}
arrayList = arrayList4;
if (cursor != null) {
}
if (acquireUnstableContentProviderClient != null) {
}
return new androidx.recyclerview.widget.p0(0, (c0.g[]) arrayList.toArray(new c0.g[0]));
} catch (Throwable th2) {
th = th2;
cursor = null;
}
}
public static String p0(String str) {
return androidx.activity.j.g("mundo@", str, "@");
}
public static int q(float f5) {
if (f5 < 1.0f) {
return -16777216;
}
if (f5 > 99.0f) {
return -1;
}
float f6 = (f5 + 16.0f) / 116.0f;
float f7 = (f5 > 8.0f ? 1 : (f5 == 8.0f ? 0 : -1)) > 0 ? f6 * f6 * f6 : f5 / 903.2963f;
float f8 = f6 * f6 * f6;
boolean z4 = f8 > 0.008856452f;
float f9 = z4 ? f8 : ((f6 * 116.0f) - 16.0f) / 903.2963f;
if (!z4) {
f8 = ((f6 * 116.0f) - 16.0f) / 903.2963f;
}
float[] fArr = f3303t;
return y.a.a(f9 * fArr[0], f7 * fArr[1], f8 * fArr[2]);
}
public static boolean r() {
boolean isEnabled;
try {
if (f3298o == null) {
isEnabled = Trace.isEnabled();
return isEnabled;
}
} catch (NoClassDefFoundError | NoSuchMethodError unused) {
}
try {
if (f3298o == null) {
n = Trace.class.getField("TRACE_TAG_APP").getLong(null);
f3298o = Trace.class.getMethod("isTagEnabled", Long.TYPE);
}
return ((Boolean) f3298o.invoke(null, Long.valueOf(n))).booleanValue();
} catch (Exception e5) {
if (!(e5 instanceof InvocationTargetException)) {
Log.v("Trace", "Unable to call isTagEnabled via reflection", e5);
return false;
}
Throwable cause = e5.getCause();
if (cause instanceof RuntimeException) {
throw ((RuntimeException) cause);
}
throw new RuntimeException(cause);
}
}
public static long s(Context context, Uri uri) {
ContentResolver contentResolver = context.getContentResolver();
long j5 = 0;
Cursor cursor = null;
try {
try {
cursor = contentResolver.query(uri, new String[]{"last_modified"}, null, null, null);
if (cursor.moveToFirst() && !cursor.isNull(0)) {
j5 = cursor.getLong(0);
}
} catch (Exception e5) {
Log.w("DocumentFile", "Failed query: " + e5);
}
return j5;
} finally {
f(cursor);
}
}
public static float t(int i5) {
float f5 = i5 / 255.0f;
return (f5 <= 0.04045f ? f5 / 12.92f : (float) Math.pow((f5 + 0.055f) / 1.055f, 2.4000000953674316d)) * 100.0f;
}
public static int u(int i5, int i6, int i7) {
if (i5 == 1) {
throw new IllegalStateException("HOT methods are not stored in the bitmap");
}
if (i5 == 2) {
return i6;
}
if (i5 == 4) {
return i6 + i7;
}
throw new IllegalStateException("Unexpected flag: " + i5);
}
public static TypedArray v(Context context, AttributeSet attributeSet, int[] iArr, int i5, int i6, int... iArr2) {
c(context, attributeSet, i5, i6);
d(context, attributeSet, iArr, i5, i6, iArr2);
return context.obtainStyledAttributes(attributeSet, iArr, i5, i6);
}
public static float w(EdgeEffect edgeEffect, float f5, float f6) {
if (Build.VERSION.SDK_INT >= 31) {
return l0.e.c(edgeEffect, f5, f6);
}
l0.d.a(edgeEffect, f5, f6);
return f5;
}
public static String x(Context context, Uri uri, String str) {
Cursor cursor;
Throwable th;
try {
cursor = context.getContentResolver().query(uri, new String[]{str}, null, null, null);
try {
try {
if (!cursor.moveToFirst() || cursor.isNull(0)) {
f(cursor);
return null;
}
String string = cursor.getString(0);
f(cursor);
return string;
} catch (Exception e5) {
e = e5;
Log.w("DocumentFile", "Failed query: " + e);
f(cursor);
return null;
}
} catch (Throwable th2) {
th = th2;
f(cursor);
throw th;
}
} catch (Exception e6) {
e = e6;
cursor = null;
} catch (Throwable th3) {
cursor = null;
th = th3;
f(cursor);
throw th;
}
}
public static byte[] y(InputStream inputStream, int i5) {
byte[] bArr = new byte[i5];
int i6 = 0;
while (i6 < i5) {
int read = inputStream.read(bArr, i6, i5 - i6);
if (read < 0) {
throw new IllegalStateException("Not enough bytes to read: " + i5);
}
i6 += read;
}
return bArr;
}
public static int[] z(ByteArrayInputStream byteArrayInputStream, int i5) {
int[] iArr = new int[i5];
int i6 = 0;
for (int i7 = 0; i7 < i5; i7++) {
i6 += G(byteArrayInputStream);
iArr[i7] = i6;
}
return iArr;
}
public abstract void I(androidx.lifecycle.q qVar);
public abstract void b(androidx.lifecycle.q qVar);
}