	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac8390_testio
_mac8390_testio:                        ## @mac8390_testio
	.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
	movq	%rdi, %rbx
	movl	$-1516194384, %edi              ## imm = 0xA5A0B5B0
	movq	%rbx, %rsi
	callq	_nubus_writel
	movq	%rbx, %rdi
	callq	_nubus_readl
	cmpl	$-1516194384, %eax              ## imm = 0xA5A0B5B0
	jne	LBB0_2
## %bb.1:
	movq	_ACCESS_32@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movl	$-977218096, -16(%rbp)          ## imm = 0xC5C0D5D0
	movl	$0, -12(%rbp)
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_word_memcpy_tocard
	leaq	-12(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_word_memcpy_fromcard
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jne	LBB0_3
## %bb.4:
	movq	_ACCESS_16@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_ACCESS_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACCESS_32,4,2                  ## @ACCESS_32
	.comm	_ACCESS_16,4,2                  ## @ACCESS_16
	.comm	_ACCESS_UNKNOWN,4,2             ## @ACCESS_UNKNOWN
	.no_dead_strip	_mac8390_testio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac8390_testio
_mac8390_testio:                        ; @mac8390_testio
	.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
	mov	w20, #46512
	movk	w20, #42400, lsl #16
	mov	w0, #46512
	movk	w0, #42400, lsl #16
	mov	x1, x19
	bl	_nubus_writel
	mov	x0, x19
	bl	_nubus_readl
	cmp	w0, w20
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ACCESS_32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACCESS_32@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	w8, #54736
	movk	w8, #50624, lsl #16
	stp	wzr, w8, [sp, #8]
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_word_memcpy_tocard
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #4
	bl	_word_memcpy_fromcard
	ldp	w9, w8, [sp, #8]
Lloh2:
	adrp	x10, _ACCESS_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ACCESS_UNKNOWN@GOTPAGEOFF]
Lloh4:
	adrp	x11, _ACCESS_16@GOTPAGE
Lloh5:
	ldr	x11, [x11, _ACCESS_16@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x11, x10, eq
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ACCESS_32,4,2                  ; @ACCESS_32
	.comm	_ACCESS_16,4,2                  ; @ACCESS_16
	.comm	_ACCESS_UNKNOWN,4,2             ; @ACCESS_UNKNOWN
	.no_dead_strip	_mac8390_testio
.subsections_via_symbols
