	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generateSortTail
_generateSortTail:                      ## @generateSortTail
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_sqlite3VdbeMakeLabel
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_sqlite3VdbeMakeLabel
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rcx
	movl	(%r13), %ebx
	movl	4(%r13), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_sqlite3GetTempReg
	movl	%eax, %r12d
	movq	_SRT_Output@GOTPCREL(%rip), %rax
	movq	_SRT_Coroutine@GOTPCREL(%rip), %rcx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_sqlite3GetTempReg
	movl	%eax, %ecx
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_2:
	movl	4(%r14), %edx
	leal	1(%rdx), %eax
	movl	%eax, 4(%r14)
	movq	_OP_OpenPseudo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_sqlite3VdbeAddOp3
	xorl	%ecx, %ecx
LBB0_4:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movq	_SF_UseSorter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	je	LBB0_6
## %bb.5:
	movl	(%r14), %r15d
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movl	4(%r14), %r13d
	incl	%r15d
	movl	%r15d, (%r14)
	leal	1(%r13), %eax
	movl	%eax, 4(%r14)
	movq	_OP_OpenPseudo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	4(%r14), %r8d
	addl	$2, %r8d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	callq	_sqlite3VdbeAddOp3
	movq	_OP_SorterSort@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	callq	_sqlite3VdbeAddOp2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_codeOffset
	movq	_OP_SorterData@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	_OP_Column@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %ecx
	incl	%ecx
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_sqlite3VdbeAddOp3
	movq	_OPFLAG_CLEARCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sqlite3VdbeChangeP5
	jmp	LBB0_7
LBB0_6:
	movq	_OP_Sort@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	callq	_sqlite3VdbeAddOp2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_codeOffset
	movq	_OP_Column@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %ecx
	incl	%ecx
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_sqlite3VdbeAddOp3
LBB0_7:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	$-128, %eax
	cmpl	$3, %eax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	ja	LBB0_12
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	xorl	%edi, %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$128, %ebx
	sete	%dil
	callq	_testcase
	xorl	%edi, %edi
	cmpl	$131, %ebx
	sete	%dil
	callq	_testcase
	movq	_OP_NewRowid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	_OP_Insert@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	callq	_sqlite3VdbeAddOp3
	movq	_OPFLAG_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sqlite3VdbeChangeP5
	jmp	LBB0_20
LBB0_12:
	movq	_SRT_Output@GOTPCREL(%rip), %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpl	(%r14), %ebx
	sete	%al
	movq	_SRT_Coroutine@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	(%r14), %ebx
	sete	%dil
	callq	_testcase
	xorl	%edi, %edi
	cmpl	(%r15), %ebx
	sete	%dil
	callq	_testcase
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	movl	%r12d, %r15d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_16
## %bb.13:
	xorl	%edi, %edi
	cmpl	8(%r13), %r15d
	setne	%dil
	callq	_assert
	movq	_OP_Column@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %r8d
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3VdbeAddOp3
	movq	_OPFLAG_CLEARCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sqlite3VdbeChangeP5
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	cmpl	$1, %edi
	je	LBB0_16
## %bb.14:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	subl	8(%r13), %eax
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setne	%dil
	callq	_assert
	movq	_OP_Column@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %r8d
	addl	%ebx, %r8d
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_sqlite3VdbeAddOp3
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	incl	%ebx
	cmpl	%ebx, %edi
	jne	LBB0_15
LBB0_16:
	movq	_SRT_Output@GOTPCREL(%rip), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax), %ecx
	jne	LBB0_18
## %bb.17:
	movq	_OP_ResultRow@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %edx
	movl	%edi, %r15d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_sqlite3VdbeAddOp2
	movl	8(%r13), %esi
	movq	%r14, %rbx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_sqlite3ExprCacheAffinityChange
	jmp	LBB0_19
