	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cypress_ps2_sendbyte
_cypress_ps2_sendbyte:                  ## @cypress_ps2_sendbyte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movzbl	%sil, %r14d
	movq	_CYTP_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_ps2_sendbyte
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_3
## %bb.1:
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_psmouse_dbg
	movq	(%rbx), %rax
	movq	_CYTP_PS2_RETRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_CYTP_PS2_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CYTP_CMD_TIMEOUT,4,2           ## @CYTP_CMD_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending command 0x%02x failed, resp 0x%02x\n"

	.comm	_CYTP_PS2_RETRY,8,3             ## @CYTP_PS2_RETRY
	.comm	_CYTP_PS2_ERROR,4,2             ## @CYTP_PS2_ERROR
	.no_dead_strip	_cypress_ps2_sendbyte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cypress_ps2_sendbyte
_cypress_ps2_sendbyte:                  ; @cypress_ps2_sendbyte
	.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
	and	w20, w1, #0xff
Lloh0:
	adrp	x8, _CYTP_CMD_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CYTP_CMD_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_ps2_sendbyte
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_psmouse_dbg
	ldr	x0, [x19]
Lloh5:
	adrp	x8, _CYTP_PS2_RETRY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CYTP_PS2_RETRY@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _CYTP_PS2_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CYTP_PS2_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CYTP_CMD_TIMEOUT,4,2           ; @CYTP_CMD_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending command 0x%02x failed, resp 0x%02x\n"

	.comm	_CYTP_PS2_RETRY,8,3             ; @CYTP_PS2_RETRY
	.comm	_CYTP_PS2_ERROR,4,2             ; @CYTP_PS2_ERROR
	.no_dead_strip	_cypress_ps2_sendbyte
.subsections_via_symbols
