	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_binlog                   ## -- Begin function flush_binlog
	.p2align	4, 0x90
_flush_binlog:                          ## @flush_binlog
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_binlogname@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_40
## %bb.1:
	movq	_binlog_disabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_40
## %bb.2:
	movq	_binlog_write_active@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	_binlog_write_aiocb@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_aio_error
	movl	%eax, %r12d
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_7
## %bb.5:
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%rbx), %rax
	leaq	120(%rax), %rcx
	xorl	%r14d, %r14d
	cmpq	%rcx, %rdx
	jg	LBB0_6
## %bb.20:
	testq	%rax, %rax
	jne	LBB0_39
	jmp	LBB0_21
LBB0_40:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_7:
	movq	$0, (%rbx)
	movq	_binlog_write_aiocb@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_aio_return
	testl	%eax, %eax
	js	LBB0_41
## %bb.8:
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	4(%r14), %eax
	setle	%dil
	callq	_assert
	movq	_now@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_binlog_write_last@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%r14), %edi
	movq	_binlog_fd@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_11
## %bb.9:
	movq	_binlog_sync_aiocb@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_11
## %bb.10:
	callq	_close
LBB0_11:
	movl	$-1, (%r14)
	movq	_aio_write_start@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_assert
	movq	_W@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	(%r13), %eax
	jne	LBB0_17
## %bb.12:
	movl	%r15d, %ecx
	movq	_log_pos@GOTPCREL(%rip), %rdx
	addq	%rcx, (%rdx)
	addl	%r15d, %eax
	movl	%eax, (%rbx)
	movq	_Binlog@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.13:
	movq	_binlog_cyclic_mode@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jne	LBB0_15
## %bb.14:
	movq	(%rcx), %rcx
	addl	%r15d, (%rcx)
LBB0_15:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	sete	%sil
	cmpl	8(%rbx), %eax
	setle	%dl
	andb	%sil, %dl
	cmpl	%ecx, %eax
	setle	%al
	orb	%dl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	(%rbx), %eax
	cmpl	4(%rbx), %eax
	jne	LBB0_17
## %bb.16:
	movl	12(%rbx), %eax
	movl	%eax, (%rbx)
	movl	$0, 4(%rbx)
LBB0_17:
	movl	$0, (%r13)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_19
## %bb.18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rdx
	movq	8(%r14), %rcx
	movslq	4(%r14), %r8
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_19:
	movq	_binlog_write_active@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_39
LBB0_21:
	movq	_W@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	cmpl	8(%r13), %eax
	je	LBB0_39
## %bb.22:
	movq	_log_pos@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movq	_log_start_pos@GOTPCREL(%rip), %rcx
	subq	(%rcx), %r15
	movq	_log_headers_size@GOTPCREL(%rip), %rcx
	addq	(%rcx), %r15
	movl	4(%r13), %edx
	movl	16(%r13), %ecx
	testl	%edx, %edx
	je	LBB0_29
## %bb.23:
	cmpl	%ecx, %eax
	jg	LBB0_26
## %bb.24:
	movl	%edx, %ebx
	subl	%ecx, %ebx
	jle	LBB0_26
## %bb.25:
	xorl	%eax, %eax
	callq	_relax_write_log_crc32
	movq	_Binlog@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	16(%r13), %esi
	leal	(%r15,%rsi), %ecx
	subl	(%r13), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_kfs_buffer_crypt
	movl	12(%r13), %ecx
	movl	%ecx, 16(%r13)
	movl	(%r13), %eax
	movl	4(%r13), %edx
LBB0_26:
	movl	%edx, %ebx
	subl	%eax, %ebx
	je	LBB0_27
## %bb.28:
	testl	%edx, %edx
	jne	LBB0_33
	jmp	LBB0_29
LBB0_27:
	movl	12(%r13), %eax
	movl	%eax, (%r13)
	movl	$0, 4(%r13)
