package o; import java.util.List; import o.C7856cwI; import o.InterfaceC8972dat; import o.ZI; import o.wRi; /* renamed from: o.cwI, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C7856cwI extends ZI { private final C17431wiQ c; private final C16184ly e; @InterfaceC13391fZD public C7856cwI(C16903sI c16903sI, C16184ly c16184ly, C17431wiQ c17431wiQ) { super(c16903sI); this.c = c17431wiQ; this.e = c16184ly; } public final void c(List list) { ZI.IeS ieS = new ZI.IeS() { // from class: o.cwH @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC8972dat.RVV) obj).v(); } }; if (this.f != 0) { ieS.e(this.f); } this.c.e(list); C17431wiQ c17431wiQ = this.c; c17431wiQ.d(c17431wiQ.i, new LWm(this, (byte) 0)); } @Override // o.ZI public final void w_() { C17431wiQ c17431wiQ = this.c; if (!c17431wiQ.h.isDisposed()) { c17431wiQ.h.dispose(); } super.w_(); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.cwI$LWm */ /* loaded from: classes4.dex */ public class LWm extends wRi.LWm> { private C7856cwI b; private LWm(C7856cwI c7856cwI) { this.b = c7856cwI; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final List list = (List) obj; super.onNext(list); C7856cwI c7856cwI = this.b; ZI.IeS ieS = new ZI.IeS(this, list) { // from class: o.cwR private List c; private C7856cwI.LWm d; @Override // o.ZI.IeS public final void e(Object obj2) { C7856cwI.LWm.d(this.d, this.c, (InterfaceC8972dat.RVV) obj2); } { this.d = this; this.c = list; } }; if (c7856cwI.f != 0) { ieS.e(c7856cwI.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { super.onError(th); if (this.b.i(th) || this.b.f == 0) { return; } C7856cwI c7856cwI = this.b; ZI.IeS ieS = new ZI.IeS() { // from class: o.cwP @Override // o.ZI.IeS public final void e(Object obj) { C7856cwI.LWm.c((InterfaceC8972dat.RVV) obj); } }; if (c7856cwI.f != 0) { ieS.e(c7856cwI.f); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void c(InterfaceC8972dat.RVV rvv) { rvv.e(); rvv.aq_(); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { super.onComplete(); C7856cwI c7856cwI = this.b; ZI.IeS ieS = new ZI.IeS() { // from class: o.cwO @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC8972dat.RVV) obj).aq_(); } }; if (c7856cwI.f != 0) { ieS.e(c7856cwI.f); } } public static /* synthetic */ void d(LWm lWm, List list, InterfaceC8972dat.RVV rvv) { if (list.isEmpty()) { rvv.b(); return; } rvv.c(lWm.b.e.e((List) list)); C7856cwI c7856cwI = lWm.b; if (list.size() <= 10) { ZI.IeS ieS = new ZI.IeS() { // from class: o.cwQ @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC8972dat.RVV) obj).d(); } }; if (c7856cwI.f != 0) { ieS.e(c7856cwI.f); return; } return; } ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cwN @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC8972dat.RVV) obj).c(); } }; if (c7856cwI.f != 0) { ieS2.e(c7856cwI.f); } } /* synthetic */ LWm(C7856cwI c7856cwI, byte b) { this(c7856cwI); } } }