	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	16(%rdi), %r12
	movl	(%rdx), %r13d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_sqlite3VdbeMakeLabel
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	40(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movl	4(%r14), %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	shrl	$31, %r13d
	movl	%r13d, %edi
	callq	_assert
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_OP_Gosub@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%r12, %rdi
	callq	_sqlite3VdbeAddOp2
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_sqlite3VdbeGoto
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	callq	_sqlite3VdbeResolveLabel
LBB0_2:
	movl	16(%rbx), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	_SRT_Output@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax), %ecx
	je	LBB0_5
## %bb.3:
	cmpl	$130, %ecx
	je	LBB0_5
## %bb.4:
	movq	_SRT_Coroutine@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_5
## %bb.6:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_sqlite3GetTempReg
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$131, %ecx
	je	LBB0_8
## %bb.7:
	cmpl	$128, %ecx
	jne	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	callq	_sqlite3GetTempReg
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_5:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
LBB0_10:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	subl	20(%rbx), %r14d
	movq	_SORTFLAG_UseSorter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rbx)
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_17
## %bb.11:
	movq	%r13, %rcx
	movl	(%r13), %r13d
	movl	4(%rcx), %eax
	incl	%r13d
	movl	%r13d, (%rcx)
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	incl	%eax
	movl	%eax, 4(%rcx)
	cmpl	$0, 4(%rbx)
	je	LBB0_12
## %bb.13:
	movq	_OP_Once@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sqlite3VdbeAddOp0
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_VdbeCoverage
	jmp	LBB0_14
LBB0_17:
	movq	_OP_Sort@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_sqlite3VdbeAddOp2
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	callq	_VdbeCoverage
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	callq	_codeOffset
	movl	$1, %ecx
	movl	%ebx, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
LBB0_12:
	xorl	%r15d, %r15d
LBB0_14:
	movq	_OP_OpenPseudo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %r8d
	incl	%r8d
	movq	%r12, %rdi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r13d, %ecx
	callq	_sqlite3VdbeAddOp3
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_sqlite3VdbeJumpHere
LBB0_16:
	movq	_OP_SorterSort@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_sqlite3VdbeAddOp2
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	callq	_VdbeCoverage
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	callq	_codeOffset
	movq	_OP_SorterData@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_sqlite3VdbeAddOp3
	xorl	%ecx, %ecx
LBB0_18:
	addl	%r14d, %ecx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_30
## %bb.19:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	leal	-1(%rax), %ebx
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	leaq	-1(%r12), %rcx
	movl	%r12d, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_21
## %bb.20:
	xorl	%ecx, %ecx
	jmp	LBB0_23
LBB0_21:
	movl	%r12d, %edx
	andl	$-4, %edx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	leaq	136(%rcx), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	$0, -120(%rsi)
	sete	%dil
	cmpq	$1, -80(%rsi)
	adcl	%ebx, %edi
	xorl	%ebx, %ebx
	cmpq	$0, -40(%rsi)
	sete	%bl
	cmpq	$1, (%rsi)
	adcl	%edi, %ebx
	addq	$4, %rcx
	addq	$160, %rsi
	cmpq	%rcx, %rdx
	jne	LBB0_22
LBB0_23:
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	leaq	(%rcx,%rcx,4), %rcx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rcx
	addq	$16, %rcx
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$1, (%rcx,%rdx)
	adcl	$0, %ebx
	addq	$40, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_25
