	.file	"extr_sqlite3.c_updateAccumulator.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	updateAccumulator, @function
updateAccumulator:
.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
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r10d, DWORD PTR 4[rdx]
	mov	r14, QWORD PTR 16[rdi]
	mov	DWORD PTR [rdx], 1
	mov	DWORD PTR 28[rsp], esi
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 8[rsp], rdx
	test	r10d, r10d
	jle	.L2
	mov	DWORD PTR 24[rsp], 0
	mov	DWORD PTR 4[rsp], 0
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L62:
	mov	r12d, DWORD PTR [r15]
	mov	rdi, rbp
	mov	esi, r12d
	call	sqlite3GetTempRange@PLT
	xor	ecx, ecx
	mov	rsi, r15
	mov	rdi, rbp
	mov	r8d, DWORD PTR SQLITE_ECEL_DUP[rip]
	mov	edx, eax
	mov	r13d, eax
	call	sqlite3ExprCodeExprList@PLT
.L3:
	cmp	QWORD PTR [rbx], 0
	mov	DWORD PTR [rsp], 0
	js	.L4
	mov	rdi, rbp
	call	sqlite3VdbeMakeLabel@PLT
	xor	edi, edi
	test	r12d, r12d
	sete	dil
	mov	DWORD PTR [rsp], eax
	call	testcase@PLT
	xor	edi, edi
	cmp	r12d, 1
	setg	dil
	call	testcase@PLT
	mov	edx, DWORD PTR [rsp]
	mov	rsi, QWORD PTR [rbx]
	mov	r8d, r13d
	mov	ecx, 1
	mov	rdi, rbp
	call	codeDistinct@PLT
.L4:
	mov	rax, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR SQLITE_FUNC_NEEDCOLL[rip], eax
	jne	.L59
.L5:
	mov	r8d, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR OP_AggStep[rip]
	mov	ecx, r13d
	xor	edx, edx
	mov	rdi, r14
	call	sqlite3VdbeAddOp3@PLT
	mov	edx, DWORD PTR P4_FUNCDEF[rip]
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, r14
	call	sqlite3VdbeAppendP4@PLT
	mov	esi, r12d
	mov	rdi, r14
	call	sqlite3VdbeChangeP5@PLT
	mov	esi, r13d
	mov	edx, r12d
	mov	rdi, rbp
	call	sqlite3ReleaseTempRange@PLT
	mov	esi, DWORD PTR [rsp]
	test	esi, esi
	jne	.L60
.L12:
	mov	rcx, QWORD PTR 8[rsp]
	add	DWORD PTR 4[rsp], 1
	add	rbx, 32
	mov	eax, DWORD PTR 4[rsp]
	cmp	DWORD PTR 4[rcx], eax
	jle	.L61
.L13:
	mov	rdi, QWORD PTR 24[rbx]
	mov	esi, DWORD PTR EP_xIsSelect[rip]
	mov	r15, QWORD PTR [rdi]
	call	ExprHasProperty@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	test	r15, r15
	jne	.L62
	xor	r13d, r13d
	xor	r12d, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L60:
	mov	esi, DWORD PTR [rsp]
	mov	rdi, r14
	call	sqlite3VdbeResolveLabel@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L59:
	xor	edi, edi
	test	r15, r15
	setne	dil
	call	assert@PLT
	mov	r15, QWORD PTR 8[r15]
	test	r12d, r12d
	jle	.L6
	xor	edx, edx
	mov	QWORD PTR 16[rsp], rbx
	mov	ebx, edx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR [r15]
	mov	rdi, rbp
	add	ebx, 1
	add	r15, 4
	call	sqlite3ExprCollSeq@PLT
	test	rax, rax
	jne	.L55
	cmp	r12d, ebx
	jg	.L7
	mov	rbx, QWORD PTR 16[rsp]
	test	rax, rax
	jne	.L10
.L6:
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rax]
.L10:
	mov	r9d, DWORD PTR 24[rsp]
	test	r9d, r9d
	jne	.L11
	mov	rcx, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 8[rcx]
	mov	DWORD PTR 24[rsp], ecx
	test	ecx, ecx
	je	.L11
	mov	ecx, DWORD PTR 0[rbp]
	add	ecx, 1
	mov	DWORD PTR 24[rsp], ecx
	mov	DWORD PTR 0[rbp], ecx
