	.file	"extr_select.c_generateOutputSubroutine.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	generateOutputSubroutine, @function
generateOutputSubroutine:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR 16[rdi]
	mov	QWORD PTR 8[rsp], rsi
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], r8d
	call	sqlite3VdbeCurrentAddr@PLT
	mov	rdi, r15
	mov	r13d, eax
	call	sqlite3VdbeMakeLabel@PLT
	mov	DWORD PTR 4[rsp], eax
	test	r14d, r14d
	jne	.L26
.L2:
	mov	rax, QWORD PTR 8[r15]
	cmp	QWORD PTR [rax], 0
	je	.L27
	xor	r13d, r13d
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L27:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 4[rsp]
	mov	rdi, rbp
	mov	esi, DWORD PTR 4[rax]
	call	codeOffset@PLT
	mov	eax, DWORD PTR SRT_Exists[rip]
	xor	edi, edi
	cmp	DWORD PTR 8[r12], eax
	setne	dil
	call	assert@PLT
	mov	eax, DWORD PTR SRT_Table[rip]
	xor	edi, edi
	cmp	DWORD PTR 8[r12], eax
	setne	dil
	call	assert@PLT
	mov	eax, DWORD PTR 8[r12]
	cmp	eax, 130
	je	.L4
	jg	.L5
	cmp	eax, 128
	je	.L6
	cmp	eax, 129
	jne	.L8
	mov	edi, DWORD PTR 4[rbx]
	cmp	edi, 1
	je	.L11
	mov	eax, DWORD PTR [r15]
	xor	edi, edi
	test	eax, eax
	setg	dil
.L11:
	call	assert@PLT
	xor	edi, edi
	cmp	DWORD PTR 4[rbx], 1
	setne	dil
	call	testcase@PLT
	mov	edx, DWORD PTR 12[r12]
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r15
	mov	ecx, 1
	call	sqlite3ExprCodeMove@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	eax, 131
	jne	.L8
	mov	edx, DWORD PTR [r12]
	mov	ecx, DWORD PTR 4[rbx]
	test	edx, edx
	je	.L28
.L12:
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r15
	call	sqlite3ExprCodeMove@PLT
	mov	edx, DWORD PTR 12[r12]
	mov	esi, DWORD PTR OP_Yield[rip]
	mov	rdi, rbp
	call	sqlite3VdbeAddOp1@PLT
