package o; import java.util.ArrayList; import java.util.List; import java.util.Objects; import o.C3542azX; import o.InterfaceC6618cYI; import o.PRA; import o.ZI; import o.wRi; /* renamed from: o.azX, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C3542azX extends ZI { public String a; private final C16443oR b; private final sDg c; public String d; public List e; @InterfaceC13391fZD public C3542azX(C16443oR c16443oR, C16903sI c16903sI, sDg sdg) { super(c16903sI); this.e = new ArrayList(); this.c = sdg; this.b = c16443oR; } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.azX$LWm */ /* loaded from: classes4.dex */ public final class LWm extends wRi.LWm> { private C3542azX c; private LWm(C3542azX c3542azX) { this.c = c3542azX; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { List list = (List) obj; if (list.isEmpty()) { onError(null); return; } C3542azX.c(this.c); C3542azX c3542azX = this.c; YKU yku = new YKU(list); final C16443oR c16443oR = this.c.b; Objects.requireNonNull(c16443oR); YKU yku2 = new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(c16443oR) { // from class: o.aAb private C16443oR d; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return this.d.d((jDq) obj2); } { this.d = c16443oR; } })); c3542azX.e = (List) new YKU(yku2.a, new C17745zRk(yku2.b, xNZ.a(new InterfaceC1244Ytw() { // from class: o.aAc @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return ((C0530Iv) obj2).c; } }))).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); C3542azX c3542azX2 = this.c; ZI.IeS ieS = new ZI.IeS(this) { // from class: o.aAa private C3542azX.LWm c; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6618cYI.IeS) obj2).c(this.c.c.e); } { this.c = this; } }; if (c3542azX2.f != 0) { ieS.e(c3542azX2.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C3542azX.a(this.c); if (this.c.i(th)) { return; } C3542azX c3542azX = this.c; ZI.IeS ieS = new ZI.IeS() { // from class: o.aAd @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6618cYI.IeS) obj).e(); } }; if (c3542azX.f != 0) { ieS.e(c3542azX.f); } } /* synthetic */ LWm(C3542azX c3542azX, byte b) { this(c3542azX); } } @Override // o.ZI public final void w_() { super.w_(); sDg sdg = this.c; if (!sdg.h.isDisposed()) { sdg.h.dispose(); } sdg.c.e(); } static /* synthetic */ void a(C3542azX c3542azX) { if (c3542azX.f != 0) { c3542azX.f.aq_(); } } static /* synthetic */ void c(C3542azX c3542azX) { if (c3542azX.f != 0) { c3542azX.f.aq_(); } } public final void b() { if (this.f != 0) { this.f.v(); } sDg sdg = this.c; if (!sdg.h.isDisposed()) { sdg.h.dispose(); } this.c.e(this.d, this.a); sDg sdg2 = this.c; sdg2.d(sdg2.i, new LWm(this, (byte) 0)); } }