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

import java.util.ArrayDeque;

/* JADX INFO: loaded from: classes2.dex */
public final class b6 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final byte[] f9403a = new byte[8];

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final ArrayDeque f9404b = new ArrayDeque();

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final i6 f9405c = new i6();

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public c6 f9406d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f9407e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int f9408f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public long f9409g;

    public final long a(p2 p2Var, int i10) {
        byte[] bArr = this.f9403a;
        p2Var.c(bArr, 0, i10);
        long j10 = 0;
        for (int i11 = 0; i11 < i10; i11++) {
            j10 = (j10 << 8) | ((long) (bArr[i11] & 255));
        }
        return j10;
    }
}
