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

/* JADX INFO: loaded from: classes3.dex */
final class zzej extends zzel {
    private int zzb;
    private int zzc;
    private int zzd;

    public /* synthetic */ zzej(byte[] bArr, int i6, int i7, boolean z6, zzek zzekVar) {
        super(null);
        this.zzd = Integer.MAX_VALUE;
        this.zzb = 0;
    }

    public final int zza(int i6) {
        int i7 = this.zzd;
        this.zzd = 0;
        int i8 = this.zzb + this.zzc;
        this.zzb = i8;
        if (i8 <= 0) {
            this.zzc = 0;
            return i7;
        }
        this.zzc = i8;
        this.zzb = 0;
        return i7;
    }
}
