	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_populate_all_graphic_levels
_vega10_populate_all_graphic_levels:    ## @vega10_populate_all_graphic_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	8(%rdi), %r15
	cmpq	$0, 16(%r15)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	leaq	(,%rbx,4), %rcx
	movl	(%rax,%rbx,4), %esi
	movq	64(%r15), %rdx
	addq	%rcx, %rdx
	addq	56(%r15), %rcx
	movq	%r14, %rdi
	callq	_vega10_populate_single_gfx_level
	testl	%eax, %eax
	jne	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	16(%r15), %rbx
	jb	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_NUM_GFXCLK_DPM_LEVELS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_9
## %bb.6:
	leaq	(,%rbx,4), %r12
	movq	%rbx, %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	-4(%rax,%rbx,4), %esi
	movq	64(%r15), %rdx
	addq	%r12, %rdx
	movq	56(%r15), %rcx
	addq	%r12, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vega10_populate_single_gfx_level
	testl	%eax, %eax
	jne	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	addq	$4, %r12
	movq	_NUM_GFXCLK_DPM_LEVELS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jb	LBB0_8
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, 48(%r15)
	xorl	%r13d, %r13d
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.11:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	leaq	(,%rbx,4), %rcx
	movl	(%rax,%rbx,4), %esi
	movq	40(%r15), %rdx
	addq	%rcx, %rdx
	addq	32(%r15), %rcx
	movq	%r14, %rdi
	callq	_vega10_populate_single_soc_level
	testl	%eax, %eax
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_12
	jmp	LBB0_14
LBB0_10:
	xorl	%ebx, %ebx
LBB0_14:
	movq	_NUM_SOCCLK_DPM_LEVELS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_19
## %bb.15:
	leaq	(,%rbx,4), %r12
	movq	%rbx, %r14
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	-4(%rax,%rbx,4), %esi
	movq	40(%r15), %rdx
	addq	%r12, %rdx
	movq	32(%r15), %rcx
	addq	%r12, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vega10_populate_single_soc_level
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%r14
	addq	$4, %r12
	movq	_NUM_SOCCLK_DPM_LEVELS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jb	LBB0_17
	jmp	LBB0_19
LBB0_18:
	movl	%eax, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_GFXCLK_DPM_LEVELS,8,3      ## @NUM_GFXCLK_DPM_LEVELS
	.comm	_NUM_SOCCLK_DPM_LEVELS,8,3      ## @NUM_SOCCLK_DPM_LEVELS
	.no_dead_strip	_vega10_populate_all_graphic_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_all_graphic_levels
_vega10_populate_all_graphic_levels:    ; @vega10_populate_all_graphic_levels
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldp	x21, x20, [x0]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	lsl	x9, x22, #2
	ldr	w1, [x8, x9]
	ldp	x10, x8, [x20, #56]
	add	x2, x8, x9
	add	x3, x10, x9
	mov	x0, x19
	bl	_vega10_populate_single_gfx_level
	cbnz	w0, LBB0_19
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	x8, [x20, #16]
	cmp	x22, x8
	b.lo	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x22, #0
LBB0_5:
Lloh0:
	adrp	x23, _NUM_GFXCLK_DPM_LEVELS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NUM_GFXCLK_DPM_LEVELS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x22, x8
	b.hs	LBB0_9
; %bb.6:
	sub	x24, x22, #1
	lsl	x25, x22, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x24, lsl #2]
	ldp	x9, x8, [x20, #56]
	add	x2, x8, x25
	add	x3, x9, x25
	mov	x0, x19
	bl	_vega10_populate_single_gfx_level
	cbnz	w0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldr	x8, [x23]
	add	x25, x25, #4
	cmp	x22, x8
	b.lo	LBB0_7
LBB0_9:
	ldr	w0, [x21]
	bl	_cpu_to_le16
	str	w0, [x20, #48]
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.10:
	mov	x21, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	lsl	x9, x21, #2
	ldr	w1, [x8, x9]
	ldp	x10, x8, [x20, #32]
	add	x2, x8, x9
	add	x3, x10, x9
	mov	x0, x19
	bl	_vega10_populate_single_soc_level
	cbnz	w0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_11
	b	LBB0_14
LBB0_13:
	mov	x21, #0
LBB0_14:
Lloh2:
	adrp	x22, _NUM_SOCCLK_DPM_LEVELS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NUM_SOCCLK_DPM_LEVELS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x21, x8
	b.hs	LBB0_18
; %bb.15:
	sub	x23, x21, #1
	lsl	x24, x21, #2
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x23, lsl #2]
	ldp	x9, x8, [x20, #32]
	add	x2, x8, x24
	add	x3, x9, x24
	mov	x0, x19
	bl	_vega10_populate_single_soc_level
	cbnz	w0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	ldr	x8, [x22]
	add	x24, x24, #4
	cmp	x21, x8
	b.lo	LBB0_16
LBB0_18:
	mov	w0, #0
LBB0_19:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_GFXCLK_DPM_LEVELS,8,3      ; @NUM_GFXCLK_DPM_LEVELS
	.comm	_NUM_SOCCLK_DPM_LEVELS,8,3      ; @NUM_SOCCLK_DPM_LEVELS
	.no_dead_strip	_vega10_populate_all_graphic_levels
.subsections_via_symbols
