	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psmouse_reset                  ## -- Begin function psmouse_reset
	.p2align	4, 0x90
_psmouse_reset:                         ## @psmouse_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_PSMOUSE_CMD_RESET_BAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-2(%rbp), %rsi
	callq	_ps2_command
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.1:
	movb	-2(%rbp), %cl
	movq	_PSMOUSE_RET_BAT@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	je	LBB0_3
## %bb.2:
	movb	-1(%rbp), %cl
	movq	_PSMOUSE_RET_ID@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	jne	LBB0_4
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSMOUSE_CMD_RESET_BAT,4,2      ## @PSMOUSE_CMD_RESET_BAT
	.comm	_PSMOUSE_RET_BAT,1,0            ## @PSMOUSE_RET_BAT
	.comm	_PSMOUSE_RET_ID,1,0             ## @PSMOUSE_RET_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psmouse_reset                  ; -- Begin function psmouse_reset
	.p2align	2
_psmouse_reset:                         ; @psmouse_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _PSMOUSE_CMD_RESET_BAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSMOUSE_CMD_RESET_BAT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	sub	x1, x29, #2
	bl	_ps2_command
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	ldurb	w8, [x29, #-2]
Lloh3:
	adrp	x9, _PSMOUSE_RET_BAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PSMOUSE_RET_BAT@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	ldurb	w8, [x29, #-1]
Lloh5:
	adrp	x9, _PSMOUSE_RET_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PSMOUSE_RET_ID@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_1
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PSMOUSE_CMD_RESET_BAT,4,2      ; @PSMOUSE_CMD_RESET_BAT
	.comm	_PSMOUSE_RET_BAT,1,0            ; @PSMOUSE_RET_BAT
	.comm	_PSMOUSE_RET_ID,1,0             ; @PSMOUSE_RET_ID
.subsections_via_symbols
