package com.google.android.gms.internal.measurement;

import java.io.IOException;

/* loaded from: classes3.dex */
abstract class zzmk<T, B> {
    private static volatile int zza = 100;

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract int zza(T t10);

    abstract B zza();

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract T zza(T t10, T t11);

    abstract void zza(B b10, int i10, int i11);

    abstract void zza(B b10, int i10, long j10);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void zza(B b10, int i10, zzik zzikVar);

    abstract void zza(B b10, int i10, T t10);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void zza(T t10, zznb zznbVar) throws IOException;

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract boolean zza(zzlr zzlrVar);

    /* JADX INFO: Access modifiers changed from: package-private */
    public final boolean zza(B b10, zzlr zzlrVar, int i10) throws IOException {
        int zzd = zzlrVar.zzd();
        int i11 = zzd >>> 3;
        int i12 = zzd & 7;
        if (i12 == 0) {
            zzb(b10, i11, zzlrVar.zzl());
            return true;
        }
        if (i12 == 1) {
            zza((zzmk<T, B>) b10, i11, zzlrVar.zzk());
            return true;
        }
        if (i12 == 2) {
            zza((zzmk<T, B>) b10, i11, zzlrVar.zzp());
            return true;
        }
        if (i12 != 3) {
            if (i12 == 4) {
                return false;
            }
            if (i12 == 5) {
                zza((zzmk<T, B>) b10, i11, zzlrVar.zzf());
                return true;
            }
            throw zzkb.zza();
        }
        B zza2 = zza();
        int i13 = 4 | (i11 << 3);
        int i14 = i10 + 1;
        if (i14 >= zza) {
            throw zzkb.zzh();
        }
        while (zzlrVar.zzc() != Integer.MAX_VALUE && zza((zzmk<T, B>) zza2, zzlrVar, i14)) {
        }
        if (i13 == zzlrVar.zzd()) {
            zza((zzmk<T, B>) b10, i11, (int) zze(zza2));
            return true;
        }
        throw zzkb.zzb();
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract int zzb(T t10);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void zzb(B b10, int i10, long j10);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void zzb(T t10, zznb zznbVar) throws IOException;

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void zzb(Object obj, B b10);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract B zzc(Object obj);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void zzc(Object obj, T t10);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract T zzd(Object obj);

    abstract T zze(B b10);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void zzf(Object obj);
}
