	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_unfreeze_sclk_mclk_dpm
_ci_unfreeze_sclk_mclk_dpm:             ## @ci_unfreeze_sclk_mclk_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, %rbx
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$0, 8(%rbx)
	je	LBB0_2
LBB0_5:
	cmpl	$0, 4(%rbx)
	je	LBB0_6
LBB0_8:
	movl	$0, (%rbx)
	jmp	LBB0_9
LBB0_2:
	movq	_DPMTABLE_OD_UPDATE_SCLK@GOTPCREL(%rip), %rcx
	movq	_DPMTABLE_UPDATE_SCLK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.3:
	movq	_PPSMC_MSG_SCLKDPM_UnfreezeLevel@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
	je	LBB0_5
	jmp	LBB0_4
LBB0_6:
	movq	_DPMTABLE_OD_UPDATE_MCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:
	movq	_PPSMC_MSG_MCLKDPM_UnfreezeLevel@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
	je	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPMTABLE_OD_UPDATE_SCLK,4,2    ## @DPMTABLE_OD_UPDATE_SCLK
	.comm	_DPMTABLE_UPDATE_SCLK,4,2       ## @DPMTABLE_UPDATE_SCLK
	.comm	_PPSMC_MSG_SCLKDPM_UnfreezeLevel,4,2 ## @PPSMC_MSG_SCLKDPM_UnfreezeLevel
	.comm	_PPSMC_Result_OK,8,3            ## @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DPMTABLE_OD_UPDATE_MCLK,4,2    ## @DPMTABLE_OD_UPDATE_MCLK
	.comm	_PPSMC_MSG_MCLKDPM_UnfreezeLevel,4,2 ## @PPSMC_MSG_MCLKDPM_UnfreezeLevel
	.no_dead_strip	_ci_unfreeze_sclk_mclk_dpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_unfreeze_sclk_mclk_dpm
_ci_unfreeze_sclk_mclk_dpm:             ; @ci_unfreeze_sclk_mclk_dpm
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_ci_get_pi
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0, #8]
	cbz	w9, LBB0_5
LBB0_2:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
LBB0_3:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_10
LBB0_4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
Lloh0:
	adrp	x9, _DPMTABLE_OD_UPDATE_SCLK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DPMTABLE_OD_UPDATE_SCLK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _DPMTABLE_UPDATE_SCLK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DPMTABLE_UPDATE_SCLK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.6:
Lloh6:
	adrp	x8, _PPSMC_MSG_SCLKDPM_UnfreezeLevel@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPSMC_MSG_SCLKDPM_UnfreezeLevel@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ci_send_msg_to_smc
Lloh9:
	adrp	x8, _PPSMC_Result_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PPSMC_Result_OK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _DPMTABLE_OD_UPDATE_MCLK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DPMTABLE_OD_UPDATE_MCLK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.8:
Lloh15:
	adrp	x8, _PPSMC_MSG_MCLKDPM_UnfreezeLevel@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PPSMC_MSG_MCLKDPM_UnfreezeLevel@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ci_send_msg_to_smc
Lloh18:
	adrp	x8, _PPSMC_Result_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PPSMC_Result_OK@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_9:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DPMTABLE_OD_UPDATE_SCLK,4,2    ; @DPMTABLE_OD_UPDATE_SCLK
	.comm	_DPMTABLE_UPDATE_SCLK,4,2       ; @DPMTABLE_UPDATE_SCLK
	.comm	_PPSMC_MSG_SCLKDPM_UnfreezeLevel,4,2 ; @PPSMC_MSG_SCLKDPM_UnfreezeLevel
	.comm	_PPSMC_Result_OK,8,3            ; @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DPMTABLE_OD_UPDATE_MCLK,4,2    ; @DPMTABLE_OD_UPDATE_MCLK
	.comm	_PPSMC_MSG_MCLKDPM_UnfreezeLevel,4,2 ; @PPSMC_MSG_MCLKDPM_UnfreezeLevel
	.no_dead_strip	_ci_unfreeze_sclk_mclk_dpm
.subsections_via_symbols
