package o; import java.util.ArrayList; import java.util.List; /* loaded from: classes3.dex */ public class sBE implements pgq { private zIz b; List d = new ArrayList(); public sBE(zIz ziz) { this.b = ziz; } public final WFF a(AbstractC13394fZQ abstractC13394fZQ) { return a(c(abstractC13394fZQ)); } protected BKc c(AbstractC13394fZQ abstractC13394fZQ) { return new BKc(new qgs(abstractC13394fZQ)); } private WFF a(BKc bKc) { WFF a; zIz ziz; this.d.clear(); try { zIz ziz2 = this.b; if (ziz2 instanceof Sqh) { Sqh sqh = (Sqh) ziz2; if (sqh.e == null) { sqh.c(null); } a = sqh.d(bKc); ziz = this.b; } else { a = ziz2.a(bKc); ziz = this.b; } ziz.c(); return a; } catch (Exception unused) { this.b.c(); return null; } catch (Throwable th) { this.b.c(); throw th; } } @Override // o.pgq public final void a(qCz qcz) { this.d.add(qcz); } }