package o; import java.io.IOException; import java.util.Enumeration; /* renamed from: o.goy, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15385goy extends AbstractC15317gnH { private int a; public C15385goy() { this.a = -1; } public C15385goy(C15343gns c15343gns) { super(c15343gns); this.a = -1; } public C15385goy(InterfaceC15342gnr[] interfaceC15342gnrArr) { super(interfaceC15342gnrArr); this.a = -1; } private int j() throws IOException { if (this.a < 0) { Enumeration b = b(); int i = 0; while (b.hasMoreElements()) { i += ((InterfaceC15342gnr) b.nextElement()).i().h().c(); } this.a = i; } return this.a; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final int c() throws IOException { int j = j(); return goV.d(j) + 1 + j; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15317gnH, o.AbstractC15315gnE public final void c(gnG gng) throws IOException { gnG d = gng.d(); int j = j(); gng.a(48); gng.d(j); Enumeration b = b(); while (b.hasMoreElements()) { d.d((InterfaceC15342gnr) b.nextElement()); } } }