	.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
	movq	_finish@GOTPCREL(%rip), %rax
	movq	_start@GOTPCREL(%rip), %rcx
	movl	(%rax), %edx
	movl	4(%rax), %eax
	subl	(%rcx), %edx
	imull	$1000, %edx, %edx               ## imm = 0x3E8
	subl	4(%rcx), %eax
	cltq
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$38, %rcx
	addl	%eax, %ecx
	addl	%edx, %ecx
	movq	_goodebcnt@GOTPCREL(%rip), %rax
	movq	_mtd@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %edx
	imull	(%rax), %edx
	leal	1023(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$10, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	cltd
	idivl	%ecx
	cltq
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_finish,8,2                     ## @finish
	.comm	_start,8,2                      ## @start
	.comm	_goodebcnt,4,2                  ## @goodebcnt
	.comm	_mtd,8,3                        ## @mtd
	.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:
Lloh0:
	adrp	x8, _finish@GOTPAGE
Lloh1:
	ldr	x8, [x8, _finish@GOTPAGEOFF]
Lloh2:
	adrp	x9, _start@GOTPAGE
Lloh3:
	ldr	x9, [x9, _start@GOTPAGEOFF]
	ldp	w10, w8, [x8]
	ldp	w11, w9, [x9]
	sub	w10, w10, w11
	mov	w11, #1000
	sub	w8, w8, w9
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	madd	w8, w10, w11, w8
Lloh4:
	adrp	x9, _goodebcnt@GOTPAGE
Lloh5:
	ldr	x9, [x9, _goodebcnt@GOTPAGEOFF]
Lloh6:
	adrp	x10, _mtd@GOTPAGE
Lloh7:
	ldr	x10, [x10, _mtd@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	ldr	x10, [x10]
	ldr	w10, [x10]
	mul	w9, w10, w9
	add	w10, w9, #1023
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #10
	mul	w9, w9, w11
	sdiv	w8, w9, w8
	sxtw	x0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_finish,8,2                     ; @finish
	.comm	_start,8,2                      ; @start
	.comm	_goodebcnt,4,2                  ; @goodebcnt
	.comm	_mtd,8,3                        ; @mtd
	.no_dead_strip	_calc_speed
.subsections_via_symbols
