package o; import o.C0690Mh; import o.InterfaceC6621cYR; import o.ZI; import o.aWO; import o.wRi; /* loaded from: classes4.dex */ public class aWO extends ZI { private final C16878ry a; private boolean b; public final tcj d; private final CzN e; @InterfaceC13391fZD public aWO(C16903sI c16903sI, tcj tcjVar, C16878ry c16878ry, CzN czN) { super(c16903sI); this.b = false; this.d = tcjVar; this.a = c16878ry; this.e = czN; } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public class HBt extends wRi.LWm { private aWO b; private HBt(aWO awo) { this.b = awo; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C2458aew c2458aew = (C2458aew) obj; aWO.c(this.b); final C16878ry c16878ry = this.b.a; final String M = this.b.d.a.M(); final C0645Lg c0645Lg = new C0645Lg(c2458aew.d, C16878ry.a(c2458aew.c, new InterfaceC1244Ytw(c16878ry, M) { // from class: o.rA private C16878ry a; private String e; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return C16878ry.a(this.e, (KNe) obj2); } { this.a = c16878ry; this.e = M; } })); aWO awo = this.b; ZI.IeS ieS = new ZI.IeS(c0645Lg) { // from class: o.aWP private C0645Lg b; @Override // o.ZI.IeS public final void e(Object obj2) { aWO.HBt.e(this.b, (InterfaceC6621cYR.SWS) obj2); } { this.b = c0645Lg; } }; if (awo.f != 0) { ieS.e(awo.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { if (this.b.i(th)) { return; } aWO awo = this.b; ZI.IeS ieS = new ZI.IeS() { // from class: o.aWN @Override // o.ZI.IeS public final void e(Object obj) { aWO.HBt.a((InterfaceC6621cYR.SWS) obj); } }; if (awo.f != 0) { ieS.e(awo.f); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void a(InterfaceC6621cYR.SWS sws) { sws.aq_(); sws.d(false); sws.d(); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void e(C0645Lg c0645Lg, InterfaceC6621cYR.SWS sws) { if (c0645Lg.b == null) { sws.d(c0645Lg.d > 0); sws.e(); } else { sws.d(c0645Lg.d > c0645Lg.b.size()); sws.b(c0645Lg.b); } } /* synthetic */ HBt(aWO awo, byte b) { this(awo); } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public class IeS extends wRi.LWm { private aWO b; private IeS(aWO awo) { this.b = awo; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { aWO.a(this.b); aWO awo = this.b; ZI.IeS ieS = new ZI.IeS() { // from class: o.aWM @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6621cYR.SWS) obj2).c(); } }; if (awo.f != 0) { ieS.e(awo.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { aWO.e(this.b, th, C0690Mh.IeS.JUST_DISMISS); } /* synthetic */ IeS(aWO awo, byte b) { this(awo); } } static /* synthetic */ void c(aWO awo) { if (awo.f != 0) { awo.f.aq_(); } } static /* synthetic */ void a(aWO awo) { if (awo.f != 0) { awo.f.ar_(); } } static /* synthetic */ void e(aWO awo, Throwable th, C0690Mh.IeS ieS) { if (awo.b(th)) { awo.d(awo.j.d(th, ieS)); } } public final void d(String str, String str2) { if (this.f != 0) { this.f.y(); } byte b = 0; if (this.b || str2 == null) { this.e.b(str); CzN czN = this.e; czN.d(czN.i, new IeS(this, b)); return; } this.d.e(new Ina(str2, str)); tcj tcjVar = this.d; tcjVar.d(tcjVar.i, new IeS(this, b)); } public final void d(String str, boolean z) { if (this.f != 0) { this.f.v(); } this.b = z; byte b = 0; if (z) { this.e.a(); CzN czN = this.e; czN.d(czN.i, new HBt(this, b)); return; } this.d.d(str); tcj tcjVar = this.d; tcjVar.d(tcjVar.i, new HBt(this, b)); } }