	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cypress_ps2_read_cmd_status
_cypress_ps2_read_cmd_status:           ## @cypress_ps2_read_cmd_status
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_ps2_begin_command
	movl	(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_PSMOUSE_CMD_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	$0, 4(%rbx)
	movq	_CYTP_CMD_READ_TP_METRICS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	cmpb	%r12b, (%rax)
	sete	%cl
	leal	(%rcx,%rcx,4), %r13d
	addl	$3, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	%rbx, %rdi
	movl	$233, %esi
	callq	_cypress_ps2_sendbyte
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	cmpl	%r13d, 4(%rbx)
	movl	12(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	setge	%r14b
	movq	_CYTP_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_wait_event_timeout
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movzbl	-48(%rbp), %edx                 ## 1-byte Folded Reload
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %ecx
	movq	%r15, %r8
	callq	_psmouse_dbg
LBB0_2:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movl	$0, 4(%rbx)
	movq	%r14, %rdi
	callq	_ps2_end_command
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSMOUSE_CMD_MODE,4,2           ## @PSMOUSE_CMD_MODE
	.comm	_CYTP_CMD_READ_TP_METRICS,1,0   ## @CYTP_CMD_READ_TP_METRICS
	.comm	_CYTP_CMD_TIMEOUT,4,2           ## @CYTP_CMD_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Command 0x%02x response data (0x): %*ph\n"

	.no_dead_strip	_cypress_ps2_read_cmd_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cypress_ps2_read_cmd_status
_cypress_ps2_read_cmd_status:           ; @cypress_ps2_read_cmd_status
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_ps2_begin_command
	ldr	w27, [x20]
Lloh0:
	adrp	x8, _PSMOUSE_CMD_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSMOUSE_CMD_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CYTP_CMD_READ_TP_METRICS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CYTP_CMD_READ_TP_METRICS@GOTPAGEOFF]
	stp	w8, wzr, [x20]
	ldrb	w8, [x9]
	mov	w9, #3
	mov	w10, #8
	cmp	w8, w22
	csel	w23, w10, w9, eq
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	mov	x0, x20
	mov	w1, #233
	bl	_cypress_ps2_sendbyte
	mov	x24, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w25, [x20, #12]
	ldr	w8, [x20, #4]
	cmp	w8, w23
	cset	w26, ge
Lloh5:
	adrp	x8, _CYTP_CMD_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CYTP_CMD_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_wait_event_timeout
	ldr	w1, [x20, #8]
	mov	x0, x21
	mov	x2, x23
	bl	_memcpy
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, x21
	bl	_psmouse_dbg
LBB0_2:
	stp	w27, wzr, [x20]
	mov	x0, x19
	bl	_ps2_end_command
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PSMOUSE_CMD_MODE,4,2           ; @PSMOUSE_CMD_MODE
	.comm	_CYTP_CMD_READ_TP_METRICS,1,0   ; @CYTP_CMD_READ_TP_METRICS
	.comm	_CYTP_CMD_TIMEOUT,4,2           ; @CYTP_CMD_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Command 0x%02x response data (0x): %*ph\n"

	.no_dead_strip	_cypress_ps2_read_cmd_status
.subsections_via_symbols
