package o; import o.InterfaceC6621cYR; import o.ZI; import o.aQZ; import o.wRi; /* loaded from: classes4.dex */ public class aQZ extends ZI { private final C16875rx a; private C16772rC d; public final C0409GDq e; @InterfaceC13391fZD public aQZ(C16903sI c16903sI, C0409GDq c0409GDq, C16772rC c16772rC, C16875rx c16875rx) { super(c16903sI); this.e = c0409GDq; this.d = c16772rC; this.a = c16875rx; } /* loaded from: classes4.dex */ public class HBt extends wRi.LWm { private aQZ a; private HBt(aQZ aqz) { this.a = aqz; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { AWw aWw = (AWw) obj; aQZ.e(this.a); final C0657Lo a = aWw.c != null ? this.a.a.a(aWw.c, 0) : null; final kaM kam = aWw.d; final C0593Kf b = this.a.d.b(aWw); if (kam != null) { aQZ aqz = this.a; ZI.IeS ieS = new ZI.IeS(kam) { // from class: o.aRe private kaM e; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6621cYR.ehe) obj2).b(this.e); } { this.e = kam; } }; if (aqz.f != 0) { ieS.e(aqz.f); return; } return; } if (a != null) { aQZ aqz2 = this.a; ZI.IeS ieS2 = new ZI.IeS(a, b) { // from class: o.aRc private C0593Kf b; private C0657Lo d; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6621cYR.ehe) obj2).b(this.d, this.b); } { this.d = a; this.b = b; } }; if (aqz2.f != 0) { ieS2.e(aqz2.f); return; } return; } aQZ aqz3 = this.a; ZI.IeS ieS3 = new ZI.IeS() { // from class: o.aRi @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6621cYR.ehe) obj2).a((Throwable) null); } }; if (aqz3.f != 0) { ieS3.e(aqz3.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { aQZ aqz = this.a; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.aRh private aQZ.HBt d; private Throwable e; @Override // o.ZI.IeS public final void e(Object obj) { aQZ.HBt.e(this.d, this.e, (InterfaceC6621cYR.ehe) obj); } { this.d = this; this.e = th; } }; if (aqz.f != 0) { ieS.e(aqz.f); } } public static /* synthetic */ void e(HBt hBt, Throwable th, InterfaceC6621cYR.ehe eheVar) { eheVar.d(hBt.a.e.b.t()); eheVar.a(th); } public /* synthetic */ HBt(aQZ aqz, byte b) { this(aqz); } } public static /* synthetic */ void d(aQZ aqz, kaM kam) { final String str = kam.a; ZI.IeS ieS = new ZI.IeS(str) { // from class: o.aRf private String e; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6621cYR.ehe) obj).a(this.e); } { this.e = str; } }; if (aqz.f != 0) { ieS.e(aqz.f); } } static /* synthetic */ void e(aQZ aqz) { if (aqz.f != 0) { aqz.f.ar_(); } } }