	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofw_pcib_attach
_ofw_pcib_attach:                       ## @ofw_pcib_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_pci_get_devid
	cmpl	$129, %eax
	jne	LBB0_2
## %bb.1:
	movq	_PCIB_SUBTRACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_2:
	movl	%ebx, %edi
	callq	_pci_get_vendor
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.3:
	movq	_PCIR_PRIBUS_1@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	_PCIR_SECBUS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_pci_read_config
	movl	%eax, %r15d
	shll	$8, %r15d
	movl	(%r12), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_pci_read_config
	orl	%eax, %r15d
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	$2, %ecx
	callq	_pci_write_config
LBB0_4:
	movl	%ebx, %edi
	callq	_ofw_pcib_gen_setup
	movl	%ebx, %edi
	callq	_pcib_attach_common
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcib_attach_child              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIB_SUBTRACTIVE,4,2           ## @PCIB_SUBTRACTIVE
	.comm	_PCIR_PRIBUS_1,4,2              ## @PCIR_PRIBUS_1
	.comm	_PCIR_SECBUS_1,4,2              ## @PCIR_SECBUS_1
	.no_dead_strip	_ofw_pcib_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofw_pcib_attach
_ofw_pcib_attach:                       ; @ofw_pcib_attach
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	mov	x0, x19
	bl	_pci_get_devid
	cmp	w0, #129
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PCIB_SUBTRACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIB_SUBTRACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_2:
	mov	x0, x19
	bl	_pci_get_vendor
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x22, _PCIR_PRIBUS_1@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PCIR_PRIBUS_1@GOTPAGEOFF]
	ldr	w20, [x22]
Lloh5:
	adrp	x8, _PCIR_SECBUS_1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCIR_SECBUS_1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_pci_read_config
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_pci_read_config
	orr	w2, w0, w21, lsl #8
	mov	x0, x19
	mov	x1, x20
	mov	w3, #2
	bl	_pci_write_config
LBB0_4:
	mov	x0, x19
	bl	_ofw_pcib_gen_setup
	mov	x0, x19
	bl	_pcib_attach_common
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pcib_attach_child
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIB_SUBTRACTIVE,4,2           ; @PCIB_SUBTRACTIVE
	.comm	_PCIR_PRIBUS_1,4,2              ; @PCIR_PRIBUS_1
	.comm	_PCIR_SECBUS_1,4,2              ; @PCIR_SECBUS_1
	.no_dead_strip	_ofw_pcib_attach
.subsections_via_symbols
