	.file	"extr_sqlite3.c_vdbeMergeEngineLevel0.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vdbeMergeEngineLevel0, @function
vdbeMergeEngineLevel0:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	edi, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r12d, DWORD PTR SQLITE_OK[rip]
	mov	QWORD PTR 16[rsp], rdx
	mov	edx, DWORD PTR [rdx]
	mov	QWORD PTR 24[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 8[rsp], edx
	call	vdbeMergeEngineNew@PLT
	mov	edx, DWORD PTR 8[rsp]
	test	rax, rax
	cmove	r12d, DWORD PTR SQLITE_NOMEM_BKPT[rip]
	test	ebx, ebx
	mov	QWORD PTR [r15], rax
	mov	rbp, rax
	jle	.L3
	lea	eax, -1[rbx]
	xor	r14d, r14d
	lea	r15, 36[rsp]
	lea	rax, 4[0+rax*4]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbx, QWORD PTR 0[rbp]
	mov	r8, r15
	mov	rsi, r13
	mov	rdi, r13
	mov	DWORD PTR 36[rsp], 0
	add	rbx, r14
	add	r14, 4
	mov	rcx, rbx
	call	vdbePmaReaderInit@PLT
	mov	edx, DWORD PTR [rbx]
	mov	r12d, eax
	cmp	r14, QWORD PTR 8[rsp]
	je	.L3
.L4:
	cmp	DWORD PTR SQLITE_OK[rip], r12d
	je	.L5
.L6:
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], edx
	call	vdbeMergeEngineFree@PLT
	mov	rax, QWORD PTR 24[rsp]
	mov	edx, DWORD PTR 8[rsp]
	mov	QWORD PTR [rax], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	DWORD PTR SQLITE_OK[rip], r12d
	jne	.L6
.L7:
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vdbeMergeEngineLevel0, .-vdbeMergeEngineLevel0
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM_BKPT,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.c_vdbeMergeEngineLevel0.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdbeMergeEngineLevel0, %function
vdbeMergeEngineLevel0:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	mov	r4, r3
	str	r2, [sp, #12]
	str	r3, [sp, #20]
	ldr	r2, [r2]
	ldr	r3, .L14
	ldr	r8, .L14+4
	mov	fp, r0
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r5, [r8]
	mov	r7, r1
	str	r2, [sp, #16]
	bl	vdbeMergeEngineNew
	subs	r6, r0, #0
	ldreq	r3, .L14+8
	str	r0, [r4]
	ldreq	r5, [r3]
	cmp	r7, #0
	movgt	r4, #0
	movgt	r0, r5
	movgt	r10, r4
	ldr	r2, [sp, #16]
	addgt	r9, sp, #24
	bgt	.L3
	b	.L4
.L5:
	ldr	r5, [r6]
	mov	r1, fp
	add	r3, r5, r4, lsl #2
	mov	r0, fp
	str	r9, [sp]
	str	r10, [sp, #24]
	bl	vdbePmaReaderInit
	ldr	r2, [r5, r4, lsl #2]
	add	r4, r4, #1
	cmp	r7, r4
	beq	.L12
.L3:
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L5
	mov	r5, r0
.L6:
	mov	r0, r6
	str	r2, [sp, #16]
	bl	vdbeMergeEngineFree
	mov	r3, #0
	ldr	r2, [sp, #20]
	str	r3, [r2]
	ldr	r2, [sp, #16]
	b	.L7
.L12:
	mov	r5, r0
.L4:
	ldr	r3, [r8]
	cmp	r3, r5
	bne	.L6
.L7:
	ldr	r3, [sp, #12]
	str	r2, [r3]
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r5
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	SQLITE_OK
	.word	SQLITE_NOMEM_BKPT
	.size	vdbeMergeEngineLevel0, .-vdbeMergeEngineLevel0
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_NOMEM_BKPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
