	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpl	$128, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	movl	$129, %esi
	callq	_input_abs_get_min
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$129, %esi
	callq	_input_abs_get_max
	movq	_xres@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	movl	$1, %edx
	cmovnel	%ecx, %edx
	movl	%eax, %ebx
	subl	%r12d, %ebx
	cmovel	%edx, %ebx
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_clamp
	subl	%r12d, %eax
	imull	(%r13), %eax
	cltd
	idivl	%ebx
	movl	%eax, (%r15)
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_input_abs_get_min
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_input_abs_get_max
	movq	_yres@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	movl	$1, %edx
	cmovnel	%ecx, %edx
	movl	%eax, %ebx
	subl	%r12d, %ebx
	cmovel	%edx, %ebx
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_clamp
	movl	(%r13), %ecx
	subl	%r12d, %eax
	imull	%ecx, %eax
	cltd
	idivl	%ebx
	subl	%eax, %ecx
	movl	%ecx, 8(%r15)
LBB0_4:
	movl	$1, 4(%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x19, x1
	mov	x21, x0
	cmp	w2, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x21
	mov	w1, #129
	bl	_input_abs_get_min
	mov	x22, x0
	mov	x0, x21
	mov	w1, #129
	bl	_input_abs_get_max
	mov	x2, x0
Lloh0:
	adrp	x21, _xres@GOTPAGE
Lloh1:
	ldr	x21, [x21, _xres@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
	csinc	w8, w8, wzr, ne
	subs	w9, w0, w22
	csel	w23, w8, w9, eq
	mov	x0, x20
	mov	x1, x22
	bl	_clamp
	sub	w8, w0, w22
	ldr	w9, [x21]
	mul	w8, w8, w9
	sdiv	w8, w8, w23
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	mov	w1, #128
	bl	_input_abs_get_min
	mov	x22, x0
	mov	x0, x21
	mov	w1, #128
	bl	_input_abs_get_max
	mov	x2, x0
Lloh2:
	adrp	x21, _yres@GOTPAGE
Lloh3:
	ldr	x21, [x21, _yres@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
	csinc	w8, w8, wzr, ne
	subs	w9, w0, w22
	csel	w23, w8, w9, eq
	mov	x0, x20
	mov	x1, x22
	bl	_clamp
	ldr	w8, [x21]
	sub	w9, w0, w22
	mul	w9, w9, w8
	sdiv	w9, w9, w23
	sub	w8, w8, w9
	str	w8, [x19, #8]
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_xres,4,2                       ; @xres
	.comm	_yres,4,2                       ; @yres
	.no_dead_strip	_mousedev_abs_event
.subsections_via_symbols
