package o; import o.wRi; /* renamed from: o.cAE, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C5811cAE extends ZI { private final jwh b; private final nPB c; public final vnN d; public final BGi e; @InterfaceC13391fZD public C5811cAE(C16903sI c16903sI, BGi bGi, nPB npb, jwh jwhVar, vnN vnn) { super(c16903sI); this.e = bGi; this.c = npb; this.b = jwhVar; this.d = vnn; } /* renamed from: o.cAE$3, reason: invalid class name */ /* loaded from: classes4.dex */ public class AnonymousClass3 extends wRi.LWm { private C5811cAE a; public AnonymousClass3(C5811cAE c5811cAE) { this.a = c5811cAE; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { Boolean bool = (Boolean) obj; if (this.a.d.a.c() == 1) { if (Boolean.TRUE.equals(bool)) { C5811cAE c5811cAE = this.a; cAH cah = new cAH(); if (c5811cAE.f != 0) { cah.e(c5811cAE.f); return; } return; } C5811cAE c5811cAE2 = this.a; C5812cAK c5812cAK = new C5812cAK(); if (c5811cAE2.f != 0) { c5812cAK.e(c5811cAE2.f); return; } return; } C5811cAE c5811cAE3 = this.a; cAF caf = new cAF(); if (c5811cAE3.f != 0) { caf.e(c5811cAE3.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C5811cAE c5811cAE = this.a; C5812cAK c5812cAK = new C5812cAK(); if (c5811cAE.f != 0) { c5812cAK.e(c5811cAE.f); } } } public final void a() { C7968cyO p = this.c.d.p(); if (p == null) { p = null; } if (p != null) { if (p.b()) { cAF caf = new cAF(); if (this.f != 0) { caf.e(this.f); return; } return; } cAD cad = new cAD(); if (this.f != 0) { cad.e(this.f); return; } return; } if (this.f != 0) { this.f.y(); } this.b.b(); jwh jwhVar = this.b; jwhVar.d(jwhVar.i, new wRi.LWm(this) { // from class: o.cAE.4 private C5811cAE e; { this.e = this; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C5811cAE.c(this.e); if (((C7968cyO) obj).b()) { C5811cAE c5811cAE = this.e; cAF caf2 = new cAF(); if (c5811cAE.f != 0) { caf2.e(c5811cAE.f); return; } return; } C5811cAE c5811cAE2 = this.e; cAD cad2 = new cAD(); if (c5811cAE2.f != 0) { cad2.e(c5811cAE2.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C5811cAE.b(this.e); C5811cAE.a(this.e, th); } }); } static /* synthetic */ void c(C5811cAE c5811cAE) { if (c5811cAE.f != 0) { c5811cAE.f.ar_(); } } static /* synthetic */ void b(C5811cAE c5811cAE) { if (c5811cAE.f != 0) { c5811cAE.f.ar_(); } } static /* synthetic */ void a(C5811cAE c5811cAE, Throwable th) { if (c5811cAE.b(th)) { c5811cAE.d(c5811cAE.j.e(th)); } } @Override // o.ZI public final void w_() { BGi bGi = this.e; if (!bGi.h.isDisposed()) { bGi.h.dispose(); } nPB npb = this.c; if (!npb.h.isDisposed()) { npb.h.dispose(); } jwh jwhVar = this.b; if (!jwhVar.h.isDisposed()) { jwhVar.h.dispose(); } super.w_(); } }