package com.google.android.gms.internal.p002firebaseauthapi; import java.util.logging.Level; import java.util.logging.Logger; /* loaded from: classes.dex */ public abstract class zzagl extends zzafo { private static final Logger zza = Logger.getLogger(zzagl.class.getName()); private static final boolean zzb = zzajy.zzx(); public static final /* synthetic */ int zzf = 0; zzagm zze; private zzagl() { } /* synthetic */ zzagl(zzagk zzagkVar) { } public static int zzA(int i10) { if ((i10 & (-128)) == 0) { return 1; } if ((i10 & (-16384)) == 0) { return 2; } if (((-2097152) & i10) == 0) { return 3; } return (i10 & (-268435456)) == 0 ? 4 : 5; } public static int zzB(long j10) { int i10; if (((-128) & j10) == 0) { return 1; } if (j10 < 0) { return 10; } if (((-34359738368L) & j10) != 0) { j10 >>>= 28; i10 = 6; } else { i10 = 2; } if (((-2097152) & j10) != 0) { j10 >>>= 14; i10 += 2; } return (j10 & (-16384)) != 0 ? i10 + 1 : i10; } public static zzagl zzC(byte[] bArr, int i10, int i11) { return new zzagh(bArr, 0, i11); } @Deprecated static int zzw(int i10, zzaii zzaiiVar, zzaiu zzaiuVar) { int zzn = ((zzafi) zzaiiVar).zzn(zzaiuVar); int zzA = zzA(i10 << 3); return zzA + zzA + zzn; } public static int zzx(int i10) { if (i10 >= 0) { return zzA(i10); } return 10; } static int zzy(zzaii zzaiiVar, zzaiu zzaiuVar) { int zzn = ((zzafi) zzaiiVar).zzn(zzaiuVar); return zzA(zzn) + zzn; } public static int zzz(String str) { int length; try { length = zzakd.zzc(str); } catch (zzakc unused) { length = str.getBytes(zzahj.zzb).length; } return zzA(length) + length; } public final void zzD() { if (zzb() != 0) { throw new IllegalStateException("Did not write as much data as expected."); } } final void zzE(String str, zzakc zzakcVar) { zza.logp(Level.WARNING, "com.google.protobuf.CodedOutputStream", "inefficientWriteStringNoTag", "Converting ill-formed UTF-16. Your Protocol Buffer will not round trip correctly!", (Throwable) zzakcVar); byte[] bytes = str.getBytes(zzahj.zzb); try { int length = bytes.length; zzs(length); zza(bytes, 0, length); } catch (IndexOutOfBoundsException e10) { throw new zzagi(e10); } } public abstract void zzI(); public abstract void zzJ(byte b10); public abstract void zzK(int i10, boolean z10); public abstract void zzL(int i10, zzafy zzafyVar); @Override // com.google.android.gms.internal.p002firebaseauthapi.zzafo public abstract void zza(byte[] bArr, int i10, int i11); public abstract int zzb(); public abstract void zzh(int i10, int i11); public abstract void zzi(int i10); public abstract void zzj(int i10, long j10); public abstract void zzk(long j10); public abstract void zzl(int i10, int i11); public abstract void zzm(int i10); abstract void zzn(int i10, zzaii zzaiiVar, zzaiu zzaiuVar); public abstract void zzo(int i10, String str); public abstract void zzq(int i10, int i11); public abstract void zzr(int i10, int i11); public abstract void zzs(int i10); public abstract void zzt(int i10, long j10); public abstract void zzu(long j10); }