	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_stop_dpm
_ci_stop_dpm:                           ## @ci_stop_dpm
	.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	%rdi, %r15
	callq	_ci_get_pi
	movq	%rax, %r14
	movq	_GENERAL_PWRMGT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32_SMC
	movq	_GLOBAL_PWRMGT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_WREG32_SMC
	movq	_SCLK_PWRMGT_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32_SMC
	movq	_DYNAMIC_PM_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_WREG32_SMC
	cmpl	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_PPSMC_MSG_PCIeDPM_Disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ci_send_msg_to_smc
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ci_enable_sclk_mclk_dpm
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_PPSMC_MSG_Voltage_Cntl_Disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ci_send_msg_to_smc
	movq	%rax, %rcx
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %rdx
	movl	$0, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GENERAL_PWRMGT,4,2             ## @GENERAL_PWRMGT
	.comm	_GLOBAL_PWRMGT_EN,4,2           ## @GLOBAL_PWRMGT_EN
	.comm	_SCLK_PWRMGT_CNTL,4,2           ## @SCLK_PWRMGT_CNTL
	.comm	_DYNAMIC_PM_EN,4,2              ## @DYNAMIC_PM_EN
	.comm	_PPSMC_MSG_PCIeDPM_Disable,4,2  ## @PPSMC_MSG_PCIeDPM_Disable
	.comm	_PPSMC_Result_OK,8,3            ## @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PPSMC_MSG_Voltage_Cntl_Disable,4,2 ## @PPSMC_MSG_Voltage_Cntl_Disable
	.no_dead_strip	_ci_stop_dpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_stop_dpm
_ci_stop_dpm:                           ; @ci_stop_dpm
	.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
	mov	x19, x0
	bl	_ci_get_pi
	mov	x20, x0
Lloh0:
	adrp	x21, _GENERAL_PWRMGT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GENERAL_PWRMGT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32_SMC
Lloh2:
	adrp	x8, _GLOBAL_PWRMGT_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GLOBAL_PWRMGT_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x21]
	bl	_WREG32_SMC
Lloh5:
	adrp	x21, _SCLK_PWRMGT_CNTL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SCLK_PWRMGT_CNTL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32_SMC
Lloh7:
	adrp	x8, _DYNAMIC_PM_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DYNAMIC_PM_EN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x21]
	bl	_WREG32_SMC
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _PPSMC_MSG_PCIeDPM_Disable@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PPSMC_MSG_PCIeDPM_Disable@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ci_send_msg_to_smc
Lloh13:
	adrp	x8, _PPSMC_Result_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PPSMC_Result_OK@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_ci_enable_sclk_mclk_dpm
	cbnz	w0, LBB0_6
; %bb.3:
Lloh16:
	adrp	x8, _PPSMC_MSG_Voltage_Cntl_Disable@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PPSMC_MSG_Voltage_Cntl_Disable@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ci_send_msg_to_smc
Lloh19:
	adrp	x8, _PPSMC_Result_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PPSMC_Result_OK@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GENERAL_PWRMGT,4,2             ; @GENERAL_PWRMGT
	.comm	_GLOBAL_PWRMGT_EN,4,2           ; @GLOBAL_PWRMGT_EN
	.comm	_SCLK_PWRMGT_CNTL,4,2           ; @SCLK_PWRMGT_CNTL
	.comm	_DYNAMIC_PM_EN,4,2              ; @DYNAMIC_PM_EN
	.comm	_PPSMC_MSG_PCIeDPM_Disable,4,2  ; @PPSMC_MSG_PCIeDPM_Disable
	.comm	_PPSMC_Result_OK,8,3            ; @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PPSMC_MSG_Voltage_Cntl_Disable,4,2 ; @PPSMC_MSG_Voltage_Cntl_Disable
	.no_dead_strip	_ci_stop_dpm
.subsections_via_symbols
