package o; import java.util.Enumeration; /* loaded from: classes6.dex */ public final class gpZ extends AbstractC15346gnv { private C15367gog b; public C15423gpz e; public gpZ(AbstractC15317gnH abstractC15317gnH) { C15423gpz c15423gpz; if (abstractC15317gnH.e() != 2) { StringBuilder sb = new StringBuilder("Bad sequence size: "); sb.append(abstractC15317gnH.e()); throw new IllegalArgumentException(sb.toString()); } Enumeration b = abstractC15317gnH.b(); Object nextElement = b.nextElement(); if (nextElement instanceof C15423gpz) { c15423gpz = (C15423gpz) nextElement; } else { c15423gpz = nextElement != null ? new C15423gpz(AbstractC15317gnH.a(nextElement)) : null; } this.e = c15423gpz; this.b = C15367gog.c(b.nextElement()); } @Override // o.AbstractC15346gnv, o.InterfaceC15342gnr public final AbstractC15315gnE i() { C15343gns c15343gns = new C15343gns(); c15343gns.a.addElement(this.e); c15343gns.a.addElement(this.b); return new C15385goy(c15343gns); } }