package o; import java.util.Objects; import o.C0690Mh; import o.C4929bjT; import o.ZI; import o.wRi; /* renamed from: o.bjT, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C4929bjT extends ZI { public ME a; public int b; public final C17791zkj c; public final JbU d; private final C16930sW e; @InterfaceC13391fZD public C4929bjT(C16903sI c16903sI, JbU jbU, C17791zkj c17791zkj, C16930sW c16930sW) { super(c16903sI); this.d = jbU; this.c = c17791zkj; this.e = c16930sW; } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void e(boolean z, InterfaceC9279dgj interfaceC9279dgj) { if (z) { interfaceC9279dgj.b(); } else { interfaceC9279dgj.d(); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void e(InterfaceC9279dgj interfaceC9279dgj) { interfaceC9279dgj.c(); interfaceC9279dgj.b(); } /* renamed from: o.bjT$LWm */ /* loaded from: classes4.dex */ public class LWm extends wRi.LWm { private C4929bjT c; private LWm(C4929bjT c4929bjT) { this.c = c4929bjT; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C0515Ijp c0515Ijp = (C0515Ijp) obj; super.onNext(c0515Ijp); C4929bjT c4929bjT = this.c; C16930sW unused = c4929bjT.e; c4929bjT.a = C16930sW.e(c0515Ijp); C4929bjT c4929bjT2 = this.c; c4929bjT2.d(c4929bjT2.a); C4929bjT c4929bjT3 = this.c; ZI.IeS ieS = new ZI.IeS() { // from class: o.bke @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9279dgj) obj2).aq_(); } }; if (c4929bjT3.f != 0) { ieS.e(c4929bjT3.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { super.onError(th); C4929bjT c4929bjT = this.c; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.bka private C4929bjT.LWm a; private Throwable e; @Override // o.ZI.IeS public final void e(Object obj) { C4929bjT.LWm.b(this.a, this.e, (InterfaceC9279dgj) obj); } { this.a = this; this.e = th; } }; if (c4929bjT.f != 0) { ieS.e(c4929bjT.f); } } public static /* synthetic */ void b(LWm lWm, Throwable th, InterfaceC9279dgj interfaceC9279dgj) { interfaceC9279dgj.aq_(); interfaceC9279dgj.e(lWm.c.j.d(th, C0690Mh.IeS.NAVIGATE_BACK)); } public /* synthetic */ LWm(C4929bjT c4929bjT, byte b) { this(c4929bjT); } } /* renamed from: o.bjT$IeS */ /* loaded from: classes4.dex */ public class IeS extends wRi.LWm { private C4929bjT a; private IeS(C4929bjT c4929bjT) { this.a = c4929bjT; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final C0515Ijp c0515Ijp = (C0515Ijp) obj; super.onNext(c0515Ijp); C4929bjT c4929bjT = this.a; ZI.IeS ieS = new ZI.IeS(this, c0515Ijp) { // from class: o.bkg private C0515Ijp b; private C4929bjT.IeS e; @Override // o.ZI.IeS public final void e(Object obj2) { C4929bjT.IeS.d(this.e, this.b, (InterfaceC9279dgj) obj2); } { this.e = this; this.b = c0515Ijp; } }; if (c4929bjT.f != 0) { ieS.e(c4929bjT.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { super.onError(th); C4929bjT c4929bjT = this.a; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.bkd private Throwable a; private C4929bjT.IeS b; @Override // o.ZI.IeS public final void e(Object obj) { C4929bjT.IeS.d(this.b, this.a, (InterfaceC9279dgj) obj); } { this.b = this; this.a = th; } }; if (c4929bjT.f != 0) { ieS.e(c4929bjT.f); } } public static /* synthetic */ void d(IeS ieS, Throwable th, final InterfaceC9279dgj interfaceC9279dgj) { interfaceC9279dgj.ar_(); C16903sI c16903sI = ieS.a.j; Objects.requireNonNull(interfaceC9279dgj); interfaceC9279dgj.e(c16903sI.c(th, new Runnable(interfaceC9279dgj) { // from class: o.bkh private InterfaceC9279dgj d; @Override // java.lang.Runnable public final void run() { this.d.a(); } { this.d = interfaceC9279dgj; } })); } public static /* synthetic */ void d(IeS ieS, C0515Ijp c0515Ijp, InterfaceC9279dgj interfaceC9279dgj) { interfaceC9279dgj.b(); C4929bjT c4929bjT = ieS.a; C16930sW unused = c4929bjT.e; c4929bjT.a = C16930sW.e(c0515Ijp); interfaceC9279dgj.ar_(); } public /* synthetic */ IeS(C4929bjT c4929bjT, byte b) { this(c4929bjT); } } @Override // o.ZI public final void w_() { super.w_(); JbU jbU = this.d; if (jbU.h.isDisposed()) { return; } jbU.h.dispose(); } public static /* synthetic */ void b(C4929bjT c4929bjT, ME me2, InterfaceC9279dgj interfaceC9279dgj) { interfaceC9279dgj.a(); interfaceC9279dgj.b(); C16930sW c16930sW = c4929bjT.e; interfaceC9279dgj.d(C16930sW.a(me2)); } public static /* synthetic */ void e(C4929bjT c4929bjT, int i) { final boolean z = true; if (i == 1) { C16930sW c16930sW = c4929bjT.e; final ME a = C16930sW.a(c4929bjT.a); ZI.IeS ieS = new ZI.IeS(a) { // from class: o.bjX private ME d; @Override // o.ZI.IeS public final void e(Object obj) { C4929bjT.a(this.d, (InterfaceC9279dgj) obj); } { this.d = a; } }; if (c4929bjT.f != 0) { ieS.e(c4929bjT.f); return; } return; } ME me2 = c4929bjT.a; if (me2 != null && me2.e) { z = false; } ZI.IeS ieS2 = new ZI.IeS(z) { // from class: o.bjZ private boolean b; @Override // o.ZI.IeS public final void e(Object obj) { C4929bjT.e(this.b, (InterfaceC9279dgj) obj); } { this.b = z; } }; if (c4929bjT.f != 0) { ieS2.e(c4929bjT.f); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void a(ME me2, InterfaceC9279dgj interfaceC9279dgj) { if (me2 != null && me2.e) { interfaceC9279dgj.d(me2); } else { interfaceC9279dgj.e(); } } public final void d(final ME me2) { this.a = me2; if (me2 != null && me2.e) { ZI.IeS ieS = new ZI.IeS(this, me2) { // from class: o.bkc private C4929bjT c; private ME d; @Override // o.ZI.IeS public final void e(Object obj) { C4929bjT.b(this.c, this.d, (InterfaceC9279dgj) obj); } { this.c = this; this.d = me2; } }; if (this.f != 0) { ieS.e(this.f); return; } return; } ZI.IeS ieS2 = new ZI.IeS() { // from class: o.bjY @Override // o.ZI.IeS public final void e(Object obj) { C4929bjT.e((InterfaceC9279dgj) obj); } }; if (this.f != 0) { ieS2.e(this.f); } } }