	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function udev_mouse_get_pointer_y
LCPI0_0:
	.quad	0x40efffe000000000              ## double 65535
LCPI0_1:
	.quad	0xc0dfffc000000000              ## double -32767
LCPI0_3:
	.quad	0x40dfffc000000000              ## double 32767
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_udev_mouse_get_pointer_y:              ## @udev_mouse_get_pointer_y
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rdi
	callq	_video_driver_get_viewport_info
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %ecx
	movl	4(%rbx), %eax
	subl	%ecx, %eax
	jle	LBB0_4
## %bb.3:
	cvtsi2sd	%ecx, %xmm0
	incl	%eax
	cvtsi2sd	%eax, %xmm1
	jmp	LBB0_7
LBB0_1:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_10
LBB0_4:
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movsd	-32(%rbp), %xmm1                ## xmm1 = mem[0],zero
	jmp	LBB0_7
LBB0_6:
	movsd	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero
LBB0_7:
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	divsd	%xmm1, %xmm2
	movsd	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	%xmm2, %xmm1
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm1
	xorpd	%xmm2, %xmm2
	xorl	%eax, %eax
	ucomisd	%xmm1, %xmm2
	seta	%al
	leaq	LCPI0_2(%rip), %rcx
	addsd	(%rcx,%rax,8), %xmm1
	ucomisd	%xmm1, %xmm0
	ja	LBB0_10
## %bb.8:
	ucomisd	LCPI0_3(%rip), %xmm1
	movapd	%xmm1, %xmm0
	jbe	LBB0_10
## %bb.9:
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
LBB0_10:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_udev_mouse_get_pointer_y
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udev_mouse_get_pointer_y
_udev_mouse_get_pointer_y:              ; @udev_mouse_get_pointer_y
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_video_driver_get_viewport_info
	cbz	w0, LBB0_3
; %bb.1:
	ldp	w8, w9, [x19]
	subs	w9, w9, w8
	b.le	LBB0_4
; %bb.2:
	scvtf	d0, w8
	add	w8, w9, #1
	scvtf	d1, w8
	b	LBB0_7
LBB0_3:
	movi	d0, #0000000000000000
	b	LBB0_10
LBB0_4:
	ldr	d0, [sp, #8]
	cbz	w20, LBB0_6
; %bb.5:
	ldr	d1, [sp, #16]
	b	LBB0_7
LBB0_6:
	ldr	d1, [sp, #24]
LBB0_7:
	mov	x8, #281337537757184
	movk	x8, #16623, lsl #48
	fmov	d2, x8
	fdiv	d1, d2, d1
	ldr	d2, [x19, #8]
	fsub	d2, d2, d0
	mov	x8, #281200098803712
	movk	x8, #49375, lsl #48
	fmov	d0, x8
	fmadd	d1, d1, d2, d0
	fcmp	d1, #0.0
	fmov	d2, #0.50000000
	fmov	d3, #-0.50000000
	fcsel	d2, d3, d2, mi
	fadd	d1, d1, d2
	fcmp	d1, d0
	b.mi	LBB0_10
; %bb.8:
	mov	x8, #281200098803712
	movk	x8, #16607, lsl #48
	fmov	d0, x8
	fcmp	d1, d0
	fmov	d0, d1
	b.le	LBB0_10
; %bb.9:
	mov	x8, #281200098803712
	movk	x8, #16607, lsl #48
	fmov	d0, x8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_udev_mouse_get_pointer_y
.subsections_via_symbols
