package o; /* loaded from: classes2.dex */ public final class CzB implements InterfaceC16283mxN { /* JADX WARN: Removed duplicated region for block: B:14:0x004e */ /* JADX WARN: Removed duplicated region for block: B:33:0x009a */ @Override // o.InterfaceC16283mxN /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final o.C8902dZc d(java.lang.String r8, o.PTS r9, int r10, int r11, java.util.Map r12) { /* r7 = this; r0 = 0 r1 = 33 r2 = 0 if (r12 == 0) goto L49 o.gQH r3 = o.EnumC14826gQH.CHARACTER_SET boolean r3 = r12.containsKey(r3) if (r3 == 0) goto L1c o.gQH r0 = o.EnumC14826gQH.CHARACTER_SET java.lang.Object r0 = r12.get(r0) java.lang.String r0 = r0.toString() java.nio.charset.Charset r0 = java.nio.charset.Charset.forName(r0) L1c: o.gQH r3 = o.EnumC14826gQH.ERROR_CORRECTION boolean r3 = r12.containsKey(r3) if (r3 == 0) goto L32 o.gQH r1 = o.EnumC14826gQH.ERROR_CORRECTION java.lang.Object r1 = r12.get(r1) java.lang.String r1 = r1.toString() int r1 = java.lang.Integer.parseInt(r1) L32: o.gQH r3 = o.EnumC14826gQH.AZTEC_LAYERS boolean r3 = r12.containsKey(r3) if (r3 == 0) goto L49 o.gQH r3 = o.EnumC14826gQH.AZTEC_LAYERS java.lang.Object r12 = r12.get(r3) java.lang.String r12 = r12.toString() int r12 = java.lang.Integer.parseInt(r12) goto L4a L49: r12 = r2 L4a: o.PTS r3 = o.PTS.AZTEC if (r9 != r3) goto L9a o.SjY r8 = o.jMl.e(r8, r1, r12, r0) o.dZc r8 = r8.a if (r8 == 0) goto L94 int r9 = r8.e int r12 = r8.c int r10 = java.lang.Math.max(r10, r9) int r11 = java.lang.Math.max(r11, r12) int r0 = r10 / r9 int r1 = r11 / r12 int r0 = java.lang.Math.min(r0, r1) int r1 = r9 * r0 int r1 = r10 - r1 int r1 = r1 / 2 int r3 = r12 * r0 int r3 = r11 - r3 int r3 = r3 / 2 o.dZc r4 = new o.dZc r4.(r10, r11) r10 = r2 L7c: if (r10 >= r12) goto L93 r5 = r1 r11 = r2 L80: if (r11 >= r9) goto L8f boolean r6 = r8.b(r11, r10) if (r6 == 0) goto L8b r4.b(r5, r3, r0, r0) L8b: int r11 = r11 + 1 int r5 = r5 + r0 goto L80 L8f: int r10 = r10 + 1 int r3 = r3 + r0 goto L7c L93: return r4 L94: java.lang.IllegalStateException r8 = new java.lang.IllegalStateException r8.() throw r8 L9a: java.lang.IllegalArgumentException r8 = new java.lang.IllegalArgumentException java.lang.String r10 = "Can only encode AZTEC, but got " java.lang.String r9 = java.lang.String.valueOf(r9) java.lang.String r9 = r10.concat(r9) r8.(r9) throw r8 */ throw new UnsupportedOperationException("Method not decompiled: o.CzB.d(java.lang.String, o.PTS, int, int, java.util.Map):o.dZc"); } }