package o; import com.huawei.hms.support.api.entity.common.CommonConstant; import java.util.ArrayList; import o.C15715hv; import o.InterfaceC9068dcj; import o.ZI; /* renamed from: o.amN, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C2847amN extends ZI { public String a; public String b; public C0367Fb c; private final C15639hO d; public ArrayList e; private ArrayList h; private final Hio i; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C2847amN(C15639hO c15639hO, Hio hio, C16903sI c16903sI) { super(c16903sI); C14957gcv.e(c15639hO, ""); C14957gcv.e(hio, ""); C14957gcv.e(c16903sI, ""); this.d = c15639hO; this.i = hio; this.h = new ArrayList<>(); } public static /* synthetic */ void c(C2847amN c2847amN, InterfaceC9068dcj.HBt hBt) { C14957gcv.e(c2847amN, ""); String str = c2847amN.a; String str2 = null; if (str == null) { C14957gcv.a(""); str = null; } if (C14957gcv.b((Object) str, (Object) "PAPER")) { hBt.e(); return; } String str3 = c2847amN.a; if (str3 == null) { C14957gcv.a(""); } else { str2 = str3; } if (C14957gcv.b((Object) str2, (Object) CommonConstant.RETKEY.EMAIL)) { hBt.d(); } } public static /* synthetic */ void c(int i, C2847amN c2847amN, InterfaceC9068dcj.HBt hBt) { C0367Fb c0367Fb; ArrayList arrayList; String str; C14957gcv.e(c2847amN, ""); String str2 = null; if (i <= 0) { ArrayList arrayList2 = c2847amN.h; C0367Fb c0367Fb2 = c2847amN.c; if (c0367Fb2 == null) { C14957gcv.a(""); c0367Fb2 = null; } arrayList2.add(c0367Fb2.g); C0367Fb c0367Fb3 = c2847amN.c; if (c0367Fb3 == null) { C14957gcv.a(""); c0367Fb = null; } else { c0367Fb = c0367Fb3; } ArrayList arrayList3 = c2847amN.e; if (arrayList3 == null) { C14957gcv.a(""); arrayList = null; } else { arrayList = arrayList3; } String str3 = c2847amN.a; if (str3 == null) { C14957gcv.a(""); str = null; } else { str = str3; } String u = c2847amN.i.b.u(); hBt.e(c0367Fb, arrayList, str, u == null ? "" : u, c2847amN.h); return; } C0367Fb c0367Fb4 = c2847amN.c; if (c0367Fb4 == null) { C14957gcv.a(""); c0367Fb4 = null; } ArrayList arrayList4 = c2847amN.e; if (arrayList4 == null) { C14957gcv.a(""); arrayList4 = null; } String str4 = c2847amN.a; if (str4 == null) { C14957gcv.a(""); } else { str2 = str4; } String u2 = c2847amN.i.b.u(); hBt.c(c0367Fb4, arrayList4, str2, u2 != null ? u2 : ""); } public static /* synthetic */ void e(C2847amN c2847amN, InterfaceC9068dcj.HBt hBt) { String e; C14957gcv.e(c2847amN, ""); C15639hO c15639hO = c2847amN.d; C0367Fb c0367Fb = c2847amN.c; String str = null; if (c0367Fb == null) { C14957gcv.a(""); c0367Fb = null; } C14957gcv.e(c0367Fb, ""); C16302nK c16302nK = c15639hO.d; hBt.b(C16302nK.a(c0367Fb)); C15639hO c15639hO2 = c2847amN.d; String str2 = c2847amN.a; if (str2 == null) { C14957gcv.a(""); str2 = null; } C14957gcv.e(str2, ""); C16302nK c16302nK2 = c15639hO2.d; if (C14957gcv.b((Object) str2, (Object) CommonConstant.RETKEY.EMAIL)) { e = c16302nK2.e(C15715hv.tOB.email_remark); C14957gcv.c((Object) e, ""); } else { e = c16302nK2.e(C15715hv.tOB.paper_remark); C14957gcv.c((Object) e, ""); } hBt.e(e); String str3 = c2847amN.a; if (str3 == null) { C14957gcv.a(""); str3 = null; } if (!C14957gcv.b((Object) str3, (Object) CommonConstant.RETKEY.EMAIL)) { if (C14957gcv.b((Object) str3, (Object) "PAPER")) { String str4 = c2847amN.b; if (str4 == null) { C14957gcv.a(""); str4 = null; } hBt.a(str4); C15639hO c15639hO3 = c2847amN.d; String str5 = c2847amN.a; if (str5 == null) { C14957gcv.a(""); } else { str = str5; } C14957gcv.e(str, ""); hBt.c(c15639hO3.d.k(str)); } } else { String u = c2847amN.i.b.u(); if (u == null) { u = ""; } hBt.d(u); C15639hO c15639hO4 = c2847amN.d; String str6 = c2847amN.a; if (str6 == null) { C14957gcv.a(""); } else { str = str6; } C14957gcv.e(str, ""); hBt.c(c15639hO4.d.k(str)); } hBt.a(); } public static /* synthetic */ void a(C2847amN c2847amN, InterfaceC9068dcj.HBt hBt) { C14957gcv.e(c2847amN, ""); String u = c2847amN.i.b.u(); hBt.d(u != null ? u : ""); } public static /* synthetic */ void b(final C2847amN c2847amN, InterfaceC9068dcj.HBt hBt) { C0367Fb c0367Fb; ArrayList arrayList; String str; String str2; C14957gcv.e(c2847amN, ""); String str3 = c2847amN.a; if (str3 == null) { C14957gcv.a(""); str3 = null; } if (!C14957gcv.b((Object) str3, (Object) CommonConstant.RETKEY.EMAIL)) { if (C14957gcv.b((Object) str3, (Object) "PAPER")) { C0367Fb c0367Fb2 = c2847amN.c; if (c0367Fb2 == null) { C14957gcv.a(""); c0367Fb = null; } else { c0367Fb = c0367Fb2; } ArrayList arrayList2 = c2847amN.e; if (arrayList2 == null) { C14957gcv.a(""); arrayList = null; } else { arrayList = arrayList2; } String str4 = c2847amN.a; if (str4 == null) { C14957gcv.a(""); str = null; } else { str = str4; } String str5 = c2847amN.b; if (str5 == null) { C14957gcv.a(""); str2 = null; } else { str2 = str5; } hBt.e(c0367Fb, arrayList, str, str2, c2847amN.h); return; } return; } ArrayList arrayList3 = c2847amN.e; if (arrayList3 == null) { C14957gcv.a(""); arrayList3 = null; } ArrayList arrayList4 = new ArrayList(); for (Object obj : arrayList3) { C0367Fb c0367Fb3 = (C0367Fb) obj; String str6 = c0367Fb3.g; C0367Fb c0367Fb4 = c2847amN.c; if (c0367Fb4 == null) { C14957gcv.a(""); c0367Fb4 = null; } if (!C14957gcv.b((Object) str6, (Object) c0367Fb4.g) && c0367Fb3.ae) { arrayList4.add(obj); } } final int size = arrayList4.size(); ZI.IeS ieS = new ZI.IeS(size, c2847amN) { // from class: o.amM private C2847amN d; private int e; @Override // o.ZI.IeS public final void e(Object obj2) { C2847amN.c(this.e, this.d, (InterfaceC9068dcj.HBt) obj2); } { this.e = size; this.d = c2847amN; } }; if (c2847amN.f != 0) { ieS.e(c2847amN.f); } } }