	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_enable_boost_timer        ## -- Begin function sumo_enable_boost_timer
	.p2align	4, 0x90
_sumo_enable_boost_timer:               ## @sumo_enable_boost_timer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_sumo_get_pi
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_radeon_get_xclk
	movl	%eax, %r12d
	movq	_RCU_LCLK_SCALING_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32_RCU
	movl	%eax, %r13d
	movq	_LCLK_SCALING_TIMER_PRESCALER_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_LCLK_SCALING_TIMER_PRESCALER_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r13d
	movslq	%r12d, %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movl	%r13d, %edi
	callq	_sumo_power_of_4
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	imull	$6553600, %eax, %eax            ## imm = 0x640000
	shll	$4, %r13d
	orl	%eax, %r13d
	movq	_RCU_GNB_PWR_REP_TIMER_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_WREG32_RCU
	movq	_RCU_BOOST_MARGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_WREG32_RCU
	movq	_RCU_THROTTLE_MARGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	_WREG32_RCU
	movq	_GNB_TDP_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_WREG32_RCU
	movq	_RCU_SclkDpmTdpLimitPG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %esi
	callq	_WREG32_RCU
	movq	_SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sumo_send_msg_to_smu           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCU_LCLK_SCALING_CNTL,4,2      ## @RCU_LCLK_SCALING_CNTL
	.comm	_LCLK_SCALING_TIMER_PRESCALER_MASK,4,2 ## @LCLK_SCALING_TIMER_PRESCALER_MASK
	.comm	_LCLK_SCALING_TIMER_PRESCALER_SHIFT,4,2 ## @LCLK_SCALING_TIMER_PRESCALER_SHIFT
	.comm	_RCU_GNB_PWR_REP_TIMER_CNTL,4,2 ## @RCU_GNB_PWR_REP_TIMER_CNTL
	.comm	_RCU_BOOST_MARGIN,4,2           ## @RCU_BOOST_MARGIN
	.comm	_RCU_THROTTLE_MARGIN,4,2        ## @RCU_THROTTLE_MARGIN
	.comm	_GNB_TDP_LIMIT,4,2              ## @GNB_TDP_LIMIT
	.comm	_RCU_SclkDpmTdpLimitPG,4,2      ## @RCU_SclkDpmTdpLimitPG
	.comm	_SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20,4,2 ## @SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_enable_boost_timer        ; -- Begin function sumo_enable_boost_timer
	.p2align	2
_sumo_enable_boost_timer:               ; @sumo_enable_boost_timer
	.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, x0
	bl	_sumo_get_pi
	mov	x20, x0
	mov	x0, x19
	bl	_radeon_get_xclk
	mov	x21, x0
Lloh0:
	adrp	x8, _RCU_LCLK_SCALING_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCU_LCLK_SCALING_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32_RCU
Lloh3:
	adrp	x8, _LCLK_SCALING_TIMER_PRESCALER_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LCLK_SCALING_TIMER_PRESCALER_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _LCLK_SCALING_TIMER_PRESCALER_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LCLK_SCALING_TIMER_PRESCALER_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w22, w8, w9
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w21, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w21, w8, w9
	mov	x0, x22
	bl	_sumo_power_of_4
	sdiv	w8, w21, w0
	mov	w9, #6553600
	mul	w8, w8, w9
	orr	w1, w8, w22, lsl #4
Lloh9:
	adrp	x8, _RCU_GNB_PWR_REP_TIMER_CNTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RCU_GNB_PWR_REP_TIMER_CNTL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_WREG32_RCU
Lloh12:
	adrp	x8, _RCU_BOOST_MARGIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RCU_BOOST_MARGIN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_WREG32_RCU
Lloh15:
	adrp	x8, _RCU_THROTTLE_MARGIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RCU_THROTTLE_MARGIN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_WREG32_RCU
Lloh18:
	adrp	x8, _GNB_TDP_LIMIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GNB_TDP_LIMIT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_WREG32_RCU
Lloh21:
	adrp	x8, _RCU_SclkDpmTdpLimitPG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RCU_SclkDpmTdpLimitPG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_WREG32_RCU
Lloh24:
	adrp	x8, _SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	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	_sumo_send_msg_to_smu
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_RCU_LCLK_SCALING_CNTL,4,2      ; @RCU_LCLK_SCALING_CNTL
	.comm	_LCLK_SCALING_TIMER_PRESCALER_MASK,4,2 ; @LCLK_SCALING_TIMER_PRESCALER_MASK
	.comm	_LCLK_SCALING_TIMER_PRESCALER_SHIFT,4,2 ; @LCLK_SCALING_TIMER_PRESCALER_SHIFT
	.comm	_RCU_GNB_PWR_REP_TIMER_CNTL,4,2 ; @RCU_GNB_PWR_REP_TIMER_CNTL
	.comm	_RCU_BOOST_MARGIN,4,2           ; @RCU_BOOST_MARGIN
	.comm	_RCU_THROTTLE_MARGIN,4,2        ; @RCU_THROTTLE_MARGIN
	.comm	_GNB_TDP_LIMIT,4,2              ; @GNB_TDP_LIMIT
	.comm	_RCU_SclkDpmTdpLimitPG,4,2      ; @RCU_SclkDpmTdpLimitPG
	.comm	_SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20,4,2 ; @SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20
.subsections_via_symbols
