	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcie_aspm_pm_state_change      ## -- Begin function pcie_aspm_pm_state_change
	.p2align	4, 0x90
_pcie_aspm_pm_state_change:             ## @pcie_aspm_pm_state_change
	.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_2
## %bb.1:
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	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
	movl	(%rbx), %edi
	callq	_pcie_update_aspm_capable
	movq	%rbx, %rdi
	callq	_pcie_config_aspm_path
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_up_read                        ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aspm_disabled,8,3              ## @aspm_disabled
	.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_pm_state_change      ; -- Begin function pcie_aspm_pm_state_change
	.p2align	2
_pcie_aspm_pm_state_change:             ; @pcie_aspm_pm_state_change
	.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.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
Lloh3:
	adrp	x20, _pci_bus_sem@GOTPAGE
Lloh4:
	ldr	x20, [x20, _pci_bus_sem@GOTPAGEOFF]
	mov	x0, x20
	bl	_down_read
Lloh5:
	adrp	x21, _aspm_lock@GOTPAGE
Lloh6:
	ldr	x21, [x21, _aspm_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x19]
	bl	_pcie_update_aspm_capable
	mov	x0, x19
	bl	_pcie_config_aspm_path
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_aspm_disabled,8,3              ; @aspm_disabled
	.comm	_pci_bus_sem,4,2                ; @pci_bus_sem
	.comm	_aspm_lock,4,2                  ; @aspm_lock
.subsections_via_symbols
