	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2_test_one
_ps2_test_one:                          ## @ps2_test_one
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	_PS2CR_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_PS2CR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rdi), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movl	$10, %edi
	callq	_udelay
	movq	_PS2STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movq	_PS2STAT_KBC@GOTPCREL(%rip), %rcx
	movq	_PS2STAT_KBD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	andl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS2CR_ENA,4,2                  ## @PS2CR_ENA
	.comm	_PS2CR,8,3                      ## @PS2CR
	.comm	_PS2STAT,8,3                    ## @PS2STAT
	.comm	_PS2STAT_KBC,4,2                ## @PS2STAT_KBC
	.comm	_PS2STAT_KBD,4,2                ## @PS2STAT_KBD
	.no_dead_strip	_ps2_test_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2_test_one
_ps2_test_one:                          ; @ps2_test_one
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _PS2CR_ENA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS2CR_ENA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w0, w8, w1
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _PS2CR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PS2CR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _PS2STAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PS2STAT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh9:
	adrp	x8, _PS2STAT_KBC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PS2STAT_KBC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PS2STAT_KBD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PS2STAT_KBD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w0, w8, w0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PS2CR_ENA,4,2                  ; @PS2CR_ENA
	.comm	_PS2CR,8,3                      ; @PS2CR
	.comm	_PS2STAT,8,3                    ; @PS2STAT
	.comm	_PS2STAT_KBC,4,2                ; @PS2STAT_KBC
	.comm	_PS2STAT_KBD,4,2                ; @PS2STAT_KBD
	.no_dead_strip	_ps2_test_one
.subsections_via_symbols
