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