package o; import java.util.NoSuchElementException; import o.InterfaceC9416djN; import o.ZI; /* renamed from: o.bWe, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C4312bWe extends AbstractC4171bST { private final C17482xC b; private String c; @InterfaceC13391fZD public C4312bWe(C16903sI c16903sI, YpL ypL, C17492xH c17492xH, C17494xJ c17494xJ, C17482xC c17482xC) { super(c16903sI, c17492xH, ypL, c17494xJ); this.c = ""; this.b = c17482xC; } public final String a() { if (this.e.e.d() == null || this.e.e.d().l == null || this.e.e.d().l.isEmpty()) { return null; } return this.e.e.d().l.get(0).e.e; } public static /* synthetic */ void c(C4312bWe c4312bWe, C0965Sl c0965Sl, InterfaceC9416djN.LWm lWm) { lWm.d(c0965Sl.c); lWm.d(c4312bWe.e.c(), c4312bWe.c); } /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ void c(final C4312bWe c4312bWe, Gzz gzz) { zEQ d; if (c4312bWe.f != 0) { c4312bWe.f.ar_(); } C17482xC c17482xC = c4312bWe.b; C14957gcv.e(gzz, ""); for (RT rt : new RY(c17482xC.a(gzz.a)).a) { if (rt.b.equalsIgnoreCase(c4312bWe.e.c().e.c())) { c4312bWe.c = rt.c; } } final String k = c4312bWe.e.c().e.k(); YKU yku = new YKU(c4312bWe.e.e.i().b); YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel(k) { // from class: o.bWk private String c; @Override // o.Jel public final boolean e(Object obj) { boolean equals; equals = ((Rtm) obj).a.equals(this.c); return equals; } { this.c = k; } })); if (yku2.b.hasNext()) { d = zEQ.a(yku2.b.next()); } else { d = zEQ.d(); } T t = d.d; if (t != 0) { final C0965Sl b = c4312bWe.d.b((Rtm) t); ZI.IeS ieS = new ZI.IeS(c4312bWe, b) { // from class: o.bWj private C4312bWe a; private C0965Sl d; @Override // o.ZI.IeS public final void e(Object obj) { C4312bWe.c(this.a, this.d, (InterfaceC9416djN.LWm) obj); } { this.a = c4312bWe; this.d = b; } }; if (c4312bWe.f != 0) { ieS.e(c4312bWe.f); return; } return; } throw new NoSuchElementException("No value present"); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void b(C4312bWe c4312bWe, Throwable th) throws Throwable { if (c4312bWe.b(th)) { c4312bWe.d(c4312bWe.j.e(th)); } } @Override // o.AbstractC4171bST public final void c() { if (this.f != 0) { this.f.y(); } this.e.d(this.e.e.d("DepartmentType"), new fSQ(this) { // from class: o.bWm private C4312bWe c; @Override // o.fSQ public final void c(Object obj) { C4312bWe.c(this.c, (Gzz) obj); } { this.c = this; } }, new fSQ(this) { // from class: o.bWl private C4312bWe a; @Override // o.fSQ public final void c(Object obj) { C4312bWe.b(this.a, (Throwable) obj); } { this.a = this; } }); } }