	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_populate_all_memory_levels
_vega10_populate_all_memory_levels:     ## @vega10_populate_all_memory_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
	pushq	%rax
	.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), %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), %r8
	movl	(%rax,%rbx,4), %esi
	movq	72(%r15), %rdx
	addq	%r8, %rdx
	movq	64(%r15), %rcx
	addq	%r8, %rcx
	addq	56(%r15), %r8
	movq	%r14, %rdi
	callq	_vega10_populate_single_memory_level
	testl	%eax, %eax
	jne	LBB0_10
## %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	_NUM_UCLK_DPM_LEVELS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_9
## %bb.6:
	leaq	(,%rbx,4), %r13
	movq	%rbx, %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	-4(%rax,%rbx,4), %esi
	movq	72(%r15), %rdx
	addq	%r13, %rdx
	movq	64(%r15), %rcx
	addq	%r13, %rcx
	movq	56(%r15), %r8
	addq	%r13, %r8
	movq	%r14, %rdi
	callq	_vega10_populate_single_memory_level
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	addq	$4, %r13
	movq	_NUM_UCLK_DPM_LEVELS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jb	LBB0_8
LBB0_9:
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	%rax, 48(%r15)
	movq	_HBM_MEMORY_CHANNEL_WIDTH@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movq	_channel_number@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movslq	(%rsi,%rax,4), %rax
	imulq	%rdx, %rax
	movq	%rax, 40(%r15)
	movq	%rcx, 32(%r15)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_UCLK_DPM_LEVELS,8,3        ## @NUM_UCLK_DPM_LEVELS
	.comm	_HBM_MEMORY_CHANNEL_WIDTH,4,2   ## @HBM_MEMORY_CHANNEL_WIDTH
	.comm	_channel_number,8,3             ## @channel_number
	.no_dead_strip	_vega10_populate_all_memory_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_memory_levels
_vega10_populate_all_memory_levels:     ; @vega10_populate_all_memory_levels
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	lsl	x9, x21, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x20, #72]
	add	x2, x8, x9
	ldp	x10, x8, [x20, #56]
	add	x3, x8, x9
	add	x4, x10, x9
	mov	x0, x19
	bl	_vega10_populate_single_memory_level
	cbnz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20, #16]
	cmp	x21, x8
	b.lo	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
Lloh0:
	adrp	x22, _NUM_UCLK_DPM_LEVELS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_UCLK_DPM_LEVELS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x21, x8
	b.hs	LBB0_9
; %bb.6:
	sub	x23, x21, #1
	lsl	x24, x21, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x23, lsl #2]
	ldr	x8, [x20, #72]
	add	x2, x8, x24
	ldp	x9, x8, [x20, #56]
	add	x3, x8, x24
	add	x4, x9, x24
	mov	x0, x19
	bl	_vega10_populate_single_memory_level
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldr	x8, [x22]
	add	x24, x24, #4
	cmp	x21, x8
	b.lo	LBB0_7
LBB0_9:
	mov	w0, #0
	ldp	x8, x9, [x20]
	str	x8, [x20, #48]
Lloh2:
	adrp	x10, _HBM_MEMORY_CHANNEL_WIDTH@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HBM_MEMORY_CHANNEL_WIDTH@GOTPAGEOFF]
Lloh4:
	ldrsw	x10, [x10]
Lloh5:
	adrp	x11, _channel_number@GOTPAGE
Lloh6:
	ldr	x11, [x11, _channel_number@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	ldrsw	x8, [x11, x8, lsl #2]
	mul	x8, x8, x10
	stp	x9, x8, [x20, #32]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_UCLK_DPM_LEVELS,8,3        ; @NUM_UCLK_DPM_LEVELS
	.comm	_HBM_MEMORY_CHANNEL_WIDTH,4,2   ; @HBM_MEMORY_CHANNEL_WIDTH
	.comm	_channel_number,8,3             ; @channel_number
	.no_dead_strip	_vega10_populate_all_memory_levels
.subsections_via_symbols
