	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtaspci_attach
_rtaspci_attach:                        ## @rtaspci_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_ofw_bus_get_node
	leaq	40(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_rtas_token_lookup
	movq	%rax, 32(%rbx)
	leaq	L_.str.2(%rip), %rdi
	callq	_rtas_token_lookup
	movq	%rax, 24(%rbx)
	leaq	L_.str.3(%rip), %rdi
	callq	_rtas_token_lookup
	movq	%rax, 16(%rbx)
	leaq	L_.str.4(%rip), %rdi
	callq	_rtas_token_lookup
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
	movl	%r14d, %edi
	callq	_ofw_bus_get_node
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	movl	$8, %ecx
	callq	_OF_getencprop
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ofw_pci_attach                 ## TAILCALL
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"read-pci-config"

L_.str.2:                               ## @.str.2
	.asciz	"write-pci-config"

L_.str.3:                               ## @.str.3
	.asciz	"ibm,read-pci-config"

L_.str.4:                               ## @.str.4
	.asciz	"ibm,write-pci-config"

L_.str.5:                               ## @.str.5
	.asciz	"ibm,pci-config-space-type"

	.no_dead_strip	_rtaspci_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtaspci_attach
_rtaspci_attach:                        ; @rtaspci_attach
	.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
	bl	_device_get_softc
	mov	x20, x0
	mov	x0, x19
	bl	_ofw_bus_get_node
	add	x2, x20, #40
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #4
	bl	_OF_getencprop
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_rtas_token_lookup
	str	x0, [x20, #32]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_rtas_token_lookup
	str	x0, [x20, #24]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_rtas_token_lookup
	str	x0, [x20, #16]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_rtas_token_lookup
	stp	xzr, x0, [x20]
	mov	x0, x19
	bl	_ofw_bus_get_node
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	mov	w3, #8
	bl	_OF_getencprop
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ofw_pci_attach
LBB0_2:
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"read-pci-config"

l_.str.2:                               ; @.str.2
	.asciz	"write-pci-config"

l_.str.3:                               ; @.str.3
	.asciz	"ibm,read-pci-config"

l_.str.4:                               ; @.str.4
	.asciz	"ibm,write-pci-config"

l_.str.5:                               ; @.str.5
	.asciz	"ibm,pci-config-space-type"

	.no_dead_strip	_rtaspci_attach
.subsections_via_symbols
