	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_start_dpm
_ci_start_dpm:                          ## @ci_start_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_WREG32_SMC
	movq	_SCLK_PWRMGT_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32_SMC
	movq	_DYNAMIC_PM_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_WREG32_SMC
	movq	_SMU7_SoftRegisters@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VoltageChangeTimeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_ci_write_smc_soft_register
	movq	_BIF_LNCNT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RESET_LNCNT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_WREG32_P
	movq	_PPSMC_MSG_Voltage_Cntl_Enable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ci_send_msg_to_smc
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ci_enable_sclk_mclk_dpm
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	jne	LBB0_7
## %bb.4:
	movq	_PPSMC_MSG_PCIeDPM_Enable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ci_send_msg_to_smc
	cmpq	(%r12), %rax
	je	LBB0_7
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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	_SMU7_SoftRegisters,4,2         ## @SMU7_SoftRegisters
	.comm	_VoltageChangeTimeout,4,2       ## @VoltageChangeTimeout
	.comm	_BIF_LNCNT_RESET,4,2            ## @BIF_LNCNT_RESET
	.comm	_RESET_LNCNT_EN,4,2             ## @RESET_LNCNT_EN
	.comm	_PPSMC_MSG_Voltage_Cntl_Enable,4,2 ## @PPSMC_MSG_Voltage_Cntl_Enable
	.comm	_PPSMC_Result_OK,8,3            ## @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PPSMC_MSG_PCIeDPM_Enable,4,2   ## @PPSMC_MSG_PCIeDPM_Enable
	.no_dead_strip	_ci_start_dpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_start_dpm
_ci_start_dpm:                          ; @ci_start_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]
	orr	w1, w8, w0
	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]
	orr	w1, w8, w0
	ldr	w0, [x21]
	bl	_WREG32_SMC
Lloh10:
	adrp	x8, _SMU7_SoftRegisters@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMU7_SoftRegisters@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _VoltageChangeTimeout@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VoltageChangeTimeout@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_offsetof
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4096
	bl	_ci_write_smc_soft_register
Lloh16:
	adrp	x8, _BIF_LNCNT_RESET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BIF_LNCNT_RESET@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _RESET_LNCNT_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RESET_LNCNT_EN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
Lloh22:
	adrp	x8, _PPSMC_MSG_Voltage_Cntl_Enable@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PPSMC_MSG_Voltage_Cntl_Enable@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ci_send_msg_to_smc
Lloh25:
	adrp	x21, _PPSMC_Result_OK@GOTPAGE
Lloh26:
	ldr	x21, [x21, _PPSMC_Result_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_ci_enable_sclk_mclk_dpm
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh27:
	adrp	x8, _PPSMC_MSG_PCIeDPM_Enable@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PPSMC_MSG_PCIeDPM_Enable@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ci_send_msg_to_smc
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	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 AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.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	_SMU7_SoftRegisters,4,2         ; @SMU7_SoftRegisters
	.comm	_VoltageChangeTimeout,4,2       ; @VoltageChangeTimeout
	.comm	_BIF_LNCNT_RESET,4,2            ; @BIF_LNCNT_RESET
	.comm	_RESET_LNCNT_EN,4,2             ; @RESET_LNCNT_EN
	.comm	_PPSMC_MSG_Voltage_Cntl_Enable,4,2 ; @PPSMC_MSG_Voltage_Cntl_Enable
	.comm	_PPSMC_Result_OK,8,3            ; @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PPSMC_MSG_PCIeDPM_Enable,4,2   ; @PPSMC_MSG_PCIeDPM_Enable
	.no_dead_strip	_ci_start_dpm
.subsections_via_symbols