LBB0_29:
	movl	8(%r13), %ebx
	cmpl	%ecx, %eax
	jg	LBB0_32
## %bb.30:
	movl	%ebx, %r12d
	subl	%ecx, %r12d
	jle	LBB0_32
## %bb.31:
	xorl	%eax, %eax
	callq	_relax_write_log_crc32
	movq	_Binlog@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	16(%r13), %esi
	leal	(%r15,%rsi), %ecx
	subl	(%r13), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r12d, %edx
	callq	_kfs_buffer_crypt
	movl	(%r13), %eax
	movl	8(%r13), %ebx
	movl	%ebx, 16(%r13)
LBB0_32:
	subl	%eax, %ebx
LBB0_33:
	movl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	testl	%ebx, %ebx
	jle	LBB0_39
## %bb.34:
	movq	_binlog_write_aiocb@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_binlog_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r15, 8(%r12)
	movl	%ebx, 4(%r12)
	movl	(%r13), %eax
	movl	%eax, 16(%r12)
	movq	_SIGEV_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	%r12, %rdi
	callq	_aio_write
	testq	%rax, %rax
	js	LBB0_35
## %bb.37:
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_binlog_write_active@GOTPCREL(%rip), %rax
	movq	%rdx, (%rax)
	movl	(%r13), %eax
	movq	_aio_write_start@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_39
## %bb.38:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rcx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_39:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sync_binlog                    ## TAILCALL
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	movq	%r15, %rsi
	callq	_aio_cancel
	jmp	LBB0_36
LBB0_41:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%r13), %rcx
	movq	8(%r14), %r8
	movslq	4(%r14), %r9
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_36
LBB0_35:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rcx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_36:
	movl	$1, %edi
	callq	_flush_binlog_forced
	movl	$3, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_binlogname,8,3                 ## @binlogname
	.comm	_binlog_disabled,8,3            ## @binlog_disabled
	.comm	_binlog_write_active,8,3        ## @binlog_write_active
	.comm	_binlog_write_aiocb,24,3        ## @binlog_write_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 binlog aio_write didn't complete for 120 seconds, invoking write()!\n"

	.comm	_binlog_write_last,8,3          ## @binlog_write_last
	.comm	_binlog_fd,4,2                  ## @binlog_fd
	.comm	_binlog_sync_aiocb,4,2          ## @binlog_sync_aiocb
	.comm	_aio_write_start,4,2            ## @aio_write_start
	.comm	_W,20,2                         ## @W
	.comm	_log_pos,8,3                    ## @log_pos
	.comm	_Binlog,8,3                     ## @Binlog
	.comm	_binlog_cyclic_mode,4,2         ## @binlog_cyclic_mode
	.comm	_verbosity,4,2                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"%d aio_write() for binlog (position=%lld, size=%ld) completed successfully, %d bytes written\n"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"%d error writing binlog %s (position=%lld, size=%ld): %m\n"

	.comm	_log_start_pos,8,3              ## @log_start_pos
	.comm	_log_headers_size,8,3           ## @log_headers_size
	.comm	_SIGEV_NONE,4,2                 ## @SIGEV_NONE
L_.str.3:                               ## @.str.3
	.asciz	"%d aio_write() for binlog (position=%lld, size=%d) failed: %m\n"

L_.str.4:                               ## @.str.4
	.asciz	"%d queued aio_write() for binlog (position=%lld, size=%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_binlog                   ; -- Begin function flush_binlog
	.p2align	2
