	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcifront_rescan_root
_pcifront_rescan_root:                  ## @pcifront_rescan_root
	.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
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movl	%esi, %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_2
LBB0_3:
	movl	%edx, %r14d
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_dev_info
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_pci_find_bus
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movq	%rax, %rcx
	callq	_pcifront_scan_bus
	movl	%eax, %ebx
	movq	_pcifront_claim_resource@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_pci_walk_bus
	movq	%r15, %rdi
	callq	_pci_bus_add_devices
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcifront_scan_root             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCI Root in non-zero PCI Domain! domain=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Please compile with CONFIG_PCI_DOMAINS\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Rescanning PCI Frontend Bus %04x:%02x\n"

	.comm	_pcifront_claim_resource,4,2    ## @pcifront_claim_resource
	.no_dead_strip	_pcifront_rescan_root
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcifront_rescan_root
_pcifront_rescan_root:                  ; @pcifront_rescan_root
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x0, [x0]
	cbz	w1, LBB0_2
; %bb.1:
	str	x1, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x2
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #0
	mov	x3, x20
	bl	_dev_info
	mov	w0, #0
	mov	x1, x20
	bl	_pci_find_bus
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x3, x21
	bl	_pcifront_scan_bus
	mov	x20, x0
Lloh9:
	adrp	x8, _pcifront_claim_resource@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pcifront_claim_resource@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_pci_walk_bus
	mov	x0, x21
	bl	_pci_bus_add_devices
	mov	x0, x20
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_pcifront_scan_root
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCI Root in non-zero PCI Domain! domain=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Please compile with CONFIG_PCI_DOMAINS\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Rescanning PCI Frontend Bus %04x:%02x\n"

	.comm	_pcifront_claim_resource,4,2    ; @pcifront_claim_resource
	.no_dead_strip	_pcifront_rescan_root
.subsections_via_symbols
