	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega20_set_single_dpm_table
_vega20_set_single_dpm_table:           ## @vega20_set_single_dpm_table
	.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	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movq	_SMU_MSG_GetDpmFreqByIndex@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$16, %r15d
	leal	255(%r15), %edx
	callq	_smu_send_smc_msg_with_param
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_13
LBB0_2:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_smu_read_smc_arg
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	%eax, (%r14)
	jle	LBB0_12
## %bb.6:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SMU_MSG_GetDpmFreqByIndex@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	orl	%r13d, %edx
	movq	%r12, %rdi
	callq	_smu_send_smc_msg_with_param
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	_smu_read_smc_arg
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%r13,8)
	movl	$1, 4(%rcx,%r13,8)
	incq	%r13
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r13
	jl	LBB0_7
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
LBB0_4:
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_MSG_GetDpmFreqByIndex,4,2  ## @SMU_MSG_GetDpmFreqByIndex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[GetNumOfDpmLevel] failed to get dpm levels!"

L_.str.1:                               ## @.str.1
	.asciz	"[GetNumOfDpmLevel] number of clk levels is invalid!"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"[GetDpmFreqByIndex] failed to get dpm freq by index!"

L_.str.3:                               ## @.str.3
	.asciz	"[GetDpmFreqByIndex] clk value is invalid!"

	.no_dead_strip	_vega20_set_single_dpm_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega20_set_single_dpm_table
_vega20_set_single_dpm_table:           ; @vega20_set_single_dpm_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x23, _SMU_MSG_GetDpmFreqByIndex@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SMU_MSG_GetDpmFreqByIndex@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #255
	bfi	w2, w22, #16, #16
	bl	_smu_send_smc_msg_with_param
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_2:
	add	x1, sp, #12
	mov	x0, x20
	bl	_smu_read_smc_arg
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.3:
	str	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x24, #0
	mov	x25, #0
	lsl	w22, w22, #16
	mov	w26, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	orr	w2, w22, w25
	mov	x0, x20
	bl	_smu_send_smc_msg_with_param
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_smu_read_smc_arg
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #8]
	add	x9, x9, x24
	stp	w8, w26, [x9]
	add	x25, x25, #1
	ldrsw	x8, [sp, #12]
	add	x24, x24, #8
	cmp	x25, x8
	b.lt	LBB0_5
LBB0_8:
	mov	w21, #0
	b	LBB0_13
LBB0_9:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x21, x0
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_12:
	bl	_pr_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_MSG_GetDpmFreqByIndex,4,2  ; @SMU_MSG_GetDpmFreqByIndex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[GetNumOfDpmLevel] failed to get dpm levels!"

l_.str.1:                               ; @.str.1
	.asciz	"[GetNumOfDpmLevel] number of clk levels is invalid!"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"[GetDpmFreqByIndex] failed to get dpm freq by index!"

l_.str.3:                               ; @.str.3
	.asciz	"[GetDpmFreqByIndex] clk value is invalid!"

	.no_dead_strip	_vega20_set_single_dpm_table
.subsections_via_symbols
