	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sumo_program_ttp
_sumo_program_ttp:                      ## @sumo_program_ttp
	.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
	callq	_radeon_get_xclk
	movl	%eax, %ebx
	movq	_CG_SCLK_DPM_CTRL_5@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
	movl	%eax, %r14d
	leaq	-32(%rbp), %rcx
	leaq	-28(%rbp), %r8
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	%ebx, %esi
	movl	$16, %edx
	callq	_r600_calculate_u_and_p
	movq	_TT_TP_MASK@GOTPCREL(%rip), %rax
	movq	_TT_TU_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	notl	%ebx
	andl	%r14d, %ebx
	movl	-32(%rbp), %edi
	callq	_TT_TP
	movl	%eax, %r14d
	movl	-28(%rbp), %edi
	callq	_TT_TU
	orl	%eax, %r14d
	orl	%ebx, %r14d
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_WREG32
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CG_SCLK_DPM_CTRL_5,4,2         ## @CG_SCLK_DPM_CTRL_5
	.comm	_TT_TP_MASK,4,2                 ## @TT_TP_MASK
	.comm	_TT_TU_MASK,4,2                 ## @TT_TU_MASK
	.no_dead_strip	_sumo_program_ttp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sumo_program_ttp
_sumo_program_ttp:                      ; @sumo_program_ttp
	.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
	bl	_radeon_get_xclk
	mov	x19, x0
Lloh0:
	adrp	x21, _CG_SCLK_DPM_CTRL_5@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CG_SCLK_DPM_CTRL_5@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32
	mov	x20, x0
	add	x3, sp, #12
	add	x4, sp, #8
	mov	w0, #1000
	mov	x1, x19
	mov	w2, #16
	bl	_r600_calculate_u_and_p
Lloh2:
	adrp	x8, _TT_TP_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TT_TP_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _TT_TU_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TT_TU_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w20, w8
	ldr	w0, [sp, #12]
	bl	_TT_TP
	mov	x19, x0
	ldr	w0, [sp, #8]
	bl	_TT_TU
	orr	w8, w20, w19
	orr	w1, w8, w0
	ldr	w0, [x21]
	bl	_WREG32
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CG_SCLK_DPM_CTRL_5,4,2         ; @CG_SCLK_DPM_CTRL_5
	.comm	_TT_TP_MASK,4,2                 ; @TT_TP_MASK
	.comm	_TT_TU_MASK,4,2                 ; @TT_TU_MASK
	.no_dead_strip	_sumo_program_ttp
.subsections_via_symbols
