	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rio_start_card_running         ## -- Begin function rio_start_card_running
	.p2align	4, 0x90
_rio_start_card_running:                ## @rio_start_card_running
	.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	(%rdi), %edx
	movq	_RIO_DEBUG_BOOT@GOTPCREL(%rip), %rax
	cmpl	$128, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_5
## %bb.2:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_BOOT_FROM_RAM@GOTPCREL(%rip), %rax
	movq	_EXTERNAL_BUS_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	orl	4(%rbx), %edi
	movq	_RIOAtVec2Ctrl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rbx), %ecx
	andl	$15, %ecx
	orl	(%rax,%rcx,4), %edi
	jmp	LBB0_4
LBB0_3:
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_PCITpBootFromRam@GOTPCREL(%rip), %rax
	movq	_PCITpBusEnable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	orl	4(%rbx), %edi
LBB0_4:
	addq	$12, %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writeb                         ## TAILCALL
LBB0_5:
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rio_dprintk                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RIO_DEBUG_BOOT,4,2             ## @RIO_DEBUG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Start ISA card running\n"

	.comm	_BOOT_FROM_RAM,4,2              ## @BOOT_FROM_RAM
	.comm	_EXTERNAL_BUS_ON,4,2            ## @EXTERNAL_BUS_ON
	.comm	_RIOAtVec2Ctrl,8,3              ## @RIOAtVec2Ctrl
L_.str.1:                               ## @.str.1
	.asciz	"Start PCI card running\n"

	.comm	_PCITpBootFromRam,4,2           ## @PCITpBootFromRam
	.comm	_PCITpBusEnable,4,2             ## @PCITpBusEnable
L_.str.2:                               ## @.str.2
	.asciz	"Unknown host type %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rio_start_card_running         ; -- Begin function rio_start_card_running
	.p2align	2
_rio_start_card_running:                ; @rio_start_card_running
	.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
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _RIO_DEBUG_BOOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RIO_DEBUG_BOOT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rio_dprintk
Lloh5:
	adrp	x8, _BOOT_FROM_RAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BOOT_FROM_RAM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _EXTERNAL_BUS_ON@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EXTERNAL_BUS_ON@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldp	w9, w10, [x19, #4]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _RIOAtVec2Ctrl@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RIOAtVec2Ctrl@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	and	x10, x10, #0xf
	ldr	w9, [x9, x10, lsl #2]
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _RIO_DEBUG_BOOT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RIO_DEBUG_BOOT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_rio_dprintk
Lloh19:
	adrp	x8, _PCITpBootFromRam@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCITpBootFromRam@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _PCITpBusEnable@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PCITpBusEnable@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
LBB0_4:
	orr	w0, w8, w9
	add	x1, x19, #12
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_writeb
LBB0_5:
Lloh25:
	adrp	x9, _RIO_DEBUG_BOOT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RIO_DEBUG_BOOT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_rio_dprintk
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_RIO_DEBUG_BOOT,4,2             ; @RIO_DEBUG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Start ISA card running\n"

	.comm	_BOOT_FROM_RAM,4,2              ; @BOOT_FROM_RAM
	.comm	_EXTERNAL_BUS_ON,4,2            ; @EXTERNAL_BUS_ON
	.comm	_RIOAtVec2Ctrl,8,3              ; @RIOAtVec2Ctrl
l_.str.1:                               ; @.str.1
	.asciz	"Start PCI card running\n"

	.comm	_PCITpBootFromRam,4,2           ; @PCITpBootFromRam
	.comm	_PCITpBusEnable,4,2             ; @PCITpBusEnable
l_.str.2:                               ; @.str.2
	.asciz	"Unknown host type %d\n"

.subsections_via_symbols