LBB0_10:
	xorl	%edi, %edi
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	sete	%dil
	callq	_assert
	movq	_OP_MakeRecord@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$12, %r13
	movl	$1, (%rsp)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	$1, %ecx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r8d
	movq	%r13, %r9
	callq	_sqlite3VdbeAddOp4
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_sqlite3ExprCacheAffinityChange
	movq	_OP_IdxInsert@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_sqlite3VdbeAddOp2
	jmp	LBB0_20
LBB0_11:
	xorl	%edi, %edi
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_sqlite3ExprCodeMove
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_18:
	movq	_OP_Yield@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r13), %edx
	movq	%r14, %rdi
	callq	_sqlite3VdbeAddOp1
	movq	%r14, %rbx
	movq	-104(%rbp), %r14                ## 8-byte Reload
LBB0_19:
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	-52(%rbp), %r15d                ## 4-byte Reload
LBB0_20:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_21:
	incl	%r13d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_sqlite3ReleaseTempReg
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sqlite3ReleaseTempReg
	movq	%rbx, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	callq	_sqlite3VdbeResolveLabel
	movq	_SF_UseSorter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	andl	(%rcx), %eax
	movq	%rbx, %r14
	jne	LBB0_22
## %bb.23:
	movq	_OP_Next@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_22:
	movq	_OP_SorterNext@GOTPCREL(%rip), %rax
LBB0_24:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	%r14, %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	callq	_sqlite3VdbeResolveLabel
	movq	_SRT_Output@GOTPCREL(%rip), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax), %ecx
	je	LBB0_27
## %bb.25:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	_SRT_Coroutine@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_27
## %bb.26:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	_OP_Close@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3VdbeAddOp2              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_SRT_Output,4,2                 ## @SRT_Output
	.comm	_SRT_Coroutine,4,2              ## @SRT_Coroutine
	.comm	_OP_OpenPseudo,4,2              ## @OP_OpenPseudo
	.comm	_SF_UseSorter,4,2               ## @SF_UseSorter
	.comm	_OP_SorterSort,4,2              ## @OP_SorterSort
	.comm	_OP_SorterData,4,2              ## @OP_SorterData
	.comm	_OP_Column,4,2                  ## @OP_Column
	.comm	_OPFLAG_CLEARCACHE,4,2          ## @OPFLAG_CLEARCACHE
	.comm	_OP_Sort,4,2                    ## @OP_Sort
	.comm	_OP_NewRowid,4,2                ## @OP_NewRowid
	.comm	_OP_Insert,4,2                  ## @OP_Insert
	.comm	_OPFLAG_APPEND,4,2              ## @OPFLAG_APPEND
	.comm	_OP_MakeRecord,4,2              ## @OP_MakeRecord
	.comm	_OP_IdxInsert,4,2               ## @OP_IdxInsert
	.comm	_OP_ResultRow,4,2               ## @OP_ResultRow
	.comm	_OP_Yield,4,2                   ## @OP_Yield
	.comm	_OP_SorterNext,4,2              ## @OP_SorterNext
	.comm	_OP_Next,4,2                    ## @OP_Next
	.comm	_OP_Close,4,2                   ## @OP_Close
	.no_dead_strip	_generateSortTail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generateSortTail
