	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function flush_all
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_flush_all
	.p2align	4, 0x90
_flush_all:                             ## @flush_all
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	xorl	%eax, %eax
	callq	_save_index
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_get_utime
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	_MAX_PRIORITY@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	js	LBB0_36
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_now@GOTPCREL(%rip), %r12
	movq	_sync_aiocb@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r14), %rbx
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_PRIORITY@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	movq	%rbx, %r14
	jge	LBB0_29
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	movq	_sync_active@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%r14,4), %r12
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_aio_error
	movl	%eax, %r15d
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	_sync_active@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rcx
	addq	$120, %rcx
	cmpq	%rcx, %rax
	jle	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	leaq	L_.str(%rip), %rsi
	movb	$1, %al
	callq	_fprintf
	movq	_sync_aiocb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r14,4), %rsi
	movl	(%rax,%r14,4), %edi
	callq	_aio_cancel
	movq	_sync_aiocb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	callq	_fsync
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %r15d
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_sync_active@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax,%r14,8)
	movq	_sync_aiocb@GOTPCREL(%rip), %r15
	addq	(%r15), %r12
	movq	%r12, %rdi
	callq	_aio_return
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	_sync_last@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	(%r15), %rax
	movl	$-1, (%rax,%r14,4)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rbx), %xmm0
	leaq	L_.str.1(%rip), %rsi
	movb	$1, %al
	callq	_fprintf
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_sync_active@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax,%r14,8)
	movq	%rbx, %r12
	movq	_sync_aiocb@GOTPCREL(%rip), %r15
	jne	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%r14,4), %rdi
	addq	(%r15), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%r14,4), %eax
	movq	(%r15), %rcx
	leaq	(%rcx,%r14,4), %rsi
	movl	%eax, (%rcx,%r14,4)
	movq	_O_DSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_aio_fsync
	testq	%rax, %rax
	jns	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r12), %xmm0
	movq	_fnames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r14,8), %rdx
	leaq	L_.str.3(%rip), %rsi
	movb	$1, %al
	callq	_fprintf
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%r14,4), %edi
	callq	_fsync
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	_sync_active@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%r14,8)
	testq	%r14, %r14
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_letter_stat@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leal	-1(%r14), %ecx
	movq	(%rax,%rcx,8), %rax
	incl	20(%rax)
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jg	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_log_drive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rsi
	movq	_fnames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r14,8), %rdx
	leaq	L_.str.4(%rip), %rdi
	callq	_kprintf
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	je	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	1(%r14), %rbx
	movl	4(%rax,%r14,4), %edi
	callq	_fsync
	testq	%rax, %rax
	js	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	_sync_last@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r12), %xmm0
	movq	_fnames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r14,8), %rdx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r12), %xmm0
	movq	_fnames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r14,8), %rdx
	leaq	L_.str.5(%rip), %rsi
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %al
	callq	_fprintf
	jmp	LBB0_28
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rbx), %xmm0
	movq	_fnames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r14,8), %rdx
	leaq	L_.str.2(%rip), %rsi
	movb	$1, %al
	callq	_fprintf
	movq	(%r15), %rax
	movl	(%rax,%r14,4), %edi
	callq	_fsync
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r12
	movq	_sync_aiocb@GOTPCREL(%rip), %r15
	testl	%r13d, %r13d
	jne	LBB0_23
	jmp	LBB0_22
LBB0_29:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rbx
	je	LBB0_36
## %bb.30:
	testl	%eax, %eax
	js	LBB0_36
## %bb.31:
	xorl	%r15d, %r15d
	movq	$-1, %rbx
	leaq	L_.str.7(%rip), %r14
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	_MAX_PRIORITY@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_35
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax,%rbx,4), %edi
	callq	_fsync
	testq	%rax, %rax
	jns	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r12), %xmm0
	movq	_fnames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax,%rbx,8), %rdx
	movq	%r14, %rsi
	movb	$1, %al
	callq	_fprintf
	movl	$1, %r15d
	jmp	LBB0_34
LBB0_35:
	testl	%r15d, %r15d
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rbx
	jne	LBB0_38
LBB0_36:
	movl	(%rbx), %edi
	callq	_get_utime
	subsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	ucomisd	LCPI0_0(%rip), %xmm0
	jae	LBB0_39
## %bb.37:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.8(%rip), %rsi
	movb	$1, %al
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_38:
	movl	$3, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_MAX_PRIORITY,4,2               ## @MAX_PRIORITY
	.comm	_sync_active,8,3                ## @sync_active
	.comm	_sync_aiocb,8,3                 ## @sync_aiocb
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_now,8,3                        ## @now
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d aio_sync didn't complete for 120 seconds, invoking fsync()!\n"

	.comm	_sync_last,8,3                  ## @sync_last
	.comm	_verbosity,4,2                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"%d aio_fsync() completed successfully\n"

L_.str.2:                               ## @.str.2
	.asciz	"%d error syncing %s: %m\n"

	.comm	_fnames,8,3                     ## @fnames
	.comm	_fd,8,3                         ## @fd
	.comm	_O_DSYNC,4,2                    ## @O_DSYNC
