	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_get_current_clk_freq
_smu_v11_0_get_current_clk_freq:        ## @smu_v11_0_get_current_clk_freq
	.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	$0, -44(%rbp)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	%esi, %ebx
	movq	_SMU_CLK_COUNT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_2
## %bb.3:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	%ebx, %esi
	callq	_smu_clk_get_index
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movl	%eax, %r12d
	movq	_SMU_MSG_GetDpmClockFreq@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_smu_msg_get_index
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movl	(%r13), %esi
	shll	$16, %r12d
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_smu_send_smc_msg_with_param
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_smu_read_smc_arg
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_smu_get_current_clk_freq_by_table
LBB0_9:
	imull	$100, -44(%rbp), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_CLK_COUNT,4,2              ## @SMU_CLK_COUNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMU_MSG_GetDpmClockFreq,4,2    ## @SMU_MSG_GetDpmClockFreq
	.no_dead_strip	_smu_v11_0_get_current_clk_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_get_current_clk_freq
_smu_v11_0_get_current_clk_freq:        ; @smu_v11_0_get_current_clk_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	str	wzr, [sp, #12]
	cbz	x2, LBB0_6
; %bb.1:
	mov	x21, x1
Lloh0:
	adrp	x8, _SMU_CLK_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_CLK_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ls	LBB0_6
; %bb.2:
	mov	x19, x2
	mov	x20, x0
	mov	x1, x21
	bl	_smu_clk_get_index
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh3:
	adrp	x23, _SMU_MSG_GetDpmClockFreq@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SMU_MSG_GetDpmClockFreq@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_smu_msg_get_index
	tbnz	x0, #63, LBB0_8
; %bb.4:
	ldr	w1, [x23]
	lsl	w2, w22, #16
	mov	x0, x20
	bl	_smu_send_smc_msg_with_param
	cbnz	w0, LBB0_7
; %bb.5:
	add	x1, sp, #12
	mov	x0, x20
	bl	_smu_read_smc_arg
	cbnz	w0, LBB0_7
	b	LBB0_9
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_smu_get_current_clk_freq_by_table
LBB0_9:
	ldr	w8, [sp, #12]
	mov	w9, #100
	mul	w8, w8, w9
	str	w8, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_CLK_COUNT,4,2              ; @SMU_CLK_COUNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMU_MSG_GetDpmClockFreq,4,2    ; @SMU_MSG_GetDpmClockFreq
	.no_dead_strip	_smu_v11_0_get_current_clk_freq
.subsections_via_symbols