_generateSortTail:                      ; @generateSortTail
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x28, x4
	mov	x27, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x2
	bl	_sqlite3VdbeMakeLabel
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_sqlite3VdbeMakeLabel
	ldr	x21, [x22, #8]
	ldp	w24, w8, [x28]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w8, [x21]
	stp	w0, w8, [sp, #32]               ; 8-byte Folded Spill
	mov	x0, x23
	bl	_sqlite3GetTempReg
	mov	x20, x0
Lloh0:
	adrp	x8, _SRT_Output@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRT_Output@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SRT_Coroutine@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SRT_Coroutine@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	cmp	w24, w8
	ccmp	w24, w9, #4, ne
Lloh6:
	adrp	x25, _OP_OpenPseudo@GOTPAGE
Lloh7:
	ldr	x25, [x25, _OP_OpenPseudo@GOTPAGEOFF]
	str	w27, [sp, #44]                  ; 4-byte Folded Spill
	b.ne	LBB0_2
; %bb.1:
	ldr	w26, [x23, #4]
	add	w8, w26, #1
	str	w8, [x23, #4]
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x26
	mov	x3, x20
	mov	x4, x27
	bl	_sqlite3VdbeAddOp3
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	mov	x0, x23
	bl	_sqlite3GetTempReg
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	w26, #0
LBB0_3:
	str	w20, [sp, #28]                  ; 4-byte Folded Spill
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _SF_UseSorter@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SF_UseSorter@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	b.eq	LBB0_5
; %bb.4:
	ldp	w8, w27, [x23]
	mov	x20, x22
	add	w22, w8, #1
	add	w8, w27, #1
	stp	w22, w8, [x23]
	ldr	w1, [x25]
	ldr	w8, [x21, #4]
	add	w4, w8, #2
	mov	x0, x19
	mov	x2, x27
	mov	x3, x22
	bl	_sqlite3VdbeAddOp3
Lloh11:
	adrp	x8, _OP_SorterSort@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OP_SorterSort@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	str	x28, [sp]                       ; 8-byte Folded Spill
	mov	x28, x21
	mov	x21, x23
	mov	x23, x24
	mov	x24, x26
	ldp	w26, w3, [sp, #36]              ; 8-byte Folded Reload
	mov	x2, x26
	bl	_sqlite3VdbeAddOp2
	mov	x25, x0
	mov	x0, x19
	mov	x1, x20
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	bl	_codeOffset
Lloh14:
	adrp	x8, _OP_SorterData@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OP_SorterData@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x26
	mov	x26, x24
	mov	x24, x23
	mov	x23, x21
	mov	x3, x22
	bl	_sqlite3VdbeAddOp2
Lloh17:
	adrp	x8, _OP_Column@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OP_Column@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x28, #4]
	ldr	x28, [sp]                       ; 8-byte Folded Reload
	add	w3, w8, #1
	mov	x0, x19
	mov	x2, x27
	ldr	w20, [sp, #28]                  ; 4-byte Folded Reload
	mov	x4, x20
	bl	_sqlite3VdbeAddOp3
Lloh20:
	adrp	x8, _OPFLAG_CLEARCACHE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OPFLAG_CLEARCACHE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3VdbeChangeP5
	b	LBB0_6
LBB0_5:
Lloh23:
	adrp	x8, _OP_Sort@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OP_Sort@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	w20, w3, [sp, #36]              ; 8-byte Folded Reload
	mov	x2, x20
	bl	_sqlite3VdbeAddOp2
	mov	x25, x0
	mov	x0, x19
	mov	x1, x22
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	bl	_codeOffset
Lloh26:
	adrp	x8, _OP_Column@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OP_Column@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w8, [x21, #4]
	add	w3, w8, #1
	mov	x0, x19
	mov	x2, x20
	ldr	w20, [sp, #28]                  ; 4-byte Folded Reload
	mov	x4, x20
	bl	_sqlite3VdbeAddOp3
LBB0_6:
	add	w27, w25, #1
	sub	w8, w24, #128
	cmp	w8, #3
Lloh29:
	adrp	x22, _SRT_Coroutine@GOTPAGE
Lloh30:
	ldr	x22, [x22, _SRT_Coroutine@GOTPAGEOFF]
	b.hi	LBB0_9
; %bb.7:
Lloh31:
	adrp	x9, lJTI0_0@PAGE
Lloh32:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	cmp	w24, #128
	cset	w0, eq
	bl	_testcase
	cmp	w24, #131
	cset	w0, eq
	bl	_testcase
Lloh33:
	adrp	x8, _OP_NewRowid@GOTPAGE
Lloh34:
	ldr	x8, [x8, _OP_NewRowid@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	w25, w21, [sp, #8]              ; 8-byte Folded Reload
	mov	x2, x25
	mov	x3, x21
	bl	_sqlite3VdbeAddOp2
Lloh36:
	adrp	x8, _OP_Insert@GOTPAGE
Lloh37:
	ldr	x8, [x8, _OP_Insert@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x25
	mov	x3, x20
	mov	x4, x21
	bl	_sqlite3VdbeAddOp3
Lloh39:
	adrp	x8, _OPFLAG_APPEND@GOTPAGE
Lloh40:
	ldr	x8, [x8, _OPFLAG_APPEND@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3VdbeChangeP5
	b	LBB0_16
LBB0_9:
Lloh42:
	adrp	x21, _SRT_Output@GOTPAGE
Lloh43:
	ldr	x21, [x21, _SRT_Output@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w24, w8
	ldr	w8, [x22]
	ccmp	w24, w8, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w8, [x21]
	cmp	w24, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x22]
	cmp	w24, w8
	cset	w0, eq
	bl	_testcase
	ldr	w3, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w3, #1
	b.lt	LBB0_13
; %bb.10:
	ldr	w8, [x28, #8]
	cmp	w20, w8
	cset	w0, ne
	bl	_assert
Lloh44:
	adrp	x21, _OP_Column@GOTPAGE
Lloh45:
	ldr	x21, [x21, _OP_Column@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w4, [x28, #8]
	mov	x0, x19
	mov	x2, x26
	mov	w3, #0
	bl	_sqlite3VdbeAddOp3
Lloh46:
	adrp	x8, _OPFLAG_CLEARCACHE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _OPFLAG_CLEARCACHE@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3VdbeChangeP5
	ldr	w3, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w3, #1
	b.eq	LBB0_13
; %bb.11:
	mov	w25, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28, #8]
	sub	w8, w20, w8
	cmp	w8, w25
	cset	w0, ne
	bl	_assert
	ldr	w1, [x21]
	ldr	w8, [x28, #8]
	add	w4, w25, w8
	mov	x0, x19
	mov	x2, x26
	mov	x3, x25
	bl	_sqlite3VdbeAddOp3
	ldr	w3, [sp, #44]                   ; 4-byte Folded Reload
	add	w25, w25, #1
	cmp	w3, w25
	b.ne	LBB0_12
LBB0_13:
Lloh49:
	adrp	x8, _SRT_Output@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SRT_Output@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	cmp	w24, w8
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	b.ne	LBB0_18
; %bb.14:
Lloh52:
	adrp	x8, _OP_ResultRow@GOTPAGE
Lloh53:
	ldr	x8, [x8, _OP_ResultRow@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	ldr	w2, [x28, #8]
	mov	x0, x19
	mov	x21, x3
	bl	_sqlite3VdbeAddOp2
	ldr	w1, [x28, #8]
	mov	x0, x23
	mov	x2, x21
	bl	_sqlite3ExprCacheAffinityChange
	b	LBB0_19
LBB0_15:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #1
	cset	w0, eq
	bl	_assert
Lloh55:
	adrp	x8, _OP_MakeRecord@GOTPAGE
Lloh56:
	ldr	x8, [x8, _OP_MakeRecord@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	add	x5, x28, #12
	mov	x0, x19
	mov	x2, x20
	mov	w3, #1
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
	mov	x4, x21
	mov	w6, #1
	bl	_sqlite3VdbeAddOp4
	mov	x0, x23
	mov	x1, x20
	mov	w2, #1
	bl	_sqlite3ExprCacheAffinityChange
Lloh58:
	adrp	x8, _OP_IdxInsert@GOTPAGE
Lloh59:
	ldr	x8, [x8, _OP_IdxInsert@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	mov	x3, x21
	bl	_sqlite3VdbeAddOp2
LBB0_16:
	mov	x1, x20
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_21
LBB0_17:
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #1
	cset	w0, eq
	bl	_assert
	mov	x0, x23
	mov	x1, x20
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	mov	w3, #1
	bl	_sqlite3ExprCodeMove
	mov	x1, x20
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_20
LBB0_18:
Lloh61:
	adrp	x8, _OP_Yield@GOTPAGE
Lloh62:
	ldr	x8, [x8, _OP_Yield@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	ldr	w2, [x28, #4]
	mov	x0, x19
	bl	_sqlite3VdbeAddOp1
LBB0_19:
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
LBB0_20:
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
LBB0_21:
Lloh64:
	adrp	x25, _SF_UseSorter@GOTPAGE
Lloh65:
	ldr	x25, [x25, _SF_UseSorter@GOTPAGEOFF]
	mov	x0, x23
	bl	_sqlite3ReleaseTempReg
	mov	x0, x23
	mov	x1, x21
	bl	_sqlite3ReleaseTempReg
	mov	x0, x19
	ldr	w1, [sp, #32]                   ; 4-byte Folded Reload
	bl	_sqlite3VdbeResolveLabel
	ldr	w8, [x20]
Lloh66:
	adrp	x9, _OP_Next@GOTPAGE
Lloh67:
	ldr	x9, [x9, _OP_Next@GOTPAGEOFF]
Lloh68:
	ldr	w10, [x25]
Lloh69:
	adrp	x11, _OP_SorterNext@GOTPAGE
Lloh70:
	ldr	x11, [x11, _OP_SorterNext@GOTPAGEOFF]
	tst	w10, w8
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #36]                   ; 4-byte Folded Reload
	mov	x3, x27
	bl	_sqlite3VdbeAddOp2
	mov	x0, x19
	ldr	w1, [sp, #40]                   ; 4-byte Folded Reload
	bl	_sqlite3VdbeResolveLabel
Lloh71:
	adrp	x8, _SRT_Output@GOTPAGE
Lloh72:
	ldr	x8, [x8, _SRT_Output@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	ldr	w9, [x22]
	cmp	w24, w8
	ccmp	w24, w9, #4, ne
	b.ne	LBB0_23
; %bb.22:
Lloh74:
	adrp	x8, _OP_Close@GOTPAGE
Lloh75:
	ldr	x8, [x8, _OP_Close@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x26
	mov	w3, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_sqlite3VdbeAddOp2
LBB0_23:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh68
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
                                        ; -- End function
	.comm	_SRT_Output,4,2                 ; @SRT_Output
	.comm	_SRT_Coroutine,4,2              ; @SRT_Coroutine
	.comm	_OP_OpenPseudo,4,2              ; @OP_OpenPseudo
	.comm	_SF_UseSorter,4,2               ; @SF_UseSorter
	.comm	_OP_SorterSort,4,2              ; @OP_SorterSort
	.comm	_OP_SorterData,4,2              ; @OP_SorterData
	.comm	_OP_Column,4,2                  ; @OP_Column
	.comm	_OPFLAG_CLEARCACHE,4,2          ; @OPFLAG_CLEARCACHE
	.comm	_OP_Sort,4,2                    ; @OP_Sort
	.comm	_OP_NewRowid,4,2                ; @OP_NewRowid
	.comm	_OP_Insert,4,2                  ; @OP_Insert
	.comm	_OPFLAG_APPEND,4,2              ; @OPFLAG_APPEND
	.comm	_OP_MakeRecord,4,2              ; @OP_MakeRecord
	.comm	_OP_IdxInsert,4,2               ; @OP_IdxInsert
	.comm	_OP_ResultRow,4,2               ; @OP_ResultRow
	.comm	_OP_Yield,4,2                   ; @OP_Yield
	.comm	_OP_SorterNext,4,2              ; @OP_SorterNext
	.comm	_OP_Next,4,2                    ; @OP_Next
	.comm	_OP_Close,4,2                   ; @OP_Close
	.no_dead_strip	_generateSortTail
.subsections_via_symbols
