package o; import java.io.IOException; import java.util.Enumeration; /* loaded from: classes6.dex */ public final class goL extends AbstractC15317gnH { private int b; public goL() { this.b = -1; } public goL(InterfaceC15342gnr interfaceC15342gnr) { super(interfaceC15342gnr); this.b = -1; } public goL(C15343gns c15343gns) { super(c15343gns); this.b = -1; } private int j() throws IOException { if (this.b < 0) { Enumeration b = b(); int i = 0; while (b.hasMoreElements()) { i += ((InterfaceC15342gnr) b.nextElement()).i().f().c(); } this.b = i; } return this.b; } /* 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 e = gng.e(); int j = j(); gng.a(48); gng.d(j); Enumeration b = b(); while (b.hasMoreElements()) { e.d((InterfaceC15342gnr) b.nextElement()); } } }