package o; import java.util.Enumeration; import org.spongycastle.asn1.ASN1Integer; /* renamed from: o.gpl, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15409gpl extends AbstractC15346gnv implements InterfaceC15405gph { public AbstractC15318gnI f; public AbstractC15318gnI g; private AbstractC15318gnI k; private C15402gpe m; private ASN1Integer n; /* renamed from: o, reason: collision with root package name */ private AbstractC15318gnI f9147o; public static C15409gpl a(Object obj) { if (obj != null) { return new C15409gpl(AbstractC15317gnH.a(obj)); } return null; } public C15409gpl(ASN1Integer aSN1Integer, AbstractC15318gnI abstractC15318gnI, C15402gpe c15402gpe, AbstractC15318gnI abstractC15318gnI2, AbstractC15318gnI abstractC15318gnI3) { this.n = aSN1Integer; this.f9147o = abstractC15318gnI; this.m = c15402gpe; this.g = abstractC15318gnI2; this.f = null; this.k = abstractC15318gnI3; } private C15409gpl(AbstractC15317gnH abstractC15317gnH) { C15402gpe c15402gpe; Enumeration b = abstractC15317gnH.b(); this.n = (ASN1Integer) b.nextElement(); this.f9147o = (AbstractC15318gnI) b.nextElement(); Object nextElement = b.nextElement(); if (nextElement instanceof C15402gpe) { c15402gpe = (C15402gpe) nextElement; } else { c15402gpe = nextElement != null ? new C15402gpe(AbstractC15317gnH.a(nextElement)) : null; } this.m = c15402gpe; while (b.hasMoreElements()) { AbstractC15315gnE abstractC15315gnE = (AbstractC15315gnE) b.nextElement(); if (abstractC15315gnE instanceof AbstractC15321gnP) { AbstractC15321gnP abstractC15321gnP = (AbstractC15321gnP) abstractC15315gnE; int i = abstractC15321gnP.e; if (i == 0) { this.g = AbstractC15318gnI.b(abstractC15321gnP); } else if (i == 1) { this.f = AbstractC15318gnI.b(abstractC15321gnP); } else { StringBuilder sb = new StringBuilder("unknown tag value "); sb.append(abstractC15321gnP.e); throw new IllegalArgumentException(sb.toString()); } } else { this.k = (AbstractC15318gnI) abstractC15315gnE; } } } @Override // o.AbstractC15346gnv, o.InterfaceC15342gnr public final AbstractC15315gnE i() { C15343gns c15343gns = new C15343gns(); c15343gns.a.addElement(this.n); c15343gns.a.addElement(this.f9147o); c15343gns.a.addElement(this.m); if (this.g != null) { c15343gns.a.addElement(new C15355goI(false, 0, this.g)); } if (this.f != null) { c15343gns.a.addElement(new C15355goI(false, 1, this.f)); } c15343gns.a.addElement(this.k); return new gnX(c15343gns); } }