L_.str.3:                               ## @.str.3
	.asciz	"%d aio_fsync() for %s failed: %m\n"

	.comm	_letter_stat,8,3                ## @letter_stat
	.comm	_log_drive,8,3                  ## @log_drive
L_.str.4:                               ## @.str.4
	.asciz	"%d queued aio_fsync() for %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"%d error syncing %s: %m"

L_.str.6:                               ## @.str.6
	.asciz	"%d sync ok for %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"%d error resyncing %s: %m"

L_.str.8:                               ## @.str.8
	.asciz	"Warning. fsync time = %.9lf at time %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_all                      ; -- Begin function flush_all
	.p2align	2
_flush_all:                             ; @flush_all
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
	bl	_save_index
Lloh0:
	adrp	x22, _CLOCK_MONOTONIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CLOCK_MONOTONIC@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_get_utime
	fmov	d8, d0
Lloh2:
	adrp	x26, _MAX_PRIORITY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MAX_PRIORITY@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh4:
	adrp	x23, _stderr@GOTPAGE
Lloh5:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
Lloh6:
	adrp	x25, _now@GOTPAGE
Lloh7:
	ldr	x25, [x25, _now@GOTPAGEOFF]
	tbnz	w8, #31, LBB0_35
; %bb.1:
	mov	x21, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
Lloh8:
	adrp	x20, _sync_active@GOTPAGE
Lloh9:
	ldr	x20, [x20, _sync_active@GOTPAGEOFF]
Lloh10:
	adrp	x24, _fd@GOTPAGE
Lloh11:
	ldr	x24, [x24, _fd@GOTPAGEOFF]
Lloh12:
	adrp	x28, _sync_aiocb@GOTPAGE
Lloh13:
	ldr	x28, [x28, _sync_aiocb@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x21, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x26]
	cmp	x21, x8
	mov	x21, x27
	b.ge	LBB0_28
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	add	x0, x8, x21, lsl #2
	bl	_aio_error
	mov	x27, x0
Lloh14:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x20]
	ldr	x9, [x9, x21, lsl #3]
	add	x9, x9, #120
	cmp	x8, x9
	b.le	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	scvtf	d0, x8
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x28]
	lsl	x22, x21, #2
	add	x1, x8, x22
	ldr	w0, [x1]
	bl	_aio_cancel
	ldr	x8, [x28]
	ldr	w0, [x8, x22]
	bl	_fsync
