	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function multiSelectOrderByKeyInfo
_multiSelectOrderByKeyInfo:             ## @multiSelectOrderByKeyInfo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r14
	movl	(%r14), %ebx
	movq	(%rdi), %rdi
	leal	(%rdx,%rbx), %esi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %edx
	callq	_sqlite3KeyInfoAlloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.2:
	movq	%r14, %rdx
	movq	8(%r14), %rax
	shlq	$3, %rbx
	leaq	(%rbx,%rbx,2), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, %rbx
	movq	%r15, %rsi
	movq	%rdi, %r15
	callq	_sqlite3ExprCollSeq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_sqlite3KeyInfoIsWriteable
	movl	%eax, %edi
	callq	_assert
	movq	8(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax,%r14,2)
	movq	8(%rbx), %rax
	movl	(%rax,%r12), %ecx
	movq	(%r13), %rdx
	movl	%ecx, (%rdx,%r14)
	addq	$4, %r14
	addq	$24, %r12
	cmpq	%r12, -88(%rbp)                 ## 8-byte Folded Reload
	movq	%rbx, %rdx
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	8(%rax,%r12), %r15
	movq	_EP_Collate@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rax,%r12), %rdx
	decq	%rdx
	movq	%rdi, %r13
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_multiSelectCollSeq
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_sqlite3ExprAddCollateString
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx,%r12)
	movq	%r13, %r15
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EP_Collate,4,2                 ## @EP_Collate
	.no_dead_strip	_multiSelectOrderByKeyInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function multiSelectOrderByKeyInfo
_multiSelectOrderByKeyInfo:             ; @multiSelectOrderByKeyInfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x25, [x1]
	ldr	w26, [x25]
	ldr	x0, [x0]
	add	w1, w26, w2
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	w2, #1
	bl	_sqlite3KeyInfoAlloc
	mov	x22, x0
	cmp	x0, #0
	ccmp	w26, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	x27, #0
	ldr	x8, [x25, #8]
	mov	w28, #8
Lloh0:
	adrp	x21, _EP_Collate@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EP_Collate@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_sqlite3ExprCollSeq
	mov	x23, x0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_sqlite3KeyInfoIsWriteable
	bl	_assert
	ldr	x8, [x22, #8]
	str	x23, [x8, x27, lsl #3]
	ldr	x8, [x25, #8]
	add	x9, x8, x28
	ldur	w9, [x9, #-8]
	ldr	x10, [x22]
	str	w9, [x10, x27, lsl #2]
	add	x27, x27, #1
	add	x28, x28, #24
	cmp	x26, x27
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x8, x28]
	ldr	w9, [x24]
	ldr	w10, [x21]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x28
	ldr	x8, [x8, #8]
	sub	x2, x8, #1
	mov	x0, x20
	mov	x1, x19
	bl	_multiSelectCollSeq
	mov	x23, x0
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x23, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x24
	bl	_sqlite3ExprAddCollateString
	ldr	x8, [x25, #8]
	str	x0, [x8, x28]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EP_Collate,4,2                 ; @EP_Collate
	.no_dead_strip	_multiSelectOrderByKeyInfo
.subsections_via_symbols
