	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mousedev_abs_event
_mousedev_abs_event:                    ## @mousedev_abs_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_5
## %bb.2:
	movq	(%rdi), %rax
	movq	8(%rdi), %r8
	movl	516(%rax), %r10d
	movq	_xres@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	movl	$1, %edx
	cmovnel	%r9d, %edx
	movl	516(%r8), %eax
	movl	%r10d, %edi
	subl	%eax, %edi
	cmovel	%edx, %edi
	cmpl	%ecx, %r10d
	cmovll	%r10d, %ecx
	cmpl	%eax, %ecx
	cmovlel	%eax, %ecx
	subl	%eax, %ecx
	imull	%r9d, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movl	%eax, (%rsi)
	jmp	LBB0_4
LBB0_3:
	movq	(%rdi), %rax
	movq	8(%rdi), %r8
	movl	512(%rax), %r9d
	movq	_yres@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r10d
	testl	%r10d, %r10d
	movl	$1, %edx
	cmovnel	%r10d, %edx
	movl	512(%r8), %eax
	movl	%r9d, %edi
	subl	%eax, %edi
	cmovel	%edx, %edi
	cmpl	%ecx, %r9d
	cmovll	%r9d, %ecx
	cmpl	%eax, %ecx
	cmovlel	%eax, %ecx
	subl	%eax, %ecx
	imull	%r10d, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%edi
	subl	%eax, %r10d
	movl	%r10d, 8(%rsi)
LBB0_4:
	movl	$1, 4(%rsi)
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xres,4,2                       ## @xres
	.comm	_yres,4,2                       ## @yres
	.no_dead_strip	_mousedev_abs_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mousedev_abs_event
_mousedev_abs_event:                    ; @mousedev_abs_event
	.cfi_startproc
; %bb.0:
	cmp	w2, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_5
; %bb.2:
	ldp	x8, x9, [x0]
	ldr	w8, [x8, #516]
	ldr	w9, [x9, #516]
Lloh0:
	adrp	x10, _xres@GOTPAGE
Lloh1:
	ldr	x10, [x10, _xres@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w10, #0
	csinc	w11, w10, wzr, ne
	subs	w12, w8, w9
	csel	w11, w11, w12, eq
	cmp	w8, w3
	csel	w8, w8, w3, lt
	cmp	w8, w9
	csel	w8, w8, w9, gt
	sub	w8, w8, w9
	mul	w8, w8, w10
	sdiv	w8, w8, w11
	str	w8, [x1]
	b	LBB0_4
LBB0_3:
	ldp	x8, x9, [x0]
	ldr	w8, [x8, #512]
	ldr	w9, [x9, #512]
Lloh3:
	adrp	x10, _yres@GOTPAGE
Lloh4:
	ldr	x10, [x10, _yres@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w10, #0
	csinc	w11, w10, wzr, ne
	subs	w12, w8, w9
	csel	w11, w11, w12, eq
	cmp	w8, w3
	csel	w8, w8, w3, lt
	cmp	w8, w9
	csel	w8, w8, w9, gt
	sub	w8, w8, w9
	mul	w8, w8, w10
	sdiv	w8, w8, w11
	sub	w8, w10, w8
	str	w8, [x1, #8]
LBB0_4:
	mov	w8, #1
	str	w8, [x1, #4]
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_xres,4,2                       ; @xres
	.comm	_yres,4,2                       ; @yres
	.no_dead_strip	_mousedev_abs_event
.subsections_via_symbols
