package o; import android.content.SharedPreferences; import android.content.res.Resources; import java.util.ArrayList; import java.util.List; import o.C0927Rs; import o.C15715hv; import o.RF; import o.UX; /* renamed from: o.xd, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17539xd extends C16157lj { /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C17539xd(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); } /* renamed from: o.xd$HBt */ /* loaded from: classes3.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } public final RF i() { RF.IeS ieS = RF.b; RF.LWm lWm = new RF.LWm(); lWm.g = 9; String string = this.e.getString(C15715hv.tOB.auto_change_mailing_address_accounts_description); C14957gcv.c((Object) string, ""); C14957gcv.e(string, ""); lWm.b = string; String string2 = this.e.getString(C15715hv.tOB.auto_change_mailing_address_accounts_select_all); C14957gcv.c((Object) string2, ""); C14957gcv.e(string2, ""); lWm.d = string2; return new RF(lWm, (byte) 0); } public static List a(String str, List list) { ArrayList arrayList = new ArrayList(); if (!list.isEmpty()) { list.get(list.size() - 1).r = true; UX.IeS b = UX.b(); b.i = 1; b.a = str; arrayList.add(new UX(b, (byte) 0)); arrayList.addAll(list); } return arrayList; } public static List b(List list, int i) { if (list == null) { return null; } ArrayList arrayList = new ArrayList(); for (Object obj : list) { UV uv = (UV) obj; if ((uv instanceof C0927Rs) && ((C0927Rs) uv).s == i) { arrayList.add(obj); } } ArrayList arrayList2 = arrayList; C14957gcv.e(arrayList2, ""); ArrayList arrayList3 = new ArrayList(arrayList2.size()); for (UV uv2 : arrayList2) { C14957gcv.d(uv2, ""); arrayList3.add((C0927Rs) uv2); } ArrayList arrayList4 = new ArrayList(); for (Object obj2 : arrayList3) { if (((C0927Rs) obj2).m) { arrayList4.add(obj2); } } ArrayList arrayList5 = arrayList4; C14957gcv.e(arrayList5, ""); ArrayList arrayList6 = new ArrayList(arrayList5.size()); for (C0927Rs c0927Rs : arrayList5) { arrayList6.add(new C4750bg(c0927Rs.a, c0927Rs.e, c0927Rs.h, c0927Rs.c, c0927Rs.k, c0927Rs.g)); } ArrayList arrayList7 = arrayList6; if (!arrayList7.isEmpty()) { return arrayList7; } return null; } public static /* synthetic */ C0927Rs b(C17539xd c17539xd, boolean z, C0924Rr c0924Rr) { String str; String str2; C14957gcv.e(c17539xd, ""); C0927Rs.IeS ieS = C0927Rs.b; C0927Rs.HBt hBt = new C0927Rs.HBt(); hBt.f8350o = 2; String str3 = c0924Rr.d; C14957gcv.e(str3, ""); hBt.e = str3; String str4 = c0924Rr.b; if (str4 == null) { str4 = ""; } C14957gcv.e(str4, ""); hBt.c = str4; String c = c(c0924Rr.b, z); C14957gcv.c((Object) c, ""); C14957gcv.e(c, ""); hBt.d = c; RE re = c0924Rr.f; if (re == null || (str = re.e) == null) { str = ""; } C14957gcv.e(str, ""); hBt.j = str; RE re2 = c0924Rr.f; if (re2 == null || (str2 = re2.d) == null) { str2 = ""; } C14957gcv.e(str2, ""); hBt.n = str2; return new C0927Rs(hBt, (byte) 0); } public static /* synthetic */ C0927Rs a(C17539xd c17539xd, C0924Rr c0924Rr) { String str; String str2; C14957gcv.e(c17539xd, ""); C0927Rs.IeS ieS = C0927Rs.b; C0927Rs.HBt hBt = new C0927Rs.HBt(); hBt.f8350o = 5; String str3 = c0924Rr.d; C14957gcv.e(str3, ""); hBt.e = str3; String str4 = c0924Rr.b; if (str4 == null) { str4 = ""; } C14957gcv.e(str4, ""); hBt.c = str4; String c = c(c0924Rr.b, false); C14957gcv.c((Object) c, ""); C14957gcv.e(c, ""); hBt.d = c; RE re = c0924Rr.f; if (re == null || (str = re.e) == null) { str = ""; } C14957gcv.e(str, ""); hBt.j = str; RE re2 = c0924Rr.f; if (re2 == null || (str2 = re2.d) == null) { str2 = ""; } C14957gcv.e(str2, ""); hBt.n = str2; return new C0927Rs(hBt, (byte) 0); } public static /* synthetic */ C0927Rs e(C0924Rr c0924Rr) { C0927Rs.IeS ieS = C0927Rs.b; C0927Rs.HBt hBt = new C0927Rs.HBt(); hBt.f8350o = 15; String str = c0924Rr.d; C14957gcv.e(str, ""); hBt.e = str; String str2 = c0924Rr.e; if (str2 == null) { str2 = ""; } C14957gcv.e(str2, ""); hBt.a = str2; String str3 = c0924Rr.c; if (str3 == null) { str3 = ""; } C14957gcv.e(str3, ""); hBt.b = str3; String d = C6583cXR.d(c0924Rr.c, (String) null); C14957gcv.c((Object) d, ""); C14957gcv.e(d, ""); hBt.d = d; String str4 = c0924Rr.a; if (str4 == null) { str4 = ""; } C14957gcv.e(str4, ""); hBt.m = str4; String str5 = c0924Rr.a; if (str5 == null) { str5 = ""; } C14957gcv.e(str5, ""); hBt.n = str5; return new C0927Rs(hBt, (byte) 0); } public static /* synthetic */ C0927Rs b(C0924Rr c0924Rr) { String str; String str2; C0927Rs.IeS ieS = C0927Rs.b; C0927Rs.HBt hBt = new C0927Rs.HBt(); hBt.f8350o = 3; String str3 = c0924Rr.d; C14957gcv.e(str3, ""); hBt.e = str3; String str4 = c0924Rr.e; if (str4 == null) { str4 = ""; } C14957gcv.e(str4, ""); hBt.a = str4; String str5 = c0924Rr.c; if (str5 == null) { str5 = ""; } C14957gcv.e(str5, ""); hBt.b = str5; RE re = c0924Rr.f; if (re == null || (str = re.e) == null) { str = ""; } C14957gcv.e(str, ""); hBt.j = str; String d = C6583cXR.d(c0924Rr.e, c0924Rr.c); C14957gcv.c((Object) d, ""); C14957gcv.e(d, ""); hBt.d = d; RE re2 = c0924Rr.f; if (re2 == null || (str2 = re2.d) == null) { str2 = ""; } C14957gcv.e(str2, ""); hBt.n = str2; return new C0927Rs(hBt, (byte) 0); } public static /* synthetic */ C0927Rs a(C0924Rr c0924Rr) { String str; String str2; C0927Rs.IeS ieS = C0927Rs.b; C0927Rs.HBt hBt = new C0927Rs.HBt(); hBt.f8350o = 14; String str3 = c0924Rr.d; C14957gcv.e(str3, ""); hBt.e = str3; String str4 = c0924Rr.e; if (str4 == null) { str4 = ""; } C14957gcv.e(str4, ""); hBt.a = str4; String str5 = c0924Rr.c; if (str5 == null) { str5 = ""; } C14957gcv.e(str5, ""); hBt.b = str5; String d = C6583cXR.d(c0924Rr.e, c0924Rr.c); C14957gcv.c((Object) d, ""); C14957gcv.e(d, ""); hBt.d = d; RE re = c0924Rr.f; if (re == null || (str = re.e) == null) { str = ""; } C14957gcv.e(str, ""); hBt.j = str; RE re2 = c0924Rr.f; if (re2 == null || (str2 = re2.d) == null) { str2 = ""; } C14957gcv.e(str2, ""); hBt.n = str2; return new C0927Rs(hBt, (byte) 0); } static { new HBt((byte) 0); } }