	.file	"extr_sqlite3.c_updateVirtualTable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_rowid_"
	.text
	.p2align 4
	.type	updateVirtualTable, @function
updateVirtualTable:
.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, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	r15, QWORD PTR 8[rdi]
	mov	r12, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR 144[rsp]
	mov	QWORD PTR 48[rsp], rcx
	mov	QWORD PTR 32[rsp], r8
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], r9
	mov	QWORD PTR 16[rsp], rsi
	mov	rsi, rdx
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	sqlite3GetVTable@PLT
	mov	esi, DWORD PTR TK_ID[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r15
	mov	QWORD PTR 24[rsp], rax
	call	sqlite3Expr@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	rdx, rax
	call	sqlite3ExprListAppend@PLT
	mov	r13, rax
	test	r14, r14
	je	.L2
	xor	edx, edx
	mov	rsi, r14
	mov	rdi, r15
	call	sqlite3ExprDup@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	rdx, rax
	call	sqlite3ExprListAppend@PLT
	mov	r13, rax
.L2:
	mov	rdi, QWORD PTR [rbx]
	shr	rdi, 63
	call	assert@PLT
	mov	edi, DWORD PTR 8[rbx]
	test	edi, edi
	jle	.L3
	xor	r14d, r14d
	mov	rax, r13
	mov	QWORD PTR 56[rsp], r12
	mov	r12, QWORD PTR 48[rsp]
	mov	r13, r14
	mov	r14, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdx, QWORD PTR [r12]
	mov	rdi, r15
	mov	rsi, QWORD PTR [rdx+rax*8]
	xor	edx, edx
	call	sqlite3ExprDup@PLT
	mov	rdx, rax
.L5:
	mov	rsi, r14
	mov	rdi, rbp
	add	r13, 1
	call	sqlite3ExprListAppend@PLT
	mov	r14, rax
	cmp	DWORD PTR 8[rbx], r13d
	jle	.L22
.L6:
	mov	rax, QWORD PTR 8[rsp]
	movsx	rax, DWORD PTR [rax+r13*4]
	test	eax, eax
	jns	.L23
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR TK_ID[rip]
	mov	rdi, r15
	mov	rdx, QWORD PTR [rax+r13*8]
	call	sqlite3Expr@PLT
	mov	rdx, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	r12, QWORD PTR 56[rsp]
	mov	r13, rax
.L3:
	push	0
	.cfi_def_cfa_offset 152
	xor	r8d, r8d
	xor	r9d, r9d
	mov	rsi, r13
	push	0
	.cfi_def_cfa_offset 160
	mov	rdi, rbp
	push	0
	.cfi_def_cfa_offset 168
	push	0
	.cfi_def_cfa_offset 176
	mov	rcx, QWORD PTR 72[rsp]
	mov	rdx, QWORD PTR 48[rsp]
	call	sqlite3SelectNew@PLT
	mov	edi, r12d
	mov	QWORD PTR 40[rsp], rax
	add	rsp, 32
	.cfi_def_cfa_offset 144
	call	assert@PLT
	mov	r13d, DWORD PTR 4[rbp]
	xor	r9d, r9d
	mov	rdi, r12
	cmp	QWORD PTR 32[rsp], 0
	mov	esi, DWORD PTR OP_OpenEphemeral[rip]
	lea	r14, 68[rsp]
	lea	eax, 1[r13]
	setne	r9b
	mov	edx, r13d
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 56[rsp], r9d
	lea	ecx, 1[rax+r9]
	call	sqlite3VdbeAddOp2@PLT
	mov	esi, DWORD PTR BTREE_UNORDERED[rip]
	mov	rdi, r12
	call	sqlite3VdbeChangeP5@PLT
	mov	esi, DWORD PTR SRT_Table[rip]
	mov	rdi, r14
	mov	edx, r13d
	call	sqlite3SelectDestInit@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdx, r14
	mov	rdi, rbp
	call	sqlite3Select@PLT
	mov	r10d, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR 8[rbx]
	xor	ecx, ecx
	mov	esi, DWORD PTR OP_Rewind[rip]
	mov	edx, r13d
	mov	rdi, r12
	lea	eax, 2[r10+rax]
	lea	r14d, 1[r10]
	mov	DWORD PTR 40[rsp], r10d
	mov	DWORD PTR 0[rbp], eax
	mov	DWORD PTR 16[rsp], r14d
	call	sqlite3VdbeAddOp2@PLT
	mov	esi, DWORD PTR OP_Column[rip]
	mov	r8d, r14d
	xor	ecx, ecx
	mov	edx, r13d
	mov	rdi, r12
	mov	DWORD PTR 32[rsp], eax
	xor	r14d, r14d
	call	sqlite3VdbeAddOp3@PLT
	mov	r10d, DWORD PTR 40[rsp]
	mov	edx, r13d
	mov	rdi, r12
	mov	r9d, DWORD PTR 56[rsp]
	mov	esi, DWORD PTR OP_Column[rip]
	lea	r8d, 2[r10]
	mov	DWORD PTR 48[rsp], r10d
	mov	ecx, r9d
	mov	DWORD PTR 40[rsp], r9d
	call	sqlite3VdbeAddOp3@PLT
	mov	r10d, DWORD PTR 48[rsp]
	mov	r9d, DWORD PTR 40[rsp]
	mov	esi, DWORD PTR 8[rbx]
	lea	eax, 3[r10]
	mov	ecx, eax
	lea	eax, 1[r9]
	test	esi, esi
	jle	.L10
	mov	QWORD PTR 40[rsp], r15
	mov	r15d, eax
	mov	QWORD PTR 48[rsp], rbp
	mov	ebp, r14d
	mov	r14d, ecx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR OP_Column[rip]
	lea	ecx, [r15+rbp]
	mov	edx, r13d
	mov	rdi, r12
	lea	r8d, [r14+rbp]
	add	ebp, 1
	call	sqlite3VdbeAddOp3@PLT
	cmp	DWORD PTR 8[rbx], ebp
	jg	.L7
	mov	r15, QWORD PTR 40[rsp]
	mov	rbp, QWORD PTR 48[rsp]
.L10:
	mov	rsi, rbx
	mov	rdi, rbp
	call	sqlite3VtabMakeWritable@PLT
	mov	eax, DWORD PTR P4_VTAB[rip]
	mov	ecx, DWORD PTR 8[rbx]
	xor	edx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	esi, DWORD PTR OP_VUpdate[rip]
	mov	rdi, r12
	push	rax
	.cfi_def_cfa_offset 160
	mov	r9, QWORD PTR 40[rsp]
	add	ecx, 2
	mov	r8d, DWORD PTR 32[rsp]
	call	sqlite3VdbeAddOp4@PLT
	pop	rax
	.cfi_def_cfa_offset 152
	pop	rdx
	.cfi_def_cfa_offset 144
	mov	eax, DWORD PTR 152[rsp]
	cmp	DWORD PTR OE_Default[rip], eax
	jne	.L9
	mov	eax, DWORD PTR OE_Abort[rip]
	mov	DWORD PTR 152[rsp], eax
.L9:
	mov	esi, DWORD PTR 152[rsp]
	mov	rdi, r12
	call	sqlite3VdbeChangeP5@PLT
	mov	rdi, rbp
	call	sqlite3MayAbort@PLT
	mov	ebx, DWORD PTR 32[rsp]
	mov	edx, r13d
	mov	rdi, r12
	mov	esi, DWORD PTR OP_Next[rip]
	lea	ecx, 1[rbx]
	call	sqlite3VdbeAddOp2@PLT
	mov	esi, ebx
	mov	rdi, r12
	call	sqlite3VdbeJumpHere@PLT
	mov	esi, DWORD PTR OP_Close[rip]
	xor	ecx, ecx
	mov	edx, r13d
	mov	rdi, r12
	call	sqlite3VdbeAddOp2@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r15
	call	sqlite3SelectDelete@PLT
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 88
	.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
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	updateVirtualTable, .-updateVirtualTable
	.comm	TK_ID,4,4
	.comm	SRT_Table,4,4
	.comm	P4_VTAB,4,4
	.comm	OP_VUpdate,4,4
	.comm	OP_Rewind,4,4
	.comm	OP_OpenEphemeral,4,4
	.comm	OP_Next,4,4
	.comm	OP_Column,4,4
	.comm	OP_Close,4,4
	.comm	OE_Default,4,4
	.comm	OE_Abort,4,4
	.comm	BTREE_UNORDERED,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_updateVirtualTable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"_rowid_\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	updateVirtualTable, %function
updateVirtualTable:
	@ args = 16, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	mov	r2, r1
	mov	r6, r0
	sub	sp, sp, #52
	mov	r10, r3
	ldr	r3, .L22
	ldr	fp, [r0, #8]
	str	r2, [sp, #24]
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r4, [sp, #88]
	ldr	r3, [sp, #96]
	mov	r1, r5
	mov	r0, fp
	str	r3, [sp, #36]
	ldr	r7, [r6, #12]
	ldr	r9, [sp, #92]
	str	r4, [sp, #32]
	bl	sqlite3GetVTable
	mov	r3, r0
	ldr	r2, .L22+4
	mov	r0, fp
	ldr	r1, [r2]
	ldr	r2, .L22+8
	str	r3, [sp, #28]
	bl	sqlite3Expr
	mov	r1, #0
	mov	r2, r0
	mov	r0, r6
	bl	sqlite3ExprListAppend
	cmp	r4, #0
	mov	r8, r0
	beq	.L2
	mov	r2, #0
	mov	r1, r4
	mov	r0, fp
	bl	sqlite3ExprDup
	mov	r1, r8
	mov	r2, r0
	mov	r0, r6
	bl	sqlite3ExprListAppend
	mov	r8, r0
.L2:
	ldr	r0, [r5]
	lsr	r0, r0, #31
	bl	assert
	ldr	r3, [r5, #4]
	cmp	r3, #0
	ble	.L3
	mov	r4, #0
	sub	r9, r9, #4
	b	.L6
.L20:
	ldr	r1, [r10]
	mov	r2, #0
	mov	r0, fp
	ldr	r1, [r1, r3, lsl #2]
	bl	sqlite3ExprDup
	mov	r2, r0
.L5:
	mov	r1, r8
	mov	r0, r6
	bl	sqlite3ExprListAppend
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	mov	r8, r0
	ble	.L3
.L6:
	ldr	r3, [r9, #4]!
	cmp	r3, #0
	bge	.L20
	ldr	r3, [r5, #8]
	ldr	r2, .L22+4
	mov	r0, fp
	ldr	r1, [r2]
	ldr	r2, [r3, r4, lsl #2]
	bl	sqlite3Expr
	mov	r2, r0
	b	.L5
.L3:
	mov	r4, #0
	mov	r1, r8
	ldr	r3, [sp, #36]
	ldr	r2, [sp, #24]
	mov	r0, r6
	str	r4, [sp, #20]
	str	r4, [sp, #16]
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	r4, [sp]
	bl	sqlite3SelectNew
	mov	r3, r0
	ldr	r2, [sp, #32]
	mov	r9, r3
	subs	r10, r2, r4
	movne	r10, #1
	mov	r0, r7
	str	r3, [sp, #32]
	bl	assert
	ldr	r8, [r6, #4]
	ldr	r3, [r5, #4]
	ldr	r1, .L22+12
	add	r2, r8, #1
	add	r3, r3, #1
	add	r3, r3, r10
	ldr	r1, [r1]
	str	r2, [r6, #4]
	mov	r0, r7
	mov	r2, r8
	bl	sqlite3VdbeAddOp2
	ldr	r3, .L22+16
	mov	r0, r7
	ldr	r1, [r3]
	bl	sqlite3VdbeChangeP5
	ldr	r3, .L22+20
	mov	r2, r8
	ldr	r1, [r3]
	add	r0, sp, #40
	bl	sqlite3SelectDestInit
	mov	r1, r9
	add	r2, sp, #40
	mov	r0, r6
	bl	sqlite3Select
	ldr	r9, [r6]
	ldr	r3, [r5, #4]
	add	r2, r9, #1
	ldr	r1, .L22+24
	add	r3, r3, #1
	add	r3, r3, r2
	ldr	r1, [r1]
	str	r2, [sp, #24]
	str	r3, [r6]
	mov	r2, r8
	mov	r3, r4
	mov	r0, r7
	bl	sqlite3VdbeAddOp2
	mov	ip, r0
	ldr	r2, [sp, #24]
	ldr	r1, .L22+28
	str	r2, [sp]
	mov	r3, r4
	mov	r2, r8
	ldr	r1, [r1]
	mov	r0, r7
	str	ip, [sp, #36]
	bl	sqlite3VdbeAddOp3
	add	r3, r9, #2
	ldr	r1, .L22+28
	str	r3, [sp]
	mov	r2, r8
	mov	r3, r10
	mov	r0, r7
	ldr	r1, [r1]
	bl	sqlite3VdbeAddOp3
	ldr	r3, [r5, #4]
	cmp	r3, r4
	addgt	r10, r10, #1
	addgt	r9, r9, #3
	ble	.L10
.L7:
	add	r3, r9, r4
	ldr	r1, .L22+28
	str	r3, [sp]
	mov	r2, r8
	add	r3, r10, r4
	mov	r0, r7
	ldr	r1, [r1]
	bl	sqlite3VdbeAddOp3
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L7
.L10:
	mov	r1, r5
	mov	r0, r6
	bl	sqlite3VtabMakeWritable
	ldr	r0, [sp, #28]
	ldr	r2, .L22+32
	ldr	r3, [r5, #4]
	ldr	r1, [r2]
	str	r0, [sp, #4]
	ldr	r0, [sp, #24]
	ldr	r2, .L22+36
	str	r0, [sp]
	str	r1, [sp, #8]
	ldr	r1, [r2]
	add	r3, r3, #2
	mov	r2, #0
	mov	r0, r7
	bl	sqlite3VdbeAddOp4
	ldr	r3, .L22+40
	ldr	r2, [sp, #100]
	ldr	r3, [r3]
	cmp	r3, r2
	ldreq	r3, .L22+44
	ldreq	r3, [r3]
	streq	r3, [sp, #100]
.L9:
	ldr	r1, [sp, #100]
	mov	r0, r7
	bl	sqlite3VdbeChangeP5
	mov	r0, r6
	bl	sqlite3MayAbort
	ldr	r4, [sp, #36]
	ldr	r2, .L22+48
	add	r3, r4, #1
	ldr	r1, [r2]
	mov	r0, r7
	mov	r2, r8
	bl	sqlite3VdbeAddOp2
	mov	r1, r4
	mov	r0, r7
	bl	sqlite3VdbeJumpHere
	ldr	r3, .L22+52
	mov	r2, r8
	ldr	r1, [r3]
	mov	r0, r7
	mov	r3, #0
	bl	sqlite3VdbeAddOp2
	mov	r0, fp
	ldr	r1, [sp, #32]
	bl	sqlite3SelectDelete
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	TK_ID
	.word	.LC0
	.word	OP_OpenEphemeral
	.word	BTREE_UNORDERED
	.word	SRT_Table
	.word	OP_Rewind
	.word	OP_Column
	.word	P4_VTAB
	.word	OP_VUpdate
	.word	OE_Default
	.word	OE_Abort
	.word	OP_Next
	.word	OP_Close
	.size	updateVirtualTable, .-updateVirtualTable
	.comm	TK_ID,4,4
	.comm	SRT_Table,4,4
	.comm	P4_VTAB,4,4
	.comm	OP_VUpdate,4,4
	.comm	OP_Rewind,4,4
	.comm	OP_OpenEphemeral,4,4
	.comm	OP_Next,4,4
	.comm	OP_Column,4,4
	.comm	OP_Close,4,4
	.comm	OE_Default,4,4
	.comm	OE_Abort,4,4
	.comm	BTREE_UNORDERED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
