	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_set_soft_freq_range        ## -- Begin function smu_set_soft_freq_range
	.p2align	4, 0x90
_smu_set_soft_freq_range:               ## @smu_set_soft_freq_range
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%edx, %edx
	jg	LBB0_3
## %bb.1:
	testl	%r13d, %r13d
	jg	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_3:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_smu_clk_dpm_is_enabled
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_smu_clk_get_index
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.7:
	movl	%r15d, %eax
	shll	$16, %eax
	movzwl	%r13w, %edx
	orl	%eax, %edx
	movq	_SMU_MSG_SetSoftMaxByFreq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smu_send_smc_msg_with_param
	testl	%eax, %eax
	jne	LBB0_11
LBB0_8:
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.9:
	shll	$16, %r15d
	movzwl	%r12w, %edx
	orl	%r15d, %edx
	movq	_SMU_MSG_SetSoftMinByFreq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smu_send_smc_msg_with_param
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	movl	%r15d, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMU_MSG_SetSoftMaxByFreq,4,2   ## @SMU_MSG_SetSoftMaxByFreq
	.comm	_SMU_MSG_SetSoftMinByFreq,4,2   ## @SMU_MSG_SetSoftMinByFreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_set_soft_freq_range        ; -- Begin function smu_set_soft_freq_range
	.p2align	2
_smu_set_soft_freq_range:               ; @smu_set_soft_freq_range
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	cmp	w2, #0
	b.gt	LBB0_3
; %bb.1:
	cmp	w21, #0
	b.gt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_3:
	mov	x0, x20
	mov	x1, x22
	bl	_smu_clk_dpm_is_enabled
	cbz	w0, LBB0_11
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_smu_clk_get_index
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.5:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.6:
	bfi	w21, w22, #16, #16
Lloh3:
	adrp	x8, _SMU_MSG_SetSoftMaxByFreq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU_MSG_SetSoftMaxByFreq@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_smu_send_smc_msg_with_param
	cbnz	w0, LBB0_11
LBB0_7:
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.8:
	bfi	w19, w22, #16, #16
Lloh6:
	adrp	x8, _SMU_MSG_SetSoftMinByFreq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMU_MSG_SetSoftMinByFreq@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_smu_send_smc_msg_with_param
	cbnz	w0, LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	x0, x22
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMU_MSG_SetSoftMaxByFreq,4,2   ; @SMU_MSG_SetSoftMaxByFreq
	.comm	_SMU_MSG_SetSoftMinByFreq,4,2   ; @SMU_MSG_SetSoftMinByFreq
.subsections_via_symbols
