	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function speed_limit
LCPI0_0:
	.quad	0x412e848000000000              ## double 1.0E+6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_speed_limit:                           ## @speed_limit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	xorl	%eax, %eax
	callq	_secs_elapsed
	movapd	%xmm0, %xmm3
	movapd	%xmm0, %xmm1
	subsd	_speed_limit.t_prev(%rip), %xmm1
	subsd	_speed_limit.t_usleep(%rip), %xmm1
	movq	_in@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rax), %xmm0
	movq	_speed@GOTPCREL(%rip), %rax
	cvtsi2sdq	(%rax), %xmm2
	divsd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	movsd	%xmm0, _speed_limit.t_usleep(%rip)
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_2
## %bb.1:
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm3, -8(%rbp)                 ## 8-byte Spill
	callq	_usleep
	movsd	-8(%rbp), %xmm3                 ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	jmp	LBB0_3
LBB0_2:
	movq	$0, _speed_limit.t_usleep(%rip)
LBB0_3:
	movsd	%xmm3, _speed_limit.t_prev(%rip)
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_speed_limit.t_prev,8,3 ## @speed_limit.t_prev
.zerofill __DATA,__bss,_speed_limit.t_usleep,8,3 ## @speed_limit.t_usleep
	.comm	_in,8,3                         ## @in
	.comm	_speed,8,3                      ## @speed
	.no_dead_strip	_speed_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function speed_limit
_speed_limit:                           ; @speed_limit
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	bl	_secs_elapsed
	fmov	d8, d0
	adrp	x19, _speed_limit.t_prev@PAGE
	ldr	d0, [x19, _speed_limit.t_prev@PAGEOFF]
	fsub	d0, d8, d0
	adrp	x8, _speed_limit.t_usleep@PAGE
	ldr	d1, [x8, _speed_limit.t_usleep@PAGEOFF]
	fsub	d0, d0, d1
Lloh0:
	adrp	x9, _in@GOTPAGE
Lloh1:
	ldr	x9, [x9, _in@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x9]
	scvtf	d1, d1
Lloh3:
	adrp	x9, _speed@GOTPAGE
Lloh4:
	ldr	x9, [x9, _speed@GOTPAGEOFF]
Lloh5:
	ldr	d2, [x9]
	scvtf	d2, d2
	fdiv	d1, d1, d2
	fsub	d0, d1, d0
	str	d0, [x8, _speed_limit.t_usleep@PAGEOFF]
	fcmp	d0, #0.0
	b.le	LBB0_2
; %bb.1:
	mov	x8, #145685290680320
	movk	x8, #16686, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	bl	_usleep
	b	LBB0_3
LBB0_2:
	str	xzr, [x8, _speed_limit.t_usleep@PAGEOFF]
LBB0_3:
	str	d8, [x19, _speed_limit.t_prev@PAGEOFF]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_speed_limit.t_prev,8,3 ; @speed_limit.t_prev
.zerofill __DATA,__bss,_speed_limit.t_usleep,8,3 ; @speed_limit.t_usleep
	.comm	_in,8,3                         ; @in
	.comm	_speed,8,3                      ; @speed
	.no_dead_strip	_speed_limit
.subsections_via_symbols
