	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navi10_append_powerplay_table
_navi10_append_powerplay_table:         ## @navi10_append_powerplay_table
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %r15
	movq	_atom_master_list_of_data_tables_v2_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_smc_dpm_info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_index_into_master_table
	leaq	-32(%rbp), %r9
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_smu_get_atom_data_table
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	200(%r14), %edi
	movq	-32(%rbp), %rax
	movl	196(%rax), %esi
	movq	_NUM_I2C_CONTROLLERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	callq	_memcpy
	movq	-32(%rbp), %rax
	movl	192(%rax), %ecx
	movl	%ecx, 196(%r14)
	movups	176(%rax), %xmm0
	movups	%xmm0, 180(%r14)
	movups	160(%rax), %xmm0
	movups	%xmm0, 164(%r14)
	movups	144(%rax), %xmm0
	movups	%xmm0, 148(%r14)
	movups	128(%rax), %xmm0
	movups	%xmm0, 132(%r14)
	movups	112(%rax), %xmm0
	movups	%xmm0, 116(%r14)
	movups	96(%rax), %xmm0
	movups	%xmm0, 100(%r14)
	movups	80(%rax), %xmm0
	movups	%xmm0, 84(%r14)
	movups	64(%rax), %xmm0
	movups	%xmm0, 68(%r14)
	movups	48(%rax), %xmm0
	movups	%xmm0, 52(%r14)
	movups	32(%rax), %xmm0
	movups	%xmm0, 36(%r14)
	movups	16(%rax), %xmm0
	movups	%xmm0, 20(%r14)
	movups	(%rax), %xmm0
	movups	%xmm0, 4(%r14)
	movq	_PP_GFXOFF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.2:
	movq	_DPM_OVERRIDE_DISABLE_DFLL_PLL_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_atom_master_list_of_data_tables_v2_1,4,2 ## @atom_master_list_of_data_tables_v2_1
	.comm	_smc_dpm_info,4,2               ## @smc_dpm_info
	.comm	_NUM_I2C_CONTROLLERS,4,2        ## @NUM_I2C_CONTROLLERS
	.comm	_PP_GFXOFF_MASK,4,2             ## @PP_GFXOFF_MASK
	.comm	_DPM_OVERRIDE_DISABLE_DFLL_PLL_SHUTDOWN,4,2 ## @DPM_OVERRIDE_DISABLE_DFLL_PLL_SHUTDOWN
	.no_dead_strip	_navi10_append_powerplay_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navi10_append_powerplay_table
_navi10_append_powerplay_table:         ; @navi10_append_powerplay_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldp	x20, x21, [x0]
Lloh0:
	adrp	x8, _atom_master_list_of_data_tables_v2_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atom_master_list_of_data_tables_v2_1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _smc_dpm_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _smc_dpm_info@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_get_index_into_master_table
	mov	x1, x0
	add	x5, sp, #8
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_smu_get_atom_data_table
	mov	x19, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x20, #200]
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #196]
Lloh6:
	adrp	x8, _NUM_I2C_CONTROLLERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUM_I2C_CONTROLLERS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #192]
	str	w9, [x20, #196]
	ldr	q0, [x8, #176]
	stur	q0, [x20, #180]
	ldr	q0, [x8, #160]
	stur	q0, [x20, #164]
	ldr	q0, [x8, #144]
	stur	q0, [x20, #148]
	ldr	q0, [x8, #128]
	stur	q0, [x20, #132]
	ldr	q0, [x8, #112]
	stur	q0, [x20, #116]
	ldr	q0, [x8, #96]
	stur	q0, [x20, #100]
	ldr	q0, [x8, #80]
	stur	q0, [x20, #84]
	ldr	q0, [x8, #64]
	stur	q0, [x20, #68]
	ldr	q0, [x8, #48]
	stur	q0, [x20, #52]
	ldr	q0, [x8, #32]
	stur	q0, [x20, #36]
	ldr	q0, [x8, #16]
	stur	q0, [x20, #20]
	ldr	q0, [x8]
	stur	q0, [x20, #4]
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _PP_GFXOFF_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PP_GFXOFF_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _DPM_OVERRIDE_DISABLE_DFLL_PLL_SHUTDOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DPM_OVERRIDE_DISABLE_DFLL_PLL_SHUTDOWN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_3:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_atom_master_list_of_data_tables_v2_1,4,2 ; @atom_master_list_of_data_tables_v2_1
	.comm	_smc_dpm_info,4,2               ; @smc_dpm_info
	.comm	_NUM_I2C_CONTROLLERS,4,2        ; @NUM_I2C_CONTROLLERS
	.comm	_PP_GFXOFF_MASK,4,2             ; @PP_GFXOFF_MASK
	.comm	_DPM_OVERRIDE_DISABLE_DFLL_PLL_SHUTDOWN,4,2 ; @DPM_OVERRIDE_DISABLE_DFLL_PLL_SHUTDOWN
	.no_dead_strip	_navi10_append_powerplay_table
.subsections_via_symbols
