	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv6xx_calculate_ap
_rv6xx_calculate_ap:                    ## @rv6xx_calculate_ap
	.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	%rsi, %rbx
	callq	_rv6xx_get_pi
	movq	%rax, %r14
	movq	8(%rax), %r9
	movq	$0, (%r9)
	movq	(%rax), %r10
	movq	_R600_PM_NUMBER_OF_ACTIVITY_LEVELS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	$100, -4(%r10,%rcx,4)
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	movq	_R600_AH_DFLT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_R600_LMP_DFLT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_R600_RLP_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	addq	$8, %r9
	movq	%r10, (%rsp)
	callq	_rv6xx_calculate_t
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movl	(%r15), %edx
	movq	_R600_LHP_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_R600_RMP_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	(%r14), %rax
	movq	8(%r14), %r9
	addq	$16, %r9
	addq	$4, %rax
	movq	%rax, (%rsp)
	callq	_rv6xx_calculate_t
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_PM_NUMBER_OF_ACTIVITY_LEVELS,4,2 ## @R600_PM_NUMBER_OF_ACTIVITY_LEVELS
	.comm	_R600_AH_DFLT,4,2               ## @R600_AH_DFLT
	.comm	_R600_LMP_DFLT,4,2              ## @R600_LMP_DFLT
	.comm	_R600_RLP_DFLT,4,2              ## @R600_RLP_DFLT
	.comm	_R600_LHP_DFLT,4,2              ## @R600_LHP_DFLT
	.comm	_R600_RMP_DFLT,4,2              ## @R600_RMP_DFLT
	.no_dead_strip	_rv6xx_calculate_ap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv6xx_calculate_ap
_rv6xx_calculate_ap:                    ; @rv6xx_calculate_ap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	bl	_rv6xx_get_pi
	mov	x20, x0
	ldp	x6, x5, [x0]
	str	xzr, [x5], #8
Lloh0:
	adrp	x8, _R600_PM_NUMBER_OF_ACTIVITY_LEVELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R600_PM_NUMBER_OF_ACTIVITY_LEVELS@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x8, x6, x8, lsl #2
	mov	w9, #100
	stur	w9, [x8, #-4]
	ldp	w1, w0, [x19, #4]
Lloh3:
	adrp	x21, _R600_AH_DFLT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _R600_AH_DFLT@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh5:
	adrp	x8, _R600_LMP_DFLT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R600_LMP_DFLT@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _R600_RLP_DFLT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R600_RLP_DFLT@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	bl	_rv6xx_calculate_t
	ldp	w1, w0, [x19]
	ldr	w2, [x21]
Lloh11:
	adrp	x8, _R600_LHP_DFLT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R600_LHP_DFLT@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _R600_RMP_DFLT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R600_RMP_DFLT@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	ldp	x9, x8, [x20]
	add	x5, x8, #16
	add	x6, x9, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rv6xx_calculate_t
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_PM_NUMBER_OF_ACTIVITY_LEVELS,4,2 ; @R600_PM_NUMBER_OF_ACTIVITY_LEVELS
	.comm	_R600_AH_DFLT,4,2               ; @R600_AH_DFLT
	.comm	_R600_LMP_DFLT,4,2              ; @R600_LMP_DFLT
	.comm	_R600_RLP_DFLT,4,2              ; @R600_RLP_DFLT
	.comm	_R600_LHP_DFLT,4,2              ; @R600_LHP_DFLT
	.comm	_R600_RMP_DFLT,4,2              ; @R600_RMP_DFLT
	.no_dead_strip	_rv6xx_calculate_ap
.subsections_via_symbols
