	.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_vddgfx_exit
_smu8_smu_construct_toc_for_vddgfx_exit: ## @smu8_smu_construct_toc_for_vddgfx_exit
	.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
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	_JOB_GFX_RESTORE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, (%rax,%rdx,8)
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_CE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	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), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smu8_smu_populate_single_ucode_load_task
	movq	(%rbx), %rax
	movq	_CHIP_STONEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT2@GOTPCREL(%rip), %r14
LBB0_2:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_smu8_smu_populate_single_ucode_load_task
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_G@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_RLC_SCRATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TASK_TYPE_UCODE_LOAD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_smu8_smu_populate_single_scratch_task
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_ARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_smu8_smu_populate_single_scratch_task
	movq	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_DRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_smu8_smu_populate_single_scratch_task
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JOB_GFX_RESTORE,8,3            ## @JOB_GFX_RESTORE
	.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	_CHIP_STONEY,8,3                ## @CHIP_STONEY
	.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
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SCRATCH,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SCRATCH
	.comm	_TASK_TYPE_UCODE_LOAD,4,2       ## @TASK_TYPE_UCODE_LOAD
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_ARAM,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_ARAM
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_DRAM,4,2 ## @SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_DRAM
	.no_dead_strip	_smu8_smu_construct_toc_for_vddgfx_exit
.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_vddgfx_exit
_smu8_smu_construct_toc_for_vddgfx_exit: ; @smu8_smu_construct_toc_for_vddgfx_exit
	.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]
	ldp	x8, x9, [x8]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _JOB_GFX_RESTORE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _JOB_GFX_RESTORE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
Lloh3:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_CE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_CE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
Lloh6:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_PFP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_PFP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
Lloh9:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_ME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_ME@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
Lloh12:
	adrp	x20, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT1@GOTPAGE
Lloh13:
	ldr	x20, [x20, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _CHIP_STONEY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CHIP_STONEY@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT2@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SMU8_SCRATCH_ENTRY_UCODE_ID_CP_MEC_JT2@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x20, x10, eq
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
Lloh19:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_G@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_G@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_smu8_smu_populate_single_ucode_load_task
Lloh22:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SCRATCH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SCRATCH@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x20, _TASK_TYPE_UCODE_LOAD@GOTPAGE
Lloh26:
	ldr	x20, [x20, _TASK_TYPE_UCODE_LOAD@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #0
	bl	_smu8_smu_populate_single_scratch_task
Lloh27:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_ARAM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_ARAM@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #0
	bl	_smu8_smu_populate_single_scratch_task
Lloh30:
	adrp	x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_DRAM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_DRAM@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #1
	bl	_smu8_smu_populate_single_scratch_task
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_JOB_GFX_RESTORE,8,3            ; @JOB_GFX_RESTORE
	.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	_CHIP_STONEY,8,3                ; @CHIP_STONEY
	.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
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SCRATCH,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SCRATCH
	.comm	_TASK_TYPE_UCODE_LOAD,4,2       ; @TASK_TYPE_UCODE_LOAD
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_ARAM,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_ARAM
	.comm	_SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_DRAM,4,2 ; @SMU8_SCRATCH_ENTRY_UCODE_ID_RLC_SRM_DRAM
	.no_dead_strip	_smu8_smu_construct_toc_for_vddgfx_exit
.subsections_via_symbols
