package o; import com.adobe.internal.xmp.XMPException; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import okhttp3.HttpUrl; /* renamed from: o.xzn, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C17589xzn { private static Map d = new HashMap(); private static void a(sfI sfi) throws XMPException { if (sfi != null) { if (sfi.g == null) { sfi.g = new C14373frw(); } if ((sfi.g.a & 512) != 0) { if (sfi.g == null) { sfi.g = new C14373frw(); } C14373frw c14373frw = sfi.g; c14373frw.a |= 1024; c14373frw.a |= 2048; c14373frw.a |= 4096; Iterator c = sfi.c(); while (c.hasNext()) { sfI sfi2 = (sfI) c.next(); if (sfi2.g == null) { sfi2.g = new C14373frw(); } if ((sfi2.g.a & 768) > 0) { c.remove(); } else { if (sfi2.g == null) { sfi2.g = new C14373frw(); } if ((sfi2.g.a & 64) == 0) { String str = sfi2.i; if (str == null || str.length() == 0) { c.remove(); } else { sfi2.d(new sfI("xml:lang", "x-repair", null)); } } } } } } } private static void e(Iterator it, sfI sfi, sfI sfi2) throws XMPException { if (sfi2.g == null) { sfi2.g = new C14373frw(); } if ((sfi2.g.a & 4096) != 0) { if (sfi.g == null) { sfi.g = new C14373frw(); } if ((sfi.g.a & 64) != 0) { throw new XMPException("Alias to x-default already has a language qualifier", 203); } sfi.d(new sfI("xml:lang", "x-default", null)); } it.remove(); sfi.f = HttpUrl.PATH_SEGMENT_ENCODE_SET_URI; sfi2.c(sfi); } static { C14373frw c14373frw = new C14373frw(); c14373frw.a |= 512; d.put("dc:contributor", c14373frw); d.put("dc:language", c14373frw); d.put("dc:publisher", c14373frw); d.put("dc:relation", c14373frw); d.put("dc:subject", c14373frw); d.put("dc:type", c14373frw); C14373frw c14373frw2 = new C14373frw(); c14373frw2.a |= 512; c14373frw2.a |= 1024; d.put("dc:creator", c14373frw2); d.put("dc:date", c14373frw2); C14373frw c14373frw3 = new C14373frw(); c14373frw3.a |= 512; c14373frw3.a |= 1024; c14373frw3.a |= 2048; c14373frw3.a |= 4096; d.put("dc:description", c14373frw3); d.put("dc:rights", c14373frw3); d.put("dc:title", c14373frw3); } /* JADX WARN: Code restructure failed: missing block: B:27:0x0065, code lost: if (r7 == (r0 != null ? r0.size() : 0)) goto L36; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void d(o.sfI r5, o.sfI r6, boolean r7) throws com.adobe.internal.xmp.XMPException { /* java.lang.String r0 = r5.i java.lang.String r1 = r6.i boolean r0 = r0.equals(r1) r1 = 203(0xcb, float:2.84E-43) java.lang.String r2 = "Mismatch between alias and base nodes" if (r0 == 0) goto Lb7 java.util.List r0 = r5.e r3 = 0 if (r0 == 0) goto L18 int r0 = r0.size() goto L19 L18: r0 = r3 L19: java.util.List r4 = r6.e if (r4 == 0) goto L22 int r4 = r4.size() goto L23 L22: r4 = r3 L23: if (r0 != r4) goto Lb7 if (r7 != 0) goto L6e java.lang.String r7 = r5.f java.lang.String r0 = r6.f boolean r7 = r7.equals(r0) if (r7 == 0) goto L68 o.frw r7 = r5.g if (r7 != 0) goto L3c o.frw r7 = new o.frw r7.() r5.g = r7 L3c: o.frw r7 = r5.g o.frw r0 = r6.g if (r0 != 0) goto L49 o.frw r0 = new o.frw r0.() r6.g = r0 L49: o.frw r0 = r6.g boolean r7 = r7.equals(r0) if (r7 == 0) goto L68 java.util.List r7 = r5.h if (r7 == 0) goto L5a int r7 = r7.size() goto L5b L5a: r7 = r3 L5b: java.util.List r0 = r6.h if (r0 == 0) goto L64 int r0 = r0.size() goto L65 L64: r0 = r3 L65: if (r7 != r0) goto L68 goto L6e L68: com.adobe.internal.xmp.XMPException r5 = new com.adobe.internal.xmp.XMPException r5.(r2, r1) throw r5 L6e: java.util.Iterator r7 = r5.c() java.util.Iterator r0 = r6.c() L76: boolean r1 = r7.hasNext() if (r1 == 0) goto L92 boolean r1 = r0.hasNext() if (r1 == 0) goto L92 java.lang.Object r1 = r7.next() o.sfI r1 = (o.sfI) r1 java.lang.Object r2 = r0.next() o.sfI r2 = (o.sfI) r2 d(r1, r2, r3) goto L76 L92: java.util.Iterator r5 = r5.e() java.util.Iterator r6 = r6.e() L9a: boolean r7 = r5.hasNext() if (r7 == 0) goto Lb6 boolean r7 = r6.hasNext() if (r7 == 0) goto Lb6 java.lang.Object r7 = r5.next() o.sfI r7 = (o.sfI) r7 java.lang.Object r0 = r6.next() o.sfI r0 = (o.sfI) r0 d(r7, r0, r3) goto L9a Lb6: return Lb7: com.adobe.internal.xmp.XMPException r5 = new com.adobe.internal.xmp.XMPException r5.(r2, r1) throw r5 */ throw new UnsupportedOperationException("Method not decompiled: o.C17589xzn.d(o.sfI, o.sfI, boolean):void"); } /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Removed duplicated region for block: B:199:0x0414 A[SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:205:0x040f A[SYNTHETIC] */ /* JADX WARN: Type inference failed for: r9v0 */ /* JADX WARN: Type inference failed for: r9v1, types: [java.lang.String, o.frw] */ /* JADX WARN: Type inference failed for: r9v11 */ /* JADX WARN: Type inference failed for: r9v12 */ /* JADX WARN: Type inference failed for: r9v17 */ /* JADX WARN: Type inference failed for: r9v18 */ /* JADX WARN: Type inference failed for: r9v19 */ /* JADX WARN: Type inference failed for: r9v20 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static o.OPB a(o.C16814rTK r18, o.khW r19) throws com.adobe.internal.xmp.XMPException { /* Method dump skipped, instructions count: 1174 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C17589xzn.a(o.rTK, o.khW):o.OPB"); } }