package o; import org.spongycastle.asn1.ASN1Integer; /* renamed from: o.gqi, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15440gqi extends AbstractC15346gnv implements InterfaceC15443gql, InterfaceC15405gph { public C15417gpt f; public C15417gpt g; private C15439gqh k; private C15367gog l; private C15437gqf m; private ASN1Integer n; /* renamed from: o, reason: collision with root package name */ private AbstractC15317gnH f9149o; private C15367gog p; private C15439gqh q; private ASN1Integer r; private C15423gpz s; private gpZ t; public static C15440gqi c(Object obj) { if (obj != null) { return new C15440gqi(AbstractC15317gnH.a(obj)); } return null; } private C15440gqi(AbstractC15317gnH abstractC15317gnH) { int i; C15423gpz c15423gpz; this.f9149o = abstractC15317gnH; if (abstractC15317gnH.d(0) instanceof C15355goI) { this.r = ASN1Integer.d((AbstractC15321gnP) abstractC15317gnH.d(0), true); i = 0; } else { this.r = new ASN1Integer(0L); i = -1; } this.n = ASN1Integer.e(abstractC15317gnH.d(i + 1)); InterfaceC15342gnr d = abstractC15317gnH.d(i + 2); gpZ gpz = null; if (d instanceof C15423gpz) { c15423gpz = (C15423gpz) d; } else { c15423gpz = d != null ? new C15423gpz(AbstractC15317gnH.a(d)) : null; } this.s = c15423gpz; this.g = C15417gpt.c(abstractC15317gnH.d(i + 3)); AbstractC15317gnH abstractC15317gnH2 = (AbstractC15317gnH) abstractC15317gnH.d(i + 4); this.q = C15439gqh.e(abstractC15317gnH2.d(0)); this.k = C15439gqh.e(abstractC15317gnH2.d(1)); this.f = C15417gpt.c(abstractC15317gnH.d(i + 5)); int i2 = i + 6; InterfaceC15342gnr d2 = abstractC15317gnH.d(i2); if (d2 instanceof gpZ) { gpz = (gpZ) d2; } else if (d2 != null) { gpz = new gpZ(AbstractC15317gnH.a(d2)); } this.t = gpz; for (int e = (abstractC15317gnH.e() - i2) - 1; e > 0; e--) { C15355goI c15355goI = (C15355goI) abstractC15317gnH.d(i2 + e); int i3 = c15355goI.e; if (i3 == 1) { this.l = C15367gog.a(c15355goI); } else if (i3 == 2) { this.p = C15367gog.a(c15355goI); } else if (i3 == 3) { this.m = C15437gqf.b(c15355goI); } } } @Override // o.AbstractC15346gnv, o.InterfaceC15342gnr public final AbstractC15315gnE i() { return this.f9149o; } }