	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega20_append_powerplay_table
_vega20_append_powerplay_table:         ## @vega20_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	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	-24(%rbp), %r9
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_smu_get_atom_data_table
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-24(%rbp), %rcx
	movl	176(%rcx), %eax
	movl	%eax, 184(%r14)
	movl	172(%rcx), %eax
	movl	%eax, 180(%r14)
	movl	168(%rcx), %eax
	movl	%eax, 176(%r14)
	movups	152(%rcx), %xmm0
	movups	%xmm0, 160(%r14)
	movups	136(%rcx), %xmm0
	movups	%xmm0, 144(%r14)
	movups	120(%rcx), %xmm0
	movups	%xmm0, 128(%r14)
	movups	104(%rcx), %xmm0
	movups	%xmm0, 112(%r14)
	movups	88(%rcx), %xmm0
	movups	%xmm0, 96(%r14)
	movups	72(%rcx), %xmm0
	movups	%xmm0, 80(%r14)
	movups	56(%rcx), %xmm0
	movups	%xmm0, 64(%r14)
	movups	40(%rcx), %xmm0
	movups	%xmm0, 48(%r14)
	movq	$0, 40(%r14)
	movups	24(%rcx), %xmm0
	movups	%xmm0, 24(%r14)
	movups	8(%rcx), %xmm0
	movups	%xmm0, 8(%r14)
	movq	_I2C_CONTROLLER_NAME_COUNT@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	movl	$0, %eax
	jle	LBB0_4
## %bb.2:
	movq	(%rcx), %rcx
	movq	(%r14), %rsi
	movl	$20, %edi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdi), %edx
	movl	%edx, (%rsi,%rdi)
	movl	-4(%rcx,%rdi), %edx
	movl	%edx, -4(%rsi,%rdi)
	movups	-20(%rcx,%rdi), %xmm0
	movups	%xmm0, -20(%rsi,%rdi)
	incq	%rbx
	movslq	(%r8), %rdx
	addq	$24, %rdi
	cmpq	%rdx, %rbx
	jl	LBB0_3
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	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	_I2C_CONTROLLER_NAME_COUNT,4,2  ## @I2C_CONTROLLER_NAME_COUNT
	.no_dead_strip	_vega20_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 vega20_append_powerplay_table
_vega20_append_powerplay_table:         ; @vega20_append_powerplay_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, [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
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x9, [sp, #8]
	ldr	w8, [x9, #176]
	str	w8, [x20, #184]
	ldr	d0, [x9, #168]
	str	d0, [x20, #176]
	ldur	q0, [x9, #152]
	str	q0, [x20, #160]
	ldur	q0, [x9, #136]
	str	q0, [x20, #144]
	ldur	q0, [x9, #120]
	str	q0, [x20, #128]
	ldur	q0, [x9, #104]
	str	q0, [x20, #112]
	ldur	q0, [x9, #88]
	str	q0, [x20, #96]
	ldur	q0, [x9, #72]
	str	q0, [x20, #80]
	ldur	q0, [x9, #56]
	str	q0, [x20, #64]
	ldur	q0, [x9, #40]
	str	q0, [x20, #48]
	str	xzr, [x20, #40]
	ldur	q0, [x9, #24]
	stur	q0, [x20, #24]
	ldur	q0, [x9, #8]
	stur	q0, [x20, #8]
Lloh6:
	adrp	x8, _I2C_CONTROLLER_NAME_COUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_CONTROLLER_NAME_COUNT@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x10, #0
	ldr	x9, [x9]
	ldr	x11, [x20]
	add	x9, x9, #16
	add	x11, x11, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x9]
	str	d0, [x11]
	ldur	q0, [x9, #-16]
	stur	q0, [x11, #-16]
	add	x10, x10, #1
	ldrsw	x12, [x8]
	add	x9, x9, #24
	add	x11, x11, #24
	cmp	x10, x12
	b.lt	LBB0_3
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.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	_I2C_CONTROLLER_NAME_COUNT,4,2  ; @I2C_CONTROLLER_NAME_COUNT
	.no_dead_strip	_vega20_append_powerplay_table
.subsections_via_symbols
