	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trinity_add_dccac_value
_trinity_add_dccac_value:               ## @trinity_add_dccac_value
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movslq	(%rdi), %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movq	_GPU_CAC_AVRG_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%rdi), %r14d
	imull	%ebx, %r14d
	movl	%eax, %edi
	callq	_RREG32_SMC
	movq	_WINDOW_SIZE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_WINDOW_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	imull	%ebx, %r14d
	imull	$14213, %r14d, %esi             ## imm = 0x3785
	negb	%al
	movl	%eax, %ecx
	sarl	%cl, %esi
	movq	_DC_CAC_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32_SMC                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPU_CAC_AVRG_CNTL,4,2          ## @GPU_CAC_AVRG_CNTL
	.comm	_WINDOW_SIZE_MASK,4,2           ## @WINDOW_SIZE_MASK
	.comm	_WINDOW_SIZE_SHIFT,4,2          ## @WINDOW_SIZE_SHIFT
	.comm	_DC_CAC_VALUE,4,2               ## @DC_CAC_VALUE
	.no_dead_strip	_trinity_add_dccac_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trinity_add_dccac_value
_trinity_add_dccac_value:               ; @trinity_add_dccac_value
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	w8, w19, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w20, w8, w9
Lloh0:
	adrp	x8, _GPU_CAC_AVRG_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPU_CAC_AVRG_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32_SMC
Lloh3:
	adrp	x8, _WINDOW_SIZE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINDOW_SIZE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _WINDOW_SIZE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINDOW_SIZE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	mul	w9, w19, w20
	mul	w9, w9, w20
	mov	w10, #14213
	mul	w9, w9, w10
	neg	w8, w8
	asr	w1, w9, w8
Lloh9:
	adrp	x8, _DC_CAC_VALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DC_CAC_VALUE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32_SMC
	.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	_GPU_CAC_AVRG_CNTL,4,2          ; @GPU_CAC_AVRG_CNTL
	.comm	_WINDOW_SIZE_MASK,4,2           ; @WINDOW_SIZE_MASK
	.comm	_WINDOW_SIZE_SHIFT,4,2          ; @WINDOW_SIZE_SHIFT
	.comm	_DC_CAC_VALUE,4,2               ; @DC_CAC_VALUE
	.no_dead_strip	_trinity_add_dccac_value
.subsections_via_symbols
