	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reserve_mc_sibling_devs
_reserve_mc_sibling_devs:               ## @reserve_mc_sibling_devs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rdx
	movl	(%rdx), %edi
	callq	_pci_get_related_function
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	8(%rbx), %rdx
	movl	(%rdx), %edi
	movl	%r14d, %esi
	callq	_pci_get_related_function
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	16(%rbx), %rdi
	callq	_pci_name
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_debugf1
	movq	8(%rbx), %rdi
	callq	_pci_name
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_debugf1
	movq	(%rbx), %rdi
	callq	_pci_name
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_debugf1
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_PCI_VENDOR_ID_AMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	jmp	LBB0_2
LBB0_4:
	movq	16(%rbx), %rdi
	callq	_pci_dev_put
	movq	$0, 16(%rbx)
	movq	_PCI_VENDOR_ID_AMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
LBB0_2:
	callq	_amd64_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error address map device not found: vendor %x device 0x%x (broken BIOS?)\n"

	.comm	_PCI_VENDOR_ID_AMD,4,2          ## @PCI_VENDOR_ID_AMD
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"error F3 device not found: vendor %x device 0x%x (broken BIOS?)\n"

L_.str.2:                               ## @.str.2
	.asciz	"F1: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"F2: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"F3: %s\n"

	.no_dead_strip	_reserve_mc_sibling_devs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reserve_mc_sibling_devs
_reserve_mc_sibling_devs:               ; @reserve_mc_sibling_devs
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x2, [x0, #8]
	ldr	w0, [x2]
	bl	_pci_get_related_function
	str	x0, [x19, #16]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x2, [x19, #8]
	ldr	w0, [x2]
	mov	x1, x20
	bl	_pci_get_related_function
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_pci_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debugf1
	ldr	x0, [x19, #8]
	bl	_pci_name
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_debugf1
	ldr	x0, [x19]
	bl	_pci_name
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_debugf1
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _PCI_VENDOR_ID_AMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_VENDOR_ID_AMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #16]
	bl	_pci_dev_put
	str	xzr, [x19, #16]
Lloh11:
	adrp	x8, _PCI_VENDOR_ID_AMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_VENDOR_ID_AMD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
LBB0_5:
	bl	_amd64_err
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error address map device not found: vendor %x device 0x%x (broken BIOS?)\n"

	.comm	_PCI_VENDOR_ID_AMD,4,2          ; @PCI_VENDOR_ID_AMD
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"error F3 device not found: vendor %x device 0x%x (broken BIOS?)\n"

l_.str.2:                               ; @.str.2
	.asciz	"F1: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"F2: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"F3: %s\n"

	.no_dead_strip	_reserve_mc_sibling_devs
.subsections_via_symbols
