package Nm6q_10;

import androidx.recyclerview.widget.RecyclerView;
/* compiled from: SegmentPool.kt */
/* loaded from: classes.dex */
public final class ZzDuCHW_20 {
    public static long KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public static BVpCZyH_19 f350KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public static final ZzDuCHW_20 f351KQgRr5e_0 = new ZzDuCHW_20();

    public static final BVpCZyH_19 KQgRr5e_0() {
        synchronized (f351KQgRr5e_0) {
            BVpCZyH_19 bVpCZyH_19 = f350KQgRr5e_0;
            if (bVpCZyH_19 != null) {
                f350KQgRr5e_0 = bVpCZyH_19.f318KQgRr5e_0;
                bVpCZyH_19.f318KQgRr5e_0 = null;
                KQgRr5e_0 -= (long) RecyclerView.WGk6X_27.FLAG_BOUNCED_FROM_HIDDEN_LIST;
                return bVpCZyH_19;
            }
            return new BVpCZyH_19();
        }
    }

    public static final void KQgRr5e_0(BVpCZyH_19 bVpCZyH_19) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(bVpCZyH_19, "segment");
        if (bVpCZyH_19.f318KQgRr5e_0 == null && bVpCZyH_19.f321QxJ9d_1 == null) {
            if (bVpCZyH_19.f319KQgRr5e_0) {
                return;
            }
            synchronized (f351KQgRr5e_0) {
                long j = KQgRr5e_0;
                long j2 = (long) RecyclerView.WGk6X_27.FLAG_BOUNCED_FROM_HIDDEN_LIST;
                if (j + j2 > 65536) {
                    return;
                }
                KQgRr5e_0 += j2;
                bVpCZyH_19.f318KQgRr5e_0 = f350KQgRr5e_0;
                bVpCZyH_19.QxJ9d_1 = 0;
                bVpCZyH_19.KQgRr5e_0 = 0;
                f350KQgRr5e_0 = bVpCZyH_19;
                FSaI4_7.X6FRs_4 x6FRs_4 = FSaI4_7.X6FRs_4.KQgRr5e_0;
                return;
            }
        }
        throw new IllegalArgumentException("Failed requirement.".toString());
    }
}
