	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pentium3_get_frequency
_pentium3_get_frequency:                ## @pentium3_get_frequency
	.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
	movl	%edi, %r14d
	movq	_MSR_IA32_EBL_CR_POWERON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_SPEEDSTEP_CPU_PIII_C_EARLY@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	.p2align	4, 0x90
LBB0_2:
	cmpl	$4, %ebx
	je	LBB0_5
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$14, %ebx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	$4, %ebx
	jne	LBB0_3
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movl	$330000, %ebx                   ## imm = 0x50910
	movl	$330000, %esi                   ## imm = 0x50910
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_IA32_EBL_CR_POWERON,4,2    ## @MSR_IA32_EBL_CR_POWERON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P3 - MSR_IA32_EBL_CR_POWERON: 0x%x 0x%x\n"

	.comm	_SPEEDSTEP_CPU_PIII_C_EARLY,4,2 ## @SPEEDSTEP_CPU_PIII_C_EARLY
L_.str.1:                               ## @.str.1
	.asciz	"workaround for early PIIIs\n"

L_.str.2:                               ## @.str.2
	.asciz	"speed is %u\n"

	.no_dead_strip	_pentium3_get_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pentium3_get_frequency
_pentium3_get_frequency:                ; @pentium3_get_frequency
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MSR_IA32_EBL_CR_POWERON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_IA32_EBL_CR_POWERON@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rdmsr
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh5:
	adrp	x8, _SPEEDSTEP_CPU_PIII_C_EARLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPEEDSTEP_CPU_PIII_C_EARLY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
LBB0_2:
	mov	w8, #0
	cmp	w8, #4
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #14
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	cmp	w8, #4
	b.ne	LBB0_3
LBB0_5:
	mov	w19, #2320
	movk	w19, #5, lsl #16
	str	x19, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	b	LBB0_7
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_IA32_EBL_CR_POWERON,4,2    ; @MSR_IA32_EBL_CR_POWERON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P3 - MSR_IA32_EBL_CR_POWERON: 0x%x 0x%x\n"

	.comm	_SPEEDSTEP_CPU_PIII_C_EARLY,4,2 ; @SPEEDSTEP_CPU_PIII_C_EARLY
l_.str.1:                               ; @.str.1
	.asciz	"workaround for early PIIIs\n"

l_.str.2:                               ; @.str.2
	.asciz	"speed is %u\n"

	.no_dead_strip	_pentium3_get_frequency
.subsections_via_symbols
