	.file	"extr_sqlite3.c_windowAggFinal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	windowAggFinal, @function
windowAggFinal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 8[rdi]
	call	sqlite3GetVdbe@PLT
	test	r12, r12
	je	.L1
	mov	rbp, rax
	mov	rbx, r12
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdx, QWORD PTR 32[rbx]
	mov	edx, DWORD PTR [rdx]
	test	DWORD PTR SQLITE_FUNC_MINMAX[rip], edx
	je	.L3
	mov	rcx, QWORD PTR TK_UNBOUNDED[rip]
	cmp	QWORD PTR 8[rbx], rcx
	je	.L3
	mov	ecx, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR OP_Null[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	sqlite3VdbeAddOp2@PLT
	mov	edx, DWORD PTR 20[rbx]
	mov	esi, DWORD PTR OP_Last[rip]
	mov	rdi, rbp
	call	sqlite3VdbeAddOp1@PLT
	mov	rdi, rbp
	call	VdbeCoverage@PLT
	mov	esi, DWORD PTR OP_Column[rip]
	mov	edx, DWORD PTR 20[rbx]
	xor	ecx, ecx
	mov	r8d, DWORD PTR 16[rbx]
	mov	rdi, rbp
	call	sqlite3VdbeAddOp3@PLT
	mov	rdi, rbp
	call	sqlite3VdbeCurrentAddr@PLT
	mov	rdi, rbp
	lea	rsi, -2[rax]
	call	sqlite3VdbeJumpHere@PLT
.L4:
	mov	rbx, QWORD PTR 48[rbx]
	test	rbx, rbx
	je	.L1
.L7:
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L17
.L3:
	cmp	QWORD PTR 40[rbx], 0
	je	.L5
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	rbx, QWORD PTR 48[rbx]
	test	rbx, rbx
	jne	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbx
	call	windowArgCount@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	ecx, eax
	test	r13d, r13d
	je	.L6
	mov	esi, DWORD PTR OP_AggFinal[rip]
	mov	rdi, rbp
	call	sqlite3VdbeAddOp2@PLT
	mov	rsi, QWORD PTR 32[rbx]
	mov	edx, DWORD PTR P4_FUNCDEF[rip]
	mov	rdi, rbp
	call	sqlite3VdbeAppendP4@PLT
	mov	ecx, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR 24[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR OP_Copy[rip]
	call	sqlite3VdbeAddOp2@PLT
	mov	ecx, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR OP_Null[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	sqlite3VdbeAddOp2@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8d, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR OP_AggValue[rip]
	mov	rdi, rbp
	call	sqlite3VdbeAddOp3@PLT
	mov	rsi, QWORD PTR 32[rbx]
	mov	edx, DWORD PTR P4_FUNCDEF[rip]
	mov	rdi, rbp
	call	sqlite3VdbeAppendP4@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	windowAggFinal, .-windowAggFinal
	.comm	TK_UNBOUNDED,8,8
	.comm	SQLITE_FUNC_MINMAX,4,4
	.comm	P4_FUNCDEF,4,4
	.comm	OP_Null,4,4
	.comm	OP_Last,4,4
	.comm	OP_Copy,4,4
	.comm	OP_Column,4,4
	.comm	OP_AggValue,4,4
	.comm	OP_AggFinal,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_windowAggFinal.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	windowAggFinal, %function
windowAggFinal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, [r3]
	ldr	r0, [r0, #4]
	sub	sp, sp, #12
	mov	r9, r1
	bl	sqlite3GetVdbe
	cmp	r8, #0
	beq	.L1
	mov	r6, r0
	mov	r4, r8
	ldr	fp, .L18
	ldr	r10, .L18+4
	b	.L7
.L17:
	ldr	r3, [r4, #20]
	ldr	r1, .L18+8
	ldr	r2, [r3]
	ldr	r3, [r10]
	tst	r2, r3
	beq	.L3
	ldr	r3, [r1]
	ldr	r2, [r4, #4]
	cmp	r2, r3
	beq	.L3
	ldr	r1, .L18+12
	mov	r2, r5
	ldr	r3, [r4, #8]
	ldr	r1, [r1]
	mov	r0, r6
	bl	sqlite3VdbeAddOp2
	ldr	r3, .L18+16
	ldr	r2, [r4, #12]
	ldr	r1, [r3]
	mov	r0, r6
	bl	sqlite3VdbeAddOp1
	mov	r0, r6
	bl	VdbeCoverage
	ldr	r0, [r4, #8]
	ldr	r1, .L18+20
	ldr	r2, [r4, #12]
	ldr	r1, [r1]
	mov	r3, r5
	str	r0, [sp]
	mov	r0, r6
	bl	sqlite3VdbeAddOp3
	mov	r0, r6
	bl	sqlite3VdbeCurrentAddr
	mov	r1, r0
	mov	r0, r6
	sub	r1, r1, #2
	bl	sqlite3VdbeJumpHere
.L4:
	ldr	r4, [r4, #28]
	cmp	r4, #0
	beq	.L1
.L7:
	ldr	r5, [r8]
	cmp	r5, #0
	beq	.L17
.L3:
	ldr	r7, [r4, #24]
	cmp	r7, #0
	beq	.L5
	clz	r0, r5
	lsr	r0, r0, #5
	bl	assert
	ldr	r4, [r4, #28]
	cmp	r4, #0
	bne	.L7
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r0, r4
	bl	windowArgCount
	cmp	r9, #0
	mov	r3, r0
	ldr	r2, [r4, #16]
	beq	.L6
	ldr	r1, .L18+24
	mov	r0, r6
	ldr	r1, [r1]
	bl	sqlite3VdbeAddOp2
	ldr	r2, [fp]
	ldr	r1, [r4, #20]
	mov	r0, r6
	bl	sqlite3VdbeAppendP4
	ldr	r1, .L18+28
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #16]
	mov	r0, r6
	ldr	r1, [r1]
	bl	sqlite3VdbeAddOp2
	ldr	r1, .L18+12
	mov	r2, r7
	mov	r0, r6
	ldr	r3, [r4, #16]
	ldr	r1, [r1]
	bl	sqlite3VdbeAddOp2
	b	.L4
.L6:
	ldr	r1, [r4, #8]
	mov	r0, r6
	str	r1, [sp]
	ldr	r1, .L18+32
	ldr	r1, [r1]
	bl	sqlite3VdbeAddOp3
	mov	r0, r6
	ldr	r2, [fp]
	ldr	r1, [r4, #20]
	bl	sqlite3VdbeAppendP4
	b	.L4
.L19:
	.align	2
.L18:
	.word	P4_FUNCDEF
	.word	SQLITE_FUNC_MINMAX
	.word	TK_UNBOUNDED
	.word	OP_Null
	.word	OP_Last
	.word	OP_Column
	.word	OP_AggFinal
	.word	OP_Copy
	.word	OP_AggValue
	.size	windowAggFinal, .-windowAggFinal
	.comm	TK_UNBOUNDED,4,4
	.comm	SQLITE_FUNC_MINMAX,4,4
	.comm	P4_FUNCDEF,4,4
	.comm	OP_Null,4,4
	.comm	OP_Last,4,4
	.comm	OP_Copy,4,4
	.comm	OP_Column,4,4
	.comm	OP_AggValue,4,4
	.comm	OP_AggFinal,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
