package o; import com.google.common.base.Ascii; import com.huawei.hms.framework.common.ContainerUtils; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes6.dex */ public final class gjO implements gjS, Serializable { private final List> c = new ArrayList(); private static final byte[] $$a = {114, 119, 93, Ascii.EM}; private static final int $$b = 48; private static int $10 = 0; private static int $11 = 1; private static int e = 0; private static int d = 1; private static char[] b = {40067, 40217, 40221, 40222}; /* JADX WARN: Removed duplicated region for block: B:10:0x0027 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001f */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002e). 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 f(byte r6, short r7, byte r8, java.lang.Object[] r9) { /* byte[] r0 = o.gjO.$$a int r8 = r8 + 4 int r6 = r6 * 4 int r1 = 1 - r6 int r7 = r7 * 2 int r7 = 73 - r7 byte[] r1 = new byte[r1] r2 = 0 int r6 = 0 - r6 if (r0 != 0) goto L17 r7 = r6 r3 = r8 r4 = r2 goto L2e L17: r3 = r2 L18: byte r4 = (byte) r7 r1[r3] = r4 int r4 = r3 + 1 if (r3 != r6) goto L27 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L27: int r8 = r8 + 1 r3 = r0[r8] r5 = r3 r3 = r8 r8 = r5 L2e: int r7 = r7 + r8 r8 = r3 r3 = r4 goto L18 */ throw new UnsupportedOperationException("Method not decompiled: o.gjO.f(byte, short, byte, java.lang.Object[]):void"); } @Override // o.gjS public final String c(String str) { String obj; Object obj2; int i = 2 % 2; StringBuilder sb = new StringBuilder(256); if (str != null) { sb.append(str); } if (!this.c.isEmpty()) { int i2 = d + 85; e = i2 % 128; if (i2 % 2 == 0) { if (sb.length() > 0) { sb.append('\n'); int i3 = e + 101; d = i3 % 128; if (i3 % 2 == 0) { int i4 = 4 % 3; } } sb.append("Exception Context:\n"); int i5 = 0; for (AbstractC15218gke abstractC15218gke : this.c) { sb.append("\t["); i5++; sb.append(i5); sb.append(':'); sb.append(abstractC15218gke.getKey()); sb.append(ContainerUtils.KEY_VALUE_DELIMITER); Object value = abstractC15218gke.getValue(); if (value == null) { int i6 = e + 103; d = i6 % 128; if (i6 % 2 == 0) { Object[] objArr = new Object[1]; a(new byte[]{1, 0, 1, 1}, new int[]{0, 4, CipherSuite.TLS_DH_DSS_WITH_AES_256_GCM_SHA384, 1}, true, objArr); obj2 = objArr[0]; } else { Object[] objArr2 = new Object[1]; a(new byte[]{1, 0, 1, 1}, new int[]{0, 4, CipherSuite.TLS_DH_DSS_WITH_AES_256_GCM_SHA384, 1}, false, objArr2); obj2 = objArr2[0]; } sb.append(((String) obj2).intern()); } else { try { obj = value.toString(); } catch (Exception e2) { StringBuilder sb2 = new StringBuilder("Exception thrown on toString(): "); sb2.append(C15178gjQ.a(e2)); obj = sb2.toString(); } sb.append(obj); } sb.append("]\n"); } sb.append("---------------------------------"); } else { sb.length(); throw null; } } return sb.toString(); } /* JADX WARN: Removed duplicated region for block: B:59:0x0251 */ /* JADX WARN: Removed duplicated region for block: B:67:0x026c */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void a(byte[] r19, int[] r20, boolean r21, java.lang.Object[] r22) { /* Method dump skipped, instructions count: 653 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.gjO.a(byte[], int[], boolean, java.lang.Object[]):void"); } }