.L11:
	mov	edx, DWORD PTR P4_COLLSEQ[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	xor	r8d, r8d
	mov	rdi, r14
	mov	esi, DWORD PTR OP_CollSeq[rip]
	mov	r9, rax
	xor	ecx, ecx
	push	rdx
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR 40[rsp]
	call	sqlite3VdbeAddOp4@PLT
	pop	rdi
	.cfi_def_cfa_offset 104
	pop	r8
	.cfi_def_cfa_offset 96
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L61:
	mov	edx, DWORD PTR 24[rsp]
	test	edx, edx
	je	.L2
.L15:
	mov	edx, DWORD PTR 24[rsp]
	mov	esi, DWORD PTR OP_If[rip]
	mov	rdi, r14
	call	sqlite3VdbeAddOp1@PLT
	mov	rdi, r14
	mov	r13d, eax
	call	VdbeCoverage@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	r12, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jle	.L20
.L18:
	mov	r15, QWORD PTR 8[rsp]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, DWORD PTR [r12+rbx*8]
	mov	esi, DWORD PTR 4[r12+rbx*8]
	mov	rdi, rbp
	add	rbx, 1
	call	sqlite3ExprCode@PLT
	cmp	DWORD PTR 8[r15], ebx
	jg	.L21
.L20:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], 0
	test	r13d, r13d
	jne	.L63
.L1:
	add	rsp, 40
	.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
