	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_speed
_calc_speed:                            ## @calc_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	%edi, %rdx
	imulq	$1717986919, %rdx, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movq	_fsb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%ecx, %eax
	imull	$-858993459, %edx, %edx         ## imm = 0xCCCCCCCD
	addl	$429496728, %edx                ## imm = 0x19999998
	rorl	%edx
	cmpl	$429496729, %edx                ## imm = 0x19999999
	jb	LBB0_2
## %bb.1:
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%edx, %eax
LBB0_2:
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fsb,4,2                        ## @fsb
	.no_dead_strip	_calc_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_speed
_calc_speed:                            ; @calc_speed
	.cfi_startproc
; %bb.0:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
Lloh0:
	adrp	x9, _fsb@GOTPAGE
Lloh1:
	ldr	x9, [x9, _fsb@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w10, w9, w8
	mov	w11, #10
	msub	w8, w8, w11, w0
	cmp	w9, #0
	cinc	w9, w9, lt
	add	w9, w10, w9, asr #1
	cmp	w8, #0
	csel	w8, w10, w9, eq
	mov	w9, #1000
	mul	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_fsb,4,2                        ; @fsb
	.no_dead_strip	_calc_speed
.subsections_via_symbols
