package o; import java.util.ArrayList; import java.util.Collection; import java.util.List; /* loaded from: classes3.dex */ public final class BU { @InterfaceC13391fZD public BU() { } public static ArrayList b(List list) { C14957gcv.e(list, ""); List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2.size()); for (Cpl cpl : list2) { C14957gcv.e(cpl, ""); arrayList.add(new pug(cpl.e, cpl.c)); } ArrayList arrayList2 = arrayList; C14957gcv.e(arrayList2, ""); return new ArrayList<>(arrayList2); } public static List a(ArrayList arrayList) { C14957gcv.e(arrayList, ""); ArrayList arrayList2 = arrayList; C14957gcv.e(arrayList2, ""); ArrayList arrayList3 = new ArrayList(arrayList2 instanceof Collection ? arrayList2.size() : 10); for (pug pugVar : arrayList2) { C14957gcv.e(pugVar, ""); String str = pugVar.e; C14957gcv.c((Object) str, ""); String str2 = pugVar.c; C14957gcv.c((Object) str2, ""); arrayList3.add(new Cpl(str, str2)); } return arrayList3; } }