	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ni_get_smc_power_scaling_factor
_ni_get_smc_power_scaling_factor:       ## @ni_get_smc_power_scaling_factor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_radeon_get_xclk
	movq	%rax, %rbx
	movq	_CG_CAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movq	%rax, %rcx
	movq	_TID_CNT_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rcx
	cmpq	$1000000000, %rbx               ## imm = 0x3B9ACA00
	ja	LBB0_1
## %bb.2:
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movl	$3518437209, %edx               ## imm = 0xD1B71759
	imulq	%rax, %rdx
	shrq	$45, %rdx
	imulq	%rdx, %rcx
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CG_CAC_CTRL,4,2                ## @CG_CAC_CTRL
	.comm	_TID_CNT_MASK,8,3               ## @TID_CNT_MASK
	.no_dead_strip	_ni_get_smc_power_scaling_factor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ni_get_smc_power_scaling_factor
_ni_get_smc_power_scaling_factor:       ; @ni_get_smc_power_scaling_factor
	.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
	bl	_radeon_get_xclk
	mov	x19, x0
Lloh0:
	adrp	x8, _CG_CAC_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CG_CAC_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
Lloh3:
	adrp	x8, _TID_CNT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TID_CNT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x0
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	udiv	x9, x9, x19
	mov	w10, #5977
	movk	w10, #53687, lsl #16
	mul	x9, x9, x10
	lsr	x9, x9, #45
	mul	x0, x8, x9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CG_CAC_CTRL,4,2                ; @CG_CAC_CTRL
	.comm	_TID_CNT_MASK,8,3               ; @TID_CNT_MASK
	.no_dead_strip	_ni_get_smc_power_scaling_factor
.subsections_via_symbols
