package o; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; /* loaded from: classes3.dex */ public final class Pvh extends ZTC { @InterfaceC13391fZD public Pvh() { } public static C9567dmF b(ieb iebVar) { C14851gaI c14851gaI; C14851gaI c14851gaI2; C14957gcv.e(iebVar, ""); String str = iebVar.d; if (str == null) { str = ""; } String str2 = iebVar.c; if (str2 == null) { str2 = ""; } List list = iebVar.e; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (mFg mfg : list2) { String str3 = mfg.e; String str4 = (str3 == null || gdZ.d((CharSequence) str3)) ? null : mfg.e; String str5 = mfg.d; if (str5 == null) { str5 = ""; } arrayList.add(new ymE(str4, str5)); } c14851gaI = arrayList; } else { c14851gaI = C14851gaI.c; } List list3 = iebVar.b; if (list3 != null) { List list4 = list3; C14957gcv.e(list4, ""); ArrayList arrayList2 = new ArrayList(list4 instanceof Collection ? list4.size() : 10); Iterator it = list4.iterator(); while (it.hasNext()) { arrayList2.add(((HtM) it.next()).a); } c14851gaI2 = arrayList2; } else { c14851gaI2 = C14851gaI.c; } return new C9567dmF(str, str2, c14851gaI, c14851gaI2); } }