	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega20_unforce_dpm_levels
_vega20_unforce_dpm_levels:             ## @vega20_unforce_dpm_levels
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_vega20_find_lowest_dpm_level
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_vega20_find_highest_dpm_level
	movq	16(%rbx), %rcx
	movl	(%rcx,%r12,4), %edx
	movl	%edx, 28(%rbx)
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 24(%rbx)
	leaq	32(%rbx), %r15
	movq	%r15, %rdi
	callq	_vega20_find_lowest_dpm_level
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_vega20_find_highest_dpm_level
	movq	16(%rbx), %rcx
	movl	(%rcx,%r12,4), %edx
	movl	%edx, 44(%rbx)
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 40(%rbx)
	movq	%rbx, %rdi
	callq	_vega20_find_lowest_dpm_level
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_vega20_find_highest_dpm_level
	movq	(%rbx), %rcx
	movl	(%rcx,%r15,4), %edx
	movl	%edx, 12(%rbx)
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 8(%rbx)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_vega20_upload_dpm_level
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$-1, %edx
	callq	_vega20_upload_dpm_level
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movl	%eax, %ebx
	callq	_pr_err
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to upload DPM Bootup Levels!"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to upload DPM Max Levels!"

	.no_dead_strip	_vega20_unforce_dpm_levels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega20_unforce_dpm_levels
_vega20_unforce_dpm_levels:             ; @vega20_unforce_dpm_levels
	.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	x19, x0
	ldr	x20, [x0]
	add	x21, x20, #16
	mov	x0, x21
	bl	_vega20_find_lowest_dpm_level
	mov	x22, x0
	mov	x0, x21
	bl	_vega20_find_highest_dpm_level
	ldr	x8, [x20, #16]
	ldr	w9, [x8, x22, lsl #2]
	ldr	w8, [x8, x0, lsl #2]
	stp	w8, w9, [x20, #24]
	add	x21, x20, #32
	mov	x0, x21
	bl	_vega20_find_lowest_dpm_level
	mov	x22, x0
	mov	x0, x21
	bl	_vega20_find_highest_dpm_level
	ldr	x8, [x20, #16]
	ldr	w9, [x8, x22, lsl #2]
	ldr	w8, [x8, x0, lsl #2]
	stp	w8, w9, [x20, #40]
	mov	x0, x20
	bl	_vega20_find_lowest_dpm_level
	mov	x21, x0
	mov	x0, x20
	bl	_vega20_find_highest_dpm_level
	ldr	x8, [x20]
	ldr	w9, [x8, x21, lsl #2]
	ldr	w8, [x8, x0, lsl #2]
	stp	w8, w9, [x20, #8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #-1
	bl	_vega20_upload_dpm_level
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #-1
	bl	_vega20_upload_dpm_level
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_pr_err
LBB0_5:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to upload DPM Bootup Levels!"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to upload DPM Max Levels!"

	.no_dead_strip	_vega20_unforce_dpm_levels
.subsections_via_symbols
