	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcie_aspm_exit_link_state      ## -- Begin function pcie_aspm_exit_link_state
	.p2align	4, 0x90
_pcie_aspm_exit_link_state:             ## @pcie_aspm_exit_link_state
	.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
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.2:
	movq	_pci_bus_sem@GOTPCREL(%rip), %rdi
	callq	_down_read
	movq	_aspm_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rbx
	movq	8(%rbx), %r15
	movq	16(%rbx), %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pcie_config_aspm_link
	movq	%rbx, %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_free_link_state
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_pcie_update_aspm_capable
	movq	%r15, %rdi
	callq	_pcie_config_aspm_path
LBB0_5:
	movq	_aspm_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_pci_bus_sem@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_up_read                        ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_bus_sem,4,2                ## @pci_bus_sem
	.comm	_aspm_lock,4,2                  ## @aspm_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcie_aspm_exit_link_state      ; -- Begin function pcie_aspm_exit_link_state
	.p2align	2
_pcie_aspm_exit_link_state:             ; @pcie_aspm_exit_link_state
	.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
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	cbz	x19, LBB0_6
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x0, _pci_bus_sem@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pci_bus_sem@GOTPAGEOFF]
	bl	_down_read
Lloh2:
	adrp	x0, _aspm_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _aspm_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x0, [x19, #8]
	bl	_list_empty
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x21, [x19]
	ldp	x19, x20, [x21, #8]
	mov	x0, x21
	mov	w1, #0
	bl	_pcie_config_aspm_link
	mov	x0, x21
	bl	_list_del
	mov	x0, x21
	bl	_free_link_state
	cbz	x19, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_pcie_update_aspm_capable
	mov	x0, x19
	bl	_pcie_config_aspm_path
LBB0_5:
Lloh4:
	adrp	x0, _aspm_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _aspm_lock@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh6:
	adrp	x0, _pci_bus_sem@GOTPAGE
Lloh7:
	ldr	x0, [x0, _pci_bus_sem@GOTPAGEOFF]
	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	_up_read
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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_bus_sem,4,2                ; @pci_bus_sem
	.comm	_aspm_lock,4,2                  ; @aspm_lock
.subsections_via_symbols
