	.file	"extr_sqlite3_omit.c_walWriteToLog.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	walWriteToLog, @function
walWriteToLog:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	mov	edi, DWORD PTR 8[rdi]
	cmp	rax, rcx
	jle	.L2
	movsx	rdx, edx
	add	rdx, rcx
	cmp	rax, rdx
	jle	.L6
.L2:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r13d
	mov	rsi, r14
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	sqlite3OsWrite@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	ebx, eax
	mov	QWORD PTR 8[rsp], rcx
	sub	ebx, ecx
	mov	edx, ebx
	call	sqlite3OsWrite@PLT
	test	eax, eax
	je	.L7
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbp]
	sub	r13d, ebx
	call	WAL_SYNC_FLAGS@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	call	assert@PLT
	mov	edi, DWORD PTR 12[rbp]
	call	WAL_SYNC_FLAGS@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	rsi, rax
	call	sqlite3OsSync@PLT
	test	r13d, r13d
	je	.L1
	test	eax, eax
	jne	.L1
	mov	rcx, QWORD PTR 8[rsp]
	movsx	rax, ebx
	mov	edi, DWORD PTR 8[rbp]
	add	r14, rax
	add	rcx, rax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	walWriteToLog, .-walWriteToLog
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sqlite3_omit.c_walWriteToLog.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	walWriteToLog, %function
walWriteToLog:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r0]
	mov	r4, r0
	cmp	r7, r3
	mov	ip, r3
	mov	r5, r2
	mov	r6, r1
	ldr	r0, [r0, #4]
	ble	.L2
	add	r2, r3, r2
	cmp	r7, r2
	ble	.L6
.L2:
	mov	r2, r5
	mov	r1, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r3, ip
	b	sqlite3OsWrite
.L6:
	sub	r8, r7, r3
	mov	r2, r8
	bl	sqlite3OsWrite
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r0, [r4, #8]
	bl	WAL_SYNC_FLAGS
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r0, [r4, #8]
	ldr	r9, [r4, #4]
	bl	WAL_SYNC_FLAGS
	mov	r1, r0
	mov	r0, r9
	bl	sqlite3OsSync
	sub	r5, r5, r8
	subs	r3, r0, #0
	movne	r3, #1
	cmp	r5, #0
	moveq	r3, #1
	cmp	r3, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	ip, r7
	ldr	r0, [r4, #4]
	add	r6, r6, r8
	b	.L2
	.size	walWriteToLog, .-walWriteToLog
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
