	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcie_aspm_powersave_config_link ## -- Begin function pcie_aspm_powersave_config_link
	.p2align	4, 0x90
_pcie_aspm_powersave_config_link:       ## @pcie_aspm_powersave_config_link
	.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	_aspm_disabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	movq	_aspm_policy@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_POLICY_POWERSAVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_POLICY_POWER_SUPERSAVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_pci_bus_sem@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_down_read
	movq	_aspm_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_pcie_config_aspm_path
	movq	%rbx, %rdi
	callq	_policy_to_clkpm_state
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pcie_set_clkpm
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_up_read                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_aspm_disabled,8,3              ## @aspm_disabled
	.comm	_aspm_policy,8,3                ## @aspm_policy
	.comm	_POLICY_POWERSAVE,8,3           ## @POLICY_POWERSAVE
	.comm	_POLICY_POWER_SUPERSAVE,8,3     ## @POLICY_POWER_SUPERSAVE
	.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_powersave_config_link ; -- Begin function pcie_aspm_powersave_config_link
	.p2align	2
_pcie_aspm_powersave_config_link:       ; @pcie_aspm_powersave_config_link
	.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	x19, [x0]
Lloh0:
	adrp	x8, _aspm_disabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aspm_disabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	x19, #0, #4, eq
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _aspm_policy@GOTPAGE
Lloh4:
	ldr	x8, [x8, _aspm_policy@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _POLICY_POWERSAVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POLICY_POWERSAVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _POLICY_POWER_SUPERSAVE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _POLICY_POWER_SUPERSAVE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x20, _pci_bus_sem@GOTPAGE
Lloh13:
	ldr	x20, [x20, _pci_bus_sem@GOTPAGEOFF]
	mov	x0, x20
	bl	_down_read
Lloh14:
	adrp	x21, _aspm_lock@GOTPAGE
Lloh15:
	ldr	x21, [x21, _aspm_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_pcie_config_aspm_path
	mov	x0, x19
	bl	_policy_to_clkpm_state
	mov	x1, x0
	mov	x0, x19
	bl	_pcie_set_clkpm
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x20
	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_3:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_aspm_disabled,8,3              ; @aspm_disabled
	.comm	_aspm_policy,8,3                ; @aspm_policy
	.comm	_POLICY_POWERSAVE,8,3           ; @POLICY_POWERSAVE
	.comm	_POLICY_POWER_SUPERSAVE,8,3     ; @POLICY_POWER_SUPERSAVE
	.comm	_pci_bus_sem,4,2                ; @pci_bus_sem
	.comm	_aspm_lock,4,2                  ; @aspm_lock
.subsections_via_symbols
