	.file	"extr_sqlite3.c_resolveOrderByTermToExprList.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	resolveOrderByTermToExprList, @function
resolveOrderByTermToExprList:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	rdi, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rsi, 12[rsp]
	lea	r14, 16[rsp]
	call	sqlite3ExprIsInteger@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	edx, 40
	xor	esi, esi
	mov	rdi, r14
	mov	rbx, QWORD PTR 8[r13]
	call	memset@PLT
	mov	eax, DWORD PTR 0[r13]
	mov	rsi, rbp
	mov	rdi, r14
	mov	QWORD PTR 48[rsp], r12
	mov	r12, QWORD PTR [r12]
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR NC_AllowAgg[rip]
	mov	r13d, DWORD PTR [r12]
	mov	QWORD PTR 32[rsp], rbx
	mov	DWORD PTR 24[rsp], eax
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR [r12], 1
	call	sqlite3ResolveExprNames@PLT
	mov	DWORD PTR [r12], r13d
	test	eax, eax
	jne	.L2
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR 12[rsp], 0
	test	edx, edx
	jg	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	add	eax, 1
	mov	DWORD PTR 12[rsp], eax
	cmp	eax, DWORD PTR [rbx]
	jge	.L2
.L5:
	mov	rdx, QWORD PTR 8[rbx]
	cdqe
	mov	rsi, rbp
	mov	edi, DWORD PTR [rdx+rax*4]
	call	sqlite3ExprCompare@PLT
	cmp	eax, 1
	mov	eax, DWORD PTR 12[rsp]
	jg	.L3
	add	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	resolveOrderByTermToExprList, .-resolveOrderByTermToExprList
	.comm	NC_AllowAgg,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_resolveOrderByTermToExprList.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	resolveOrderByTermToExprList, %function
resolveOrderByTermToExprList:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L11
	sub	sp, sp, #32
	mov	r6, r0
	mov	r7, r1
	mov	r0, r2
	add	r1, sp, #4
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	sqlite3ExprIsInteger
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldm	r7, {r0, r4}
	mov	r2, #0
	mov	r3, #1
	ldr	r1, .L11+4
	ldr	r8, [r6]
	ldr	r1, [r1]
	str	r6, [sp, #24]
	ldr	r6, [r8]
	str	r0, [sp, #20]
	str	r1, [sp, #12]
	str	r4, [sp, #16]
	str	r2, [sp, #8]
	mov	r1, r5
	str	r3, [r8]
	add	r0, sp, #8
	bl	sqlite3ResolveExprNames
	cmp	r0, #0
	str	r6, [r8]
	bne	.L2
	ldr	r3, [r4]
	str	r0, [sp, #4]
	cmp	r3, #0
	bgt	.L5
	b	.L2
.L3:
	ldr	r3, [r4]
	add	r0, r0, #1
	cmp	r0, r3
	str	r0, [sp, #4]
	bge	.L2
.L5:
	ldr	r3, [r4, #4]
	mov	r1, r5
	ldr	r0, [r3, r0, lsl #2]
	bl	sqlite3ExprCompare
	cmp	r0, #1
	ldr	r0, [sp, #4]
	bgt	.L3
	add	r0, r0, #1
	b	.L1
.L2:
	mov	r0, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	NC_AllowAgg
	.size	resolveOrderByTermToExprList, .-resolveOrderByTermToExprList
	.comm	NC_AllowAgg,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