LBB0_26:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	-136(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movzbl	-144(%rbp), %eax                ## 1-byte Folded Reload
	movb	%al, %r15b
	subl	%r15d, %ebx
	callq	_VdbeComment
	leaq	1(%r12), %rax
	cmpq	$1, %rax
	jbe	LBB0_30
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r8
	decq	%r12
	movl	%r12d, %eax
	leaq	(%rax,%rax,4), %r14
	movq	16(%r13,%r14,8), %rax
	leal	-1(%rax), %ecx
	xorl	%r15d, %r15d
	testq	%rax, %rax
	sete	-144(%rbp)                      ## 1-byte Folded Spill
	cmovel	%ebx, %ecx
	movq	_OP_Column@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	-160(%rbp), %r8d                ## 4-byte Folded Reload
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_sqlite3VdbeAddOp3
	movq	8(%r13,%r14,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r14,8), %rdi
	jmp	LBB0_29
LBB0_30:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	-128(%rcx), %eax
	cmpl	$3, %eax
	ja	LBB0_33
## %bb.31:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_32:
	movq	_OP_Column@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-152(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_sqlite3VdbeAddOp3
	movq	_OP_NewRowid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-116(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %edx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	_OP_Insert@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_sqlite3VdbeAddOp3
	movq	_OPFLAG_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_sqlite3VdbeChangeP5
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_38
	jmp	LBB0_44
LBB0_33:
	movq	_SRT_Output@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %ecx
	sete	%al
	movq	_SRT_Coroutine@GOTPCREL(%rip), %r14
	cmpl	(%r14), %ecx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%edi, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rbx), %eax
	sete	%dil
	callq	_testcase
	xorl	%edi, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%r14), %eax
	sete	%dil
	callq	_testcase
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rbx), %eax
	jne	LBB0_35
## %bb.34:
	movq	_OP_ResultRow@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %edx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_sqlite3VdbeAddOp2
	jmp	LBB0_36
LBB0_39:
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movl	12(%rbx), %edi
	callq	_sqlite3Strlen30
	xorl	%edi, %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	%eax, %r14d
	sete	%dil
	callq	_assert
	movq	_OP_MakeRecord@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %r9d
	movl	%r14d, (%rsp)
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_sqlite3VdbeAddOp4
	movq	_OP_IdxInsert@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-116(%rbp), %edx                ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_sqlite3VdbeAddOp4Int
	testl	%ebx, %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_40
	jmp	LBB0_44
LBB0_41:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_42
	jmp	LBB0_44
LBB0_35:
	movq	_OP_Yield@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	callq	_sqlite3VdbeAddOp1
LBB0_36:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_44
LBB0_38:
	cmpl	$129, %eax
	jne	LBB0_42
LBB0_40:
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_sqlite3ReleaseTempRange
	jmp	LBB0_43
LBB0_42:
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_sqlite3ReleaseTempReg
LBB0_43:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_sqlite3ReleaseTempReg
LBB0_44:
	movl	-120(%rbp), %ebx                ## 4-byte Reload
	incl	%ebx
	movq	%r13, %rdi
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_sqlite3VdbeResolveLabel
	movq	_SORTFLAG_UseSorter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	24(%r15), %eax
	jne	LBB0_45
## %bb.46:
	movq	_OP_Next@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_45:
	movq	_OP_SorterNext@GOTPCREL(%rip), %rax
LBB0_47:
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	%r13, %rdi
	callq	_VdbeCoverage
	movl	8(%r15), %edx
	testl	%edx, %edx
	je	LBB0_49
## %bb.48:
	movq	_OP_Return@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_sqlite3VdbeAddOp1
