package com.google.firebase.crashlytics.internal.common; import android.content.Context; import android.graphics.Color; import android.graphics.ImageFormat; import android.graphics.PointF; import android.os.Build; import android.os.Environment; import android.os.StatFs; import android.text.TextUtils; import android.util.TypedValue; import android.view.Gravity; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.common.base.Ascii; import com.google.firebase.crashlytics.BuildConfig; import com.google.firebase.crashlytics.internal.model.CrashlyticsReport; import com.google.firebase.crashlytics.internal.model.ImmutableList; import com.google.firebase.crashlytics.internal.stacktrace.StackTraceTrimmingStrategy; import com.google.firebase.crashlytics.internal.stacktrace.TrimmedThrowableData; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.Locale; import java.util.Map; import o.dQY; import o.xzZ; import org.jmrtd.cbeff.ISO781611; /* loaded from: classes.dex */ public class CrashlyticsReportDataCapture { private static final Map ARCHITECTURES_BY_NAME; private static final String GENERATOR; private static final int GENERATOR_TYPE = 3; private static final int REPORT_ANDROID_PLATFORM = 4; private static final int SESSION_ANDROID_PLATFORM = 3; private static final String SIGNAL_DEFAULT = "0"; private static char[] a; private static long b; private static int e; private final AppData appData; private final Context context; private final IdManager idManager; private final StackTraceTrimmingStrategy stackTraceTrimmingStrategy; private static final byte[] $$a = {Ascii.US, -107, 35, 49}; private static final int $$b = ISO781611.CREATION_DATE_AND_TIME_TAG; private static int $10 = 0; private static int $11 = 1; private static int c = 0; /* 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:0x0029). 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(short r7, short r8, short r9, java.lang.Object[] r10) { /* int r7 = r7 + 98 int r8 = r8 * 3 int r8 = 1 - r8 byte[] r0 = com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.$$a int r9 = r9 + 4 byte[] r1 = new byte[r8] r2 = 0 if (r0 != 0) goto L12 r3 = r9 r4 = r2 goto L29 L12: r3 = r2 L13: int r9 = r9 + 1 int r4 = r3 + 1 byte r5 = (byte) r7 r1[r3] = r5 if (r4 != r8) goto L24 java.lang.String r7 = new java.lang.String r7.(r1, r2) r10[r2] = r7 return L24: r3 = r0[r9] r6 = r3 r3 = r9 r9 = r6 L29: int r9 = -r9 int r7 = r7 + r9 r9 = r3 r3 = r4 goto L13 */ throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.g(short, short, short, java.lang.Object[]):void"); } static { e = 1; c(); GENERATOR = String.format(Locale.US, "Crashlytics Android SDK/%s", BuildConfig.VERSION_NAME); HashMap hashMap = new HashMap(); ARCHITECTURES_BY_NAME = hashMap; hashMap.put("armeabi", 5); hashMap.put("armeabi-v7a", 6); hashMap.put("arm64-v8a", 9); hashMap.put("x86", 0); hashMap.put("x86_64", 1); int i = c + 73; e = i % 128; int i2 = i % 2; } public CrashlyticsReportDataCapture(Context context, IdManager idManager, AppData appData, StackTraceTrimmingStrategy stackTraceTrimmingStrategy) { this.context = context; this.idManager = idManager; this.appData = appData; this.stackTraceTrimmingStrategy = stackTraceTrimmingStrategy; } public CrashlyticsReport captureReportData(String str, long j) { int i = 2 % 2; int i2 = c + 119; e = i2 % 128; if (i2 % 2 == 0) { buildReportData().setSession(populateSessionData(str, j)).build(); throw null; } CrashlyticsReport build = buildReportData().setSession(populateSessionData(str, j)).build(); int i3 = e + 23; c = i3 % 128; int i4 = i3 % 2; return build; } public CrashlyticsReport captureReportData() { int i = 2 % 2; int i2 = c + 23; e = i2 % 128; if (i2 % 2 == 0) { buildReportData().build(); Object obj = null; obj.hashCode(); throw null; } CrashlyticsReport build = buildReportData().build(); int i3 = c + 51; e = i3 % 128; int i4 = i3 % 2; return build; } private static void f(char c2, int i, int i2, Object[] objArr) { int i3 = 2 % 2; dQY dqy = new dQY(); long[] jArr = new long[i2]; dqy.a = 0; while (dqy.a < i2) { int i4 = dqy.a; try { Object[] objArr2 = {Integer.valueOf(a[i + dqy.a])}; Object obj = xzZ.y.get(1095064095); if (obj == null) { Class cls = (Class) xzZ.c(308 - (ViewConfiguration.getScrollBarSize() >> 8), 5 - KeyEvent.normalizeMetaState(0), (char) (TextUtils.indexOf("", "") + 32797)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; g(b2, b3, (byte) (b3 - 1), objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(1095064095, obj); } Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(b), Integer.valueOf(c2)}; Object obj2 = xzZ.y.get(-548438098); if (obj2 == null) { Class cls2 = (Class) xzZ.c(TextUtils.indexOf("", "", 0) + 412, 5 - Color.red(0), (char) KeyEvent.normalizeMetaState(0)); byte b4 = (byte) ($$b & 5); byte b5 = (byte) (b4 - 1); Object[] objArr5 = new Object[1]; g(b4, b5, (byte) (b5 - 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE); xzZ.y.put(-548438098, obj2); } jArr[i4] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue(); Object[] objArr6 = {dqy, dqy}; Object obj3 = xzZ.y.get(1071125919); if (obj3 == null) { Class cls3 = (Class) xzZ.c(407 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), 5 - ExpandableListView.getPackedPositionType(0L), (char) (29234 - ExpandableListView.getPackedPositionType(0L))); byte b6 = (byte) 0; Object[] objArr7 = new Object[1]; g((byte) 8, b6, (byte) (b6 - 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1071125919, obj3); } ((Method) obj3).invoke(null, objArr6); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } char[] cArr = new char[i2]; dqy.a = 0; while (dqy.a < i2) { int i5 = $10 + 85; $11 = i5 % 128; if (i5 % 2 == 0) { cArr[dqy.a] = (char) jArr[dqy.a]; try { Object[] objArr8 = {dqy, dqy}; Object obj4 = xzZ.y.get(1071125919); if (obj4 == null) { Class cls4 = (Class) xzZ.c((ViewConfiguration.getWindowTouchSlop() >> 8) + 407, 5 - (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (TextUtils.indexOf("", "", 0, 0) + 29234)); byte b7 = (byte) 0; Object[] objArr9 = new Object[1]; g((byte) 8, b7, (byte) (b7 - 1), objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1071125919, obj4); } ((Method) obj4).invoke(null, objArr8); int i6 = 34 / 0; } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } else { cArr[dqy.a] = (char) jArr[dqy.a]; try { Object[] objArr10 = {dqy, dqy}; Object obj5 = xzZ.y.get(1071125919); if (obj5 == null) { Class cls5 = (Class) xzZ.c((ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 408, Color.red(0) + 5, (char) (Gravity.getAbsoluteGravity(0, 0) + 29234)); byte b8 = (byte) 0; Object[] objArr11 = new Object[1]; g((byte) 8, b8, (byte) (b8 - 1), objArr11); obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class); xzZ.y.put(1071125919, obj5); } ((Method) obj5).invoke(null, objArr10); } catch (Throwable th3) { Throwable cause3 = th3.getCause(); if (cause3 == null) { throw th3; } throw cause3; } } } String str = new String(cArr); int i7 = $11 + 83; $10 = i7 % 128; if (i7 % 2 == 0) { objArr[0] = str; } else { Object obj6 = null; obj6.hashCode(); throw null; } } public CrashlyticsReport.Session.Event captureEventData(Throwable th, Thread thread, String str, long j, int i, int i2, boolean z) { int i3 = 2 % 2; int i4 = this.context.getResources().getConfiguration().orientation; CrashlyticsReport.Session.Event build = CrashlyticsReport.Session.Event.builder().setType(str).setTimestamp(j).setApp(populateEventApplicationData(i4, new TrimmedThrowableData(th, this.stackTraceTrimmingStrategy), thread, i, i2, z)).setDevice(populateEventDeviceData(i4)).build(); int i5 = e + 107; c = i5 % 128; int i6 = i5 % 2; return build; } private CrashlyticsReport.Builder buildReportData() { int i = 2 % 2; int i2 = e + 53; c = i2 % 128; int i3 = i2 % 2; CrashlyticsReport.Builder platform = CrashlyticsReport.builder().setSdkVersion(BuildConfig.VERSION_NAME).setGmpAppId(this.appData.googleAppId).setInstallationUuid(this.idManager.getCrashlyticsInstallId()).setBuildVersion(this.appData.versionCode).setDisplayVersion(this.appData.versionName).setPlatform(4); int i4 = e + 21; c = i4 % 128; int i5 = i4 % 2; return platform; } private CrashlyticsReport.Session populateSessionData(String str, long j) { CrashlyticsReport.Session.Builder device; int i; int i2 = 2 % 2; int i3 = e + 31; c = i3 % 128; if (i3 % 2 != 0) { device = CrashlyticsReport.Session.builder().setStartedAt(j).setIdentifier(str).setGenerator(GENERATOR).setApp(populateSessionApplicationData()).setOs(populateSessionOperatingSystemData()).setDevice(populateSessionDeviceData()); i = 4; } else { device = CrashlyticsReport.Session.builder().setStartedAt(j).setIdentifier(str).setGenerator(GENERATOR).setApp(populateSessionApplicationData()).setOs(populateSessionOperatingSystemData()).setDevice(populateSessionDeviceData()); i = 3; } return device.setGeneratorType(i).build(); } private CrashlyticsReport.Session.Application populateSessionApplicationData() { int i = 2 % 2; int i2 = e + 33; c = i2 % 128; int i3 = i2 % 2; CrashlyticsReport.Session.Application build = CrashlyticsReport.Session.Application.builder().setIdentifier(this.idManager.getAppIdentifier()).setVersion(this.appData.versionCode).setDisplayVersion(this.appData.versionName).setInstallationUuid(this.idManager.getCrashlyticsInstallId()).build(); int i4 = e + 123; c = i4 % 128; int i5 = i4 % 2; return build; } private CrashlyticsReport.Session.OperatingSystem populateSessionOperatingSystemData() { int i = 2 % 2; int i2 = e + 101; c = i2 % 128; int i3 = i2 % 2; CrashlyticsReport.Session.OperatingSystem build = CrashlyticsReport.Session.OperatingSystem.builder().setPlatform(3).setVersion(Build.VERSION.RELEASE).setBuildVersion(Build.VERSION.CODENAME).setJailbroken(CommonUtils.isRooted(this.context)).build(); int i4 = c + 17; e = i4 % 128; if (i4 % 2 != 0) { return build; } Object obj = null; obj.hashCode(); throw null; } private CrashlyticsReport.Session.Device populateSessionDeviceData() { int i = 2 % 2; StatFs statFs = new StatFs(Environment.getDataDirectory().getPath()); int deviceArchitecture = getDeviceArchitecture(); int availableProcessors = Runtime.getRuntime().availableProcessors(); long totalRamInBytes = CommonUtils.getTotalRamInBytes(); long blockCount = statFs.getBlockCount(); long blockSize = statFs.getBlockSize(); boolean isEmulator = CommonUtils.isEmulator(this.context); int deviceState = CommonUtils.getDeviceState(this.context); CrashlyticsReport.Session.Device build = CrashlyticsReport.Session.Device.builder().setArch(deviceArchitecture).setModel(Build.MODEL).setCores(availableProcessors).setRam(totalRamInBytes).setDiskSpace(blockCount * blockSize).setSimulator(isEmulator).setState(deviceState).setManufacturer(Build.MANUFACTURER).setModelClass(Build.PRODUCT).build(); int i2 = e + 35; c = i2 % 128; if (i2 % 2 == 0) { return build; } throw null; } /* JADX WARN: Code restructure failed: missing block: B:10:0x002f, code lost: if (r1.importance == 100) goto L12; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x0031, code lost: r1 = com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.c + 59; com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.e = r1 % 128; r1 = r1 % 2; r2 = true; */ /* JADX WARN: Code restructure failed: missing block: B:12:0x003b, code lost: r0 = java.lang.Boolean.valueOf(r2); */ /* JADX WARN: Code restructure failed: missing block: B:14:0x0029, code lost: if (r1 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x001c, code lost: if (r1 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0040, code lost: r0 = null; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private com.google.firebase.crashlytics.internal.model.CrashlyticsReport.Session.Event.Application populateEventApplicationData(int r7, com.google.firebase.crashlytics.internal.stacktrace.TrimmedThrowableData r8, java.lang.Thread r9, int r10, int r11, boolean r12) { /* r6 = this; r0 = 2 int r1 = r0 % r0 int r1 = com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.e int r1 = r1 + 119 int r2 = r1 % 128 com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.c = r2 int r1 = r1 % r0 r2 = 0 if (r1 == 0) goto L1f com.google.firebase.crashlytics.internal.common.AppData r1 = r6.appData java.lang.String r1 = r1.packageName android.content.Context r3 = r6.context android.app.ActivityManager$RunningAppProcessInfo r1 = com.google.firebase.crashlytics.internal.common.CommonUtils.getAppProcessInfo(r1, r3) r3 = 43 int r3 = r3 / r2 if (r1 == 0) goto L40 goto L2b L1f: com.google.firebase.crashlytics.internal.common.AppData r1 = r6.appData java.lang.String r1 = r1.packageName android.content.Context r3 = r6.context android.app.ActivityManager$RunningAppProcessInfo r1 = com.google.firebase.crashlytics.internal.common.CommonUtils.getAppProcessInfo(r1, r3) if (r1 == 0) goto L40 L2b: int r1 = r1.importance r3 = 100 if (r1 == r3) goto L3b int r1 = com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.c int r1 = r1 + 59 int r2 = r1 % 128 com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.e = r2 int r1 = r1 % r0 r2 = 1 L3b: java.lang.Boolean r0 = java.lang.Boolean.valueOf(r2) goto L41 L40: r0 = 0 L41: com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Builder r1 = com.google.firebase.crashlytics.internal.model.CrashlyticsReport.Session.Event.Application.builder() com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Builder r0 = r1.setBackground(r0) com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Builder r7 = r0.setUiOrientation(r7) r0 = r6 r1 = r8 r2 = r9 r3 = r10 r4 = r11 r5 = r12 com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Execution r8 = r0.populateExecutionData(r1, r2, r3, r4, r5) com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Builder r7 = r7.setExecution(r8) com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application r7 = r7.build() return r7 */ throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.populateEventApplicationData(int, com.google.firebase.crashlytics.internal.stacktrace.TrimmedThrowableData, java.lang.Thread, int, int, boolean):com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application"); } private CrashlyticsReport.Session.Event.Device populateEventDeviceData(int i) { int i2 = 2 % 2; int i3 = e + 95; c = i3 % 128; int i4 = i3 % 2; BatteryState batteryState = BatteryState.get(this.context); Float batteryLevel = batteryState.getBatteryLevel(); Object obj = null; Double valueOf = batteryLevel != null ? Double.valueOf(batteryLevel.doubleValue()) : null; int batteryVelocity = batteryState.getBatteryVelocity(); CrashlyticsReport.Session.Event.Device build = CrashlyticsReport.Session.Event.Device.builder().setBatteryLevel(valueOf).setBatteryVelocity(batteryVelocity).setProximityOn(CommonUtils.getProximitySensorEnabled(this.context)).setOrientation(i).setRamUsed(CommonUtils.getTotalRamInBytes() - CommonUtils.calculateFreeRamInBytes(this.context)).setDiskUsed(CommonUtils.calculateUsedDiskSpaceInBytes(Environment.getDataDirectory().getPath())).build(); int i5 = c + 81; e = i5 % 128; if (i5 % 2 != 0) { return build; } obj.hashCode(); throw null; } private CrashlyticsReport.Session.Event.Application.Execution populateExecutionData(TrimmedThrowableData trimmedThrowableData, Thread thread, int i, int i2, boolean z) { int i3 = 2 % 2; int i4 = e + 85; c = i4 % 128; int i5 = i4 % 2; CrashlyticsReport.Session.Event.Application.Execution build = CrashlyticsReport.Session.Event.Application.Execution.builder().setThreads(populateThreadsList(trimmedThrowableData, thread, i, z)).setException(populateExceptionData(trimmedThrowableData, i, i2)).setSignal(populateSignalData()).setBinaries(populateBinaryImagesList()).build(); int i6 = e + 125; c = i6 % 128; int i7 = i6 % 2; return build; } private ImmutableList populateThreadsList(TrimmedThrowableData trimmedThrowableData, Thread thread, int i, boolean z) { Map.Entry next; Thread key; int i2 = 2 % 2; ArrayList arrayList = new ArrayList(); arrayList.add(populateThreadData(thread, trimmedThrowableData.stacktrace, i)); if (z) { int i3 = e + 85; c = i3 % 128; if (i3 % 2 != 0) { Thread.getAllStackTraces().entrySet().iterator(); throw null; } Iterator> it = Thread.getAllStackTraces().entrySet().iterator(); while (it.hasNext()) { int i4 = e + 95; c = i4 % 128; if (i4 % 2 != 0) { next = it.next(); key = next.getKey(); int i5 = 60 / 0; if (!key.equals(thread)) { arrayList.add(populateThreadData(key, this.stackTraceTrimmingStrategy.getTrimmedStackTrace(next.getValue()))); int i6 = e + 57; c = i6 % 128; int i7 = i6 % 2; } } else { next = it.next(); key = next.getKey(); if (!key.equals(thread)) { arrayList.add(populateThreadData(key, this.stackTraceTrimmingStrategy.getTrimmedStackTrace(next.getValue()))); int i62 = e + 57; c = i62 % 128; int i72 = i62 % 2; } } } } return ImmutableList.from(arrayList); } private CrashlyticsReport.Session.Event.Application.Execution.Thread populateThreadData(Thread thread, StackTraceElement[] stackTraceElementArr) { int i = 2 % 2; int i2 = e + 29; c = i2 % 128; int i3 = i2 % 2; CrashlyticsReport.Session.Event.Application.Execution.Thread populateThreadData = populateThreadData(thread, stackTraceElementArr, 0); int i4 = e + 41; c = i4 % 128; int i5 = i4 % 2; return populateThreadData; } private CrashlyticsReport.Session.Event.Application.Execution.Thread populateThreadData(Thread thread, StackTraceElement[] stackTraceElementArr, int i) { int i2 = 2 % 2; int i3 = e + 21; c = i3 % 128; int i4 = i3 % 2; CrashlyticsReport.Session.Event.Application.Execution.Thread build = CrashlyticsReport.Session.Event.Application.Execution.Thread.builder().setName(thread.getName()).setImportance(i).setFrames(ImmutableList.from(populateFramesList(stackTraceElementArr, i))).build(); int i5 = e + 101; c = i5 % 128; if (i5 % 2 != 0) { int i6 = 30 / 0; } return build; } private ImmutableList populateFramesList(StackTraceElement[] stackTraceElementArr, int i) { int i2 = 2 % 2; ArrayList arrayList = new ArrayList(); int length = stackTraceElementArr.length; int i3 = e + 43; c = i3 % 128; int i4 = i3 % 2; int i5 = 0; while (i5 < length) { int i6 = e + 93; c = i6 % 128; if (i6 % 2 != 0) { arrayList.add(populateFrameData(stackTraceElementArr[i5], CrashlyticsReport.Session.Event.Application.Execution.Thread.Frame.builder().setImportance(i))); i5 += 15; } else { arrayList.add(populateFrameData(stackTraceElementArr[i5], CrashlyticsReport.Session.Event.Application.Execution.Thread.Frame.builder().setImportance(i))); i5++; } } return ImmutableList.from(arrayList); } private CrashlyticsReport.Session.Event.Application.Execution.Exception populateExceptionData(TrimmedThrowableData trimmedThrowableData, int i, int i2) { int i3 = 2 % 2; int i4 = e + 65; c = i4 % 128; int i5 = i4 % 2; CrashlyticsReport.Session.Event.Application.Execution.Exception populateExceptionData = populateExceptionData(trimmedThrowableData, i, i2, 0); int i6 = e + 71; c = i6 % 128; int i7 = i6 % 2; return populateExceptionData; } /* JADX WARN: Code restructure failed: missing block: B:28:0x0020, code lost: r4 = r9.stacktrace; */ /* JADX WARN: Code restructure failed: missing block: B:30:0x001e, code lost: if (r9.stacktrace != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0015, code lost: if (r9.stacktrace != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0023, code lost: r4 = new java.lang.StackTraceElement[0]; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private com.google.firebase.crashlytics.internal.model.CrashlyticsReport.Session.Event.Application.Execution.Exception populateExceptionData(com.google.firebase.crashlytics.internal.stacktrace.TrimmedThrowableData r9, int r10, int r11, int r12) { /* r8 = this; r0 = 2 int r1 = r0 % r0 int r1 = com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.e int r1 = r1 + 15 int r2 = r1 % 128 com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.c = r2 int r1 = r1 % r0 r2 = 0 if (r1 == 0) goto L18 java.lang.String r1 = r9.className java.lang.String r3 = r9.localizedMessage java.lang.StackTraceElement[] r4 = r9.stacktrace if (r4 == 0) goto L23 goto L20 L18: java.lang.String r1 = r9.className java.lang.String r3 = r9.localizedMessage java.lang.StackTraceElement[] r4 = r9.stacktrace if (r4 == 0) goto L23 L20: java.lang.StackTraceElement[] r4 = r9.stacktrace goto L25 L23: java.lang.StackTraceElement[] r4 = new java.lang.StackTraceElement[r2] L25: com.google.firebase.crashlytics.internal.stacktrace.TrimmedThrowableData r9 = r9.cause if (r12 < r11) goto L58 int r5 = com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.e int r5 = r5 + 35 int r6 = r5 % 128 com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.c = r6 int r5 = r5 % r0 if (r5 == 0) goto L37 r5 = 15 int r5 = r5 / r2 L37: r5 = r9 L38: if (r5 == 0) goto L58 int r6 = com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.e int r6 = r6 + 93 int r7 = r6 % 128 com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.c = r7 int r6 = r6 % r0 if (r6 == 0) goto L4a com.google.firebase.crashlytics.internal.stacktrace.TrimmedThrowableData r5 = r5.cause int r2 = r2 + 39 goto L4e L4a: com.google.firebase.crashlytics.internal.stacktrace.TrimmedThrowableData r5 = r5.cause int r2 = r2 + 1 L4e: int r6 = com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.e int r6 = r6 + 25 int r7 = r6 % 128 com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.c = r7 int r6 = r6 % r0 goto L38 L58: com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Execution$Exception$Builder r5 = com.google.firebase.crashlytics.internal.model.CrashlyticsReport.Session.Event.Application.Execution.Exception.builder() com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Execution$Exception$Builder r1 = r5.setType(r1) com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Execution$Exception$Builder r1 = r1.setReason(r3) com.google.firebase.crashlytics.internal.model.ImmutableList r3 = r8.populateFramesList(r4, r10) com.google.firebase.crashlytics.internal.model.ImmutableList r3 = com.google.firebase.crashlytics.internal.model.ImmutableList.from(r3) com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Execution$Exception$Builder r1 = r1.setFrames(r3) com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Execution$Exception$Builder r1 = r1.setOverflowCount(r2) if (r9 == 0) goto L8a if (r2 != 0) goto L8a int r2 = com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.e int r2 = r2 + 75 int r3 = r2 % 128 com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.c = r3 int r2 = r2 % r0 int r12 = r12 + 1 com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Execution$Exception r9 = r8.populateExceptionData(r9, r10, r11, r12) r1.setCausedBy(r9) L8a: com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Execution$Exception r9 = r1.build() return r9 */ throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.crashlytics.internal.common.CrashlyticsReportDataCapture.populateExceptionData(com.google.firebase.crashlytics.internal.stacktrace.TrimmedThrowableData, int, int, int):com.google.firebase.crashlytics.internal.model.CrashlyticsReport$Session$Event$Application$Execution$Exception"); } private CrashlyticsReport.Session.Event.Application.Execution.Thread.Frame populateFrameData(StackTraceElement stackTraceElement, CrashlyticsReport.Session.Event.Application.Execution.Thread.Frame.Builder builder) { long j; int i = 2 % 2; int i2 = c + 35; e = i2 % 128; int i3 = i2 % 2; long j2 = 0; if (stackTraceElement.isNativeMethod()) { j = Math.max(stackTraceElement.getLineNumber(), 0L); int i4 = e + 125; c = i4 % 128; if (i4 % 2 != 0) { int i5 = 2 % 5; } } else { j = 0; } StringBuilder sb = new StringBuilder(); sb.append(stackTraceElement.getClassName()); sb.append("."); sb.append(stackTraceElement.getMethodName()); String obj = sb.toString(); String fileName = stackTraceElement.getFileName(); if (!stackTraceElement.isNativeMethod() && stackTraceElement.getLineNumber() > 0) { int i6 = e + 123; c = i6 % 128; if (i6 % 2 != 0) { stackTraceElement.getLineNumber(); Object obj2 = null; obj2.hashCode(); throw null; } j2 = stackTraceElement.getLineNumber(); } return builder.setPc(j).setSymbol(obj).setFile(fileName).setOffset(j2).build(); } private ImmutableList populateBinaryImagesList() { ImmutableList from; int i = 2 % 2; int i2 = c + 31; e = i2 % 128; if (i2 % 2 == 0) { CrashlyticsReport.Session.Event.Application.Execution.BinaryImage[] binaryImageArr = new CrashlyticsReport.Session.Event.Application.Execution.BinaryImage[1]; binaryImageArr[1] = populateBinaryImageData(); from = ImmutableList.from(binaryImageArr); } else { from = ImmutableList.from(populateBinaryImageData()); } int i3 = c + 47; e = i3 % 128; if (i3 % 2 != 0) { return from; } throw null; } private CrashlyticsReport.Session.Event.Application.Execution.BinaryImage populateBinaryImageData() { int i = 2 % 2; int i2 = c + 67; e = i2 % 128; CrashlyticsReport.Session.Event.Application.Execution.BinaryImage build = (i2 % 2 == 0 ? CrashlyticsReport.Session.Event.Application.Execution.BinaryImage.builder().setBaseAddress(1L) : CrashlyticsReport.Session.Event.Application.Execution.BinaryImage.builder().setBaseAddress(0L)).setSize(0L).setName(this.appData.packageName).setUuid(this.appData.buildId).build(); int i3 = e + 75; c = i3 % 128; if (i3 % 2 == 0) { return build; } Object obj = null; obj.hashCode(); throw null; } private CrashlyticsReport.Session.Event.Application.Execution.Signal populateSignalData() { int i = 2 % 2; int i2 = c + 95; e = i2 % 128; int i3 = i2 % 2; CrashlyticsReport.Session.Event.Application.Execution.Signal.Builder builder = CrashlyticsReport.Session.Event.Application.Execution.Signal.builder(); Object[] objArr = new Object[1]; f((char) ((-1) - ImageFormat.getBitsPerPixel(0)), TextUtils.getOffsetBefore("", 0), View.getDefaultSize(0, 0) + 1, objArr); CrashlyticsReport.Session.Event.Application.Execution.Signal.Builder name = builder.setName(((String) objArr[0]).intern()); Object[] objArr2 = new Object[1]; f((char) (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) - 1, 1 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), objArr2); CrashlyticsReport.Session.Event.Application.Execution.Signal build = name.setCode(((String) objArr2[0]).intern()).setAddress(0L).build(); int i4 = e + 73; c = i4 % 128; if (i4 % 2 == 0) { return build; } Object obj = null; obj.hashCode(); throw null; } private static int getDeviceArchitecture() { int i = 2 % 2; String str = Build.CPU_ABI; if (!TextUtils.isEmpty(str)) { Integer num = ARCHITECTURES_BY_NAME.get(str.toLowerCase(Locale.US)); if (num == null) { return 7; } return num.intValue(); } int i2 = e + 25; int i3 = i2 % 128; c = i3; int i4 = i2 % 2; int i5 = i3 + 73; e = i5 % 128; int i6 = i5 % 2; return 7; } static void c() { a = new char[]{36834}; b = -576284467818335485L; } }