package o; import java.util.Enumeration; /* renamed from: o.gpt, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15417gpt extends AbstractC15346gnv implements InterfaceC15341gnq { private static InterfaceC15418gpu a = C15416gps.a; public C15411gpn[] b; private InterfaceC15418gpu c; private int d; private boolean e; private C15417gpt(InterfaceC15418gpu interfaceC15418gpu, C15417gpt c15417gpt) { this.b = c15417gpt.b; this.c = interfaceC15418gpu; } public static C15417gpt d(AbstractC15321gnP abstractC15321gnP) { AbstractC15317gnH b = AbstractC15317gnH.b(abstractC15321gnP, true); if (b != null) { return new C15417gpt(AbstractC15317gnH.a(b)); } return null; } public static C15417gpt c(Object obj) { if (obj instanceof C15417gpt) { return (C15417gpt) obj; } if (obj != null) { return new C15417gpt(AbstractC15317gnH.a(obj)); } return null; } public static C15417gpt c(InterfaceC15418gpu interfaceC15418gpu, Object obj) { if (obj instanceof C15417gpt) { return new C15417gpt(interfaceC15418gpu, (C15417gpt) obj); } if (obj != null) { return new C15417gpt(interfaceC15418gpu, AbstractC15317gnH.a(obj)); } return null; } private C15417gpt(AbstractC15317gnH abstractC15317gnH) { this(a, abstractC15317gnH); } private C15417gpt(InterfaceC15418gpu interfaceC15418gpu, AbstractC15317gnH abstractC15317gnH) { C15411gpn c15411gpn; this.c = interfaceC15418gpu; this.b = new C15411gpn[abstractC15317gnH.e()]; Enumeration b = abstractC15317gnH.b(); int i = 0; while (b.hasMoreElements()) { C15411gpn[] c15411gpnArr = this.b; Object nextElement = b.nextElement(); if (nextElement instanceof C15411gpn) { c15411gpn = (C15411gpn) nextElement; } else { c15411gpn = nextElement != null ? new C15411gpn(AbstractC15318gnI.c(nextElement)) : null; } c15411gpnArr[i] = c15411gpn; i++; } } @Override // o.AbstractC15346gnv, o.InterfaceC15342gnr public final AbstractC15315gnE i() { return new C15385goy(this.b); } @Override // o.AbstractC15346gnv public final int hashCode() { if (this.e) { return this.d; } this.e = true; int d = this.c.d(this); this.d = d; return d; } @Override // o.AbstractC15346gnv public final boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof C15417gpt) && !(obj instanceof AbstractC15317gnH)) { return false; } if (i().equals(((InterfaceC15342gnr) obj).i())) { return true; } try { return this.c.e(this, new C15417gpt(AbstractC15317gnH.a(((InterfaceC15342gnr) obj).i()))); } catch (Exception unused) { return false; } } public final String toString() { return this.c.a(this); } }