package com.google.android.gms.internal.vision; import java.io.IOException; /* loaded from: classes2.dex */ public final class zzdk extends zzjn { public zzds[] zzoh = zzds.zzcc(); public zzdk() { this.zzadp = -1; } @Override // com.google.android.gms.internal.vision.zzjn, com.google.android.gms.internal.vision.zzjt public final void zza(zzjl zzjlVar) throws IOException { zzds[] zzdsVarArr = this.zzoh; if (zzdsVarArr != null && zzdsVarArr.length > 0) { int i = 0; while (true) { zzds[] zzdsVarArr2 = this.zzoh; if (i >= zzdsVarArr2.length) { break; } zzds zzdsVar = zzdsVarArr2[i]; if (zzdsVar != null) { zzjlVar.zza(1, zzdsVar); } i++; } } super.zza(zzjlVar); } /* JADX INFO: Access modifiers changed from: protected */ @Override // com.google.android.gms.internal.vision.zzjn, com.google.android.gms.internal.vision.zzjt public final int zzt() { int zzt = super.zzt(); zzds[] zzdsVarArr = this.zzoh; if (zzdsVarArr != null && zzdsVarArr.length > 0) { int i = 0; while (true) { zzds[] zzdsVarArr2 = this.zzoh; if (i >= zzdsVarArr2.length) { break; } zzds zzdsVar = zzdsVarArr2[i]; if (zzdsVar != null) { zzt += zzjl.zzb(1, zzdsVar); } i++; } } return zzt; } @Override // com.google.android.gms.internal.vision.zzjt public final /* synthetic */ zzjt zza(zzjk zzjkVar) throws IOException { while (true) { int zzdq = zzjkVar.zzdq(); if (zzdq == 0) { return this; } if (zzdq != 10) { if (!super.zza(zzjkVar, zzdq)) { return this; } } else { int zzb = zzjw.zzb(zzjkVar, 10); zzds[] zzdsVarArr = this.zzoh; int length = zzdsVarArr == null ? 0 : zzdsVarArr.length; int i = zzb + length; zzds[] zzdsVarArr2 = new zzds[i]; if (length != 0) { System.arraycopy(zzdsVarArr, 0, zzdsVarArr2, 0, length); } while (length < i - 1) { zzds zzdsVar = new zzds(); zzdsVarArr2[length] = zzdsVar; zzjkVar.zza(zzdsVar); zzjkVar.zzdq(); length++; } zzds zzdsVar2 = new zzds(); zzdsVarArr2[length] = zzdsVar2; zzjkVar.zza(zzdsVar2); this.zzoh = zzdsVarArr2; } } } }