LBB0_49:
	movq	%r13, %rdi
	movl	%r14d, %esi
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sqlite3VdbeResolveLabel        ## TAILCALL
LBB0_9:
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_sqlite3GetTempRange
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
LJTI0_0:
	.long	L0_0_set_32
	.long	L0_0_set_39
	.long	L0_0_set_41
	.long	L0_0_set_32
	.end_data_region
                                        ## -- End function
	.comm	_OP_Gosub,4,2                   ## @OP_Gosub
	.comm	_SRT_Output,4,2                 ## @SRT_Output
	.comm	_SRT_Coroutine,4,2              ## @SRT_Coroutine
	.comm	_SORTFLAG_UseSorter,4,2         ## @SORTFLAG_UseSorter
	.comm	_OP_Once,4,2                    ## @OP_Once
	.comm	_OP_OpenPseudo,4,2              ## @OP_OpenPseudo
	.comm	_OP_SorterSort,4,2              ## @OP_SorterSort
	.comm	_OP_SorterData,4,2              ## @OP_SorterData
	.comm	_OP_Sort,4,2                    ## @OP_Sort
	.comm	_OP_Column,4,2                  ## @OP_Column
	.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_Return,4,2                  ## @OP_Return
	.comm	_OP_IdxLE,4,2                   ## @OP_IdxLE
	.comm	_OP_NullRow,4,2                 ## @OP_NullRow
	.comm	_OP_OpenRead,4,2                ## @OP_OpenRead
	.comm	_OP_SeekGE,4,2                  ## @OP_SeekGE
	.comm	_OP_SeekRowid,4,2               ## @OP_SeekRowid
	.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, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x25, x4
	str	w3, [sp, #76]                   ; 4-byte Folded Spill
	mov	x21, x2
	mov	x27, x1
	mov	x22, x0
	ldr	x19, [x0, #16]
	ldr	w20, [x2]
	bl	_sqlite3VdbeMakeLabel
	str	w0, [sp, #72]                   ; 4-byte Folded Spill
	ldr	x23, [x21, #40]
	ldp	w24, w8, [x25]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x8, [x27, #8]
	ldr	x28, [x8]
	lsr	w0, w20, #31
	bl	_assert
	ldr	w3, [x21, #4]
	cbz	w3, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _OP_Gosub@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OP_Gosub@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_sqlite3VdbeAddOp2
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3VdbeGoto
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_sqlite3VdbeResolveLabel
LBB0_2:
	ldr	w8, [x21, #16]
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _SRT_Output@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SRT_Output@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w24, w8
	str	w24, [sp, #56]                  ; 4-byte Folded Spill
	b.eq	LBB0_8
; %bb.3:
	cmp	w24, #130
	b.eq	LBB0_8
; %bb.4:
Lloh6:
	adrp	x8, _SRT_Coroutine@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SRT_Coroutine@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_8
; %bb.5:
	mov	x0, x22
	bl	_sqlite3GetTempReg
	mov	x26, x0
	cmp	w24, #131
	b.eq	LBB0_7
; %bb.6:
	cmp	w24, #128
	b.ne	LBB0_46
LBB0_7:
	mov	x0, x22
	bl	_sqlite3GetTempReg
	str	w0, [sp, #64]                   ; 4-byte Folded Spill
	str	wzr, [sp, #76]                  ; 4-byte Folded Spill
	b	LBB0_9
LBB0_8:
	mov	w26, #0
	ldr	w8, [x25, #8]
	str	w8, [sp, #64]                   ; 4-byte Folded Spill
LBB0_9:
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w8, [x23]
	ldp	w9, w10, [x21, #20]
	sub	w24, w8, w9
Lloh9:
	adrp	x8, _SORTFLAG_UseSorter@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SORTFLAG_UseSorter@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w10
	str	w20, [sp, #52]                  ; 4-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	str	w26, [sp, #28]                  ; 4-byte Folded Spill
	b.eq	LBB0_12
; %bb.10:
	ldp	w8, w25, [x22]
	add	w23, w8, #1
	add	w8, w25, #1
	stp	w23, w8, [x22]
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_13
; %bb.11:
Lloh12:
	adrp	x8, _OP_Once@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OP_Once@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3VdbeAddOp0
	mov	x26, x0
	mov	x0, x19
	bl	_VdbeCoverage
	b	LBB0_14
LBB0_12:
Lloh15:
	adrp	x8, _OP_Sort@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OP_Sort@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w25, [sp, #68]                  ; 4-byte Folded Reload
	mov	x2, x25
	mov	x3, x20
	bl	_sqlite3VdbeAddOp2
	mov	x26, x0
	mov	x0, x19
	bl	_VdbeCoverage
	ldr	w1, [x27]
	mov	x0, x19
	ldr	w2, [sp, #72]                   ; 4-byte Folded Reload
	bl	_codeOffset
	mov	w8, #1
	b	LBB0_17
LBB0_13:
	mov	w26, #0
LBB0_14:
Lloh18:
	adrp	x8, _OP_OpenPseudo@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OP_OpenPseudo@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	add	w8, w8, w24
	add	w4, w8, #1
	mov	x0, x19
	mov	x2, x25
	mov	x3, x23
	bl	_sqlite3VdbeAddOp3
	cbz	w26, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x26
	bl	_sqlite3VdbeJumpHere
LBB0_16:
Lloh21:
	adrp	x8, _OP_SorterSort@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OP_SorterSort@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w21, [sp, #68]                  ; 4-byte Folded Reload
	mov	x2, x21
	mov	x3, x20
	bl	_sqlite3VdbeAddOp2
	mov	x26, x0
	mov	x0, x19
	bl	_VdbeCoverage
	ldr	w1, [x27]
	mov	x0, x19
	ldr	w2, [sp, #72]                   ; 4-byte Folded Reload
	bl	_codeOffset
Lloh24:
	adrp	x8, _OP_SorterData@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OP_SorterData@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x23
	mov	x4, x25
	bl	_sqlite3VdbeAddOp3
	mov	w8, #0
LBB0_17:
	add	w9, w26, #1
	str	w9, [sp, #24]                   ; 4-byte Folded Spill
	add	w8, w8, w24
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
Lloh27:
	adrp	x23, _OP_Column@GOTPAGE
Lloh28:
	ldr	x23, [x23, _OP_Column@GOTPAGEOFF]
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.18:
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	sub	w26, w8, #1
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	mov	w8, w9
	cmp	w9, #4
	b.hs	LBB0_20
; %bb.19:
	mov	x9, #0
	b	LBB0_23
LBB0_20:
	mov	w12, #0
	mov	w11, #0
	mov	w10, #0
	and	x9, x8, #0xfffffffc
	add	x13, x28, #96
	mov	x14, x9
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldur	x15, [x13, #-80]
	ldur	x16, [x13, #-40]
	ldr	x17, [x13]
	ldr	x0, [x13, #40]
	cmp	x15, #0
	cinc	w26, w26, eq
	cmp	x16, #0
	cinc	w12, w12, eq
	cmp	x17, #0
	cinc	w11, w11, eq
	cmp	x0, #0
	cinc	w10, w10, eq
	add	x13, x13, #160
	subs	x14, x14, #4
	b.ne	LBB0_21
; %bb.22:
	add	w12, w12, w26
	add	w11, w11, w12
	add	w26, w10, w11
	cmp	x9, x8
	b.eq	LBB0_25
LBB0_23:
	mov	w10, #40
	mul	x10, x9, x10
	add	x10, x28, x10
	add	x10, x10, #16
	sub	x9, x8, x9
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #40
	cmp	x11, #0
	cinc	w26, w26, eq
	subs	x9, x9, #1
	b.ne	LBB0_24
LBB0_25:
	ldr	w9, [sp, #64]                   ; 4-byte Folded Reload
	sub	w24, w9, #1
	mov	w27, #40
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	bl	_VdbeComment
	add	x9, x20, #1
	mov	x8, x20
	cmp	x9, #1
	b.ls	LBB0_29
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	sub	x20, x8, #1
	and	x22, x20, #0xffffffff
	mul	x9, x22, x27
	add	x21, x28, x9
	ldr	x9, [x21, #16]
	sub	w10, w9, #1
	cmp	x9, #0
	cset	w9, eq
	csel	w3, w26, w10, eq
	sub	w26, w26, w9
	ldr	w1, [x23]
	add	w4, w24, w8
	mov	x0, x19
	mov	x2, x25
	bl	_sqlite3VdbeAddOp3
	ldr	x0, [x21, #8]
	cbnz	x0, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mul	x8, x22, x27
	ldr	x0, [x28, x8]
	b	LBB0_26
LBB0_29:
	ldr	w24, [sp, #56]                  ; 4-byte Folded Reload
	sub	w8, w24, #128
	cmp	w8, #3
	b.hi	LBB0_32
; %bb.30:
Lloh29:
	adrp	x9, lJTI0_0@PAGE
Lloh30:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_31
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_31:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x25
	ldp	w3, w20, [sp, #60]              ; 8-byte Folded Reload
	mov	x4, x20
	bl	_sqlite3VdbeAddOp3
Lloh31:
	adrp	x8, _OP_NewRowid@GOTPAGE
Lloh32:
	ldr	x8, [x8, _OP_NewRowid@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w21, [sp, #20]                  ; 4-byte Folded Reload
	mov	x2, x21
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	mov	x3, x23
	bl	_sqlite3VdbeAddOp2
Lloh34:
	adrp	x8, _OP_Insert@GOTPAGE
Lloh35:
	ldr	x8, [x8, _OP_Insert@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	bl	_sqlite3VdbeAddOp3
Lloh37:
	adrp	x8, _OPFLAG_APPEND@GOTPAGE
Lloh38:
	ldr	x8, [x8, _OPFLAG_APPEND@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3VdbeChangeP5
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	b	LBB0_38
LBB0_32:
Lloh40:
	adrp	x21, _SRT_Output@GOTPAGE
Lloh41:
	ldr	x21, [x21, _SRT_Output@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w24, w8
Lloh42:
	adrp	x20, _SRT_Coroutine@GOTPAGE
Lloh43:
	ldr	x20, [x20, _SRT_Coroutine@GOTPAGEOFF]
	ldr	w8, [x20]
	ccmp	w24, w8, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w8, [x21]
	cmp	w24, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x20]
	cmp	w24, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x21]
	cmp	w24, w8
	b.ne	LBB0_36
; %bb.33:
Lloh44:
	adrp	x8, _OP_ResultRow@GOTPAGE
Lloh45:
	ldr	x8, [x8, _OP_ResultRow@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w2, [x8, #8]
	mov	x0, x19
	ldr	w3, [sp, #76]                   ; 4-byte Folded Reload
	bl	_sqlite3VdbeAddOp2
	b	LBB0_37
LBB0_34:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w0, [x21, #12]
	bl	_sqlite3Strlen30
	ldr	w20, [sp, #76]                  ; 4-byte Folded Reload
	cmp	w20, w0
	cset	w0, eq
	bl	_assert
Lloh47:
	adrp	x8, _OP_MakeRecord@GOTPAGE
Lloh48:
	ldr	x8, [x8, _OP_MakeRecord@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	ldr	w5, [x21, #12]
	mov	x0, x19
	ldr	w21, [sp, #64]                  ; 4-byte Folded Reload
	mov	x2, x21
	mov	x3, x20
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	mov	x4, x23
	mov	x6, x20
	bl	_sqlite3VdbeAddOp4
Lloh50:
	adrp	x8, _OP_IdxInsert@GOTPAGE
Lloh51:
	ldr	x8, [x8, _OP_IdxInsert@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	mov	x3, x23
	mov	x4, x21
	mov	x5, x20
	bl	_sqlite3VdbeAddOp4Int
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
Lloh53:
	adrp	x25, _SORTFLAG_UseSorter@GOTPAGE
Lloh54:
	ldr	x25, [x25, _SORTFLAG_UseSorter@GOTPAGEOFF]
	ldr	w26, [sp, #24]                  ; 4-byte Folded Reload
	cbnz	w23, LBB0_40
	b	LBB0_43
LBB0_35:
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	w26, w23, [sp, #24]             ; 8-byte Folded Reload
Lloh55:
	adrp	x25, _SORTFLAG_UseSorter@GOTPAGE
Lloh56:
	ldr	x25, [x25, _SORTFLAG_UseSorter@GOTPAGEOFF]
	cbnz	w23, LBB0_41
	b	LBB0_43
LBB0_36:
Lloh57:
	adrp	x8, _OP_Yield@GOTPAGE
Lloh58:
	ldr	x8, [x8, _OP_Yield@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_sqlite3VdbeAddOp1
LBB0_37:
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
LBB0_38:
Lloh60:
	adrp	x25, _SORTFLAG_UseSorter@GOTPAGE
Lloh61:
	ldr	x25, [x25, _SORTFLAG_UseSorter@GOTPAGEOFF]
	ldr	w26, [sp, #24]                  ; 4-byte Folded Reload
	cbz	w23, LBB0_43
; %bb.39:
	cmp	w24, #129
	b.ne	LBB0_41
LBB0_40:
	mov	x0, x22
	ldr	w1, [sp, #64]                   ; 4-byte Folded Reload
	ldr	w2, [sp, #76]                   ; 4-byte Folded Reload
	bl	_sqlite3ReleaseTempRange
	b	LBB0_42
LBB0_41:
	mov	x0, x22
	ldr	w1, [sp, #64]                   ; 4-byte Folded Reload
	bl	_sqlite3ReleaseTempReg
LBB0_42:
	mov	x0, x22
	mov	x1, x23
	bl	_sqlite3ReleaseTempReg
LBB0_43:
	mov	x0, x19
	ldr	w1, [sp, #72]                   ; 4-byte Folded Reload
	bl	_sqlite3VdbeResolveLabel
	ldr	w8, [x21, #24]
Lloh62:
	adrp	x9, _OP_Next@GOTPAGE
Lloh63:
	ldr	x9, [x9, _OP_Next@GOTPAGEOFF]
	ldr	w10, [x25]
Lloh64:
	adrp	x11, _OP_SorterNext@GOTPAGE
Lloh65:
	ldr	x11, [x11, _OP_SorterNext@GOTPAGEOFF]
	tst	w10, w8
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	mov	x0, x19
	ldr	w2, [sp, #68]                   ; 4-byte Folded Reload
	mov	x3, x26
	bl	_sqlite3VdbeAddOp2
	mov	x0, x19
	bl	_VdbeCoverage
	ldr	w2, [x21, #8]
	cbz	w2, LBB0_45
; %bb.44:
Lloh66:
	adrp	x8, _OP_Return@GOTPAGE
Lloh67:
	ldr	x8, [x8, _OP_Return@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3VdbeAddOp1
LBB0_45:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_sqlite3VdbeResolveLabel
LBB0_46:
	mov	x0, x22
	ldr	w1, [sp, #76]                   ; 4-byte Folded Reload
	bl	_sqlite3GetTempRange
	str	w0, [sp, #64]                   ; 4-byte Folded Spill
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_31-LBB0_31)>>2
	.byte	(LBB0_34-LBB0_31)>>2
	.byte	(LBB0_35-LBB0_31)>>2
	.byte	(LBB0_31-LBB0_31)>>2
                                        ; -- End function
	.comm	_OP_Gosub,4,2                   ; @OP_Gosub
	.comm	_SRT_Output,4,2                 ; @SRT_Output
	.comm	_SRT_Coroutine,4,2              ; @SRT_Coroutine
	.comm	_SORTFLAG_UseSorter,4,2         ; @SORTFLAG_UseSorter
	.comm	_OP_Once,4,2                    ; @OP_Once
	.comm	_OP_OpenPseudo,4,2              ; @OP_OpenPseudo
	.comm	_OP_SorterSort,4,2              ; @OP_SorterSort
	.comm	_OP_SorterData,4,2              ; @OP_SorterData
	.comm	_OP_Sort,4,2                    ; @OP_Sort
	.comm	_OP_Column,4,2                  ; @OP_Column
	.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_Return,4,2                  ; @OP_Return
	.comm	_OP_IdxLE,4,2                   ; @OP_IdxLE
	.comm	_OP_NullRow,4,2                 ; @OP_NullRow
	.comm	_OP_OpenRead,4,2                ; @OP_OpenRead
	.comm	_OP_SeekGE,4,2                  ; @OP_SeekGE
	.comm	_OP_SeekRowid,4,2               ; @OP_SeekRowid
	.no_dead_strip	_generateSortTail
.subsections_via_symbols
