	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_cpufreq_guess_freq
_acpi_cpufreq_guess_freq:               ## @acpi_cpufreq_guess_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movq	_cpu_khz@GOTPCREL(%rip), %rax
	movslq	(%rax), %r10
	testq	%r10, %r10
	je	LBB0_6
## %bb.1:
	movq	8(%r8), %r9
	movslq	(%r9), %rax
	imulq	$1000, %rax, %rsi               ## imm = 0x3E8
	movl	(%r8), %edi
	decl	%edi
	addq	%r10, %r10
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rax
	cmpq	%rcx, %rdi
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	4(%r9,%rcx,4), %rsi
	incq	%rcx
	imulq	$1000, %rsi, %rsi               ## imm = 0x3E8
	leaq	(%rax,%rsi), %rdx
	cmpq	%r10, %rdx
	jae	LBB0_2
## %bb.4:
	decl	%ecx
	movl	%ecx, 4(%r8)
	popq	%rbp
	retq
LBB0_6:
	movl	$0, 4(%r8)
	movq	8(%r8), %rax
	movslq	(%rax), %rax
	imulq	$1000, %rax, %rax               ## imm = 0x3E8
	popq	%rbp
	retq
LBB0_5:
	movl	%edi, 4(%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_khz,4,2                    ## @cpu_khz
	.no_dead_strip	_acpi_cpufreq_guess_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_cpufreq_guess_freq
_acpi_cpufreq_guess_freq:               ; @acpi_cpufreq_guess_freq
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _cpu_khz@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cpu_khz@GOTPAGEOFF]
Lloh2:
	ldrsw	x12, [x9]
	cbz	w12, LBB0_5
; %bb.1:
	ldr	x9, [x8, #8]
	ldrsw	x11, [x9], #4
	mov	w10, #1000
	mul	x14, x11, x10
	ldr	w11, [x8]
	sub	w11, w11, #1
	lsl	x12, x12, #1
	mov	w13, #-1
	mov	x15, x11
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x14
	cbz	x15, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x14, [x9], #4
	mul	x14, x14, x10
	add	w13, w13, #1
	sub	x15, x15, #1
	add	x16, x0, x14
	cmp	x16, x12
	b.hs	LBB0_2
; %bb.4:
	str	w13, [x8, #4]
	ret
LBB0_5:
	str	wzr, [x8, #4]
	ldr	x8, [x8, #8]
	ldrsw	x8, [x8]
	mov	w9, #1000
	mul	x0, x8, x9
	ret
LBB0_6:
	str	w11, [x8, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_khz,4,2                    ; @cpu_khz
	.no_dead_strip	_acpi_cpufreq_guess_freq
.subsections_via_symbols
