	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3                               ## -- Begin function udev_mouse_get_y
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_udev_mouse_get_y:                      ## @udev_mouse_get_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdi
	callq	_video_driver_get_viewport_info
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	subq	(%rbx), %rax
	jg	LBB0_3
## %bb.4:
	movsd	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero
	jmp	LBB0_5
LBB0_1:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_6
LBB0_3:
	incq	%rax
	cvtsi2sd	%rax, %xmm1
LBB0_5:
	cvtsi2sdq	-16(%rbp), %xmm0
	divsd	%xmm1, %xmm0
	mulsd	16(%rbx), %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
	ucomisd	%xmm0, %xmm1
	seta	%al
	leaq	LCPI0_0(%rip), %rcx
	addsd	(%rcx,%rax,8), %xmm0
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_udev_mouse_get_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_y
_udev_mouse_get_y:                      ; @udev_mouse_get_y
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, sp
	bl	_video_driver_get_viewport_info
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x8, x9, [x19]
	subs	x8, x9, x8
	add	x8, x8, #1
	scvtf	d0, x8
	ldp	d1, d2, [sp]
	fcsel	d0, d0, d1, gt
	scvtf	d1, d2
	fdiv	d0, d1, d0
	ldr	d1, [x19, #16]
	fmul	d0, d1, d0
	fcmp	d0, #0.0
	fmov	d1, #0.50000000
	fmov	d2, #-0.50000000
	fcsel	d1, d2, d1, mi
	fadd	d0, d0, d1
	b	LBB0_3
LBB0_2:
	movi	d0, #0000000000000000
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_udev_mouse_get_y
.subsections_via_symbols
