package o; import java.io.IOException; import o.gnG; /* renamed from: o.goI, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15355goI extends AbstractC15321gnP { public C15355goI(boolean z, int i, InterfaceC15342gnr interfaceC15342gnr) { super(z, i, interfaceC15342gnr); } public C15355goI(int i, InterfaceC15342gnr interfaceC15342gnr) { super(true, i, interfaceC15342gnr); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final boolean d() { boolean z = this.b; if (this.a) { return true; } return this.d.i().h().d(); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final int c() throws IOException { int a; boolean z = this.b; int c = this.d.i().h().c(); if (this.a) { a = goV.a(this.e) + goV.d(c); } else { c--; a = goV.a(this.e); } return a + c; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15321gnP, o.AbstractC15315gnE public final void c(gnG gng) throws IOException { boolean z = this.b; AbstractC15315gnE h = this.d.i().h(); if (this.a) { gng.b(160, this.e); gng.d(h.c()); gng.d(h); } else { gng.b(h.d() ? 160 : 128, this.e); if (h != null) { h.c(new gnG.LWm(gng, gng.a)); return; } throw new IOException("null object detected"); } } }