package o; import java.util.Enumeration; /* loaded from: classes6.dex */ public final class gpS extends AbstractC15346gnv { public C15397gpR[] a; public C15397gpR[] b; public gpS(AbstractC15317gnH abstractC15317gnH) { Enumeration b = abstractC15317gnH.b(); while (b.hasMoreElements()) { AbstractC15321gnP d = AbstractC15321gnP.d(b.nextElement()); int i = d.e; if (i == 0) { this.a = e(AbstractC15317gnH.b(d, false)); } else if (i == 1) { this.b = e(AbstractC15317gnH.b(d, false)); } } } private static C15397gpR[] e(AbstractC15317gnH abstractC15317gnH) { int e = abstractC15317gnH.e(); C15397gpR[] c15397gpRArr = new C15397gpR[e]; for (int i = 0; i != e; i++) { c15397gpRArr[i] = C15397gpR.c(abstractC15317gnH.d(i)); } return c15397gpRArr; } @Override // o.AbstractC15346gnv, o.InterfaceC15342gnr public final AbstractC15315gnE i() { C15343gns c15343gns = new C15343gns(); if (this.a != null) { c15343gns.a.addElement(new C15355goI(false, 0, new C15385goy(this.a))); } if (this.b != null) { c15343gns.a.addElement(new C15355goI(false, 1, new C15385goy(this.b))); } return new C15385goy(c15343gns); } }