	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_enable_thermal_based_sclk_dpm
_ci_enable_thermal_based_sclk_dpm:      ## @ci_enable_thermal_based_sclk_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_ci_get_pi
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %r15
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.4:
	movq	_PPSMC_MSG_DISABLE_THERMAL_DPM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	(%r15), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_PPSMC_MSG_ENABLE_THERMAL_DPM@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ci_send_msg_to_smc
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	cmpq	(%r15), %rax
	cmovel	%esi, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_Result_OK,8,3            ## @PPSMC_Result_OK
	.comm	_PPSMC_MSG_ENABLE_THERMAL_DPM,4,2 ## @PPSMC_MSG_ENABLE_THERMAL_DPM
	.comm	_PPSMC_MSG_DISABLE_THERMAL_DPM,4,2 ## @PPSMC_MSG_DISABLE_THERMAL_DPM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ci_enable_thermal_based_sclk_dpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_enable_thermal_based_sclk_dpm
_ci_enable_thermal_based_sclk_dpm:      ; @ci_enable_thermal_based_sclk_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	x20, x1
	mov	x19, x0
	bl	_ci_get_pi
Lloh0:
	adrp	x21, _PPSMC_Result_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PPSMC_Result_OK@GOTPAGEOFF]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _PPSMC_MSG_DISABLE_THERMAL_DPM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PPSMC_MSG_DISABLE_THERMAL_DPM@GOTPAGEOFF]
Lloh4:
	adrp	x9, _PPSMC_MSG_ENABLE_THERMAL_DPM@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PPSMC_MSG_ENABLE_THERMAL_DPM@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ci_send_msg_to_smc
	b	LBB0_3
LBB0_2:
	ldr	x0, [x21]
LBB0_3:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _EINVAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x0, x8
	csneg	w0, wzr, w9, eq
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_Result_OK,8,3            ; @PPSMC_Result_OK
	.comm	_PPSMC_MSG_ENABLE_THERMAL_DPM,4,2 ; @PPSMC_MSG_ENABLE_THERMAL_DPM
	.comm	_PPSMC_MSG_DISABLE_THERMAL_DPM,4,2 ; @PPSMC_MSG_DISABLE_THERMAL_DPM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ci_enable_thermal_based_sclk_dpm
.subsections_via_symbols
