	.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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_finish@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_start@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ktime_ms_delta
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_goodebcnt@GOTPCREL(%rip), %rcx
	movq	_mtd@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %edx
	leal	1023(%rdx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$10, %esi
	imull	(%rcx), %esi
	imull	$1000, %esi, %ebx               ## imm = 0x3E8
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_do_div
	movslq	%ebx, %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_finish,4,2                     ## @finish
	.comm	_start,4,2                      ## @start
	.comm	_goodebcnt,8,3                  ## @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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _finish@GOTPAGE
Lloh1:
	ldr	x8, [x8, _finish@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _start@GOTPAGE
Lloh4:
	ldr	x8, [x8, _start@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ktime_ms_delta
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh6:
	adrp	x8, _goodebcnt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _goodebcnt@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _mtd@GOTPAGE
Lloh10:
	ldr	x9, [x9, _mtd@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w9, [x9]
	add	w10, w9, #1023
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #10
	mul	w8, w8, w9
	mov	w9, #1000
	mul	w19, w8, w9
	mov	x0, x19
	bl	_do_div
	sxtw	x0, w19
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_finish,4,2                     ; @finish
	.comm	_start,4,2                      ; @start
	.comm	_goodebcnt,8,3                  ; @goodebcnt
	.comm	_mtd,8,3                        ; @mtd
	.no_dead_strip	_calc_speed
.subsections_via_symbols
