	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_slowio_end                     ## -- Begin function slowio_end
	.p2align	4, 0x90
_slowio_end:                            ## @slowio_end
	.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
	movq	_slowio_pollcnt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	-8(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	-8(%rbp), %xmm0                 ## xmm0 = mem[0],zero
	movq	_slowio_starttime@GOTPCREL(%rip), %rax
	movq	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	psubd	%xmm1, %xmm0
	movd	%xmm0, %eax
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	pextrd	$1, %xmm0, %ecx
	addl	%eax, %ecx
	cmpl	$65, %ecx
	movl	$64, %eax
	cmovgel	%ecx, %eax
	cmpl	$2500000, %eax                  ## imm = 0x2625A0
	movl	$2500000, %ecx                  ## imm = 0x2625A0
	cmovbl	%eax, %ecx
	movq	_slowio_delay_usec@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	shll	$6, %esi
	subl	%edx, %esi
	addl	%ecx, %esi
	movl	%esi, %edi
	sarl	$6, %edi
	movl	%edi, (%rax)
	cmpl	$4160, %esi                     ## imm = 0x1040
	jl	LBB0_2
## %bb.3:
	shll	$3, %edi
	addq	$16, %rsp
	popq	%rbp
	jmp	_usleep                         ## TAILCALL
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_slowio_pollcnt,8,3             ## @slowio_pollcnt
	.comm	_slowio_starttime,8,2           ## @slowio_starttime
	.comm	_slowio_delay_usec,4,2          ## @slowio_delay_usec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_slowio_end                     ; -- Begin function slowio_end
	.p2align	2
_slowio_end:                            ; @slowio_end
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _slowio_pollcnt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _slowio_pollcnt@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.1:
	add	x0, sp, #8
	mov	x1, #0
	bl	_gettimeofday
Lloh3:
	adrp	x8, _slowio_starttime@GOTPAGE
Lloh4:
	ldr	x8, [x8, _slowio_starttime@GOTPAGEOFF]
	ldp	w9, w10, [sp, #8]
	ldp	w11, w8, [x8]
	sub	w9, w9, w11
	mov	w11, #16960
	movk	w11, #15, lsl #16
	sub	w8, w10, w8
	madd	w8, w9, w11, w8
	mov	w9, #64
	cmp	w8, #64
	csel	w8, w8, w9, gt
	mov	w9, #9632
	movk	w9, #38, lsl #16
	cmp	w8, w9
	csel	w8, w8, w9, lo
Lloh5:
	adrp	x9, _slowio_delay_usec@GOTPAGE
Lloh6:
	ldr	x9, [x9, _slowio_delay_usec@GOTPAGEOFF]
	ldr	w10, [x9]
	lsl	w11, w10, #6
	sub	w10, w11, w10
	add	w10, w8, w10
	asr	w8, w10, #6
	str	w8, [x9]
	mov	w9, #4160
	cmp	w10, w9
	b.lt	LBB0_3
; %bb.2:
	lsl	w0, w8, #3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_usleep
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_slowio_pollcnt,8,3             ; @slowio_pollcnt
	.comm	_slowio_starttime,8,2           ; @slowio_starttime
	.comm	_slowio_delay_usec,4,2          ; @slowio_delay_usec
.subsections_via_symbols
