	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2_test
_ps2_test:                              ## @ps2_test
	.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
	movq	%rdi, %r14
	movq	_PS2CR_FKC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ps2_test_one
	movq	_PS2STAT_KBD@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	cmpl	(%r12), %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printk
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_2:
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ps2_test_one
	movq	_PS2STAT_KBC@GOTPCREL(%rip), %r15
	movl	(%r12), %ecx
	orl	(%r15), %ecx
	cmpl	%ecx, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_printk
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %ebx
LBB0_4:
	movq	_PS2CR_FKD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ps2_test_one
	cmpl	(%r15), %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_printk
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	_PS2CR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS2CR_FKC,4,2                  ## @PS2CR_FKC
	.comm	_PS2STAT_KBD,4,2                ## @PS2STAT_KBD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PS/2 interface test failed[1]: %02x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PS2STAT_KBC,4,2                ## @PS2STAT_KBC
L_.str.1:                               ## @.str.1
	.asciz	"PS/2 interface test failed[2]: %02x\n"

	.comm	_PS2CR_FKD,4,2                  ## @PS2CR_FKD
L_.str.2:                               ## @.str.2
	.asciz	"PS/2 interface test failed[3]: %02x\n"

	.comm	_PS2CR,8,3                      ## @PS2CR
	.no_dead_strip	_ps2_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2_test
_ps2_test:                              ; @ps2_test
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _PS2CR_FKC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS2CR_FKC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ps2_test_one
Lloh3:
	adrp	x22, _PS2STAT_KBD@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PS2STAT_KBD@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x21, _ENODEV@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ENODEV@GOTPAGEOFF]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	ldr	w8, [x21]
	neg	w20, w8
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_ps2_test_one
Lloh9:
	adrp	x23, _PS2STAT_KBC@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PS2STAT_KBC@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w8, w9, w8
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	ldr	w8, [x21]
	neg	w20, w8
LBB0_5:
Lloh13:
	adrp	x8, _PS2CR_FKD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PS2CR_FKD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ps2_test_one
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	ldr	w8, [x21]
	neg	w20, w8
LBB0_7:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _PS2CR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PS2CR@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PS2CR_FKC,4,2                  ; @PS2CR_FKC
	.comm	_PS2STAT_KBD,4,2                ; @PS2STAT_KBD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PS/2 interface test failed[1]: %02x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PS2STAT_KBC,4,2                ; @PS2STAT_KBC
l_.str.1:                               ; @.str.1
	.asciz	"PS/2 interface test failed[2]: %02x\n"

	.comm	_PS2CR_FKD,4,2                  ; @PS2CR_FKD
l_.str.2:                               ; @.str.2
	.asciz	"PS/2 interface test failed[3]: %02x\n"

	.comm	_PS2CR,8,3                      ; @PS2CR
	.no_dead_strip	_ps2_test
.subsections_via_symbols
