package o; import java.util.ArrayList; /* loaded from: classes3.dex */ public final class Tyf extends ZTC { private final FHb c = new FHb(); @InterfaceC13391fZD public Tyf() { } public final C17671ymh c(YTw yTw) { C17671ymh e = C17671ymh.e(); e.c = FHb.c(yTw != null ? yTw.e : null); C14957gcv.c(e, ""); return e; } public final C17671ymh a(BUi bUi) { ArrayList arrayList = new ArrayList(); if (bUi != null) { arrayList.add(bUi); } C17671ymh e = C17671ymh.e(); e.c = FHb.c(arrayList); C14957gcv.c(e, ""); return e; } private static yPn c(Lsy lsy) { if (lsy == null) { return null; } yPn ypn = new yPn(); ypn.d = lsy.a; ypn.e = lsy.e; ypn.b = lsy.d; return ypn; } public final pmX e(HXl hXl) { pmX pmx = new pmX(); if (hXl != null) { if (hXl.b.isEmpty()) { pmx.a = FHb.c(C14851gaI.c); pmx.b = c(hXl.d); } else { pmx.a = FHb.c(hXl.b); pmx.b = c(hXl.d); } } else { pmx.a = FHb.c(C14851gaI.c); pmx.b = null; } C14957gcv.c(pmx, ""); return pmx; } }