package o; import java.util.Iterator; import java.util.List; import o.ZI; import o.aSS; /* loaded from: classes4.dex */ public final class aSS extends ZI { public KJ b; public final C15823is c; private final C16997sy d; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public aSS(C15823is c15823is, C16997sy c16997sy, C16903sI c16903sI) { super(c16903sI); C14957gcv.e(c15823is, ""); C14957gcv.e(c16997sy, ""); C14957gcv.e(c16903sI, ""); this.c = c15823is; this.d = c16997sy; } /* loaded from: classes4.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private aSS a; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); final aSS ass = this.a; aSS.c(ass, th2, new Runnable(ass) { // from class: o.aTb private aSS e; @Override // java.lang.Runnable public final void run() { aSS.HBt.d(this.e); } { this.e = ass; } }); return C14866gag.c; } public static /* synthetic */ void d(aSS ass) { C14957gcv.e(ass, ""); ZI.IeS ieS = new ZI.IeS() { // from class: o.aSW @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9205dfN) obj).d(); } }; if (ass.f != 0) { ieS.e(ass.f); } } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public HBt(aSS ass) { super(1); this.a = ass; } } /* loaded from: classes4.dex */ public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR { private C0657Lo a; private KJ c; private aSS e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C12183etR c12183etR) { final C12183etR c12183etR2 = c12183etR; C14957gcv.e(c12183etR2, ""); aSS.d(this.e); final aSS ass = this.e; final KJ kj = this.c; final C0657Lo c0657Lo = this.a; ZI.IeS ieS = new ZI.IeS(ass, c12183etR2, kj, c0657Lo) { // from class: o.aSX private C0657Lo a; private aSS b; private C12183etR c; private KJ e; @Override // o.ZI.IeS public final void e(Object obj) { aSS.Sts.b(this.b, this.c, this.e, this.a, (InterfaceC9205dfN) obj); } { this.b = ass; this.c = c12183etR2; this.e = kj; this.a = c0657Lo; } }; if (ass.f != 0) { ieS.e(ass.f); } return C14866gag.c; } public static /* synthetic */ void b(aSS ass, C12183etR c12183etR, KJ kj, C0657Lo c0657Lo, InterfaceC9205dfN interfaceC9205dfN) { C14957gcv.e(ass, ""); C14957gcv.e(c12183etR, ""); C14957gcv.e(kj, ""); C14957gcv.e(c0657Lo, ""); KJ kj2 = ass.b; if (kj2 == null) { C14957gcv.a(""); kj2 = null; } kj2.d = Boolean.valueOf(c12183etR.c); String str = c0657Lo.t; interfaceC9205dfN.c(kj, str != null ? str : ""); aSS.a(ass, ass.d.c(c12183etR.a), c12183etR.e); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public Sts(aSS ass, KJ kj, C0657Lo c0657Lo) { super(1); this.e = ass; this.c = kj; this.a = c0657Lo; } } public static /* synthetic */ void e(aSS ass, List list, List list2, InterfaceC9205dfN interfaceC9205dfN) { Object obj; C14957gcv.e(ass, ""); C14957gcv.e(list, ""); C14957gcv.e(list2, ""); KJ kj = ass.b; Object obj2 = null; if (kj == null) { C14957gcv.a(""); kj = null; } Iterator it = list.iterator(); while (true) { if (!it.hasNext()) { obj = null; break; } else { obj = it.next(); if (C14957gcv.b(obj, (Object) kj.c)) { break; } } } if (obj != null) { interfaceC9205dfN.e(); } else { Iterator it2 = list2.iterator(); while (true) { if (!it2.hasNext()) { break; } Object next = it2.next(); if (C14957gcv.b((Object) ((C0656Ln) next).d, (Object) kj.c)) { obj2 = next; break; } } C0656Ln c0656Ln = (C0656Ln) obj2; if (c0656Ln != null) { kj.a = c0656Ln.b; kj.c = c0656Ln.d; kj.e = c0656Ln.a; kj.b = c0656Ln.i; interfaceC9205dfN.d(kj, true); } } if (!list2.isEmpty()) { interfaceC9205dfN.d((List) list2); } else { interfaceC9205dfN.c(); } } public static /* synthetic */ void a(aSS ass, C0656Ln c0656Ln, InterfaceC9205dfN interfaceC9205dfN) { C14957gcv.e(ass, ""); C14957gcv.e(c0656Ln, ""); KJ kj = ass.b; if (kj == null) { C14957gcv.a(""); kj = null; } kj.a = c0656Ln.b; kj.c = c0656Ln.d; kj.e = c0656Ln.a; kj.b = c0656Ln.i; interfaceC9205dfN.d(kj, false); } public static final /* synthetic */ void a(final aSS ass, final List list, final List list2) { ZI.IeS ieS = new ZI.IeS(ass, list2, list) { // from class: o.aSY private List a; private List c; private aSS e; @Override // o.ZI.IeS public final void e(Object obj) { aSS.e(this.e, this.a, this.c, (InterfaceC9205dfN) obj); } { this.e = ass; this.a = list2; this.c = list; } }; if (ass.f != 0) { ieS.e(ass.f); } } public static final /* synthetic */ void d(aSS ass) { if (ass.f != 0) { ass.f.ar_(); } } public static final /* synthetic */ void c(aSS ass, Throwable th, Runnable runnable) { if (ass.b(th)) { ass.d(ass.j.c(th, runnable)); } } }