package C0;

import android.view.MotionEvent;
import androidx.media3.exoplayer.analytics.AnalyticsListener;
import i0.InterfaceC2255s;
import o0.C2631b;

/* JADX INFO: renamed from: C0.y, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC0123y {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final C0100a f640a = new C0100a(1000);

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final C0100a f641b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final C0100a f642c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final StackTraceElement[] f643d;

    static {
        new C0100a(AnalyticsListener.EVENT_AUDIO_ENABLED);
        f641b = new C0100a(AnalyticsListener.EVENT_AUDIO_DECODER_INITIALIZED);
        f642c = new C0100a(1002);
        f643d = new StackTraceElement[0];
    }

    public static final boolean a(C0124z c0124z) {
        return (c0124z.b() || c0124z.f651h || !c0124z.f647d) ? false : true;
    }

    public static final boolean b(C0124z c0124z) {
        return !c0124z.f651h && c0124z.f647d;
    }

    public static final boolean c(C0124z c0124z) {
        return (c0124z.b() || !c0124z.f651h || c0124z.f647d) ? false : true;
    }

    public static final boolean d(C0124z c0124z) {
        return c0124z.f651h && !c0124z.f647d;
    }

    public static final boolean e(long j4, long j6) {
        return j4 == j6;
    }

    public static final boolean f(C0124z c0124z, long j4, long j6) {
        int i6 = c0124z.f652i == 1 ? 1 : 0;
        long j7 = c0124z.f646c;
        float fIntBitsToFloat = Float.intBitsToFloat((int) (j7 >> 32));
        float fIntBitsToFloat2 = Float.intBitsToFloat((int) (j7 & 4294967295L));
        float f6 = i6;
        float fIntBitsToFloat3 = Float.intBitsToFloat((int) (j6 >> 32)) * f6;
        float f7 = ((int) (j4 >> 32)) + fIntBitsToFloat3;
        float fIntBitsToFloat4 = Float.intBitsToFloat((int) (j6 & 4294967295L)) * f6;
        return (fIntBitsToFloat > f7) | (fIntBitsToFloat < (-fIntBitsToFloat3)) | (fIntBitsToFloat2 < (-fIntBitsToFloat4)) | (fIntBitsToFloat2 > ((int) (j4 & 4294967295L)) + fIntBitsToFloat4);
    }

    public static InterfaceC2255s g(InterfaceC2255s interfaceC2255s, C0100a c0100a) {
        return interfaceC2255s.then(new C0118t(c0100a));
    }

    public static final long h(C0124z c0124z, boolean z6) {
        long jD = C2631b.d(c0124z.f646c, c0124z.f650g);
        if (z6 || !c0124z.b()) {
            return jD;
        }
        return 0L;
    }

    public static final void i(C0116q c0116q, long j4, J4.c cVar, boolean z6) {
        MotionEvent motionEventA = c0116q.a();
        if (motionEventA == null) {
            throw new IllegalArgumentException("The PointerEvent receiver cannot have a null MotionEvent.");
        }
        int action = motionEventA.getAction();
        if (z6) {
            motionEventA.setAction(3);
        }
        int i6 = (int) (j4 >> 32);
        int i7 = (int) (j4 & 4294967295L);
        motionEventA.offsetLocation(-Float.intBitsToFloat(i6), -Float.intBitsToFloat(i7));
        cVar.invoke(motionEventA);
        motionEventA.offsetLocation(Float.intBitsToFloat(i6), Float.intBitsToFloat(i7));
        motionEventA.setAction(action);
    }

    public static String j(long j4) {
        return "PointerId(value=" + j4 + ')';
    }
}
