	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpufreq_p4_get
_cpufreq_p4_get:                        ## @cpufreq_p4_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_MSR_IA32_THERM_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	leaq	-8(%rbp), %rcx
	callq	_rdmsr_on_cpu
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	%ecx
	andl	$7, %ecx
	testb	$16, %al
	movq	_DC_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmovel	%edx, %ecx
	movq	_stock_freq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, %ecx
	je	LBB0_2
## %bb.1:
	imull	%ecx, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, %eax
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_IA32_THERM_CONTROL,4,2     ## @MSR_IA32_THERM_CONTROL
	.comm	_DC_DISABLE,4,2                 ## @DC_DISABLE
	.comm	_stock_freq,4,2                 ## @stock_freq
	.no_dead_strip	_cpufreq_p4_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpufreq_p4_get
_cpufreq_p4_get:                        ; @cpufreq_p4_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _MSR_IA32_THERM_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_IA32_THERM_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	add	x3, sp, #8
	bl	_rdmsr_on_cpu
	ldur	w8, [x29, #-4]
Lloh3:
	adrp	x9, _DC_DISABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DC_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ubfx	w10, w8, #1, #3
	tst	w8, #0x10
	csel	w8, w9, w10, eq
Lloh6:
	adrp	x10, _stock_freq@GOTPAGE
Lloh7:
	ldr	x10, [x10, _stock_freq@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x10]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.1:
	mul	w8, w0, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_IA32_THERM_CONTROL,4,2     ; @MSR_IA32_THERM_CONTROL
	.comm	_DC_DISABLE,4,2                 ; @DC_DISABLE
	.comm	_stock_freq,4,2                 ; @stock_freq
	.no_dead_strip	_cpufreq_p4_get
.subsections_via_symbols
