	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_bus_insert_busn_res        ## -- Begin function pci_bus_insert_busn_res
	.p2align	4, 0x90
_pci_bus_insert_busn_res:               ## @pci_bus_insert_busn_res
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movl	%esi, 16(%rdi)
	movl	%edx, 20(%rdi)
	movq	_IORESOURCE_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rdi)
	callq	_pci_is_root_bus
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_pci_domain_nr
	movl	%eax, %edi
	callq	_get_pci_domain_busn_res
	movq	%rax, %r15
	movq	_IORESOURCE_PCI_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%rbx)
	jmp	LBB0_3
LBB0_1:
	movq	8(%rbx), %r15
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_request_resource_conflict
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_pci_is_root_bus
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movl	8(%r12), %r9d
	movq	%r12, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %r8
	callq	_dev_info
LBB0_5:
	xorl	%eax, %eax
	testq	%r12, %r12
	sete	%al
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_BUS,4,2             ## @IORESOURCE_BUS
	.comm	_IORESOURCE_PCI_FIXED,4,2       ## @IORESOURCE_PCI_FIXED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"busn_res: can not insert %pR under %s%pR (conflicts with %s %pR)\n"

L_.str.1:                               ## @.str.1
	.asciz	"domain "

L_.str.2:                               ## @.str.2
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_bus_insert_busn_res        ; -- Begin function pci_bus_insert_busn_res
	.p2align	2
_pci_bus_insert_busn_res:               ; @pci_bus_insert_busn_res
	.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, x0
	mov	x19, x0
	str	w1, [x19, #16]!
	str	w2, [x0, #20]
Lloh0:
	adrp	x8, _IORESOURCE_BUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_BUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #28]
	bl	_pci_is_root_bus
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_pci_domain_nr
	bl	_get_pci_domain_busn_res
	mov	x21, x0
Lloh3:
	adrp	x8, _IORESOURCE_PCI_FIXED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_PCI_FIXED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #28]
	orr	w8, w9, w8
	str	w8, [x20, #28]
	b	LBB0_3
LBB0_2:
	ldr	x21, [x20, #8]
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	bl	_request_resource_conflict
	mov	x22, x0
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_pci_is_root_bus
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x3, x9, x8, eq
	ldr	w5, [x22, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x4, x21
	mov	x6, x22
	bl	_dev_info
LBB0_5:
	cmp	x22, #0
	cset	w0, eq
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_BUS,4,2             ; @IORESOURCE_BUS
	.comm	_IORESOURCE_PCI_FIXED,4,2       ; @IORESOURCE_PCI_FIXED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"busn_res: can not insert %pR under %s%pR (conflicts with %s %pR)\n"

l_.str.1:                               ; @.str.1
	.asciz	"domain "

l_.str.2:                               ; @.str.2
	.space	1

.subsections_via_symbols
