package o; import android.content.SharedPreferences; import android.content.res.Resources; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; /* renamed from: o.Cx, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C0275Cx extends C16157lj { /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C0275Cx(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); } public static List b(tYK tyk, List list) { C14851gaI c14851gaI; C14957gcv.e(tyk, ""); if (list != null) { ArrayList arrayList = new ArrayList(); for (Object obj : list) { if (((WC) obj).e) { arrayList.add(obj); } } ArrayList arrayList2 = arrayList; C14957gcv.e(arrayList2, ""); ArrayList arrayList3 = new ArrayList(arrayList2.size()); Iterator it = arrayList2.iterator(); while (it.hasNext()) { arrayList3.add(((WC) it.next()).c); } c14851gaI = arrayList3; } else { c14851gaI = null; } if (c14851gaI == null) { c14851gaI = C14851gaI.c; } List list2 = tyk.a; C14957gcv.e(list2, ""); ArrayList arrayList4 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (JZY jzy : list2) { String str = jzy.d; if (str == null) { str = ""; } String str2 = jzy.b; if (str2 == null) { str2 = ""; } arrayList4.add(new WC(str, str2)); } ArrayList arrayList5 = arrayList4; C14957gcv.e(arrayList5, ""); ArrayList arrayList6 = new ArrayList(arrayList5.size()); for (WC wc : arrayList5) { arrayList6.add(WC.a(wc, c14851gaI.contains(wc.c))); } return arrayList6; } }