	.file	"extr_sqlite3.c_multiSelectOrderByKeyInfo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	multiSelectOrderByKeyInfo, @function
multiSelectOrderByKeyInfo:
.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, 56
	.cfi_def_cfa_offset 112
	mov	r12, QWORD PTR [rsi]
	mov	rdi, QWORD PTR [rdi]
	mov	QWORD PTR 32[rsp], rsi
	mov	ebx, DWORD PTR [r12]
	mov	QWORD PTR 40[rsp], rdi
	lea	esi, [rbx+rdx]
	mov	edx, 1
	call	sqlite3KeyInfoAlloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L1
	test	ebx, ebx
	jle	.L1
	lea	edx, -1[rbx]
	mov	rax, QWORD PTR 8[r12]
	xor	r14d, r14d
	lea	rcx, 4[0+rdx*4]
	mov	QWORD PTR 8[rsp], rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, r10
	mov	rdi, rbp
	call	sqlite3ExprCollSeq@PLT
	mov	r13, rax
.L5:
	mov	rdi, r15
	call	sqlite3KeyInfoIsWriteable@PLT
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR 8[r15]
	mov	rdx, QWORD PTR [r15]
	mov	QWORD PTR [rax+r14*2], r13
	mov	rax, QWORD PTR 8[r12]
	mov	esi, DWORD PTR [rax+rbx*2]
	mov	DWORD PTR [rdx+r14], esi
	add	r14, 4
	cmp	QWORD PTR 8[rsp], r14
	je	.L1
.L7:
	lea	rbx, [r14+r14*2]
	lea	r9, [rbx+rbx]
	add	rax, r9
	mov	r10, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [r10]
	test	DWORD PTR EP_Collate[rip], edx
	jne	.L11
	mov	rdx, QWORD PTR 16[rax]
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 24[rsp], r9
	mov	QWORD PTR 16[rsp], r10
	sub	rdx, 1
	call	multiSelectCollSeq@PLT
	mov	r10, QWORD PTR 16[rsp]
	mov	r9, QWORD PTR 24[rsp]
	test	rax, rax
	mov	r13, rax
	je	.L12
.L6:
	mov	edx, DWORD PTR 0[r13]
	add	r9, QWORD PTR 8[r12]
	mov	rsi, r10
	mov	rdi, rbp
	mov	QWORD PTR 16[rsp], r9
	call	sqlite3ExprAddCollateString@PLT
	mov	r9, QWORD PTR 16[rsp]
	mov	QWORD PTR 8[r9], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR 40[rsp]
	mov	r13, QWORD PTR [rax]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	multiSelectOrderByKeyInfo, .-multiSelectOrderByKeyInfo
	.comm	EP_Collate,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_multiSelectOrderByKeyInfo.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	multiSelectOrderByKeyInfo, %function
multiSelectOrderByKeyInfo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r1]
	ldr	r3, [r0]
	ldr	r10, [r9]
	sub	sp, sp, #20
	str	r1, [sp, #8]
	mov	r8, r0
	add	r1, r10, r2
	mov	r0, r3
	mov	r2, #1
	str	r3, [sp, #12]
	bl	sqlite3KeyInfoAlloc
	subs	r7, r0, #0
	beq	.L1
	cmp	r10, #0
	ble	.L1
	mov	r4, #0
	ldr	r3, [r9, #4]
	ldr	fp, .L12
	b	.L7
.L11:
	mov	r1, r5
	mov	r0, r8
	bl	sqlite3ExprCollSeq
	mov	r5, r0
.L5:
	mov	r0, r7
	bl	sqlite3KeyInfoIsWriteable
	bl	assert
	ldr	r3, [r9, #4]
	ldr	r0, [r7, #4]
	ldr	r1, [r3, r6, lsl #2]
	ldr	r2, [r7]
	str	r5, [r0, r4, lsl #2]
	str	r1, [r2, r4, lsl #2]
	add	r4, r4, #1
	cmp	r10, r4
	beq	.L1
.L7:
	add	r6, r4, r4, lsl #1
	add	r2, r3, r6, lsl #2
	ldr	r5, [r2, #4]
	ldr	r1, [fp]
	ldr	r0, [r5]
	lsl	r3, r6, #2
	tst	r0, r1
	bne	.L11
	ldr	r2, [r2, #8]
	ldr	r1, [sp, #8]
	sub	r2, r2, #1
	mov	r0, r8
	str	r3, [sp, #4]
	bl	multiSelectCollSeq
	mov	r2, r0
	mov	r1, r5
	subs	r5, r2, #0
	ldreq	r2, [sp, #12]
	ldr	r3, [sp, #4]
	ldreq	r5, [r2]
	ldr	ip, [r9, #4]
	mov	r0, r8
	add	r3, ip, r3
	ldr	r2, [r5]
	str	r3, [sp, #4]
	bl	sqlite3ExprAddCollateString
	ldr	r3, [sp, #4]
	str	r0, [r3, #4]
	b	.L5
.L1:
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	EP_Collate
	.size	multiSelectOrderByKeyInfo, .-multiSelectOrderByKeyInfo
	.comm	EP_Collate,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
