package o; import java.util.List; import o.C3644bCd; import o.ZI; /* renamed from: o.bCd */ /* loaded from: classes4.dex */ public final class C3644bCd extends ZI { public String a; public C0835Pm b; public String c; public C0826Ph d; public final C15923je e; public String g; public C0836Pn h; boolean i; private boolean m; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C3644bCd(C16903sI c16903sI, C15923je c15923je) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(c15923je, ""); this.e = c15923je; } /* renamed from: o.bCd$RVV */ /* loaded from: classes4.dex */ public static final class RVV { private RVV() { } public /* synthetic */ RVV(byte b) { this(); } } /* renamed from: o.bCd$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private C3644bCd e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); C3644bCd c3644bCd = this.e; ZI.IeS ieS = new ZI.IeS(c3644bCd, th2) { // from class: o.bCt private C3644bCd c; private Throwable e; @Override // o.ZI.IeS public final void e(Object obj) { C3644bCd.IeS.a(this.c, this.e, (InterfaceC9397div) obj); } { this.c = c3644bCd; this.e = th2; } }; if (c3644bCd.f != 0) { ieS.e(c3644bCd.f); } return C14866gag.c; } public static /* synthetic */ void a(C3644bCd c3644bCd, Throwable th, InterfaceC9397div interfaceC9397div) { C14957gcv.e(c3644bCd, ""); C14957gcv.e(th, ""); interfaceC9397div.c(false); if (c3644bCd.m || !c3644bCd.c(th, false)) { return; } c3644bCd.m = true; interfaceC9397div.e(c3644bCd.j.e(th)); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public IeS(C3644bCd c3644bCd) { super(1); this.e = c3644bCd; } } /* renamed from: o.bCd$Sts */ /* loaded from: classes4.dex */ public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR { private C3644bCd e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C0826Ph c0826Ph) { C0826Ph c0826Ph2 = c0826Ph; C14957gcv.e(c0826Ph2, ""); this.e.d = c0826Ph2; C3644bCd c3644bCd = this.e; ZI.IeS ieS = new ZI.IeS(c3644bCd) { // from class: o.bCv private C3644bCd b; @Override // o.ZI.IeS public final void e(Object obj) { C3644bCd.Sts.b(this.b, (InterfaceC9397div) obj); } { this.b = c3644bCd; } }; if (c3644bCd.f != 0) { ieS.e(c3644bCd.f); } return C14866gag.c; } public static /* synthetic */ void b(C3644bCd c3644bCd, InterfaceC9397div interfaceC9397div) { C14957gcv.e(c3644bCd, ""); interfaceC9397div.c(true); C0826Ph c0826Ph = c3644bCd.d; if (c0826Ph != null) { interfaceC9397div.e(c0826Ph, c3644bCd.h); } C3652bCl c3652bCl = new C3652bCl(c3644bCd); if (c3644bCd.f != 0) { c3652bCl.e(c3644bCd.f); } } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public Sts(C3644bCd c3644bCd) { super(1); this.e = c3644bCd; } } public static /* synthetic */ void b(C3644bCd c3644bCd, String str, int i, String str2, String str3, int i2) { if ((i2 & 2) != 0) { i = 1; } if ((i2 & 4) != 0) { str2 = null; } if ((i2 & 8) != 0) { str3 = null; } c3644bCd.c(str, i, str2, str3); } public final void c(String str, int i, String str2, String str3) { C14851gaI c14851gaI; C14851gaI c14851gaI2; C14851gaI c14851gaI3; this.g = str; if (i == 1) { ZI.IeS ieS = new ZI.IeS() { // from class: o.bCn @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9397div) obj).d(); } }; if (this.f != 0) { ieS.e(this.f); } } if (this.i) { return; } this.i = true; ZI.IeS ieS2 = new ZI.IeS(i) { // from class: o.bCo private int c; @Override // o.ZI.IeS public final void e(Object obj) { C3644bCd.a(this.c, (InterfaceC9397div) obj); } { this.c = i; } }; if (this.f != 0) { ieS2.e(this.f); } String str4 = this.g; String obj = str4 != null ? gdZ.b((CharSequence) str4).toString() : null; C0835Pm c0835Pm = this.b; if (c0835Pm == null || (c14851gaI = c0835Pm.c) == null) { c14851gaI = C14851gaI.c; } List list = c14851gaI; C0835Pm c0835Pm2 = this.b; if (c0835Pm2 == null || (c14851gaI2 = c0835Pm2.b) == null) { c14851gaI2 = C14851gaI.c; } List list2 = c14851gaI2; C0835Pm c0835Pm3 = this.b; if (c0835Pm3 == null || (c14851gaI3 = c0835Pm3.e) == null) { c14851gaI3 = C14851gaI.c; } this.e.c(new C2674aj(obj, list, list2, c14851gaI3, str2, str3, String.valueOf(i), "20"), new LWm(this, i), new HBt(this, i)); } /* renamed from: o.bCd$HBt */ /* loaded from: classes4.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private int b; private C3644bCd e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); C3644bCd c3644bCd = this.e; ZI.IeS ieS = new ZI.IeS(c3644bCd, this.b, th2) { // from class: o.bCm private int b; private Throwable d; private C3644bCd e; @Override // o.ZI.IeS public final void e(Object obj) { C3644bCd.HBt.d(this.e, this.b, this.d, (InterfaceC9397div) obj); } { this.e = c3644bCd; this.b = r2; this.d = th2; } }; if (c3644bCd.f != 0) { ieS.e(c3644bCd.f); } return C14866gag.c; } public static /* synthetic */ void d(C3644bCd c3644bCd, int i, Throwable th, InterfaceC9397div interfaceC9397div) { C14957gcv.e(c3644bCd, ""); C14957gcv.e(th, ""); c3644bCd.i = false; C3651bCk c3651bCk = new C3651bCk(i); if (c3644bCd.f != 0) { c3651bCk.e(c3644bCd.f); } if (!c3644bCd.m && c3644bCd.c(th, false)) { c3644bCd.m = true; interfaceC9397div.e(c3644bCd.j.e(th)); } else { interfaceC9397div.a(); } } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ HBt(C3644bCd c3644bCd, int i) { super(1); this.e = c3644bCd; this.b = i; } } /* renamed from: o.bCd$LWm */ /* loaded from: classes4.dex */ public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR { private int a; private C3644bCd d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C0836Pn c0836Pn) { C13396fZU c13396fZU; C13396fZU c13396fZU2; C0836Pn c0836Pn2 = c0836Pn; C14957gcv.e(c0836Pn2, ""); this.d.h = c0836Pn2; C3644bCd c3644bCd = this.d; int i = this.a; c3644bCd.i = false; C3651bCk c3651bCk = new C3651bCk(i); if (c3644bCd.f != 0) { c3651bCk.e(c3644bCd.f); } C3644bCd c3644bCd2 = this.d; int i2 = this.a; C14957gcv.e(c0836Pn2, ""); ZI.IeS ieS = new ZI.IeS(c0836Pn2, i2, c3644bCd2) { // from class: o.bCi private C3644bCd a; private C0836Pn b; private int d; @Override // o.ZI.IeS public final void e(Object obj) { C3644bCd.d(this.b, this.d, this.a, (InterfaceC9397div) obj); } { this.b = c0836Pn2; this.d = i2; this.a = c3644bCd2; } }; if (c3644bCd2.f != 0) { ieS.e(c3644bCd2.f); } if (this.a == 1) { C3644bCd c3644bCd3 = this.d; C0836Pn c0836Pn3 = c3644bCd3.h; String str = null; c3644bCd3.c = (c0836Pn3 == null || (c13396fZU2 = c0836Pn3.i) == null) ? null : c13396fZU2.d; C0836Pn c0836Pn4 = c3644bCd3.h; if (c0836Pn4 != null && (c13396fZU = c0836Pn4.d) != null) { str = c13396fZU.d; } c3644bCd3.a = str; C3644bCd c3644bCd4 = this.d; C3652bCl c3652bCl = new C3652bCl(c3644bCd4); if (c3644bCd4.f != 0) { c3652bCl.e(c3644bCd4.f); } } return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ LWm(C3644bCd c3644bCd, int i) { super(1); this.d = c3644bCd; this.a = i; } } public final void b() { fSJ fsj = this.e.i; if (fsj != null && !fsj.isDisposed()) { fsj.dispose(); } this.i = false; } @Override // o.ZI public final void w_() { super.w_(); this.e.a(); } public static /* synthetic */ void a(int i, InterfaceC9397div interfaceC9397div) { if (i == 1) { interfaceC9397div.e(); interfaceC9397div.v(); interfaceC9397div.e(false); return; } interfaceC9397div.i(); } public static /* synthetic */ void b(C3644bCd c3644bCd, InterfaceC9397div interfaceC9397div) { C13396fZU c13396fZU; String str; C0838Pp c0838Pp; C13396fZU c13396fZU2; String str2; C0838Pp c0838Pp2; C14957gcv.e(c3644bCd, ""); C0826Ph c0826Ph = c3644bCd.d; List list = null; List list2 = (c0826Ph == null || (c0838Pp2 = c0826Ph.c) == null) ? null : c0838Pp2.c; boolean z = false; boolean z2 = list2 == null || list2.isEmpty(); C0836Pn c0836Pn = c3644bCd.h; boolean z3 = (c0836Pn == null || (c13396fZU2 = c0836Pn.i) == null || (str2 = c13396fZU2.e) == null || str2.length() <= 0) ? false : true; C0826Ph c0826Ph2 = c3644bCd.d; if (c0826Ph2 != null && (c0838Pp = c0826Ph2.a) != null) { list = c0838Pp.c; } List list3 = list; boolean z4 = list3 == null || list3.isEmpty(); C0836Pn c0836Pn2 = c3644bCd.h; if (c0836Pn2 != null && (c13396fZU = c0836Pn2.d) != null && (str = c13396fZU.e) != null && str.length() > 0) { z = true; } interfaceC9397div.b((!z4) | z | (!z2) | z3); } public static /* synthetic */ void d(C3644bCd c3644bCd, InterfaceC9397div interfaceC9397div) { C14957gcv.e(c3644bCd, ""); interfaceC9397div.a(c3644bCd.b); } public static /* synthetic */ void e(C0835Pm c0835Pm, InterfaceC9397div interfaceC9397div) { List list = c0835Pm != null ? c0835Pm.e : null; boolean z = list == null || list.isEmpty(); List list2 = c0835Pm != null ? c0835Pm.b : null; boolean z2 = list2 == null || list2.isEmpty(); List list3 = c0835Pm != null ? c0835Pm.c : null; interfaceC9397div.d(!(z & z2 & (list3 == null || list3.isEmpty()))); } public static /* synthetic */ void d(int i, InterfaceC9397div interfaceC9397div) { if (i == 1) { interfaceC9397div.aq_(); interfaceC9397div.e(true); } else { interfaceC9397div.e(); } } public static /* synthetic */ void d(C0836Pn c0836Pn, int i, C3644bCd c3644bCd, InterfaceC9397div interfaceC9397div) { C14957gcv.e(c0836Pn, ""); C14957gcv.e(c3644bCd, ""); if (!c0836Pn.a.isEmpty()) { interfaceC9397div.e(c0836Pn); } else if (i == 1) { interfaceC9397div.b(); } if (i == 1) { interfaceC9397div.e(c3644bCd.d, c0836Pn); } Integer num = c0836Pn.h; interfaceC9397div.c(num != null ? num.toString() : null); } public static /* synthetic */ void e(C3644bCd c3644bCd, C0826Ph c0826Ph, InterfaceC9397div interfaceC9397div) { C14957gcv.e(c3644bCd, ""); C14957gcv.e(c0826Ph, ""); if (c3644bCd.e.b.b.b() != null) { interfaceC9397div.b(c0826Ph, c3644bCd.b); } else { interfaceC9397div.a(c0826Ph, c3644bCd.b); } } static { new RVV((byte) 0); } }