	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psmouse_set_resolution         ## -- Begin function psmouse_set_resolution
	.p2align	4, 0x90
_psmouse_set_resolution:                ## @psmouse_set_resolution
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	leal	-201(%rsi), %ecx
	movl	$4, %eax
	cmpl	$-200, %ecx
	jb	LBB0_2
## %bb.1:
	movl	%esi, %eax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	shrq	$36, %rax
LBB0_2:
	movl	%eax, %eax
	leaq	_psmouse_set_resolution.params(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -12(%rbp)
	leaq	4(%rbx), %rdi
	movq	_PSMOUSE_CMD_SETRES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rsi
	callq	_ps2_command
	movb	-12(%rbp), %cl
	movl	$25, %eax
	shll	%cl, %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @psmouse_set_resolution.params
_psmouse_set_resolution.params:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3

	.comm	_PSMOUSE_CMD_SETRES,4,2         ## @PSMOUSE_CMD_SETRES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psmouse_set_resolution         ; -- Begin function psmouse_set_resolution
	.p2align	2
_psmouse_set_resolution:                ; @psmouse_set_resolution
	.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
	sub	w8, w1, #201
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	umull	x9, w1, w9
	lsr	x9, x9, #36
	cmn	w8, #200
	mov	w8, #4
	csel	w8, w8, w9, lo
Lloh0:
	adrp	x9, _psmouse_set_resolution.params@PAGE
Lloh1:
	add	x9, x9, _psmouse_set_resolution.params@PAGEOFF
	ldr	w8, [x9, w8, uxtw #2]
	str	w8, [sp, #12]
	add	x0, x0, #4
Lloh2:
	adrp	x8, _PSMOUSE_CMD_SETRES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PSMOUSE_CMD_SETRES@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_ps2_command
	ldr	w8, [sp, #12]
	mov	w9, #25
	lsl	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @psmouse_set_resolution.params
_psmouse_set_resolution.params:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3

	.comm	_PSMOUSE_CMD_SETRES,4,2         ; @PSMOUSE_CMD_SETRES
.subsections_via_symbols
