package o; /* loaded from: classes2.dex */ public final class jMl { private static final int[] c = {4, 6, 6, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12}; /* JADX WARN: Code restructure failed: missing block: B:37:0x00b8, code lost: if (r15 != 32) goto L47; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static o.SjY e(java.lang.String r21, int r22, int r23, java.nio.charset.Charset r24) { /* Method dump skipped, instructions count: 1137 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.jMl.e(java.lang.String, int, int, java.nio.charset.Charset):o.SjY"); } private static void b(C8902dZc c8902dZc, int i, int i2) { for (int i3 = 0; i3 < i2; i3 += 2) { int i4 = i - i3; int i5 = i4; while (true) { int i6 = i + i3; if (i5 <= i6) { c8902dZc.a(i5, i4); c8902dZc.a(i5, i6); c8902dZc.a(i4, i5); c8902dZc.a(i6, i5); i5++; } } } int i7 = i - i2; c8902dZc.a(i7, i7); int i8 = i7 + 1; c8902dZc.a(i8, i7); c8902dZc.a(i7, i8); int i9 = i + i2; c8902dZc.a(i9, i7); c8902dZc.a(i9, i8); c8902dZc.a(i9, i9 - 1); } private static int[] d(C17416wdP c17416wdP, int i, int i2) { int[] iArr = new int[i2]; int i3 = c17416wdP.d / i; for (int i4 = 0; i4 < i3; i4++) { int i5 = 0; for (int i6 = 0; i6 < i; i6++) { int i7 = (i4 * i) + i6; i5 |= ((1 << (i7 & 31)) & c17416wdP.a[i7 / 32]) == 0 ? 0 : 1 << ((i - i6) - 1); } iArr[i4] = i5; } return iArr; } private static Ayo d(int i) { if (i == 4) { return Ayo.a; } if (i == 6) { return Ayo.e; } if (i == 8) { return Ayo.d; } if (i == 10) { return Ayo.c; } if (i == 12) { return Ayo.b; } throw new IllegalArgumentException("Unsupported word size ".concat(String.valueOf(i))); } private static C17416wdP d(C17416wdP c17416wdP, int i) { int i2; C17416wdP c17416wdP2 = new C17416wdP(); int i3 = c17416wdP.d; int i4 = (1 << i) - 2; int i5 = 0; while (i5 < i3) { int i6 = 0; for (0; i2 < i; i2 + 1) { int i7 = i5 + i2; if (i7 < i3) { i2 = ((1 << (i7 & 31)) & c17416wdP.a[i7 / 32]) == 0 ? i2 + 1 : 0; } i6 |= 1 << ((i - 1) - i2); } int i8 = i6 & i4; if (i8 == i4) { c17416wdP2.e(i8, i); } else if (i8 == 0) { c17416wdP2.e(i6 | 1, i); } else { c17416wdP2.e(i6, i); i5 += i; } i5--; i5 += i; } return c17416wdP2; } private static C17416wdP a(C17416wdP c17416wdP, int i, int i2) { int i3 = c17416wdP.d / i2; Zyy zyy = new Zyy(d(i2)); int i4 = i / i2; int[] d = d(c17416wdP, i2, i4); zyy.a(d, i4 - i3); C17416wdP c17416wdP2 = new C17416wdP(); c17416wdP2.e(0, i % i2); for (int i5 : d) { c17416wdP2.e(i5, i2); } return c17416wdP2; } }