	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cypress_ps2_ext_cmd
_cypress_ps2_ext_cmd:                   ## @cypress_ps2_ext_cmd
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_CYTP_PS2_CMD_TRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_ps2_begin_command
	incl	%r13d
	movzbl	%bl, %r14d
	movq	_CYTP_PS2_RETRY@GOTPCREL(%rip), %r15
	movzbl	-44(%rbp), %eax                 ## 1-byte Folded Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_CYTP_PS2_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%r13d
	cmpl	$1, %r13d
	jle	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_cypress_ps2_sendbyte
	movl	%eax, %ebx
	cmpl	(%r15), %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_cypress_ps2_sendbyte
	movl	%eax, %ebx
	cmpl	(%r15), %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_cypress_ps2_sendbyte
	movl	%eax, %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_CYTP_PS2_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_cypress_ps2_sendbyte
	movl	%eax, %ebx
	cmpl	(%r15), %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_cypress_ps2_sendbyte
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_9:
	movq	%r12, %rdi
	callq	_ps2_end_command
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CYTP_PS2_CMD_TRIES,4,2         ## @CYTP_PS2_CMD_TRIES
	.comm	_CYTP_PS2_RETRY,4,2             ## @CYTP_PS2_RETRY
	.comm	_CYTP_PS2_ERROR,4,2             ## @CYTP_PS2_ERROR
	.no_dead_strip	_cypress_ps2_ext_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cypress_ps2_ext_cmd
_cypress_ps2_ext_cmd:                   ; @cypress_ps2_ext_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CYTP_PS2_CMD_TRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CYTP_PS2_CMD_TRIES@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_ps2_begin_command
	add	w23, w22, #1
	and	w21, w21, #0xff
Lloh3:
	adrp	x24, _CYTP_PS2_RETRY@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CYTP_PS2_RETRY@GOTPAGEOFF]
Lloh5:
	adrp	x25, _CYTP_PS2_ERROR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _CYTP_PS2_ERROR@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	cmp	w22, w8
	b.ne	LBB0_9
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w23, w23, #1
	cmp	w23, #1
	b.le	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_cypress_ps2_sendbyte
	mov	x22, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_cypress_ps2_sendbyte
	mov	x22, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	w1, #10
	bl	_cypress_ps2_sendbyte
	mov	x22, x0
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	cmp	w22, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_cypress_ps2_sendbyte
	mov	x22, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_cypress_ps2_sendbyte
	mov	x22, x0
	b	LBB0_1
LBB0_9:
	mov	x0, x19
	bl	_ps2_end_command
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CYTP_PS2_CMD_TRIES,4,2         ; @CYTP_PS2_CMD_TRIES
	.comm	_CYTP_PS2_RETRY,4,2             ; @CYTP_PS2_RETRY
	.comm	_CYTP_PS2_ERROR,4,2             ; @CYTP_PS2_ERROR
	.no_dead_strip	_cypress_ps2_ext_cmd
.subsections_via_symbols
