package o; import java.util.ArrayList; import java.util.List; import o.InterfaceC6627cYe; import o.PRA; import o.ZI; import o.wRi; /* renamed from: o.adn, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public class C2396adn extends ZI implements InterfaceC8958daf { public final C16097lF a; public String b; public final mSw c; public final C1025UIz d; public fSC e; public final Icn g; private int h; public boolean i; private C0383Fi n; @InterfaceC13391fZD public C2396adn(Icn icn, mSw msw, C16097lF c16097lF, C16903sI c16903sI, C1025UIz c1025UIz) { super(c16903sI); this.e = new fSC(); this.h = 0; this.b = "en"; this.g = icn; this.c = msw; this.a = c16097lF; this.d = c1025UIz; } @Override // o.InterfaceC8958daf public final void b(final int i) { ZI.IeS ieS = new ZI.IeS(this, i) { // from class: o.adr private C2396adn c; private int d; @Override // o.ZI.IeS public final void e(Object obj) { InterfaceC6627cYe.ojQ ojq = (InterfaceC6627cYe.ojQ) obj; ojq.b(this.d, r0.n.c(), this.c.n); } { this.c = this; this.d = i; } }; if (this.f != 0) { ieS.e(this.f); } } private boolean c(List list) { Iterable arrayList; C7968cyO p = this.c.b.p(); if (p == null) { arrayList = new ArrayList(); } else { arrayList = p.a; } YKU yku = new YKU(arrayList); List list2 = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.adp @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { String str; str = ((JNE) obj).a; return str; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); YKU yku2 = new YKU(list); return list2.containsAll((List) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw() { // from class: o.ads @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { String str; str = ((C5762bzF) obj).d; return str; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()))); } /* renamed from: o.adn$Sts */ /* loaded from: classes3.dex */ public final class Sts extends wRi.LWm { private boolean c; private C2396adn d; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { this.d.i = false; this.d.d((nOO) obj); } public Sts(C2396adn c2396adn, boolean z) { this.d = c2396adn; this.c = z; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { this.d.h = 0; this.d.i = false; if (this.d.f == 0 || this.d.i(th)) { return; } C2396adn.b(this.d); C2396adn c2396adn = this.d; ZI.IeS ieS = new ZI.IeS() { // from class: o.adu @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6627cYe.ojQ) obj).aM_(); } }; if (c2396adn.f != 0) { ieS.e(c2396adn.f); } } } public static /* synthetic */ void d(C2396adn c2396adn, InterfaceC6627cYe.ojQ ojq) { ojq.b(c2396adn.n); C0383Fi c0383Fi = c2396adn.n; if (c0383Fi == null || c0383Fi.b == null) { return; } ojq.e(c2396adn.n.b); } static /* synthetic */ void a(C2396adn c2396adn, Throwable th) { if (c2396adn.b(th)) { c2396adn.d(c2396adn.j.e(th)); } } static /* synthetic */ void b(C2396adn c2396adn) { if (c2396adn.f != 0) { c2396adn.f.u(); } } /* JADX WARN: Multi-variable type inference failed */ public final void d(nOO noo) { if (c((List) noo.d)) { List list = noo.d; C14957gcv.e(list, ""); noo.d = list; c(noo); return; } int i = this.h; if (i != 3) { this.h = i + 1; b(); ZI.IeS ieS = new ZI.IeS() { // from class: o.adh @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6627cYe.ojQ) obj).b(); } }; if (this.f != 0) { ieS.e(this.f); return; } return; } if (this.f != 0) { this.f.aq_(); } if (this.f != 0) { this.f.u(); } this.i = false; this.h = 0; ZI.IeS ieS2 = new ZI.IeS() { // from class: o.ado @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6627cYe.ojQ) obj).aM_(); } }; if (this.f != 0) { ieS2.e(this.f); } } private void c(nOO noo) { List arrayList; if (this.f != 0) { this.f.aq_(); } if (this.f != 0) { this.f.u(); } this.i = false; this.h = 0; C16097lF c16097lF = this.a; C7968cyO p = this.c.b.p(); if (p == null) { arrayList = new ArrayList<>(); } else { arrayList = p.a; } this.n = c16097lF.a(noo, arrayList, this.c.b.T(), "en".equalsIgnoreCase(this.b)); ZI.IeS ieS = new ZI.IeS(this) { // from class: o.adq private C2396adn c; @Override // o.ZI.IeS public final void e(Object obj) { C2396adn.d(this.c, (InterfaceC6627cYe.ojQ) obj); } { this.c = this; } }; if (this.f != 0) { ieS.e(this.f); } } public final void b() { if (this.i) { return; } this.i = true; if (this.f != 0) { this.f.v(); } this.c.d(); mSw msw = this.c; msw.d(msw.i, new Sts(this, "en".equalsIgnoreCase(this.b))); } @Override // o.ZI public final void w_() { mSw msw = this.c; if (!msw.h.isDisposed()) { msw.h.dispose(); } this.c.a.f(); this.e.dispose(); super.w_(); } }