Lloh19:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	mov	w9, #1
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, w8
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	str	xzr, [x8, x21, lsl #3]
	ldr	x8, [x28]
	add	x0, x8, x21, lsl #2
	bl	_aio_return
	tbnz	w0, #31, LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
Lloh22:
	adrp	x9, _sync_last@GOTPAGE
Lloh23:
	ldr	x9, [x9, _sync_last@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	str	x8, [x9, x21, lsl #3]
	ldr	x8, [x28]
	mov	w9, #-1
	str	w9, [x8, x21, lsl #2]
Lloh25:
	adrp	x8, _verbosity@GOTPAGE
Lloh26:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	ldr	d0, [x25]
	scvtf	d0, d0
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w19, LBB0_21
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, x21, lsl #3]
	cbnz	x8, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	mov	x22, x23
	lsl	x23, x21, #2
	add	x0, x8, x23
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x24]
	add	x27, x21, #1
	ldr	w8, [x8, x27, lsl #2]
	ldr	x9, [x28]
	add	x1, x9, x23
	mov	x23, x22
	str	w8, [x1]
Lloh30:
	adrp	x8, _O_DSYNC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _O_DSYNC@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_aio_fsync
	tbz	x0, #63, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	ldr	d0, [x25]
	scvtf	d0, d0
Lloh33:
	adrp	x8, _fnames@GOTPAGE
Lloh34:
	ldr	x8, [x8, _fnames@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	x8, [x8, x27, lsl #3]
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	x8, [x24]
	ldr	w0, [x8, x27, lsl #2]
	bl	_fsync
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x20]
	str	x8, [x9, x21, lsl #3]
	cbz	x21, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh38:
	adrp	x8, _letter_stat@GOTPAGE
Lloh39:
	ldr	x8, [x8, _letter_stat@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	sub	w9, w21, #1
	ldr	x8, [x8, w9, uxtw #3]
	ldr	w9, [x8, #20]
	add	w9, w9, #1
	str	w9, [x8, #20]
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh41:
	adrp	x8, _verbosity@GOTPAGE
Lloh42:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmp	w8, #1
	b.gt	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh44:
	adrp	x8, _log_drive@GOTPAGE
Lloh45:
	ldr	x8, [x8, _log_drive@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	cbz	x8, LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25]
Lloh47:
	adrp	x8, _fnames@GOTPAGE
Lloh48:
	ldr	x8, [x8, _fnames@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	ldr	x2, [x8, x27, lsl #3]
Lloh50:
	adrp	x0, l_.str.4@PAGE
Lloh51:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_kprintf
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w19, LBB0_2
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	add	x27, x21, #1
	ldr	w0, [x8, x27, lsl #2]
	bl	_fsync
	tbnz	x0, #63, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
Lloh52:
	adrp	x9, _sync_last@GOTPAGE
Lloh53:
	ldr	x9, [x9, _sync_last@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	str	x8, [x9, x21, lsl #3]
Lloh55:
	adrp	x8, _verbosity@GOTPAGE
Lloh56:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	ldr	d0, [x25]
	scvtf	d0, d0
Lloh58:
	adrp	x8, _fnames@GOTPAGE
Lloh59:
	ldr	x8, [x8, _fnames@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	ldr	x8, [x8, x27, lsl #3]
	str	x8, [sp]
Lloh61:
	adrp	x1, l_.str.6@PAGE
Lloh62:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	ldr	d0, [x25]
	scvtf	d0, d0
Lloh63:
	adrp	x8, _fnames@GOTPAGE
Lloh64:
	ldr	x8, [x8, _fnames@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	ldr	x8, [x8, x27, lsl #3]
	str	x8, [sp]
Lloh66:
	adrp	x1, l_.str.5@PAGE
Lloh67:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_fprintf
	b	LBB0_3
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	ldr	d0, [x25]
	scvtf	d0, d0
Lloh68:
	adrp	x8, _fnames@GOTPAGE
Lloh69:
	ldr	x8, [x8, _fnames@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	add	x8, x8, x21, lsl #3
	ldr	x8, [x8, #8]
	str	x8, [sp]
Lloh71:
	adrp	x1, l_.str.2@PAGE
Lloh72:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	x8, [x28]
	ldr	w0, [x8, x21, lsl #2]
	bl	_fsync
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cbz	w19, LBB0_13
	b	LBB0_21
LBB0_28:
Lloh73:
	adrp	x22, _CLOCK_MONOTONIC@GOTPAGE
Lloh74:
	ldr	x22, [x22, _CLOCK_MONOTONIC@GOTPAGEOFF]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w9, LBB0_35
; %bb.29:
	tbnz	w8, #31, LBB0_35
; %bb.30:
	mov	w21, #0
	mov	w20, #1
Lloh75:
	adrp	x19, l_.str.7@PAGE
Lloh76:
	add	x19, x19, l_.str.7@PAGEOFF
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	ldrsw	x8, [x26]
	sub	x9, x20, #1
	add	x20, x20, #1
	cmp	x9, x8
	b.ge	LBB0_34
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x20, lsl #2]
	bl	_fsync
	tbz	x0, #63, LBB0_31
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	w0, [x23]
	ldr	d0, [x25]
	scvtf	d0, d0
Lloh77:
	adrp	x8, _fnames@GOTPAGE
Lloh78:
	ldr	x8, [x8, _fnames@GOTPAGEOFF]
Lloh79:
	ldr	x8, [x8]
	ldr	x8, [x8, x20, lsl #3]
	str	x8, [sp]
	mov	x1, x19
	bl	_fprintf
	mov	w21, #1
	b	LBB0_31
LBB0_34:
	cbnz	w21, LBB0_38
LBB0_35:
	ldr	w0, [x22]
	bl	_get_utime
	fsub	d0, d0, d8
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.lt	LBB0_37
; %bb.36:
	ldr	w0, [x23]
	ldr	x8, [x25]
	str	x8, [sp]
Lloh80:
	adrp	x1, l_.str.8@PAGE
Lloh81:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
LBB0_37:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_38:
	mov	w0, #3
	bl	_exit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_MAX_PRIORITY,4,2               ; @MAX_PRIORITY
	.comm	_sync_active,8,3                ; @sync_active
	.comm	_sync_aiocb,8,3                 ; @sync_aiocb
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_now,8,3                        ; @now
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d aio_sync didn't complete for 120 seconds, invoking fsync()!\n"

	.comm	_sync_last,8,3                  ; @sync_last
	.comm	_verbosity,4,2                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"%d aio_fsync() completed successfully\n"

l_.str.2:                               ; @.str.2
	.asciz	"%d error syncing %s: %m\n"

	.comm	_fnames,8,3                     ; @fnames
	.comm	_fd,8,3                         ; @fd
	.comm	_O_DSYNC,4,2                    ; @O_DSYNC
l_.str.3:                               ; @.str.3
	.asciz	"%d aio_fsync() for %s failed: %m\n"

	.comm	_letter_stat,8,3                ; @letter_stat
	.comm	_log_drive,8,3                  ; @log_drive
l_.str.4:                               ; @.str.4
	.asciz	"%d queued aio_fsync() for %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"%d error syncing %s: %m"

l_.str.6:                               ; @.str.6
	.asciz	"%d sync ok for %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"%d error resyncing %s: %m"

l_.str.8:                               ; @.str.8
	.asciz	"Warning. fsync time = %.9lf at time %d\n"

.subsections_via_symbols