_flush_binlog:                          ; @flush_binlog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x23, _binlogname@GOTPAGE
Lloh1:
	ldr	x23, [x23, _binlogname@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x9, _binlog_disabled@GOTPAGE
Lloh3:
	ldr	x9, [x9, _binlog_disabled@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
Lloh5:
	adrp	x22, _binlog_write_active@GOTPAGE
Lloh6:
	ldr	x22, [x22, _binlog_write_active@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.3:
Lloh7:
	adrp	x19, _binlog_write_aiocb@GOTPAGE
Lloh8:
	ldr	x19, [x19, _binlog_write_aiocb@GOTPAGEOFF]
	mov	x0, x19
	bl	_aio_error
Lloh9:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _now@GOTPAGE
Lloh13:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
	ldr	x8, [x22]
	add	x9, x8, #120
	cmp	x2, x9
	b.gt	LBB0_35
; %bb.5:
	mov	w19, #0
	cbnz	x8, LBB0_34
	b	LBB0_20
LBB0_6:
	mov	w19, #0
	b	LBB0_20
LBB0_7:
	mov	x21, x0
	str	xzr, [x22]
Lloh15:
	adrp	x19, _binlog_write_aiocb@GOTPAGE
Lloh16:
	ldr	x19, [x19, _binlog_write_aiocb@GOTPAGEOFF]
	mov	x0, x19
	bl	_aio_return
	tbnz	w0, #31, LBB0_36
; %bb.8:
	mov	x20, x0
	ldr	w8, [x19, #4]
	cmp	w0, w8
	cset	w0, le
	bl	_assert
Lloh17:
	adrp	x21, _now@GOTPAGE
Lloh18:
	ldr	x21, [x21, _now@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh19:
	adrp	x9, _binlog_write_last@GOTPAGE
Lloh20:
	ldr	x9, [x9, _binlog_write_last@GOTPAGEOFF]
Lloh21:
	str	x8, [x9]
	ldr	w0, [x19]
Lloh22:
	adrp	x8, _binlog_fd@GOTPAGE
Lloh23:
	ldr	x8, [x8, _binlog_fd@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.9:
Lloh25:
	adrp	x8, _binlog_sync_aiocb@GOTPAGE
Lloh26:
	ldr	x8, [x8, _binlog_sync_aiocb@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.10:
	bl	_close
LBB0_11:
	mov	w8, #-1
	str	w8, [x19]
Lloh28:
	adrp	x23, _aio_write_start@GOTPAGE
Lloh29:
	ldr	x23, [x23, _aio_write_start@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_assert
Lloh30:
	adrp	x24, _W@GOTPAGE
Lloh31:
	ldr	x24, [x24, _W@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.12:
Lloh32:
	adrp	x9, _log_pos@GOTPAGE
Lloh33:
	ldr	x9, [x9, _log_pos@GOTPAGEOFF]
	ldr	x10, [x9]
	add	x10, x10, w20, uxtw
	str	x10, [x9]
	add	w8, w8, w20
	str	w8, [x24]
Lloh34:
	adrp	x9, _Binlog@GOTPAGE
Lloh35:
	ldr	x9, [x9, _Binlog@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cbz	x9, LBB0_15
; %bb.13:
Lloh37:
	adrp	x10, _binlog_cyclic_mode@GOTPAGE
Lloh38:
	ldr	x10, [x10, _binlog_cyclic_mode@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	cbnz	w10, LBB0_15
; %bb.14:
	ldr	x9, [x9]
	ldr	w10, [x9]
	add	w10, w10, w20
	str	w10, [x9]
LBB0_15:
	ldp	w9, w10, [x24, #4]
	cmp	w9, #0
	ccmp	w8, w10, #0, eq
	ccmp	w8, w9, #4, gt
	cset	w0, le
	bl	_assert
	ldp	w8, w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.16:
	ldr	w8, [x24, #12]
	stp	w8, wzr, [x24]
LBB0_17:
	str	wzr, [x23]
Lloh40:
	adrp	x8, _verbosity@GOTPAGE
Lloh41:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.18:
Lloh43:
	adrp	x8, _stderr@GOTPAGE
Lloh44:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	ldr	x2, [x21]
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	stp	x9, x20, [sp, #8]
	str	x8, [sp]
Lloh46:
	adrp	x1, l_.str.1@PAGE
Lloh47:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_19:
	ldr	x8, [x22]
	mov	w19, #1
	cbnz	x8, LBB0_34
LBB0_20:
Lloh48:
	adrp	x23, _W@GOTPAGE
Lloh49:
	ldr	x23, [x23, _W@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x23, #8]
	cmp	w8, w9
	b.eq	LBB0_34
; %bb.21:
Lloh50:
	adrp	x9, _log_pos@GOTPAGE
Lloh51:
	ldr	x9, [x9, _log_pos@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
Lloh53:
	adrp	x10, _log_start_pos@GOTPAGE
Lloh54:
	ldr	x10, [x10, _log_start_pos@GOTPAGEOFF]
Lloh55:
	adrp	x11, _log_headers_size@GOTPAGE
Lloh56:
	ldr	x11, [x11, _log_headers_size@GOTPAGEOFF]
Lloh57:
	ldr	x10, [x10]
Lloh58:
	ldr	x11, [x11]
	sub	x9, x9, x10
	add	x21, x9, x11
	ldr	w10, [x23, #4]
	ldr	w9, [x23, #16]
	cbz	w10, LBB0_27
; %bb.22:
	cmp	w8, w9
	ccmp	w10, w9, #4, le
	b.le	LBB0_24
; %bb.23:
	sub	w20, w10, w9
	bl	_relax_write_log_crc32
Lloh59:
	adrp	x8, _Binlog@GOTPAGE
Lloh60:
	ldr	x8, [x8, _Binlog@GOTPAGEOFF]
Lloh61:
	ldr	x0, [x8]
	ldr	w1, [x23, #16]
	ldr	w8, [x23]
	add	w9, w1, w21
	sub	w3, w9, w8
	mov	x2, x20
	bl	_kfs_buffer_crypt
	ldr	w9, [x23, #12]
	str	w9, [x23, #16]
	ldp	w8, w10, [x23]
LBB0_24:
	subs	w24, w10, w8
	b.eq	LBB0_26
; %bb.25:
	cbnz	w10, LBB0_30
	b	LBB0_27
LBB0_26:
	ldr	w8, [x23, #12]
	stp	w8, wzr, [x23]
LBB0_27:
	ldr	w10, [x23, #8]
	cmp	w8, w9
	ccmp	w10, w9, #4, le
	b.le	LBB0_29
; %bb.28:
	sub	w20, w10, w9
	bl	_relax_write_log_crc32
Lloh62:
	adrp	x8, _Binlog@GOTPAGE
Lloh63:
	ldr	x8, [x8, _Binlog@GOTPAGEOFF]
Lloh64:
	ldr	x0, [x8]
	ldr	w1, [x23, #16]
	ldr	w8, [x23]
	add	w9, w1, w21
	sub	w3, w9, w8
	mov	x2, x20
	bl	_kfs_buffer_crypt
	ldr	w10, [x23, #8]
	str	w10, [x23, #16]
	ldr	w8, [x23]
LBB0_29:
	sub	w24, w10, w8
LBB0_30:
	mvn	w8, w24
	lsr	w0, w8, #31
	bl	_assert
	cmp	w24, #1
	b.lt	LBB0_34
; %bb.31:
Lloh65:
	adrp	x20, _binlog_write_aiocb@GOTPAGE
Lloh66:
	ldr	x20, [x20, _binlog_write_aiocb@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh67:
	adrp	x8, _binlog_fd@GOTPAGE
Lloh68:
	ldr	x8, [x8, _binlog_fd@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	str	x21, [x20, #8]
	stp	w8, w24, [x20]
	ldr	w8, [x23]
Lloh70:
	adrp	x9, _SIGEV_NONE@GOTPAGE
Lloh71:
	ldr	x9, [x9, _SIGEV_NONE@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #16]
	mov	x0, x20
	bl	_aio_write
	tbnz	x0, #63, LBB0_37
; %bb.32:
Lloh73:
	adrp	x8, _now@GOTPAGE
Lloh74:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh75:
	ldr	x2, [x8]
	str	x2, [x22]
Lloh76:
	adrp	x8, _aio_write_start@GOTPAGE
Lloh77:
	ldr	x8, [x8, _aio_write_start@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh78:
	str	w9, [x8]
Lloh79:
	adrp	x8, _verbosity@GOTPAGE
Lloh80:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_34
; %bb.33:
Lloh82:
	adrp	x8, _stderr@GOTPAGE
Lloh83:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	stp	x21, x24, [sp]
Lloh85:
	adrp	x1, l_.str.4@PAGE
Lloh86:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_34:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_sync_binlog
LBB0_35:
Lloh87:
	adrp	x8, _stderr@GOTPAGE
Lloh88:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
Lloh90:
	adrp	x1, l_.str@PAGE
Lloh91:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
	mov	x1, x19
	bl	_aio_cancel
	b	LBB0_39
LBB0_36:
Lloh92:
	adrp	x8, _errno@GOTPAGE
Lloh93:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh94:
	str	w21, [x8]
Lloh95:
	adrp	x8, _stderr@GOTPAGE
Lloh96:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh97:
	ldr	w0, [x8]
Lloh98:
	adrp	x8, _now@GOTPAGE
Lloh99:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh100:
	ldr	x2, [x8]
	ldr	x8, [x23]
	ldr	x9, [x19, #8]
	ldrsw	x10, [x19, #4]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh101:
	adrp	x1, l_.str.2@PAGE
Lloh102:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_38
LBB0_37:
Lloh103:
	adrp	x8, _stderr@GOTPAGE
Lloh104:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh105:
	ldr	w0, [x8]
Lloh106:
	adrp	x8, _now@GOTPAGE
Lloh107:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh108:
	ldr	x2, [x8]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	stp	x21, x24, [sp]
Lloh109:
	adrp	x1, l_.str.3@PAGE
Lloh110:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_38:
	bl	_fprintf
LBB0_39:
	mov	w0, #1
	bl	_flush_binlog_forced
	mov	w0, #3
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh57
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotStr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotStr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.cfi_endproc
                                        ; -- End function
	.comm	_binlogname,8,3                 ; @binlogname
	.comm	_binlog_disabled,8,3            ; @binlog_disabled
	.comm	_binlog_write_active,8,3        ; @binlog_write_active
	.comm	_binlog_write_aiocb,24,3        ; @binlog_write_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 binlog aio_write didn't complete for 120 seconds, invoking write()!\n"

	.comm	_binlog_write_last,8,3          ; @binlog_write_last
	.comm	_binlog_fd,4,2                  ; @binlog_fd
	.comm	_binlog_sync_aiocb,4,2          ; @binlog_sync_aiocb
	.comm	_aio_write_start,4,2            ; @aio_write_start
	.comm	_W,20,2                         ; @W
	.comm	_log_pos,8,3                    ; @log_pos
	.comm	_Binlog,8,3                     ; @Binlog
	.comm	_binlog_cyclic_mode,4,2         ; @binlog_cyclic_mode
	.comm	_verbosity,4,2                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"%d aio_write() for binlog (position=%lld, size=%ld) completed successfully, %d bytes written\n"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"%d error writing binlog %s (position=%lld, size=%ld): %m\n"

	.comm	_log_start_pos,8,3              ; @log_start_pos
	.comm	_log_headers_size,8,3           ; @log_headers_size
	.comm	_SIGEV_NONE,4,2                 ; @SIGEV_NONE
l_.str.3:                               ; @.str.3
	.asciz	"%d aio_write() for binlog (position=%lld, size=%d) failed: %m\n"

l_.str.4:                               ; @.str.4
	.asciz	"%d queued aio_write() for binlog (position=%lld, size=%d)\n"

.subsections_via_symbols
