	.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	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_PSMOUSE_CMD_RESET_BAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	callq	_ps2_command
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-32(%rbp), %rcx
	movq	_PSMOUSE_RET_BAT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.2:
	movq	-24(%rbp), %rcx
	movq	_PSMOUSE_RET_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PSMOUSE_CMD_RESET_BAT,4,2      ## @PSMOUSE_CMD_RESET_BAT
	.comm	_PSMOUSE_RET_BAT,8,3            ## @PSMOUSE_RET_BAT
	.comm	_PSMOUSE_RET_ID,8,3             ## @PSMOUSE_RET_ID
	.comm	_EIO,4,2                        ## @EIO
.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, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _PSMOUSE_CMD_RESET_BAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSMOUSE_CMD_RESET_BAT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_ps2_command
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, _PSMOUSE_RET_BAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PSMOUSE_RET_BAT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [sp, #16]
Lloh9:
	adrp	x9, _PSMOUSE_RET_ID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PSMOUSE_RET_ID@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldur	x8, [x29, #-8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PSMOUSE_CMD_RESET_BAT,4,2      ; @PSMOUSE_CMD_RESET_BAT
	.comm	_PSMOUSE_RET_BAT,8,3            ; @PSMOUSE_RET_BAT
	.comm	_PSMOUSE_RET_ID,8,3             ; @PSMOUSE_RET_ID
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
