package o; import o.C0690Mh; import o.C5479bto; import o.ZI; import o.wRi; /* renamed from: o.bto, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C5479bto extends AbstractC5576bvf { private final C17065teC b; final bTI e; private final hKK i; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C5479bto(RwI rwI, C14614fwY c14614fwY, hKK hkk, C17065teC c17065teC, C17171uWJ c17171uWJ, C17027tO c17027tO, C16903sI c16903sI) { super(c16903sI, rwI, c14614fwY, c17171uWJ, c17027tO); C14957gcv.e(rwI, ""); C14957gcv.e(c14614fwY, ""); C14957gcv.e(hkk, ""); C14957gcv.e(c17065teC, ""); C14957gcv.e(c17171uWJ, ""); C14957gcv.e(c17027tO, ""); C14957gcv.e(c16903sI, ""); this.i = hkk; this.b = c17065teC; this.e = bTI.CONSUMER; } /* renamed from: o.bto$Sts */ /* loaded from: classes4.dex */ public static final class Sts extends wRi.LWm { private C5479bto c; private boolean e; Sts(C5479bto c5479bto, boolean z) { this.c = c5479bto; this.e = z; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { boolean booleanValue = ((Boolean) obj).booleanValue(); super.onNext(Boolean.valueOf(booleanValue)); C5479bto.a(this.c); if (booleanValue) { final C5479bto c5479bto = this.c; ZI.IeS ieS = new ZI.IeS(c5479bto) { // from class: o.btp private C5479bto d; @Override // o.ZI.IeS public final void e(Object obj2) { C5479bto.Sts.a(this.d, (InterfaceC9299dhC) obj2); } { this.d = c5479bto; } }; if (c5479bto.f != 0) { ieS.e(c5479bto.f); return; } return; } if (this.e) { C5479bto c5479bto2 = this.c; ZI.IeS ieS2 = new ZI.IeS() { // from class: o.btw @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9299dhC) obj2).b(); } }; if (c5479bto2.f != 0) { ieS2.e(c5479bto2.f); return; } return; } C5479bto c5479bto3 = this.c; ZI.IeS ieS3 = new ZI.IeS() { // from class: o.btq @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9299dhC) obj2).d(); } }; if (c5479bto3.f != 0) { ieS3.e(c5479bto3.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); C5479bto.b(this.c, th, C0690Mh.IeS.NAVIGATE_BACK); super.onError(th); } public static /* synthetic */ void a(C5479bto c5479bto, InterfaceC9299dhC interfaceC9299dhC) { C14957gcv.e(c5479bto, ""); interfaceC9299dhC.b(c5479bto.e); } } public static final /* synthetic */ void a(C5479bto c5479bto) { if (c5479bto.f != 0) { c5479bto.f.ar_(); } } public static final /* synthetic */ void b(C5479bto c5479bto, Throwable th, C0690Mh.IeS ieS) { if (c5479bto.b(th)) { c5479bto.d(c5479bto.j.d(th, ieS)); } } @Override // o.AbstractC5576bvf public final void c() { if (this.f != 0) { this.f.y(); } KEo b = this.i.b.b(); Boolean bool = b != null ? b.h : null; this.b.d(this.b.b(), new Sts(this, bool == null ? false : bool.booleanValue())); } @Override // o.AbstractC5576bvf protected final bTI d() { return this.e; } }