	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_populate_smc_link_levels
_vega10_populate_smc_link_levels:       ## @vega10_populate_smc_link_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), %r12
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%rbx,4), %rdx
	movq	24(%r12), %rax
	movq	48(%r12), %rcx
	movl	(%rax,%rbx,4), %eax
	movl	%eax, (%rcx,%rbx,4)
	movq	16(%r12), %rax
	movq	40(%r12), %rcx
	movl	(%rax,%rbx,4), %eax
	movl	%eax, (%rcx,%rbx,4)
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	addq	32(%r12), %rdx
	movq	%r14, %rdi
	callq	_vega10_populate_single_lclk_level
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_3
## %bb.7:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %r15d
	xorl	%ebx, %ebx
LBB0_8:
	movq	_NUM_LINK_LEVELS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_14
## %bb.9:
	movq	%rbx, %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	48(%r12), %rcx
	movl	-4(%rax,%rbx,4), %eax
	leaq	(,%r13,4), %rdx
	movl	%eax, (%rcx,%r13,4)
	movq	16(%r12), %rax
	movq	40(%r12), %rcx
	movl	-4(%rax,%rbx,4), %eax
	movl	%eax, (%rcx,%r13,4)
	movq	8(%r12), %rax
	movl	-4(%rax,%rbx,4), %esi
	addq	32(%r12), %rdx
	movq	%r14, %rdi
	callq	_vega10_populate_single_lclk_level
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	movq	_NUM_LINK_LEVELS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jb	LBB0_10
## %bb.13:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_4:
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_11:
	movl	%eax, %r15d
	movq	%r13, %rbx
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_info
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Populate LClock Level %d Failed!\n"

	.comm	_NUM_LINK_LEVELS,8,3            ## @NUM_LINK_LEVELS
	.no_dead_strip	_vega10_populate_smc_link_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_smc_link_levels
_vega10_populate_smc_link_levels:       ; @vega10_populate_smc_link_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	x20, x0
	ldr	x22, [x0]
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x19, #2
	ldp	x9, x10, [x22, #24]
	ldr	w9, [x9, x8]
	ldp	x12, x11, [x22, #40]
	str	w9, [x11, x8]
	ldp	x11, x9, [x22, #8]
	ldr	w9, [x9, x8]
	str	w9, [x12, x8]
	ldr	w1, [x11, x8]
	add	x2, x10, x8
	mov	x0, x20
	bl	_vega10_populate_single_lclk_level
	cbnz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	ldr	x8, [x22]
	cmp	x19, x8
	b.lo	LBB0_2
; %bb.4:
	mov	w21, #0
	b	LBB0_6
LBB0_5:
	mov	x19, #0
	mov	w21, #-1
LBB0_6:
Lloh0:
	adrp	x23, _NUM_LINK_LEVELS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NUM_LINK_LEVELS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x19, x8
	b.hs	LBB0_12
; %bb.7:
	sub	x8, x19, #1
	lsl	x24, x8, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x22, #24]
	ldr	w8, [x8, x24]
	lsl	x10, x19, #2
	ldp	x12, x11, [x22, #40]
	str	w8, [x11, x10]
	ldp	x11, x8, [x22, #8]
	ldr	w8, [x8, x24]
	str	w8, [x12, x10]
	ldr	w1, [x11, x24]
	add	x2, x9, x10
	mov	x0, x20
	bl	_vega10_populate_single_lclk_level
	cbnz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x19, x19, #1
	ldr	x8, [x23]
	cmp	x19, x8
	b.lo	LBB0_8
; %bb.10:
	mov	w21, #0
	b	LBB0_12
LBB0_11:
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_info
LBB0_12:
	mov	x0, x21
	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 AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Populate LClock Level %d Failed!\n"

	.comm	_NUM_LINK_LEVELS,8,3            ; @NUM_LINK_LEVELS
	.no_dead_strip	_vega10_populate_smc_link_levels
.subsections_via_symbols
