	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_scan_slot                  ## -- Begin function pci_scan_slot
	.p2align	4, 0x90
_pci_scan_slot:                         ## @pci_scan_slot
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_only_one_child
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	jle	LBB0_2
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_11
LBB0_2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pci_scan_single_device
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pci_dev_is_added
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_next_fn
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_next_fn
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r13), %esi
	movq	%r12, %rdi
	callq	_pci_scan_single_device
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_pci_dev_is_added
	cmpl	$1, %eax
	adcl	$0, %r14d
	movl	$1, (%rbx)
	jmp	LBB0_7
LBB0_8:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	callq	_pcie_aspm_init_link_state
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_scan_slot                  ; -- Begin function pci_scan_slot
	.p2align	2
_pci_scan_slot:                         ; @pci_scan_slot
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_only_one_child
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.1:
	cbnz	x0, LBB0_8
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_scan_single_device
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, x0
	bl	_pci_dev_is_added
	cmp	w0, #0
	cset	w21, eq
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_next_fn
	cbz	w0, LBB0_9
; %bb.4:
	mov	x22, x0
	mov	w24, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_next_fn
	mov	x22, x0
	cbz	w0, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w22, w20
	mov	x0, x19
	bl	_pci_scan_single_device
	mov	x23, x0
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_pci_dev_is_added
	cmp	w0, #0
	cinc	w21, w21, eq
	str	w24, [x23]
	b	LBB0_5
LBB0_8:
	mov	w21, #0
	b	LBB0_12
LBB0_9:
	ldr	x0, [x19]
	cbz	x0, LBB0_12
; %bb.10:
	cbz	w21, LBB0_12
; %bb.11:
	bl	_pcie_aspm_init_link_state
LBB0_12:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
