	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_populate_vddc_soc_levels
_vega10_populate_vddc_soc_levels:       ## @vega10_populate_vddc_soc_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	16(%rdi), %r14
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r14, %r15
	jmp	LBB0_3
LBB0_2:
	movq	8(%rdi), %rax
	movq	(%rax), %r15
LBB0_3:
	movq	(%r15), %r12
	testq	%r12, %r12
	je	LBB0_4
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_convert_to_vid
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_12
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	movq	_MAX_REGULAR_DPM_NUMBER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r12, %rcx
	jbe	LBB0_10
## %bb.6:
	movl	%ecx, %esi
	subl	%r12d, %esi
	movq	%r12, %rdx
	notq	%rdx
	addq	%rcx, %rdx
	andq	$3, %rsi
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movq	%rax, (%rdi,%r12,8)
	incq	%r12
	decq	%rsi
	jne	LBB0_7
LBB0_8:
	cmpq	$3, %rdx
	jb	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdx
	movq	%rax, (%rdx,%r12,8)
	movq	8(%r14), %rdx
	movq	%rax, 8(%rdx,%r12,8)
	movq	8(%r14), %rdx
	movq	%rax, 16(%rdx,%r12,8)
	movq	8(%r14), %rdx
	movq	%rax, 24(%rdx,%r12,8)
	addq	$4, %r12
	cmpq	%r12, %rcx
	jne	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_REGULAR_DPM_NUMBER,8,3     ## @MAX_REGULAR_DPM_NUMBER
	.no_dead_strip	_vega10_populate_vddc_soc_levels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_populate_vddc_soc_levels
_vega10_populate_vddc_soc_levels:       ; @vega10_populate_vddc_soc_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
	ldr	x19, [x0, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, x19
	ldr	x20, [x21]
	cbz	x20, LBB0_5
LBB0_2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x22, lsl #2]
	bl	_convert_to_vid
	ldr	x8, [x19, #8]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	cmp	x20, x22
	b.ne	LBB0_3
	b	LBB0_6
LBB0_4:
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	x20, [x21]
	cbnz	x20, LBB0_2
LBB0_5:
	mov	x0, #0
LBB0_6:
Lloh0:
	adrp	x8, _MAX_REGULAR_DPM_NUMBER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_REGULAR_DPM_NUMBER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	b.hs	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	str	x0, [x9, x20, lsl #3]
	add	x20, x20, #1
	cmp	x8, x20
	b.ne	LBB0_7
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_REGULAR_DPM_NUMBER,8,3     ; @MAX_REGULAR_DPM_NUMBER
	.no_dead_strip	_vega10_populate_vddc_soc_levels
.subsections_via_symbols
