package o; import com.google.android.libraries.places.api.model.PlaceTypes; import java.util.ArrayList; import java.util.Collection; import java.util.List; import o.ML; import o.Mqw; /* renamed from: o.tv, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17105tv { private C17105tv() { } public static final ML c(Mqw mqw) { String str; List list; C14957gcv.e(mqw, ""); GJE gje = mqw.a.c; if (gje == null || (list = gje.e) == null) { str = null; } else { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); int i = 0; for (Object obj : list2) { if (i >= 0) { String str2 = (String) obj; if (i != list.size() - 1) { if (str2.length() > 0) { StringBuilder sb = new StringBuilder(); sb.append(str2); sb.append("\n"); str2 = sb.toString(); } else { str2 = ""; } } arrayList.add(str2); i++; } else { throw new ArithmeticException("Index overflow has happened."); } } str = C14881gav.b(arrayList, "", null, null, 0, null, null, 62); } String str3 = mqw.d; Mqw.IeS ieS = mqw.c; boolean z = ieS.e; String str4 = ieS.c; boolean b = C14957gcv.b((Object) (str4 != null ? C2974aoj.d(str4) : null), (Object) C2974aoj.d(PlaceTypes.DOCTOR)); String str5 = ieS.c; ML.LWm lWm = new ML.LWm(z, Boolean.valueOf(b), Boolean.valueOf(C14957gcv.b((Object) (str5 != null ? C2974aoj.d(str5) : null), (Object) C2974aoj.d(PlaceTypes.DENTIST)))); Mqw.Sts sts = mqw.b; return new ML(str3, new ML.HBt(mqw.a.e, str), lWm, new ML.IeS(sts.c, sts.e)); } static { new C17105tv(); } }