package m4;

import java.util.Arrays;
import java.util.concurrent.atomic.AtomicInteger;

/* JADX INFO: loaded from: classes3.dex */
public final class Q1 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final int f20736a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f20737b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final int f20738c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final AtomicInteger f20739d;

    public Q1(float f6, float f7) {
        AtomicInteger atomicInteger = new AtomicInteger();
        this.f20739d = atomicInteger;
        this.f20738c = (int) (f7 * 1000.0f);
        int i6 = (int) (f6 * 1000.0f);
        this.f20736a = i6;
        this.f20737b = i6 / 2;
        atomicInteger.set(i6);
    }

    public final boolean a() {
        AtomicInteger atomicInteger;
        int i6;
        int i7;
        do {
            atomicInteger = this.f20739d;
            i6 = atomicInteger.get();
            if (i6 == 0) {
                return false;
            }
            i7 = i6 - 1000;
        } while (!atomicInteger.compareAndSet(i6, Math.max(i7, 0)));
        return i7 > this.f20737b;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Q1)) {
            return false;
        }
        Q1 q12 = (Q1) obj;
        return this.f20736a == q12.f20736a && this.f20738c == q12.f20738c;
    }

    public final int hashCode() {
        return Arrays.hashCode(new Object[]{Integer.valueOf(this.f20736a), Integer.valueOf(this.f20738c)});
    }
}
