	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psmouse_set_rate
_psmouse_set_rate:                      ## @psmouse_set_rate
	.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
	movq	%rdi, %rbx
	leaq	_psmouse_set_rate.rates(%rip), %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ecx
	addq	$4, %rax
	cmpl	%esi, %ecx
	ja	LBB0_1
## %bb.2:
	movl	%ecx, -12(%rbp)
	leaq	4(%rbx), %rdi
	movq	_PSMOUSE_CMD_SETRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rsi
	callq	_ps2_command
	movl	-12(%rbp), %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @psmouse_set_rate.rates
_psmouse_set_rate.rates:
	.long	200                             ## 0xc8
	.long	100                             ## 0x64
	.long	80                              ## 0x50
	.long	60                              ## 0x3c
	.long	40                              ## 0x28
	.long	20                              ## 0x14
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.comm	_PSMOUSE_CMD_SETRATE,4,2        ## @PSMOUSE_CMD_SETRATE
	.no_dead_strip	_psmouse_set_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psmouse_set_rate
_psmouse_set_rate:                      ; @psmouse_set_rate
	.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
Lloh0:
	adrp	x8, _psmouse_set_rate.rates@PAGE
Lloh1:
	add	x8, x8, _psmouse_set_rate.rates@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8], #4
	cmp	w9, w1
	b.hi	LBB0_1
; %bb.2:
	str	w9, [sp, #12]
	add	x0, x19, #4
Lloh2:
	adrp	x8, _PSMOUSE_CMD_SETRATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PSMOUSE_CMD_SETRATE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_ps2_command
	ldr	w8, [sp, #12]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @psmouse_set_rate.rates
_psmouse_set_rate.rates:
	.long	200                             ; 0xc8
	.long	100                             ; 0x64
	.long	80                              ; 0x50
	.long	60                              ; 0x3c
	.long	40                              ; 0x28
	.long	20                              ; 0x14
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.comm	_PSMOUSE_CMD_SETRATE,4,2        ; @PSMOUSE_CMD_SETRATE
	.no_dead_strip	_psmouse_set_rate
.subsections_via_symbols
