package com.google.android.libraries.places.internal; import android.media.AudioTrack; import android.util.TypedValue; import android.view.KeyEvent; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.airbnb.deeplinkdispatch.UrlTreeKt; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import java.util.logging.Level; import java.util.logging.Logger; import net.sf.scuba.smartcards.ISO7816; import o.GuL; import o.xzZ; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes2.dex */ public final class zzil { private static final byte[] $$a = {37, 38, 5, ISO7816.INS_LOAD_KEY_FILE}; private static final int $$b = CipherSuite.TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256; private static int $10 = 0; private static int $11 = 1; private static int b = 0; private static int d = 1; private static long a = -243202592381239398L; /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Removed duplicated region for block: B:10:0x0027 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001f */ /* JADX WARN: Type inference failed for: r8v2, types: [int] */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> 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 e(short r6, byte r7, byte r8, java.lang.Object[] r9) { /* int r8 = r8 * 2 int r8 = 121 - r8 byte[] r0 = com.google.android.libraries.places.internal.zzil.$$a int r6 = r6 + 4 int r7 = r7 * 4 int r1 = r7 + 1 byte[] r1 = new byte[r1] r2 = 0 if (r0 != 0) goto L15 r3 = r8 r4 = r2 r8 = r6 goto L2c L15: r3 = r2 L16: byte r4 = (byte) r8 r1[r3] = r4 int r6 = r6 + 1 int r4 = r3 + 1 if (r3 != r7) goto L27 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L27: r3 = r0[r6] r5 = r8 r8 = r6 r6 = r5 L2c: int r6 = r6 + r3 r3 = r4 r5 = r8 r8 = r6 r6 = r5 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.libraries.places.internal.zzil.e(short, byte, byte, java.lang.Object[]):void"); } public static String zzb(String str) { int i = 2 % 2; int i2 = d + 59; b = i2 % 128; if (i2 % 2 != 0) { zzif.zza(str); Object obj = null; obj.hashCode(); throw null; } String zza = zzif.zza(str); int i3 = b + 3; d = i3 % 128; int i4 = i3 % 2; return zza; } public static String zza(String str, Object... objArr) { int length; int length2; int indexOf; String obj; int i = 2 % 2; int i2 = d + 119; int i3 = i2 % 128; b = i3; int i4 = i2 % 2; int i5 = i3 + 121; d = i5 % 128; int i6 = i5 % 2; int i7 = 0; int i8 = 0; while (true) { length = objArr.length; if (i8 >= length) { break; } Object obj2 = objArr[i8]; if (obj2 == null) { int i9 = d + 7; b = i9 % 128; if (i9 % 2 != 0) { Object[] objArr2 = new Object[1]; c(new char[]{12918, 12824, 18750, 61070, 15190, 23183, 29872, 44460}, -ExpandableListView.getPackedPositionChild(0L), objArr2); obj = ((String) objArr2[0]).intern(); } else { Object[] objArr3 = new Object[1]; c(new char[]{12918, 12824, 18750, 61070, 15190, 23183, 29872, 44460}, -ExpandableListView.getPackedPositionChild(0L), objArr3); obj = ((String) objArr3[0]).intern(); } } else { try { obj = obj2.toString(); } catch (Exception e) { StringBuilder sb = new StringBuilder(); sb.append(obj2.getClass().getName()); sb.append('@'); sb.append(Integer.toHexString(System.identityHashCode(obj2))); String obj3 = sb.toString(); Logger.getLogger("com.google.common.base.Strings").logp(Level.WARNING, "com.google.common.base.Strings", "lenientToString", "Exception during lenientFormat for ".concat(obj3), (Throwable) e); StringBuilder sb2 = new StringBuilder(UrlTreeKt.configurablePathSegmentPrefix); sb2.append(obj3); sb2.append(" threw "); sb2.append(e.getClass().getName()); sb2.append(UrlTreeKt.configurablePathSegmentSuffix); obj = sb2.toString(); } } objArr[i8] = obj; i8++; } StringBuilder sb3 = new StringBuilder(str.length() + (length << 4)); int i10 = 0; while (true) { length2 = objArr.length; if (i7 >= length2 || (indexOf = str.indexOf("%s", i10)) == -1) { break; } sb3.append((CharSequence) str, i10, indexOf); sb3.append(objArr[i7]); i10 = indexOf + 2; i7++; } sb3.append((CharSequence) str, i10, str.length()); if (i7 < length2) { sb3.append(" ["); int i11 = i7 + 1; sb3.append(objArr[i7]); while (i11 < objArr.length) { int i12 = b + 95; d = i12 % 128; if (i12 % 2 == 0) { sb3.append(", "); sb3.append(objArr[i11]); i11 += 87; } else { sb3.append(", "); sb3.append(objArr[i11]); i11++; } } sb3.append(']'); } return sb3.toString(); } private static void c(char[] cArr, int i, Object[] objArr) { int i2 = 2 % 2; GuL guL = new GuL(); char[] a2 = GuL.a(a ^ (-7538262848231253921L), cArr, i); int i3 = 4; guL.a = 4; while (guL.a < a2.length) { int i4 = $10 + 1; $11 = i4 % 128; int i5 = i4 % 2; guL.c = guL.a - i3; int i6 = guL.a; try { Object[] objArr2 = {Long.valueOf(a2[guL.a] ^ a2[guL.a % i3]), Long.valueOf(guL.c), Long.valueOf(a)}; Object obj = xzZ.y.get(428080616); if (obj == null) { Class cls = (Class) xzZ.c((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 207, 4 - ((byte) KeyEvent.getModifierMetaStateMask()), (char) ((ViewConfiguration.getFadingEdgeLength() >> 16) + 1706)); byte b2 = (byte) (-1); byte b3 = (byte) (b2 + 1); Object[] objArr3 = new Object[1]; e(b2, b3, (byte) (b3 + 1), objArr3); obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE); xzZ.y.put(428080616, obj); } a2[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); Object[] objArr4 = {guL, guL}; Object obj2 = xzZ.y.get(-1875914398); if (obj2 == null) { Class cls2 = (Class) xzZ.c(392 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), 5 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), (char) (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1))); byte b4 = (byte) (-1); byte b5 = (byte) (b4 + 1); Object[] objArr5 = new Object[1]; e(b4, b5, b5, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(-1875914398, obj2); } ((Method) obj2).invoke(null, objArr4); i3 = 4; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } String str = new String(a2, 4, a2.length - 4); int i7 = $10 + 103; $11 = i7 % 128; if (i7 % 2 == 0) { throw null; } objArr[0] = str; } }