	.file	"extr_sqlite3.c_walDecodeFrame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	walDecodeFrame, @function
walDecodeFrame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR 24[rdi]
	xor	edi, edi
	cmp	DWORD PTR WAL_FRAME_HDRSIZE[rip], 24
	sete	dil
	call	assert@PLT
	lea	rsi, 32[rbp]
	lea	rdi, 16[rbx]
	mov	edx, 8
	call	memcmp@PLT
	test	rax, rax
	je	.L2
.L4:
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	sqlite3Get4byte@PLT
	test	rax, rax
	mov	QWORD PTR [rsp], rax
	je	.L4
	mov	rax, QWORD PTR SQLITE_BIGENDIAN[rip]
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], rax
	mov	r8, r15
	sete	dil
	mov	rcx, r15
	mov	edx, 8
	mov	rsi, rbp
	mov	DWORD PTR 12[rsp], edi
	call	walChecksumBytes@PLT
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR 12[rsp]
	mov	r8, r15
	mov	rcx, r15
	mov	rsi, r12
	call	walChecksumBytes@PLT
	mov	rbx, QWORD PTR [r15]
	lea	rdi, 64[rbp]
	call	sqlite3Get4byte@PLT
	cmp	rbx, rax
	jne	.L4
	mov	rbx, QWORD PTR 8[r15]
	lea	rdi, 80[rbp]
	call	sqlite3Get4byte@PLT
	mov	r9, QWORD PTR [rsp]
	cmp	rbx, rax
	jne	.L4
	mov	QWORD PTR [r14], r9
	lea	rdi, 16[rbp]
	call	sqlite3Get4byte@PLT
	mov	QWORD PTR 0[r13], rax
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	walDecodeFrame, .-walDecodeFrame
	.comm	WAL_FRAME_HDRSIZE,4,4
	.comm	SQLITE_BIGENDIAN,8,8
	.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.c_walDecodeFrame.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	walDecodeFrame, %function
walDecodeFrame:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r0, .L10
	sub	sp, sp, #12
	ldr	r0, [r0]
	ldr	r7, [sp, #48]
	sub	r0, r0, #24
	clz	r0, r0
	lsr	r0, r0, #5
	mov	r9, r1
	mov	r8, r2
	mov	r6, r3
	ldr	r5, [r4, #12]
	bl	assert
	mov	r2, #8
	add	r0, r4, #8
	add	r1, r7, #32
	bl	memcmp
	cmp	r0, #0
	beq	.L2
.L4:
	mov	r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r7
	bl	sqlite3Get4byte
	subs	r10, r0, #0
	beq	.L4
	ldr	r3, .L10+4
	ldr	fp, [r4, #4]
	ldr	r3, [r3]
	mov	r2, #8
	sub	fp, fp, r3
	clz	fp, fp
	lsr	fp, fp, #5
	mov	r3, r5
	mov	r1, r7
	mov	r0, fp
	str	r5, [sp]
	bl	walChecksumBytes
	str	r5, [sp]
	ldr	r2, [r4]
	mov	r1, r6
	mov	r3, r5
	mov	r0, fp
	bl	walChecksumBytes
	add	r0, r7, #64
	ldr	r4, [r5]
	bl	sqlite3Get4byte
	cmp	r4, r0
	bne	.L4
	add	r0, r7, #80
	ldr	r4, [r5, #4]
	bl	sqlite3Get4byte
	cmp	r4, r0
	bne	.L4
	str	r10, [r9]
	add	r0, r7, #16
	bl	sqlite3Get4byte
	mov	r3, r0
	mov	r0, #1
	str	r3, [r8]
	b	.L1
.L11:
	.align	2
.L10:
	.word	WAL_FRAME_HDRSIZE
	.word	SQLITE_BIGENDIAN
	.size	walDecodeFrame, .-walDecodeFrame
	.comm	WAL_FRAME_HDRSIZE,4,4
	.comm	SQLITE_BIGENDIAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