.L55:
	.cfi_restore_state
	mov	rbx, QWORD PTR 16[rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 28[rsp]
	mov	eax, DWORD PTR 8[rax]
	test	ecx, ecx
	jne	.L64
.L17:
	mov	rcx, QWORD PTR 8[rsp]
	xor	r13d, r13d
	mov	r12, QWORD PTR 16[rcx]
	test	eax, eax
	jg	.L18
	mov	DWORD PTR [rcx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L64:
	test	eax, eax
	je	.L17
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR 24[rsp], eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L63:
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	esi, r13d
	mov	rdi, r14
	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
	jmp	sqlite3VdbeJumpHere@PLT
	.cfi_endproc
.LFE0:
	.size	updateAccumulator, .-updateAccumulator
	.comm	SQLITE_FUNC_NEEDCOLL,4,4
	.comm	SQLITE_ECEL_DUP,4,4
	.comm	P4_FUNCDEF,4,4
	.comm	P4_COLLSEQ,4,4
	.comm	OP_If,4,4
	.comm	OP_CollSeq,4,4
	.comm	OP_AggStep,4,4
	.comm	EP_xIsSelect,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_updateAccumulator.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	updateAccumulator, %function
updateAccumulator:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r3, #1
	mov	fp, r2
	ldr	r2, [r2, #4]
	sub	sp, sp, #36
	cmp	r2, #0
	ldr	r9, [r0, #8]
	mov	r6, r0
	ldr	r4, [fp, #16]
	str	r1, [sp, #28]
	str	r3, [fp]
	ble	.L2
	mov	r3, #0
	str	fp, [sp, #16]
	str	r3, [sp, #20]
	mov	fp, r3
	add	r4, r4, #16
	b	.L12
.L11:
	ldr	r3, [sp, #16]
	add	fp, fp, #1
	ldr	r3, [r3, #4]
	add	r4, r4, #16
	cmp	r3, fp
	ble	.L52
.L12:
	ldr	r3, .L56
	ldr	r0, [r4, #-4]
	ldr	r1, [r3]
	ldr	r8, [r0]
	bl	ExprHasProperty
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	cmp	r8, #0
	moveq	r7, r8
	moveq	r5, r8
	beq	.L3
	ldr	r5, [r8]
	mov	r0, r6
	mov	r1, r5
	bl	sqlite3GetTempRange
	ldr	r3, .L56+4
	mov	r7, r0
	ldr	r3, [r3]
	mov	r2, r0
	str	r3, [sp]
	mov	r1, r8
	mov	r3, #0
	mov	r0, r6
	bl	sqlite3ExprCodeExprList
.L3:
	ldr	r3, [r4, #-16]
	cmp	r3, #0
	movlt	r10, #0
	blt	.L4
	mov	r0, r6
	bl	sqlite3VdbeMakeLabel
	mov	r10, r0
	clz	r0, r5
	lsr	r0, r0, #5
	bl	testcase
	cmp	r5, #1
	movle	r0, #0
	movgt	r0, #1
	bl	testcase
	ldr	r1, [r4, #-16]
	mov	r2, r10
	mov	r3, #1
	mov	r0, r6
	str	r7, [sp]
	bl	codeDistinct
.L4:
	ldr	r2, [r4, #-12]
	ldr	r3, .L56+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L53
.L5:
	ldr	r2, [r4, #-8]
	ldr	r1, .L56+12
	str	r2, [sp]
	mov	r3, r7
	mov	r2, #0
	ldr	r1, [r1]
	mov	r0, r9
	bl	sqlite3VdbeAddOp3
	ldr	r3, .L56+16
	ldr	r1, [r4, #-12]
	ldr	r2, [r3]
	mov	r0, r9
	bl	sqlite3VdbeAppendP4
	mov	r1, r5
	mov	r0, r9
	bl	sqlite3VdbeChangeP5
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	bl	sqlite3ReleaseTempRange
	cmp	r10, #0
	beq	.L11
	mov	r1, r10
	mov	r0, r9
	bl	sqlite3VdbeResolveLabel
	b	.L11
.L53:
	subs	r0, r8, #0
	movne	r0, #1
	bl	assert
	cmp	r5, #0
	ldr	r3, [r8, #4]
	ble	.L6
	str	r4, [sp, #24]
	mov	r8, #0
	mov	r4, r6
	mov	r6, r3
.L7:
	mov	r0, r4
	ldr	r1, [r6], #4
	bl	sqlite3ExprCollSeq
	add	r8, r8, #1
	cmp	r5, r8
	movle	r2, #0
	movgt	r2, #1
	cmp	r0, #0
	movne	r2, #0
	cmp	r2, #0
	bne	.L7
	cmp	r0, #0
	mov	r6, r4
	ldr	r4, [sp, #24]
	beq	.L6
.L9:
	ldr	r3, [sp, #20]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [sp, #16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	str	r3, [sp, #20]
	ldrne	r3, [r6]
	addne	r3, r3, #1
	strne	r3, [sp, #20]
	strne	r3, [r6]
.L10:
	mov	r2, #0
	ldr	r3, .L56+20
	ldr	r1, .L56+24
	ldr	r3, [r3]
	str	r0, [sp, #4]
	str	r2, [sp]
	str	r3, [sp, #8]
	mov	r0, r9
	mov	r3, r2
	ldr	r1, [r1]
	ldr	r2, [sp, #20]
	bl	sqlite3VdbeAddOp4
	b	.L5
.L52:
	ldr	r3, [sp, #20]
	ldr	fp, [sp, #16]
	cmp	r3, #0
	beq	.L2
.L14:
	ldr	r3, .L56+28
	ldr	r2, [sp, #20]
	ldr	r1, [r3]
	mov	r0, r9
	bl	sqlite3VdbeAddOp1
	mov	r7, r0
	mov	r0, r9
	bl	VdbeCoverage
	ldr	r3, [fp, #8]
	ldr	r4, [fp, #12]
	cmp	r3, #0
	ble	.L18
.L16:
	mov	r5, #0
	add	r4, r4, #8
.L19:
	ldr	r2, [r4, #-8]
	ldr	r1, [r4, #-4]
	mov	r0, r6
	bl	sqlite3ExprCode
	ldr	r3, [fp, #8]
	add	r5, r5, #1
	cmp	r3, r5
	add	r4, r4, #8
	bgt	.L19
.L18:
	mov	r3, #0
	cmp	r7, r3
	str	r3, [fp]
	bne	.L54
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [fp, #8]
	ldr	r2, [sp, #28]
	subs	r7, r3, #0
	movne	r7, #1
	cmp	r2, #0
	moveq	r7, #0
	cmp	r7, #0
	bne	.L55
	cmp	r3, #0
	ldr	r4, [fp, #12]
	strle	r7, [fp]
	bgt	.L16
	b	.L1
.L6:
	ldr	r3, [r6, #4]
	ldr	r0, [r3]
	b	.L9
.L54:
	mov	r1, r7
	mov	r0, r9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	sqlite3VdbeJumpHere
.L55:
	ldr	r3, [sp, #28]
	str	r3, [sp, #20]
	b	.L14
.L57:
	.align	2
.L56:
	.word	EP_xIsSelect
	.word	SQLITE_ECEL_DUP
	.word	SQLITE_FUNC_NEEDCOLL
	.word	OP_AggStep
	.word	P4_FUNCDEF
	.word	P4_COLLSEQ
	.word	OP_CollSeq
	.word	OP_If
	.size	updateAccumulator, .-updateAccumulator
	.comm	SQLITE_FUNC_NEEDCOLL,4,4
	.comm	SQLITE_ECEL_DUP,4,4
	.comm	P4_FUNCDEF,4,4
	.comm	P4_COLLSEQ,4,4
	.comm	OP_If,4,4
	.comm	OP_CollSeq,4,4
	.comm	OP_AggStep,4,4
	.comm	EP_xIsSelect,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
