package o; import java.io.IOException; /* renamed from: o.gnP, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public abstract class AbstractC15321gnP extends AbstractC15315gnE implements InterfaceC15323gnS { public boolean a; public boolean b = false; public InterfaceC15342gnr d; public int e; /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public abstract void c(gnG gng) throws IOException; public static AbstractC15321gnP d(Object obj) { if (obj == null || (obj instanceof AbstractC15321gnP)) { return (AbstractC15321gnP) obj; } if (obj instanceof byte[]) { try { return d(b((byte[]) obj)); } catch (IOException e) { StringBuilder sb = new StringBuilder("failed to construct tagged object from byte[]: "); sb.append(e.getMessage()); throw new IllegalArgumentException(sb.toString()); } } StringBuilder sb2 = new StringBuilder("unknown object in getInstance: "); sb2.append(obj.getClass().getName()); throw new IllegalArgumentException(sb2.toString()); } public AbstractC15321gnP(boolean z, int i, InterfaceC15342gnr interfaceC15342gnr) { this.a = true; this.d = null; if (interfaceC15342gnr instanceof InterfaceC15341gnq) { this.a = true; } else { this.a = z; } this.e = i; if (this.a) { this.d = interfaceC15342gnr; } else { interfaceC15342gnr.i(); this.d = interfaceC15342gnr; } } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE protected final boolean e(AbstractC15315gnE abstractC15315gnE) { if (!(abstractC15315gnE instanceof AbstractC15321gnP)) { return false; } AbstractC15321gnP abstractC15321gnP = (AbstractC15321gnP) abstractC15315gnE; if (this.e == abstractC15321gnP.e) { boolean z = abstractC15321gnP.b; if (this.a == abstractC15321gnP.a) { InterfaceC15342gnr interfaceC15342gnr = this.d; return interfaceC15342gnr == null ? abstractC15321gnP.d == null : interfaceC15342gnr.i().equals(abstractC15321gnP.d.i()); } } return false; } @Override // o.AbstractC15346gnv public int hashCode() { int i = this.e; InterfaceC15342gnr interfaceC15342gnr = this.d; return interfaceC15342gnr != null ? i ^ interfaceC15342gnr.hashCode() : i; } @Override // o.goR public final AbstractC15315gnE a() { return i(); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final AbstractC15315gnE h() { return new C15355goI(this.a, this.e, this.d); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final AbstractC15315gnE f() { return new goQ(this.a, this.e, this.d); } public String toString() { StringBuilder sb = new StringBuilder("["); sb.append(this.e); sb.append("]"); sb.append(this.d); return sb.toString(); } }