	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu8_smu_construct_toc_for_bootup
_smu8_smu_construct_toc_for_bootup:     ## @smu8_smu_construct_toc_for_bootup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rax)
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_smu8_smu_populate_single_ucode_load_task
	movq	(%rbx), %rax
	movq	_CHIP_STONEY@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.1:
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smu8_smu_populate_single_ucode_load_task
LBB0_2:
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_CE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smu8_smu_populate_single_ucode_load_task
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_PFP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smu8_smu_populate_single_ucode_load_task
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_ME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smu8_smu_populate_single_ucode_load_task
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smu8_smu_populate_single_ucode_load_task
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	je	LBB0_4
## %bb.3:
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smu8_smu_populate_single_ucode_load_task
LBB0_4:
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_smu8_smu_populate_single_ucode_load_task
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA0,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA0
	.comm	_CHIP_STONEY,8,3                ## @CHIP_STONEY
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA1,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA1
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_CE,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_CP_CE
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_PFP,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_CP_PFP
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_ME,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_CP_ME
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT1,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT1
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT2,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT2
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_G,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_G
	.no_dead_strip	_smu8_smu_construct_toc_for_bootup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu8_smu_construct_toc_for_bootup
_smu8_smu_construct_toc_for_bootup:     ; @smu8_smu_construct_toc_for_bootup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	str	w9, [x8, #4]
Lloh0:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
	ldr	x8, [x19]
Lloh3:
	adrp	x20, _CHIP_STONEY@GOTPAGE
Lloh4:
	ldr	x20, [x20, _CHIP_STONEY@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
LBB0_2:
Lloh8:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_CE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_CE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
Lloh11:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_PFP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_PFP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
Lloh14:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_ME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_ME@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
Lloh17:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh20:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
LBB0_4:
Lloh23:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_G@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_G@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_smu8_smu_populate_single_ucode_load_task
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA0,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA0
	.comm	_CHIP_STONEY,8,3                ; @CHIP_STONEY
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA1,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_SDMA1
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_CE,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_CP_CE
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_PFP,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_CP_PFP
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_ME,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_CP_ME
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT1,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT1
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT2,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT2
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_G,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_G
	.no_dead_strip	_smu8_smu_construct_toc_for_bootup
.subsections_via_symbols
