package o; import android.content.SharedPreferences; import android.content.res.Resources; import java.util.ArrayList; import java.util.List; import o.PRA; import o.UU; import o.UX; import o.UZ; /* loaded from: classes3.dex */ public final class AS extends C16157lj { @InterfaceC13391fZD public AS(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); } public final List c(UV uv, final String str) { final ArrayList arrayList = new ArrayList(); YKU c = YKU.c(uv); final Class cls = UU.class; YKU yku = new YKU(c.a, new GEP(c.b, new Jel(cls) { // from class: o.AU private Class b; @Override // o.Jel public final boolean e(Object obj) { boolean isInstance; isInstance = this.b.isInstance((UV) obj); return isInstance; } { this.b = cls; } })); arrayList.addAll((List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, arrayList, str) { // from class: o.AV private List a; private String b; private AS d; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return AS.d(this.a, this.b, (UV) obj); } { this.d = this; this.a = arrayList; this.b = str; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()))); return arrayList; } public static /* synthetic */ UV d(List list, String str, UV uv) { if (uv.s == 12) { UX.IeS b = UX.b(); b.i = 1; b.e = true; list.add(new UX(b, (byte) 0)); UU uu = (UU) uv; UZ.LWm a = UZ.a(); a.d = uu.s; a.a = uu.m; return new UZ(a, (byte) 0); } UX.IeS b2 = UX.b(); b2.i = 1; list.add(new UX(b2, (byte) 0)); UU uu2 = (UU) uv; if (str == null) { str = uu2.m; } UU.IeS d = UU.d(); d.d = uu2.e; d.e = uu2.a; d.f = false; d.n = str; d.q = uu2.s; d.g = uu2.i; return new UU(d, (byte) 0); } }