package defpackage;

/* JADX INFO: renamed from: ᵢᵹᵯ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3318 {

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public static final C3318 f12750;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public static final C3318 f12751;

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final long f12752;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final long f12753;

    static {
        C3318 c3318 = new C3318(0L, 0L);
        new C3318(Long.MAX_VALUE, Long.MAX_VALUE);
        f12750 = new C3318(Long.MAX_VALUE, 0L);
        new C3318(0L, Long.MAX_VALUE);
        f12751 = c3318;
    }

    public C3318(long j, long j2) {
        ᵻᵪ.ᵱᵽʡᵚ(j >= 0);
        ᵻᵪ.ᵱᵽʡᵚ(j2 >= 0);
        this.f12753 = j;
        this.f12752 = j2;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && C3318.class == obj.getClass()) {
            C3318 c3318 = (C3318) obj;
            if (this.f12753 == c3318.f12753 && this.f12752 == c3318.f12752) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return (((int) this.f12753) * 31) + ((int) this.f12752);
    }

    /* JADX WARN: Removed duplicated region for block: B:48:0x0082 A[RETURN] */
    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final long m7597(long j, long j2, long j3) {
        long j4 = this.f12753;
        long j5 = this.f12752;
        if (j4 == 0 && j5 == 0) {
            return j;
        }
        String str = AbstractC0956.f4222;
        long j6 = j - j4;
        long j7 = (((j4 ^ j) > 0L ? 1 : ((j4 ^ j) == 0L ? 0 : -1)) >= 0) | (((j ^ j6) > 0L ? 1 : ((j ^ j6) == 0L ? 0 : -1)) >= 0) ? j6 : ((j6 >>> 63) ^ 1) + Long.MAX_VALUE;
        if ((j7 == Long.MIN_VALUE && j6 != Long.MIN_VALUE) || (j7 == Long.MAX_VALUE && j6 != Long.MAX_VALUE)) {
            j7 = Long.MIN_VALUE;
        }
        long jM3262 = AbstractC0956.m3262(j, j5);
        boolean z = j7 <= j2 && j2 <= jM3262;
        boolean z2 = j7 <= j3 && j3 <= jM3262;
        if (!z || !z2) {
            if (!z) {
                return z2 ? j3 : j7;
            }
            return j2;
        }
        if (Math.abs(j2 - j) <= Math.abs(j3 - j)) {
            return j2;
        }
    }
}
