	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function turnaround_delay
_turnaround_delay:                      ## @turnaround_delay
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	jle	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-32(%rbp), %rdi
	callq	_do_gettimeofday
	movq	-32(%rbp), %rax
	cmpq	(%r14), %rax
	jle	LBB0_2
## %bb.3:
	movq	_USEC_PER_SEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	subq	%rax, %rbx
	movq	8(%r14), %rdi
	subq	-24(%rbp), %rdi
	addq	%rbx, %rdi
	cmpq	$10, %rdi
	jl	LBB0_11
## %bb.5:
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	idivl	(%rcx)
	movl	%eax, %ecx
	movslq	%eax, %rsi
	movq	%rdi, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%rdi, %rax
	cqto
	idivq	%rsi
	testq	%rax, %rax
	jle	LBB0_10
LBB0_9:
	incl	%eax
	movl	%eax, %edi
	callq	_schedule_timeout_interruptible
	jmp	LBB0_11
LBB0_6:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	testq	%rax, %rax
	jg	LBB0_9
LBB0_10:
	callq	_udelay
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USEC_PER_SEC,8,3               ## @USEC_PER_SEC
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_turnaround_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function turnaround_delay
_turnaround_delay:                      ; @turnaround_delay
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cmp	x1, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x0, sp
	bl	_do_gettimeofday
Lloh0:
	adrp	x8, _USEC_PER_SEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USEC_PER_SEC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [sp]
	ldp	x11, x12, [x20]
	cmp	x9, x11
	csel	x8, x8, xzr, gt
	sub	x8, x19, x8
	sub	x9, x12, x10
	add	x0, x9, x8
	cmp	x0, #10
	b.lt	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	sdiv	w8, w9, w8
	sxtw	x8, w8
	sdiv	x8, x0, x8
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	add	w0, w8, #1
	bl	_schedule_timeout_interruptible
	b	LBB0_5
LBB0_4:
	bl	_udelay
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_USEC_PER_SEC,8,3               ; @USEC_PER_SEC
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_turnaround_delay
.subsections_via_symbols
