	.file	"extr_sqlite3_omit.c_fetchPayload.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fetchPayload, @function
fetchPayload:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	xor	edi, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rbx, rbx
	je	.L2
	cmp	QWORD PTR [rbx], 0
	js	.L2
	xor	edi, edi
	cmp	QWORD PTR 48[rbx], 0
	setne	dil
.L2:
	call	assert@PLT
	mov	rax, QWORD PTR CURSOR_VALID[rip]
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], rax
	sete	dil
	call	assert@PLT
	mov	rax, QWORD PTR 56[rbx]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	sqlite3_mutex_held@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rdi, rbx
	call	cursorOwnsBtShared@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR 48[rbx]
	xor	edi, edi
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR 16[rbx], rax
	setl	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 24[rbx], 0
	setg	dil
	call	assert@PLT
	mov	rax, QWORD PTR 48[rbx]
	mov	edi, 1
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR 32[rbx], rax
	jg	.L3
	mov	edx, DWORD PTR CORRUPT_DB[rip]
	xor	edi, edi
	test	edx, edx
	setne	dil
.L3:
	call	assert@PLT
	mov	rax, QWORD PTR 48[rbx]
	mov	edi, 1
	mov	rax, QWORD PTR 16[rax]
	cmp	QWORD PTR 32[rbx], rax
	jl	.L4
	mov	eax, DWORD PTR CORRUPT_DB[rip]
	xor	edi, edi
	test	eax, eax
	setne	dil
.L4:
	call	assert@PLT
	mov	rdx, QWORD PTR 48[rbx]
	mov	eax, DWORD PTR 40[rbx]
	mov	rdx, QWORD PTR 16[rdx]
	sub	edx, DWORD PTR 32[rbx]
	cmp	edx, eax
	jl	.L13
.L5:
	cdqe
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR 32[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR CORRUPT_DB[rip]
	call	assert@PLT
	mov	rax, QWORD PTR 48[rbx]
	xor	edi, edi
	mov	rsi, QWORD PTR 16[rax]
	sub	esi, DWORD PTR 32[rbx]
	call	MAX@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	fetchPayload, .-fetchPayload
	.comm	CURSOR_VALID,8,8
	.comm	CORRUPT_DB,4,4
	.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_fetchPayload.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fetchPayload, %function
fetchPayload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	mov	r5, r1
	beq	.L7
	ldr	r3, [r4]
	cmp	r3, #0
	blt	.L7
	ldr	r0, [r4, #24]
	subs	r0, r0, #0
	movne	r0, #1
	b	.L2
.L7:
	mov	r0, #0
.L2:
	bl	assert
	ldr	r3, .L13
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r4, #28]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	sqlite3_mutex_held
	bl	assert
	mov	r0, r4
	bl	cursorOwnsBtShared
	bl	assert
	ldr	r3, [r4, #24]
	ldr	r0, [r4, #8]
	ldr	r3, [r3]
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	bl	assert
	ldr	r0, [r4, #12]
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	ldr	r3, [r4, #24]
	ldr	r2, [r4, #16]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	movgt	r0, #1
	bgt	.L3
	ldr	r3, .L13+4
	ldr	r0, [r3]
	subs	r0, r0, #0
	movne	r0, #1
.L3:
	bl	assert
	ldr	r3, [r4, #24]
	ldr	r2, [r4, #16]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	movlt	r0, #1
	blt	.L4
	ldr	r3, .L13+4
	ldr	r0, [r3]
	subs	r0, r0, #0
	movne	r0, #1
.L4:
	bl	assert
	ldr	r3, [r4, #24]
	ldr	r2, [r4, #16]
	ldr	r3, [r3, #8]
	ldr	r0, [r4, #20]
	sub	r3, r3, r2
	cmp	r3, r0
	blt	.L12
.L5:
	str	r0, [r5]
	ldr	r0, [r4, #16]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	bl	assert
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #16]
	ldr	r1, [r2, #8]
	mov	r0, #0
	sub	r1, r1, r3
	bl	MAX
	b	.L5
.L14:
	.align	2
.L13:
	.word	CURSOR_VALID
	.word	CORRUPT_DB
	.size	fetchPayload, .-fetchPayload
	.comm	CURSOR_VALID,4,4
	.comm	CORRUPT_DB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
