package o; /* renamed from: o.fYU, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C13360fYU { /* JADX WARN: Code restructure failed: missing block: B:12:0x0033, code lost: r0 = r14.e(-r0); */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0038, code lost: if (r0 != 0) goto L21; */ /* JADX WARN: Code restructure failed: missing block: B:15:0x003a, code lost: return; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static void e(o.InterfaceC13408fZk r10, o.InterfaceC13174fSv r11, boolean r12, o.fSJ r13, o.InterfaceC13361fYY r14) { /* r12 = 1 r0 = r12 L2: boolean r1 = r14.d() boolean r2 = r10.c() r4 = 0 r3 = r11 r5 = r10 r6 = r13 r7 = r14 boolean r1 = b(r1, r2, r3, r4, r5, r6, r7) if (r1 == 0) goto L16 return L16: boolean r2 = r14.d() java.lang.Object r1 = r10.b() if (r1 != 0) goto L22 r9 = r12 goto L24 L22: r3 = 0 r9 = r3 L24: r5 = 0 r3 = r9 r4 = r11 r6 = r10 r7 = r13 r8 = r14 boolean r2 = b(r2, r3, r4, r5, r6, r7, r8) if (r2 == 0) goto L31 return L31: if (r9 == 0) goto L3b int r0 = -r0 int r0 = r14.e(r0) if (r0 != 0) goto L2 return L3b: r14.a(r11, r1) goto L16 */ throw new UnsupportedOperationException("Method not decompiled: o.C13360fYU.e(o.fZk, o.fSv, boolean, o.fSJ, o.fYY):void"); } private static boolean b(boolean z, boolean z2, InterfaceC13174fSv interfaceC13174fSv, boolean z3, InterfaceC13414fZq interfaceC13414fZq, fSJ fsj, InterfaceC13361fYY interfaceC13361fYY) { if (interfaceC13361fYY.a()) { interfaceC13414fZq.e(); fsj.dispose(); return true; } if (!z) { return false; } if (z3) { if (!z2) { return false; } if (fsj != null) { fsj.dispose(); } Throwable b = interfaceC13361fYY.b(); if (b != null) { interfaceC13174fSv.onError(b); } else { interfaceC13174fSv.onComplete(); } return true; } Throwable b2 = interfaceC13361fYY.b(); if (b2 != null) { interfaceC13414fZq.e(); if (fsj != null) { fsj.dispose(); } interfaceC13174fSv.onError(b2); return true; } if (!z2) { return false; } if (fsj != null) { fsj.dispose(); } interfaceC13174fSv.onComplete(); return true; } }