	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function polaris10_init_arb_table_index
_polaris10_init_arb_table_index:        ## @polaris10_init_arb_table_index
	.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
	movl	(%r14), %esi
	movq	_SMC_RAM_END@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-28(%rbp), %rdx
	callq	_smu7_read_smc_sram_dword
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	$16777215, %eax                 ## imm = 0xFFFFFF
	andl	-28(%rbp), %eax
	movq	_MC_CG_ARB_FREQ_F1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shll	$24, %edx
	orl	%eax, %edx
	movl	%edx, -28(%rbp)
	movl	(%r14), %esi
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	callq	_smu7_write_smc_sram_dword
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMC_RAM_END,4,2                ## @SMC_RAM_END
	.comm	_MC_CG_ARB_FREQ_F1,8,3          ## @MC_CG_ARB_FREQ_F1
	.no_dead_strip	_polaris10_init_arb_table_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function polaris10_init_arb_table_index
_polaris10_init_arb_table_index:        ; @polaris10_init_arb_table_index
	.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
	ldr	x20, [x0]
	ldr	w1, [x20]
Lloh0:
	adrp	x21, _SMC_RAM_END@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SMC_RAM_END@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x2, sp, #12
	bl	_smu7_read_smc_sram_dword
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MC_CG_ARB_FREQ_F1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MC_CG_ARB_FREQ_F1@GOTPAGEOFF]
	ldr	w2, [sp, #12]
Lloh4:
	ldr	w8, [x8]
	bfi	w2, w8, #24, #8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	ldr	w3, [x21]
	mov	x0, x19
	bl	_smu7_write_smc_sram_dword
LBB0_2:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SMC_RAM_END,4,2                ; @SMC_RAM_END
	.comm	_MC_CG_ARB_FREQ_F1,8,3          ; @MC_CG_ARB_FREQ_F1
	.no_dead_strip	_polaris10_init_arb_table_index
.subsections_via_symbols