.L10:
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jne	.L29
.L13:
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	sqlite3VdbeResolveLabel@PLT
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, DWORD PTR OP_Return[rip]
	mov	rdi, rbp
	call	sqlite3VdbeAddOp1@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, DWORD PTR OP_IfNot[rip]
	mov	edx, r14d
	mov	rdi, rbp
	call	sqlite3VdbeAddOp1@PLT
	mov	rdi, rbp
	mov	DWORD PTR 24[rsp], eax
	call	VdbeCoverage@PLT
	mov	rdi, QWORD PTR 96[rsp]
	mov	edx, DWORD PTR P4_KEYINFO[rip]
	mov	DWORD PTR 20[rsp], edx
	call	sqlite3KeyInfoRef@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	lea	r10d, 1[r14]
	mov	rdi, rbp
	mov	edx, DWORD PTR 28[rsp]
	mov	r8d, DWORD PTR 4[rbx]
	mov	r9, rax
	mov	ecx, r10d
	mov	esi, DWORD PTR OP_Compare[rip]
	push	rdx
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR 36[rsp], r10d
	call	sqlite3VdbeAddOp4@PLT
	mov	ecx, DWORD PTR 20[rsp]
	mov	esi, DWORD PTR OP_Jump[rip]
	mov	rdi, rbp
	lea	edx, 2[rax]
	mov	r8d, edx
	call	sqlite3VdbeAddOp3@PLT
	mov	rdi, rbp
	call	VdbeCoverage@PLT
	mov	r11d, DWORD PTR 40[rsp]
	mov	rdi, rbp
	mov	esi, r11d
	call	sqlite3VdbeJumpHere@PLT
	mov	r10d, DWORD PTR 36[rsp]
	mov	eax, DWORD PTR 4[rbx]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR OP_Copy[rip]
	mov	ecx, r10d
	lea	r8d, -1[rax]
	call	sqlite3VdbeAddOp3@PLT
	mov	rdi, rbp
	mov	ecx, r14d
	mov	edx, 1
	mov	esi, DWORD PTR OP_Integer[rip]
	call	sqlite3VdbeAddOp2@PLT
	pop	rsi
	.cfi_def_cfa_offset 104
	pop	rdi
	.cfi_def_cfa_offset 96
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L29:
	mov	ecx, DWORD PTR 104[rsp]
	mov	esi, DWORD PTR OP_DecrJumpZero[rip]
	mov	rdi, rbp
	call	sqlite3VdbeAddOp2@PLT
	mov	rdi, rbp
	call	VdbeCoverage@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L8:
	xor	edi, edi
	cmp	DWORD PTR SRT_Output[rip], eax
	sete	dil
	call	assert@PLT
	mov	ecx, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR OP_ResultRow[rip]
	call	sqlite3VdbeAddOp2@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	xor	edi, edi
	cmp	DWORD PTR 4[rbx], 1
	setg	dil
	call	testcase@PLT
	mov	rdi, r15
	call	sqlite3GetTempReg@PLT
	mov	ecx, DWORD PTR 4[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	edx, DWORD PTR [rbx]
	mov	r9, QWORD PTR 16[r12]
	mov	esi, DWORD PTR OP_MakeRecord[rip]
	mov	r8d, eax
	mov	rdi, rbp
	push	rcx
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 36[rsp], eax
	call	sqlite3VdbeAddOp4@PLT
	mov	r11d, DWORD PTR 36[rsp]
	mov	r8d, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	edx, DWORD PTR 12[r12]
	mov	r9d, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR OP_IdxInsert[rip]
	mov	ecx, r11d
	call	sqlite3VdbeAddOp4Int@PLT
	mov	r11d, DWORD PTR 36[rsp]
	mov	rdi, r15
	mov	esi, r11d
	call	sqlite3ReleaseTempReg@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r15
	call	sqlite3GetTempReg@PLT
	mov	rdi, r15
	mov	DWORD PTR 24[rsp], eax
	call	sqlite3GetTempReg@PLT
	mov	r9d, DWORD PTR 24[rsp]
	mov	ecx, DWORD PTR 4[rbx]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR OP_MakeRecord[rip]
	mov	DWORD PTR 20[rsp], eax
	mov	r8d, r9d
	mov	DWORD PTR 28[rsp], r9d
	call	sqlite3VdbeAddOp3@PLT
	mov	r11d, DWORD PTR 20[rsp]
	mov	edx, DWORD PTR 12[r12]
	mov	rdi, rbp
	mov	esi, DWORD PTR OP_NewRowid[rip]
	mov	ecx, r11d
	call	sqlite3VdbeAddOp2@PLT
	mov	r11d, DWORD PTR 20[rsp]
	mov	r9d, DWORD PTR 28[rsp]
	mov	rdi, rbp
	mov	edx, DWORD PTR 12[r12]
	mov	esi, DWORD PTR OP_Insert[rip]
	mov	r8d, r11d
	mov	ecx, r9d
	mov	DWORD PTR 20[rsp], r9d
	mov	DWORD PTR 24[rsp], r11d
	call	sqlite3VdbeAddOp3@PLT
	mov	esi, DWORD PTR OPFLAG_APPEND[rip]
	mov	rdi, rbp
	call	sqlite3VdbeChangeP5@PLT
	mov	r11d, DWORD PTR 24[rsp]
	mov	rdi, r15
	mov	esi, r11d
	call	sqlite3ReleaseTempReg@PLT
	mov	r9d, DWORD PTR 20[rsp]
	mov	rdi, r15
	mov	esi, r9d
	call	sqlite3ReleaseTempReg@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L28:
	mov	esi, ecx
	mov	rdi, r15
	call	sqlite3GetTempRange@PLT
	mov	DWORD PTR [r12], eax
	mov	edx, eax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 4[r12], eax
	mov	ecx, DWORD PTR 4[rbx]
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	generateOutputSubroutine, .-generateOutputSubroutine
	.comm	SRT_Table,4,4
	.comm	SRT_Output,4,4
	.comm	SRT_Exists,4,4
	.comm	P4_KEYINFO,4,4
	.comm	OP_Yield,4,4
	.comm	OP_Return,4,4
	.comm	OP_ResultRow,4,4
	.comm	OP_NewRowid,4,4
	.comm	OP_MakeRecord,4,4
	.comm	OP_Jump,4,4
	.comm	OP_Integer,4,4
	.comm	OP_Insert,4,4
	.comm	OP_IfNot,4,4
	.comm	OP_IdxInsert,4,4
	.comm	OP_DecrJumpZero,4,4
	.comm	OP_Copy,4,4
	.comm	OP_Compare,4,4
	.comm	OPFLAG_APPEND,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_select.c_generateOutputSubroutine.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generateOutputSubroutine, %function
generateOutputSubroutine:
	@ args = 16, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0, #8]
	sub	sp, sp, #36
	mov	r5, r0
	mov	r0, r4
	mov	r6, r2
	mov	r7, r3
	ldr	fp, [sp, #76]
	str	r1, [sp, #16]
	bl	sqlite3VdbeCurrentAddr
	mov	r8, r0
	mov	r0, r5
	bl	sqlite3VdbeMakeLabel
	cmp	fp, #0
	mov	r9, r0
	bne	.L26
.L2:
	ldr	r3, [r5, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r8, #0
	beq	.L27
	mov	r0, r8
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	ldr	r3, [sp, #16]
	mov	r2, r9
	ldr	r1, [r3, #4]
	mov	r0, r4
	bl	codeOffset
	ldr	r3, .L30
	ldr	r0, [r7, #8]
	ldr	r3, [r3]
	subs	r0, r0, r3
	movne	r0, #1
	bl	assert
	ldr	r3, .L30+4
	ldr	r0, [r7, #8]
	ldr	r3, [r3]
	subs	r0, r0, r3
	movne	r0, #1
	bl	assert
	ldr	r2, [r7, #8]
	sub	r3, r2, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L26:
	ldr	r3, .L30+8
	mov	r2, fp
	ldr	r1, [r3]
	mov	r0, r4
	bl	sqlite3VdbeAddOp1
	mov	r3, r0
	mov	r0, r4
	str	r3, [sp, #20]
	bl	VdbeCoverage
	ldr	r3, .L30+12
	ldr	r2, [r6]
	ldr	r10, [r3]
	ldr	r3, [r6, #4]
	ldr	r0, [sp, #80]
	str	r2, [sp, #28]
	str	r3, [sp, #24]
	bl	sqlite3KeyInfoRef
	ldr	ip, .L30+16
	ldr	r3, [sp, #24]
	ldr	ip, [ip]
	mov	r1, r10
	add	r10, fp, #1
	stmib	sp, {r0, ip}
	ldr	r2, [sp, #28]
	str	r3, [sp]
	mov	r0, r4
	mov	r3, r10
	bl	sqlite3VdbeAddOp4
	ldr	r3, .L30+20
	add	r2, r0, #2
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, r9
	bl	sqlite3VdbeAddOp3
	mov	r0, r4
	bl	VdbeCoverage
	ldr	r1, [sp, #20]
	mov	r0, r4
	bl	sqlite3VdbeJumpHere
	ldr	r2, [r6, #4]
	ldr	r1, .L30+24
	sub	r2, r2, #1
	str	r2, [sp]
	mov	r3, r10
	ldr	r2, [r6]
	mov	r0, r4
	ldr	r1, [r1]
	bl	sqlite3VdbeAddOp3
	ldr	r2, .L30+28
	mov	r3, fp
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, #1
	bl	sqlite3VdbeAddOp2
	b	.L2
.L5:
	ldr	r2, [r7]
	ldr	r3, [r6, #4]
	cmp	r2, #0
	beq	.L28
.L12:
	ldr	r1, [r6]
	mov	r0, r5
	bl	sqlite3ExprCodeMove
	ldr	r3, .L30+32
	mov	r0, r4
	ldr	r2, [r7, #12]
	ldr	r1, [r3]
	bl	sqlite3VdbeAddOp1
.L10:
	ldr	r3, [sp, #16]
	ldr	r2, [r3]
	cmp	r2, #0
	bne	.L29
.L13:
	mov	r1, r9
	mov	r0, r4
	bl	sqlite3VdbeResolveLabel
	ldr	r3, .L30+36
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, [sp, #72]
	bl	sqlite3VdbeAddOp1
	mov	r0, r8
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r0, r5
	bl	sqlite3GetTempReg
	mov	r10, r0
	mov	r0, r5
	bl	sqlite3GetTempReg
	mov	fp, r0
	ldr	r3, .L30+40
	str	r10, [sp]
	ldr	r1, [r3]
	mov	r0, r4
	ldm	r6, {r2, r3}
	bl	sqlite3VdbeAddOp3
	ldr	r2, .L30+44
	mov	r3, fp
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, [r7, #12]
	bl	sqlite3VdbeAddOp2
	ldr	r1, .L30+48
	str	fp, [sp]
	ldr	r2, [r7, #12]
	mov	r3, r10
	mov	r0, r4
	ldr	r1, [r1]
	bl	sqlite3VdbeAddOp3
	ldr	r3, .L30+52
	mov	r0, r4
	ldr	r1, [r3]
	bl	sqlite3VdbeChangeP5
	mov	r1, fp
	mov	r0, r5
	bl	sqlite3ReleaseTempReg
	mov	r1, r10
	mov	r0, r5
	bl	sqlite3ReleaseTempReg
	b	.L10
.L9:
	ldr	r0, [r6, #4]
	cmp	r0, #1
	movle	r0, #0
	movgt	r0, #1
	bl	testcase
	mov	r0, r5
	bl	sqlite3GetTempReg
	mov	r10, r0
	ldr	r3, [r6, #4]
	ldr	r2, [r7, #16]
	ldr	r1, .L30+40
	str	r0, [sp]
	str	r3, [sp, #8]
	ldr	r1, [r1]
	str	r2, [sp, #4]
	ldr	r2, [r6]
	mov	r0, r4
	bl	sqlite3VdbeAddOp4
	ldm	r6, {r0, ip}
	ldr	r1, .L30+56
	ldr	r2, [r7, #12]
	ldr	r1, [r1]
	mov	r3, r10
	stm	sp, {r0, ip}
	mov	r0, r4
	bl	sqlite3VdbeAddOp4Int
	mov	r1, r10
	mov	r0, r5
	bl	sqlite3ReleaseTempReg
	b	.L10
.L8:
	ldr	r0, [r6, #4]
	cmp	r0, #1
	beq	.L11
	ldr	r0, [r5]
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
.L11:
	bl	assert
	ldr	r0, [r6, #4]
	subs	r0, r0, #1
	movne	r0, #1
	bl	testcase
	mov	r0, r5
	mov	r3, #1
	ldr	r2, [r7, #12]
	ldr	r1, [r6]
	bl	sqlite3ExprCodeMove
	b	.L10
.L29:
	ldr	r3, .L30+60
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r3, [sp, #84]
	bl	sqlite3VdbeAddOp2
	mov	r0, r4
	bl	VdbeCoverage
	b	.L13
.L28:
	mov	r1, r3
	mov	r0, r5
	bl	sqlite3GetTempRange
	mov	r2, r0
	ldr	r3, [r6, #4]
	stm	r7, {r2, r3}
	ldr	r3, [r6, #4]
	b	.L12
.L4:
	ldr	r3, .L30+64
	ldr	r0, [r3]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r2, .L30+68
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, [r6, #4]
	ldr	r2, [r6]
	bl	sqlite3VdbeAddOp2
	b	.L10
.L31:
	.align	2
.L30:
	.word	SRT_Exists
	.word	SRT_Table
	.word	OP_IfNot
	.word	OP_Compare
	.word	P4_KEYINFO
	.word	OP_Jump
	.word	OP_Copy
	.word	OP_Integer
	.word	OP_Yield
	.word	OP_Return
	.word	OP_MakeRecord
	.word	OP_NewRowid
	.word	OP_Insert
	.word	OPFLAG_APPEND
	.word	OP_IdxInsert
	.word	OP_DecrJumpZero
	.word	SRT_Output
	.word	OP_ResultRow
	.size	generateOutputSubroutine, .-generateOutputSubroutine
	.comm	SRT_Table,4,4
	.comm	SRT_Output,4,4
	.comm	SRT_Exists,4,4
	.comm	P4_KEYINFO,4,4
	.comm	OP_Yield,4,4
	.comm	OP_Return,4,4
	.comm	OP_ResultRow,4,4
	.comm	OP_NewRowid,4,4
	.comm	OP_MakeRecord,4,4
	.comm	OP_Jump,4,4
	.comm	OP_Integer,4,4
	.comm	OP_Insert,4,4
	.comm	OP_IfNot,4,4
	.comm	OP_IdxInsert,4,4
	.comm	OP_DecrJumpZero,4,4
	.comm	OP_Copy,4,4
	.comm	OP_Compare,4,4
	.comm	OPFLAG_APPEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
