package com.google.android.gms.internal.p002firebaseauthapi; /* loaded from: classes2.dex */ abstract class zzad extends zzh { final CharSequence zzb; final zzn zzc; int zzd = 0; int zze; /* JADX INFO: Access modifiers changed from: protected */ public zzad(zzaf zzafVar, CharSequence charSequence) { zzn zznVar; zznVar = zzafVar.zza; this.zzc = zznVar; this.zze = Integer.MAX_VALUE; this.zzb = charSequence; } @Override // com.google.android.gms.internal.p002firebaseauthapi.zzh protected final /* synthetic */ Object zza() { int zzc; int i = this.zzd; while (true) { int i2 = this.zzd; if (i2 != -1) { int zzd = zzd(i2); if (zzd == -1) { zzd = this.zzb.length(); this.zzd = -1; zzc = -1; } else { zzc = zzc(zzd); this.zzd = zzc; } if (zzc == i) { int i3 = zzc + 1; this.zzd = i3; if (i3 > this.zzb.length()) { this.zzd = -1; } } else { if (i < zzd) { this.zzb.charAt(i); } if (i < zzd) { this.zzb.charAt(zzd - 1); } int i4 = this.zze; if (i4 == 1) { zzd = this.zzb.length(); this.zzd = -1; if (zzd > i) { this.zzb.charAt(zzd - 1); } } else { this.zze = i4 - 1; } return this.zzb.subSequence(i, zzd).toString(); } } else { zzb(); return null; } } } abstract int zzc(int i); abstract int zzd(int i); }