package o; import java.io.IOException; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.Iterator; /* loaded from: classes.dex */ public final class Jpr extends C0743NnU { public Jpr(ErN erN) { super(erN); } @Override // o.C0743NnU public final String d(int i) { if (i != 1002) { if (i == 1005) { return h(); } if (i == 1028) { byte[] b = ((ErN) this.a).b(i); if (b == null) { return null; } return String.format("%d bytes binary data", Integer.valueOf(b.length)); } if (i != 1030) { if (i != 1044 && i != 1054) { if (i == 1057) { return f(); } if (i == 1062) { return i(); } if (i == 1064) { return g(); } if (i == 2999) { return h(i); } if (i != 1049) { if (i != 1050) { switch (i) { case 1033: case 1036: return g(i); case 1034: byte[] b2 = ((ErN) this.a).b(i); if (b2 == null || b2.length == 0) { return null; } return b2[0] == 0 ? "No" : "Yes"; case 1035: break; case 1037: break; default: if (i >= 2000 && i <= 2998) { return j(i); } return super.d(i); } } else { return j(); } } } return f(i); } return e(); } byte[] b3 = ((ErN) this.a).b(i); if (b3 == null) { return null; } return new String(b3); } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARN: Removed duplicated region for block: B:35:0x0053 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private java.lang.String e() { /* r11 = this; T extends o.BrP r0 = r11.a // Catch: java.io.IOException -> Lab o.ErN r0 = (o.ErN) r0 // Catch: java.io.IOException -> Lab r1 = 1030(0x406, float:1.443E-42) byte[] r0 = r0.b(r1) // Catch: java.io.IOException -> Lab if (r0 != 0) goto L15 T extends o.BrP r0 = r11.a // Catch: java.io.IOException -> Lab o.ErN r0 = (o.ErN) r0 // Catch: java.io.IOException -> Lab java.lang.String r0 = r0.o(r1) // Catch: java.io.IOException -> Lab return r0 L15: o.RrQ r1 = new o.RrQ // Catch: java.io.IOException -> Lab r1.(r0) // Catch: java.io.IOException -> Lab r0 = 0 int r2 = r1.l(r0) // Catch: java.io.IOException -> Lab r3 = 2 int r4 = r1.l(r3) // Catch: java.io.IOException -> Lab r5 = 4 int r1 = r1.l(r5) // Catch: java.io.IOException -> Lab r6 = 65535(0xffff, float:9.1834E-41) if (r2 > r6) goto L39 r6 = 65533(0xfffd, float:9.1831E-41) if (r2 < r6) goto L39 r6 = 65532(0xfffc, float:9.183E-41) int r6 = r2 - r6 goto L41 L39: r6 = 8 if (r2 > r6) goto L40 int r6 = r2 + 4 goto L41 L40: r6 = r2 L41: switch(r2) { case 0: goto L53; case 1: goto L50; case 2: goto L50; case 3: goto L50; case 4: goto L4d; case 5: goto L4d; case 6: goto L4a; case 7: goto L4a; case 8: goto L4a; default: goto L44; } L44: switch(r2) { case 65533: goto L53; case 65534: goto L53; case 65535: goto L53; default: goto L47; } L47: java.lang.String r2 = "Unknown" goto L55 L4a: java.lang.String r2 = "Maximum" goto L55 L4d: java.lang.String r2 = "High" goto L55 L50: java.lang.String r2 = "Medium" goto L55 L53: java.lang.String r2 = "Low" L55: java.lang.String r7 = "Unknown 0x%04X" r8 = 1 if (r4 == 0) goto L73 if (r4 == r8) goto L70 r9 = 257(0x101, float:3.6E-43) if (r4 == r9) goto L6d java.lang.Object[] r9 = new java.lang.Object[r8] // Catch: java.io.IOException -> Lab java.lang.Integer r4 = java.lang.Integer.valueOf(r4) // Catch: java.io.IOException -> Lab r9[r0] = r4 // Catch: java.io.IOException -> Lab java.lang.String r4 = java.lang.String.format(r7, r9) // Catch: java.io.IOException -> Lab goto L75 L6d: java.lang.String r4 = "Progressive" goto L75 L70: java.lang.String r4 = "Optimised" goto L75 L73: java.lang.String r4 = "Standard" L75: r9 = 3 if (r1 <= 0) goto L8a if (r1 > r9) goto L8a java.lang.Object[] r7 = new java.lang.Object[r8] // Catch: java.io.IOException -> Lab int r1 = r1 + r3 java.lang.Integer r1 = java.lang.Integer.valueOf(r1) // Catch: java.io.IOException -> Lab r7[r0] = r1 // Catch: java.io.IOException -> Lab java.lang.String r1 = "%d" java.lang.String r1 = java.lang.String.format(r1, r7) // Catch: java.io.IOException -> Lab goto L96 L8a: java.lang.Object[] r10 = new java.lang.Object[r8] // Catch: java.io.IOException -> Lab java.lang.Integer r1 = java.lang.Integer.valueOf(r1) // Catch: java.io.IOException -> Lab r10[r0] = r1 // Catch: java.io.IOException -> Lab java.lang.String r1 = java.lang.String.format(r7, r10) // Catch: java.io.IOException -> Lab L96: java.lang.Object[] r5 = new java.lang.Object[r5] // Catch: java.io.IOException -> Lab java.lang.Integer r6 = java.lang.Integer.valueOf(r6) // Catch: java.io.IOException -> Lab r5[r0] = r6 // Catch: java.io.IOException -> Lab r5[r8] = r2 // Catch: java.io.IOException -> Lab r5[r3] = r4 // Catch: java.io.IOException -> Lab r5[r9] = r1 // Catch: java.io.IOException -> Lab java.lang.String r0 = "%d (%s), %s format, %s scans" java.lang.String r0 = java.lang.String.format(r0, r5) // Catch: java.io.IOException -> Lab return r0 Lab: r0 = 0 return r0 */ throw new UnsupportedOperationException("Method not decompiled: o.Jpr.e():java.lang.String"); } private String g() { try { byte[] b = ((ErN) this.a).b(1064); if (b == null) { return null; } return Double.toString(new C0925RrQ(b).b(4)); } catch (Exception unused) { return null; } } private String i() { try { byte[] b = ((ErN) this.a).b(1062); if (b == null) { return null; } C0925RrQ c0925RrQ = new C0925RrQ(b); int g = c0925RrQ.g(0); float e = c0925RrQ.e(2); float e2 = c0925RrQ.e(6); float e3 = c0925RrQ.e(10); if (g != 0) { return g != 1 ? g != 2 ? String.format("Unknown %04X, X:%s Y:%s, Scale:%s", Integer.valueOf(g), Float.valueOf(e), Float.valueOf(e2), Float.valueOf(e3)) : String.format("User defined, X:%s Y:%s, Scale:%s", Float.valueOf(e), Float.valueOf(e2), Float.valueOf(e3)) : "Size to fit"; } StringBuilder sb = new StringBuilder("Centered, Scale "); sb.append(e3); return sb.toString(); } catch (Exception unused) { return null; } } private String h() { try { byte[] b = ((ErN) this.a).b(1005); if (b == null) { return null; } C0925RrQ c0925RrQ = new C0925RrQ(b); float h = c0925RrQ.h(0); float h2 = c0925RrQ.h(8); DecimalFormat decimalFormat = new DecimalFormat("0.##"); StringBuilder sb = new StringBuilder(); sb.append(decimalFormat.format(h)); sb.append("x"); sb.append(decimalFormat.format(h2)); sb.append(" DPI"); return sb.toString(); } catch (Exception unused) { return null; } } private String f() { try { byte[] b = ((ErN) this.a).b(1057); if (b == null) { return null; } C0925RrQ c0925RrQ = new C0925RrQ(b); int g = c0925RrQ.g(0); int g2 = c0925RrQ.g(5) << 1; String e = c0925RrQ.e(9, g2, "UTF-16"); int g3 = c0925RrQ.g(g2 + 9); int i = g2 + 13; int i2 = g3 << 1; return String.format("%d (%s, %s) %d", Integer.valueOf(g), e, c0925RrQ.e(i, i2, "UTF-16"), Integer.valueOf(c0925RrQ.g(i + i2))); } catch (IOException unused) { return null; } } private String j() { try { byte[] b = ((ErN) this.a).b(1050); if (b == null) { return null; } C0925RrQ c0925RrQ = new C0925RrQ(b); int g = c0925RrQ.g(20) << 1; return String.format("%s (%d,%d,%d,%d) %d Slices", c0925RrQ.e(24, g, "UTF-16"), Integer.valueOf(c0925RrQ.g(4)), Integer.valueOf(c0925RrQ.g(8)), Integer.valueOf(c0925RrQ.g(12)), Integer.valueOf(c0925RrQ.g(16)), Integer.valueOf(c0925RrQ.g(g + 24))); } catch (IOException unused) { return null; } } private String g(int i) { try { byte[] b = ((ErN) this.a).b(i); if (b == null) { return null; } C0925RrQ c0925RrQ = new C0925RrQ(b); int g = c0925RrQ.g(0); int g2 = c0925RrQ.g(4); int g3 = c0925RrQ.g(8); int g4 = c0925RrQ.g(16); int g5 = c0925RrQ.g(20); int g6 = c0925RrQ.g(24); Object[] objArr = new Object[6]; objArr[0] = g == 1 ? "JpegRGB" : "RawRGB"; objArr[1] = Integer.valueOf(g2); objArr[2] = Integer.valueOf(g3); objArr[3] = Integer.valueOf(g4); objArr[4] = Integer.valueOf(g6); objArr[5] = Integer.valueOf(g5); return String.format("%s, %dx%d, Decomp %d bytes, %d bpp, %d bytes", objArr); } catch (IOException unused) { return null; } } private String f(int i) { byte[] b = ((ErN) this.a).b(i); if (b == null) { return null; } try { return String.format("%d", Integer.valueOf(new C0925RrQ(b).g(0))); } catch (IOException unused) { return null; } } private String h(int i) { try { byte[] b = ((ErN) this.a).b(i); if (b == null) { return null; } C0925RrQ c0925RrQ = new C0925RrQ(b); return new String(c0925RrQ.c(1, c0925RrQ.d(0)), "UTF-8"); } catch (Exception unused) { return null; } } private String j(int i) { String str; String str2; int i2; C0925RrQ c0925RrQ; ArrayList arrayList; int i3; C11269ecE c11269ecE; C0925RrQ c0925RrQ2; C11269ecE c11269ecE2; String str3 = ")"; String str4 = ","; try { byte[] b = ((ErN) this.a).b(i); if (b == null) { return null; } C0925RrQ c0925RrQ3 = new C0925RrQ(b); short s = 1; int a = ((int) ((c0925RrQ3.a() - c0925RrQ3.d(((int) c0925RrQ3.a()) - 1)) - 1)) / 26; szX szx = new szX(); szX szx2 = new szX(); ArrayList arrayList2 = new ArrayList(); String str5 = null; int i4 = 0; while (i4 < a) { int i5 = i4 * 26; short a2 = c0925RrQ3.a(i5); if (a2 == 0) { str = str3; str2 = str4; i2 = a; c0925RrQ = c0925RrQ3; arrayList = arrayList2; i3 = i4; if (szx.b.size() != 0) { arrayList.add(szx); } szx = new szX("Closed Subpath"); } else if (a2 == s || a2 == 2) { str = str3; str2 = str4; i2 = a; C0925RrQ c0925RrQ4 = c0925RrQ3; arrayList = arrayList2; i3 = i4; if (a2 == s) { c11269ecE = new C11269ecE("Linked"); } else { c11269ecE = new C11269ecE("Unlinked"); } int i6 = 0; while (i6 < 6) { int i7 = i6 << 2; c11269ecE.c[i6] = r9.j(i7 + 2 + i5) + (r9.f((i7 + 3) + i5) / Math.pow(2.0d, 24.0d)); i6++; i5 = i5; c0925RrQ4 = c0925RrQ4; } c0925RrQ = c0925RrQ4; szx.b.add(c11269ecE); } else { if (a2 != 3) { short s2 = 4; if (a2 != 4) { if (a2 != 5) { if (a2 == 8) { str5 = c0925RrQ3.a(i5 + 2) == s ? "with all pixels" : "without all pixels"; } str = str3; str2 = str4; i2 = a; c0925RrQ = c0925RrQ3; arrayList = arrayList2; i3 = i4; } else { s2 = 4; } } if (a2 == s2) { c11269ecE2 = new C11269ecE("Linked"); } else { c11269ecE2 = new C11269ecE("Unlinked"); } int i8 = 0; while (i8 < 6) { int i9 = i8 << 2; c11269ecE2.c[i8] = c0925RrQ3.j(i9 + 2 + i5) + (c0925RrQ3.f((i9 + 3) + i5) / Math.pow(2.0d, 24.0d)); i8++; i4 = i4; a = a; arrayList2 = arrayList2; str3 = str3; str4 = str4; c0925RrQ3 = c0925RrQ3; } str = str3; str2 = str4; i2 = a; c0925RrQ2 = c0925RrQ3; i3 = i4; szx2.b.add(c11269ecE2); arrayList = arrayList2; } else { str = str3; str2 = str4; i2 = a; c0925RrQ2 = c0925RrQ3; ArrayList arrayList3 = arrayList2; i3 = i4; if (szx2.b.size() != 0) { arrayList = arrayList3; arrayList.add(szx2); } else { arrayList = arrayList3; } szx2 = new szX("Open Subpath"); } c0925RrQ = c0925RrQ2; } i4 = i3 + 1; arrayList2 = arrayList; c0925RrQ3 = c0925RrQ; a = i2; str3 = str; str4 = str2; s = 1; } String str6 = str3; String str7 = str4; C0925RrQ c0925RrQ5 = c0925RrQ3; ArrayList arrayList4 = arrayList2; if (szx.b.size() != 0) { arrayList4.add(szx); } if (szx2.b.size() != 0) { arrayList4.add(szx2); } byte d = c0925RrQ5.d(((int) c0925RrQ5.a()) - 1); String str8 = new String(c0925RrQ5.c((((int) c0925RrQ5.a()) - d) - 1, d), UeM.c.name()); StringBuilder sb = new StringBuilder(); sb.append('\"'); sb.append(str8); sb.append('\"'); sb.append(" having "); if (str5 != null) { sb.append("initial fill rule \""); sb.append(str5); sb.append("\" and "); } sb.append(arrayList4.size()); sb.append(arrayList4.size() == 1 ? " subpath:" : " subpaths:"); Iterator it = arrayList4.iterator(); while (it.hasNext()) { szX szx3 = (szX) it.next(); sb.append("\n- "); sb.append(szx3.c); sb.append(" with "); sb.append(arrayList4.size()); sb.append(arrayList4.size() == 1 ? " knot:" : " knots:"); for (C11269ecE c11269ecE3 : szx3.b) { sb.append("\n - "); sb.append(c11269ecE3.d); sb.append(" ("); sb.append(c11269ecE3.c[0]); String str9 = str7; sb.append(str9); sb.append(c11269ecE3.c[1]); String str10 = str6; sb.append(str10); sb.append(" ("); sb.append(c11269ecE3.c[2]); sb.append(str9); sb.append(c11269ecE3.c[3]); sb.append(str10); sb.append(" ("); sb.append(c11269ecE3.c[4]); sb.append(str9); sb.append(c11269ecE3.c[5]); sb.append(str10); str7 = str9; str6 = str10; } } return sb.toString(); } catch (Exception unused) { return null; } } }