package o; /* renamed from: o.gqg, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15438gqg extends AbstractC15346gnv { private gpT a; public gpP c; public C15396gpM e; public C15438gqg(AbstractC15317gnH abstractC15317gnH) { int i; gpP gpp; if (abstractC15317gnH.e() > 3) { StringBuilder sb = new StringBuilder("Bad sequence size: "); sb.append(abstractC15317gnH.e()); throw new IllegalArgumentException(sb.toString()); } if (abstractC15317gnH.d(0) instanceof AbstractC15321gnP) { i = 0; } else { InterfaceC15342gnr d = abstractC15317gnH.d(0); if (d instanceof gpP) { gpp = (gpP) d; } else { gpp = d != null ? new gpP(AbstractC15317gnH.a(d)) : null; } this.c = gpp; i = 1; } while (i != abstractC15317gnH.e()) { AbstractC15321gnP d2 = AbstractC15321gnP.d(abstractC15317gnH.d(i)); if (d2.e == 0) { AbstractC15317gnH b = AbstractC15317gnH.b(d2, false); this.e = b != null ? new C15396gpM(AbstractC15317gnH.a(b)) : null; } else { if (d2.e != 1) { StringBuilder sb2 = new StringBuilder("Bad tag number: "); sb2.append(d2.e); throw new IllegalArgumentException(sb2.toString()); } AbstractC15317gnH b2 = AbstractC15317gnH.b(d2, false); this.a = b2 != null ? new gpT(AbstractC15317gnH.a(b2)) : null; } i++; } } @Override // o.AbstractC15346gnv, o.InterfaceC15342gnr public final AbstractC15315gnE i() { C15343gns c15343gns = new C15343gns(); gpP gpp = this.c; if (gpp != null) { c15343gns.a.addElement(gpp); } if (this.e != null) { c15343gns.a.addElement(new C15355goI(false, 0, this.e)); } if (this.a != null) { c15343gns.a.addElement(new C15355goI(false, 1, this.a)); } return new C15385goy(c15343gns); } }