	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function constructAutomaticIndex
_constructAutomaticIndex:               ## @constructAutomaticIndex
	.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, %r15
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	_OP_Once@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sqlite3VdbeAddOp0
	movl	%eax, %r14d
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_VdbeCoverage
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	%r12, -168(%rbp)                ## 8-byte Spill
	movq	16(%r12), %r13
	movq	%rax, %rcx
	shlq	$4, %rcx
	addq	%r13, %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	24(%r15), %rbx
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, -132(%rbp)               ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %r14d
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %r13
	movl	%r14d, %r15d
	cmpq	-112(%rbp), %r13                ## 8-byte Folded Reload
	jae	LBB0_21
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r14
	movq	_EP_FromJoin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ExprHasProperty
	movb	$1, %cl
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r14), %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	36(%rdx), %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rbx)
	setne	%cl
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%cl, %edi
	callq	_assert
	cmpq	$0, (%rbx)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_TERM_VIRTUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_EP_FromJoin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ExprHasProperty
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	36(%rax), %esi
	movq	%r14, %rdi
	callq	_sqlite3ExprIsTableConstant
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_sqlite3ExprDup
	movq	%rbx, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_sqlite3ExprAnd
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-104(%rbp), %edx                ## 4-byte Reload
	callq	_termCanDriveIndex
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	4(%r13), %rbx
	movq	_BMS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leal	-1(%rax), %edi
	cmpl	%eax, %ebx
	cmovll	%ebx, %edi
	callq	_MASKBIT
	movl	%eax, %r12d
	xorl	%edi, %edi
	cmpl	(%r14), %ebx
	sete	%dil
	callq	_testcase
	movl	(%r14), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_testcase
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_SQLITE_WARNING_AUTOINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_sqlite3_log
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, -80(%rbp)                   ## 4-byte Folded Spill
	testl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leal	1(%r15), %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_whereLoopResize
	testq	%rax, %rax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%rbx), %rax
	movslq	%r15d, %rcx
	movq	%r13, (%rax,%rcx,8)
	orl	%r12d, -44(%rbp)                ## 4-byte Folded Spill
	jmp	LBB0_20
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
LBB0_21:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setg	%dil
	callq	_assert
	movl	%r14d, 8(%rbx)
	movl	%r14d, 16(%rbx)
	movq	_WHERE_COLUMN_EQ@GOTPCREL(%rip), %rax
	movq	_WHERE_IDX_ONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WHERE_INDEXED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_WHERE_AUTO_INDEX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	notl	%ebx
	movq	_BMS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	decl	%edi
	callq	_MASKBIT
	movl	%eax, %r13d
	orl	%ebx, %r13d
	andl	%r15d, %r13d
	movl	(%r12), %edi
	decl	%edi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	callq	_MIN
	movl	%eax, %r15d
	movl	(%r12), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%eax, (%rbx)
	sete	%dil
	callq	_testcase
	movl	(%r12), %eax
	addl	$-2, %eax
	xorl	%edi, %edi
	cmpl	%eax, (%rbx)
	sete	%dil
	callq	_testcase
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_22
## %bb.23:
	movq	%r12, %r15
	xorl	%ebx, %ebx
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_MASKBIT
	andl	%r13d, %eax
	cmpl	$1, %eax
	sbbl	$-1, %r14d
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_24
	jmp	LBB0_25
LBB0_22:
	movq	%r12, %r15
LBB0_25:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movl	(%r15), %edi
	decl	%edi
	callq	_MASKBIT
	testl	%ebx, %eax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_27
## %bb.26:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax), %r14d
	subl	(%r15), %r14d
	incl	%r14d
LBB0_27:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leal	1(%r14), %r12d
	xorl	%r13d, %r13d
	leaq	-176(%rbp), %rcx
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_sqlite3AllocateIndexObject
	testq	%rax, %rax
	je	LBB0_18
## %bb.28:
	movq	%rax, %r15
	movl	%r12d, -156(%rbp)               ## 4-byte Spill
	movq	%rax, 24(%rbx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r15)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r15)
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	16(%rax), %r12
	cmpq	-112(%rbp), %r12                ## 8-byte Folded Reload
	movq	%r15, -152(%rbp)                ## 8-byte Spill
	jae	LBB0_37
## %bb.29:
	xorl	%r13d, %r13d
	movl	$0, -136(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_30 Depth=1
	orl	%r13d, -136(%rbp)               ## 4-byte Folded Spill
	movq	(%rax), %rax
	movq	16(%r15), %rcx
	movq	%rbx, %r13
	movq	%rax, (%rcx,%rbx,8)
	incl	%r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_36:                                ##   in Loop: Header=BB0_30 Depth=1
	addq	$16, %r12
	cmpq	-112(%rbp), %r12                ## 8-byte Folded Reload
	jae	LBB0_37
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-104(%rbp), %edx                ## 4-byte Reload
	callq	_termCanDriveIndex
	testq	%rax, %rax
	je	LBB0_36
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movl	4(%r12), %r15d
	movq	_BMS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leal	-1(%rax), %edi
	cmpl	%eax, %r15d
	cmovll	%r15d, %edi
	callq	_MASKBIT
	movl	%eax, %r13d
	movl	(%rbx), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	sete	%dil
	callq	_testcase
	xorl	%edi, %edi
	cmpl	(%rbx), %r15d
	sete	%dil
	callq	_testcase
	testl	%r13d, -136(%rbp)               ## 4-byte Folded Reload
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-152(%rbp), %r15                ## 8-byte Reload
	movq	-128(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	8(%r12), %rax
	movl	4(%r12), %ecx
	movq	-152(%rbp), %r15                ## 8-byte Reload
	movq	8(%r15), %rdx
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movslq	%esi, %rsi
	movq	%rsi, %rbx
	movl	%ecx, (%rdx,%rsi,4)
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sqlite3BinaryCompareCollSeq
	testq	%rax, %rax
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	_sqlite3StrBINARY@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_37:
	xorl	%edi, %edi
	cmpl	16(%rbx), %r13d
	sete	%dil
	callq	_assert
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_42
## %bb.38:
	xorl	%ebx, %ebx
	movq	_sqlite3StrBINARY@GOTPCREL(%rip), %r12
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_39 Depth=1
	incl	%ebx
	cmpl	%ebx, -80(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_42
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_MASKBIT
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	8(%r15), %rax
	movslq	%r13d, %r13
	movl	%ebx, (%rax,%r13,4)
	movq	(%r12), %rax
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%r13,8)
	incl	%r13d
	jmp	LBB0_41
LBB0_42:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movq	_BMS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	decl	%edi
	callq	_MASKBIT
	testl	%ebx, %eax
	je	LBB0_46
## %bb.43:
	movl	(%r12), %eax
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	cmpl	(%rdi), %eax
	jg	LBB0_46
## %bb.44:
	decl	%eax
	movslq	%r13d, %r13
	movq	_sqlite3StrBINARY@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdx
	movl	%eax, (%rdx,%r13,4)
	movq	(%rcx), %rdx
	movq	16(%r15), %rsi
	movq	%rdx, (%rsi,%r13,8)
	incq	%r13
	incl	%eax
	cmpl	(%rdi), %eax
	jl	LBB0_45
LBB0_46:
	xorl	%edi, %edi
	cmpl	%r14d, %r13d
	sete	%dil
	callq	_assert
	movq	_XN_ROWID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movslq	%r13d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_sqlite3StrBINARY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%rdx,8)
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movl	(%r14), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edx
	leal	1(%rdx), %eax
	movl	%eax, 8(%rbx)
	movl	%edx, (%r14)
	movq	_OP_OpenAutoindex@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-144(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-156(%rbp), %ecx                ## 4-byte Reload
	callq	_sqlite3VdbeAddOp2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sqlite3VdbeSetP4KeyInfo
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rdi
	callq	_VdbeComment
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	8(%r14), %rax
	leaq	(%rax,%rax,4), %r14
	cmpq	$0, 8(%rbx,%r14,8)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	je	LBB0_48
## %bb.47:
	movl	4(%rbx,%r14,8), %r15d
	movq	_OP_Integer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3VdbeAddOp2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_OP_InitCoroutine@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%rbx,%r14,8), %r8d
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3VdbeAddOp3
	movq	_OP_Yield@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_sqlite3VdbeAddOp1
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_VdbeCoverage
	movq	24(%rbx,%r14,8), %rax
	movslq	4(%rax), %rdi
	callq	_VdbeComment
	movq	-120(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_49
LBB0_18:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_58
LBB0_48:
	movq	_OP_Rewind@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movl	16(%r14), %edx
	movq	%r12, %rdi
	callq	_sqlite3VdbeAddOp1
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_VdbeCoverage
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_49:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_50
## %bb.51:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_sqlite3VdbeMakeLabel
	movl	%eax, %edx
	movq	_SQLITE_JUMPIFNULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%edx, -128(%rbp)                ## 4-byte Spill
	callq	_sqlite3ExprIfFalse
	movq	_WHERE_PARTIALIDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 12(%rcx)
	jmp	LBB0_52
LBB0_50:
	movl	$0, -128(%rbp)                  ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_52:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rax
	addq	$8, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_sqlite3GetTempReg
	movl	%eax, %r12d
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_sqlite3GenerateIndexKey
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	_OP_IdxInsert@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	-144(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	_OPFLAG_USESEEKRESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sqlite3VdbeChangeP5
	testq	%r15, %r15
	je	LBB0_54
## %bb.53:
	movq	%r14, %rdi
	movl	-128(%rbp), %esi                ## 4-byte Reload
	callq	_sqlite3VdbeResolveLabel
LBB0_54:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	cmpq	$0, (%r14)
	je	LBB0_56
## %bb.55:
	addl	%r13d, %ebx
	movq	-144(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_sqlite3VdbeChangeP2
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_testcase
	xorl	%edi, %edi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	cmpl	$0, (%rbx)
	setg	%dil
	callq	_assert
	movl	(%rbx), %r8d
	movl	16(%rbx), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	16(%rax,%rcx,8), %ecx
	movq	%r15, %rdi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %esi
	callq	_translateColumnToCopy
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_sqlite3VdbeGoto
	movq	$0, (%r14)
	jmp	LBB0_57
LBB0_56:
	movq	_OP_Next@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	16(%rax), %edx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	leal	1(%rbx), %ecx
	movq	-144(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	callq	_sqlite3VdbeAddOp2
	movq	%r13, %rdi
	callq	_VdbeCoverage
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_57:
	movl	-132(%rbp), %r14d               ## 4-byte Reload
	movq	_SQLITE_STMTSTATUS_AUTOINDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_sqlite3VdbeChangeP5
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_sqlite3VdbeJumpHere
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_sqlite3ReleaseTempReg
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_sqlite3VdbeJumpHere
LBB0_58:
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	(%r15), %rdi
	callq	_sqlite3ExprDelete
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_Once,4,2                    ## @OP_Once
	.comm	_EP_FromJoin,4,2                ## @EP_FromJoin
	.comm	_TERM_VIRTUAL,4,2               ## @TERM_VIRTUAL
	.comm	_BMS,4,2                        ## @BMS
	.comm	_SQLITE_WARNING_AUTOINDEX,4,2   ## @SQLITE_WARNING_AUTOINDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"automatic index on %s(%s)"

	.comm	_WHERE_COLUMN_EQ,4,2            ## @WHERE_COLUMN_EQ
	.comm	_WHERE_IDX_ONLY,4,2             ## @WHERE_IDX_ONLY
	.comm	_WHERE_INDEXED,4,2              ## @WHERE_INDEXED
	.comm	_WHERE_AUTO_INDEX,4,2           ## @WHERE_AUTO_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"auto-index"

	.comm	_sqlite3StrBINARY,8,3           ## @sqlite3StrBINARY
	.comm	_XN_ROWID,4,2                   ## @XN_ROWID
	.comm	_OP_OpenAutoindex,4,2           ## @OP_OpenAutoindex
	.comm	_OP_Integer,4,2                 ## @OP_Integer
	.comm	_OP_InitCoroutine,4,2           ## @OP_InitCoroutine
	.comm	_OP_Yield,4,2                   ## @OP_Yield
	.comm	_OP_Rewind,4,2                  ## @OP_Rewind
	.comm	_SQLITE_JUMPIFNULL,4,2          ## @SQLITE_JUMPIFNULL
	.comm	_WHERE_PARTIALIDX,4,2           ## @WHERE_PARTIALIDX
	.comm	_OP_IdxInsert,4,2               ## @OP_IdxInsert
	.comm	_OPFLAG_USESEEKRESULT,4,2       ## @OPFLAG_USESEEKRESULT
	.comm	_OP_Next,4,2                    ## @OP_Next
	.comm	_SQLITE_STMTSTATUS_AUTOINDEX,4,2 ## @SQLITE_STMTSTATUS_AUTOINDEX
	.no_dead_strip	_constructAutomaticIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function constructAutomaticIndex
_constructAutomaticIndex:               ; @constructAutomaticIndex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x22, x4
	str	w3, [sp, #92]                   ; 4-byte Folded Spill
	mov	x26, x2
	mov	x23, x1
	str	x0, [sp, #80]                   ; 8-byte Folded Spill
	ldr	x19, [x0, #16]
	stp	x19, x4, [sp, #24]              ; 16-byte Folded Spill
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x8, _OP_Once@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OP_Once@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3VdbeAddOp0
	mov	x20, x0
	mov	x0, x19
	bl	_VdbeCoverage
	ldr	x8, [x26, #24]
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	ldr	x21, [x23, #16]
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x8, [x23]
	add	x9, x21, x8, lsl #4
	str	x9, [sp, #96]                   ; 8-byte Folded Spill
	ldr	x24, [x22, #24]
	cmp	x8, #1
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	b.lt	LBB0_19
; %bb.1:
	mov	w19, #0
	mov	w28, #0
	mov	w22, #0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
Lloh3:
	adrp	x20, _EP_FromJoin@GOTPAGE
Lloh4:
	ldr	x20, [x20, _EP_FromJoin@GOTPAGEOFF]
Lloh5:
	adrp	x27, _BMS@GOTPAGE
Lloh6:
	ldr	x27, [x27, _BMS@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh7:
	adrp	x8, _SQLITE_WARNING_AUTOINDEX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SQLITE_WARNING_AUTOINDEX@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	w2, [x8, #4]
	ldr	x8, [x8, #8]
	ldr	w3, [x8, x23, lsl #2]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sqlite3_log
	tst	w25, w28
	b.eq	LBB0_17
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #16
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	cmp	x21, x8
	b.hs	LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x21, #8]
	ldr	w1, [x20]
	mov	x0, x25
	bl	_ExprHasProperty
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25, #8]
	ldr	w9, [x26, #36]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_assert
	ldr	x8, [x24]
	cbnz	x8, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21]
Lloh12:
	adrp	x9, _TERM_VIRTUAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TERM_VIRTUAL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x20]
	mov	x0, x25
	bl	_ExprHasProperty
	cbnz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26, #36]
	mov	x0, x25
	bl	_sqlite3ExprIsTableConstant
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	ldr	x0, [x23]
	mov	x1, x25
	mov	w2, #0
	bl	_sqlite3ExprDup
	mov	x2, x0
	mov	x0, x23
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	bl	_sqlite3ExprAnd
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x26
	ldr	w2, [sp, #92]                   ; 4-byte Folded Reload
	bl	_termCanDriveIndex
	cbz	x0, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x23, [x21, #4]
	ldr	w8, [x27]
	sub	w9, w8, #1
	cmp	w23, w8
	csel	w0, w23, w9, lt
	bl	_MASKBIT
	mov	x25, x0
	ldr	w8, [x27]
	cmp	w23, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x27]
	sub	w8, w8, #1
	cmp	w23, w8
	cset	w0, eq
	bl	_testcase
	cbz	w22, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	tst	w25, w28
	b.ne	LBB0_3
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldr	x0, [x8]
	add	w23, w19, #1
	mov	x1, x24
	mov	x2, x23
	bl	_whereLoopResize
	cbnz	x0, LBB0_58
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24, #32]
	str	x21, [x8, w19, sxtw #3]
	orr	w28, w25, w28
	mov	w22, #1
	mov	x19, x23
	b	LBB0_4
LBB0_19:
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	mov	w28, #0
	mov	w19, #0
LBB0_20:
	cmp	w19, #0
	cset	w0, gt
	bl	_assert
Lloh15:
	adrp	x8, _WHERE_COLUMN_EQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WHERE_COLUMN_EQ@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _WHERE_IDX_ONLY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WHERE_IDX_ONLY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _WHERE_INDEXED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WHERE_INDEXED@GOTPAGEOFF]
	str	w19, [x24, #16]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _WHERE_AUTO_INDEX@GOTPAGE
Lloh25:
	ldr	x9, [x9, _WHERE_AUTO_INDEX@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w19, w8, [x24, #8]
	ldr	w20, [x26]
Lloh27:
	adrp	x23, _BMS@GOTPAGE
Lloh28:
	ldr	x23, [x23, _BMS@GOTPAGEOFF]
	ldr	w8, [x23]
	sub	w0, w8, #1
	bl	_MASKBIT
	orn	w8, w0, w28
	and	w20, w8, w20
	ldr	w8, [x23]
	sub	w0, w8, #1
	ldr	x21, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w1, [x21]
	bl	_MIN
	mov	x22, x0
	ldr	w8, [x21]
	ldr	w9, [x23]
	sub	w9, w9, #1
	cmp	w8, w9
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x21]
	ldr	w9, [x23]
	sub	w9, w9, #2
	cmp	w8, w9
	cset	w0, eq
	bl	_testcase
	cmp	w22, #1
	b.lt	LBB0_23
; %bb.21:
	mov	w21, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_MASKBIT
	tst	w0, w20
	cinc	w19, w19, ne
	add	w21, w21, #1
	cmp	w22, w21
	b.ne	LBB0_22
LBB0_23:
	ldr	w21, [x26]
	ldr	w8, [x23]
	sub	w0, w8, #1
	bl	_MASKBIT
	tst	w0, w21
	b.eq	LBB0_25
; %bb.24:
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	ldr	w9, [x23]
	add	w8, w19, w8
	sub	w8, w8, w9
	add	w19, w8, #1
LBB0_25:
	ldr	x21, [sp, #80]                  ; 8-byte Folded Reload
	ldr	x0, [x21]
	add	w23, w19, #1
	sub	x3, x29, #88
	mov	x1, x23
	mov	w2, #0
	bl	_sqlite3AllocateIndexObject
	cbz	x0, LBB0_56
; %bb.26:
	str	w23, [sp, #8]                   ; 4-byte Folded Spill
	str	x0, [x24, #24]
Lloh29:
	adrp	x8, l_.str.1@PAGE
Lloh30:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x0]
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	str	x8, [x0, #24]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x25, [x8, #16]
Lloh31:
	adrp	x28, _sqlite3StrBINARY@GOTPAGE
Lloh32:
	ldr	x28, [x28, _sqlite3StrBINARY@GOTPAGEOFF]
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	cmp	x25, x8
	str	x24, [sp, #56]                  ; 8-byte Folded Spill
	mov	w21, #0
	b.hs	LBB0_33
; %bb.27:
	str	wzr, [sp, #76]                  ; 4-byte Folded Spill
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_30 Depth=1
	ldr	x24, [sp, #56]                  ; 8-byte Folded Reload
	mov	x26, x27
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	x25, x25, #16
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	cmp	x25, x8
	b.hs	LBB0_33
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x26
	ldr	w2, [sp, #92]                   ; 4-byte Folded Reload
	bl	_termCanDriveIndex
	cbz	x0, LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x27, x26
	ldr	w24, [x25, #4]
Lloh33:
	adrp	x26, _BMS@GOTPAGE
Lloh34:
	ldr	x26, [x26, _BMS@GOTPAGEOFF]
	ldr	w8, [x26]
	sub	w9, w8, #1
	cmp	w24, w8
	csel	w0, w24, w9, lt
	bl	_MASKBIT
	mov	x23, x0
	ldr	w8, [x26]
	sub	w8, w8, #1
	cmp	w24, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x26]
	cmp	w24, w8
	cset	w0, eq
	bl	_testcase
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	tst	w23, w9
	b.ne	LBB0_28
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x8, [x25, #8]
	orr	w9, w23, w9
	str	w9, [sp, #76]                   ; 4-byte Folded Spill
	ldr	w9, [x25, #4]
	ldr	x23, [sp, #48]                  ; 8-byte Folded Reload
	ldr	x10, [x23, #8]
	str	w9, [x10, w21, sxtw #2]
	ldp	w2, w1, [x8]
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_sqlite3BinaryCompareCollSeq
	cmp	x0, #0
	csel	x8, x28, x0, eq
	ldr	x8, [x8]
	ldr	x9, [x23, #16]
	str	x8, [x9, w21, sxtw #3]
	add	w21, w21, #1
	b	LBB0_28
LBB0_33:
	ldr	w8, [x24, #16]
	cmp	w21, w8
	cset	w0, eq
	bl	_assert
	cmp	w22, #1
	b.lt	LBB0_38
; %bb.34:
	mov	w25, #0
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	ldr	x27, [sp, #48]                  ; 8-byte Folded Reload
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=1
	add	w25, w25, #1
	cmp	w22, w25
	b.eq	LBB0_39
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_MASKBIT
	tst	w0, w20
	b.eq	LBB0_35
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	ldp	x8, x9, [x27, #8]
	str	w25, [x8, w21, sxtw #2]
	ldr	x8, [x28]
	str	x8, [x9, w21, sxtw #3]
	add	w21, w21, #1
	b	LBB0_35
LBB0_38:
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	ldr	x27, [sp, #48]                  ; 8-byte Folded Reload
LBB0_39:
	ldr	w20, [x26]
Lloh35:
	adrp	x22, _BMS@GOTPAGE
Lloh36:
	ldr	x22, [x22, _BMS@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w0, w8, #1
	bl	_MASKBIT
	tst	w0, w20
	b.eq	LBB0_44
; %bb.40:
	ldr	w8, [x22]
	ldr	x20, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w9, [x20]
	cmp	w8, w9
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	b.gt	LBB0_45
; %bb.41:
	sub	w8, w8, #1
	sxtw	x21, w21
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldp	x9, x10, [x27, #8]
	str	w8, [x9, x21, lsl #2]
	ldr	x9, [x28]
	str	x9, [x10, x21, lsl #3]
	add	x21, x21, #1
	add	w8, w8, #1
	ldr	w9, [x20]
	cmp	w8, w9
	b.lt	LBB0_42
; %bb.43:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_45
LBB0_44:
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x20, [sp, #64]                  ; 8-byte Folded Reload
LBB0_45:
	cmp	w21, w19
	cset	w0, eq
	bl	_assert
Lloh37:
	adrp	x8, _XN_ROWID@GOTPAGE
Lloh38:
	ldr	x8, [x8, _XN_ROWID@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldp	x9, x10, [x27, #8]
	str	w8, [x9, w21, sxtw #2]
	ldr	x8, [x28]
	str	x8, [x10, w21, sxtw #3]
	ldr	w8, [x22]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_assert
	ldr	w2, [x23, #8]
	add	w8, w2, #1
	str	w8, [x23, #8]
	str	w2, [x22]
Lloh40:
	adrp	x8, _OP_OpenAutoindex@GOTPAGE
Lloh41:
	ldr	x8, [x8, _OP_OpenAutoindex@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	x25, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x25
	ldr	w3, [sp, #8]                    ; 4-byte Folded Reload
	bl	_sqlite3VdbeAddOp2
	mov	x0, x23
	mov	x1, x27
	bl	_sqlite3VdbeSetP4KeyInfo
	ldrsw	x0, [x20, #4]
	bl	_VdbeComment
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x9, [x8]
	ldr	x27, [x22, #8]
	mov	w8, #40
	madd	x20, x27, x8, x9
	ldr	x8, [x20, #8]!
	str	x9, [sp, #96]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_48
; %bb.46:
	mov	w8, #40
	madd	x24, x27, x8, x9
	ldr	w19, [x24, #4]
Lloh43:
	adrp	x8, _OP_Integer@GOTPAGE
Lloh44:
	ldr	x8, [x8, _OP_Integer@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x25
	mov	w2, #0
	mov	w3, #0
	bl	_sqlite3VdbeAddOp2
	str	w0, [sp, #92]                   ; 4-byte Folded Spill
Lloh46:
	adrp	x8, _OP_InitCoroutine@GOTPAGE
Lloh47:
	ldr	x8, [x8, _OP_InitCoroutine@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	ldr	w4, [x24, #32]
	mov	x0, x25
	mov	x2, x19
	mov	w3, #0
	bl	_sqlite3VdbeAddOp3
Lloh49:
	adrp	x8, _OP_Yield@GOTPAGE
Lloh50:
	ldr	x8, [x8, _OP_Yield@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x19
	bl	_sqlite3VdbeAddOp1
	mov	x19, x0
	mov	x0, x25
	bl	_VdbeCoverage
	ldr	x8, [x24, #24]
	ldr	x24, [sp, #56]                  ; 8-byte Folded Reload
	ldrsw	x0, [x8, #4]
	bl	_VdbeComment
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
	cbz	x22, LBB0_49
LBB0_47:
	ldr	x26, [sp, #80]                  ; 8-byte Folded Reload
	mov	x0, x26
	bl	_sqlite3VdbeMakeLabel
	mov	x25, x0
Lloh52:
	adrp	x8, _SQLITE_JUMPIFNULL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SQLITE_JUMPIFNULL@GOTPAGEOFF]
Lloh54:
	ldr	w3, [x8]
	mov	x0, x26
	mov	x1, x22
	mov	x2, x25
	bl	_sqlite3ExprIfFalse
Lloh55:
	adrp	x8, _WHERE_PARTIALIDX@GOTPAGE
Lloh56:
	ldr	x8, [x8, _WHERE_PARTIALIDX@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	ldr	w9, [x24, #12]
	orr	w8, w9, w8
	str	w8, [x24, #12]
	b	LBB0_50
LBB0_48:
Lloh58:
	adrp	x8, _OP_Rewind@GOTPAGE
Lloh59:
	ldr	x8, [x8, _OP_Rewind@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	ldr	w2, [x22, #16]
	mov	x0, x25
	bl	_sqlite3VdbeAddOp1
	mov	x19, x0
	mov	x0, x25
	bl	_VdbeCoverage
	str	wzr, [sp, #92]                  ; 4-byte Folded Spill
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
	cbnz	x22, LBB0_47
LBB0_49:
	mov	w25, #0
	ldr	x26, [sp, #80]                  ; 8-byte Folded Reload
LBB0_50:
	mov	x0, x26
	bl	_sqlite3GetTempReg
	mov	x24, x0
	ldr	x23, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w2, [x23, #16]
	mov	x0, x26
	ldr	x1, [sp, #48]                   ; 8-byte Folded Reload
	mov	x3, x24
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_sqlite3GenerateIndexKey
	mov	x26, x0
Lloh61:
	adrp	x8, _OP_IdxInsert@GOTPAGE
Lloh62:
	ldr	x8, [x8, _OP_IdxInsert@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	ldr	w2, [x23]
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x28
	mov	x3, x24
	bl	_sqlite3VdbeAddOp2
Lloh64:
	adrp	x8, _OPFLAG_USESEEKRESULT@GOTPAGE
Lloh65:
	ldr	x8, [x8, _OPFLAG_USESEEKRESULT@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	x0, x28
	bl	_sqlite3VdbeChangeP5
	cbz	x22, LBB0_52
; %bb.51:
	mov	x0, x28
	mov	x1, x25
	bl	_sqlite3VdbeResolveLabel
LBB0_52:
	ldr	x8, [x20]
	cbz	x8, LBB0_54
; %bb.53:
	add	w2, w26, w21
	mov	x0, x28
	ldr	w1, [sp, #92]                   ; 4-byte Folded Reload
	bl	_sqlite3VdbeChangeP2
	ldr	x21, [sp, #80]                  ; 8-byte Folded Reload
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_testcase
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w8, [x22]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	ldr	w2, [x22, #16]
	mov	w8, #40
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	madd	x8, x27, x8, x9
	ldr	w3, [x8, #16]
	ldr	w4, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_translateColumnToCopy
	mov	x0, x28
	mov	x1, x19
	bl	_sqlite3VdbeGoto
	str	xzr, [x20]
	b	LBB0_55
LBB0_54:
Lloh67:
	adrp	x8, _OP_Next@GOTPAGE
Lloh68:
	ldr	x8, [x8, _OP_Next@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w2, [x8, #16]
	add	w3, w19, #1
	mov	x0, x28
	bl	_sqlite3VdbeAddOp2
	mov	x0, x28
	bl	_VdbeCoverage
	ldr	x21, [sp, #80]                  ; 8-byte Folded Reload
LBB0_55:
Lloh70:
	adrp	x8, _SQLITE_STMTSTATUS_AUTOINDEX@GOTPAGE
Lloh71:
	ldr	x8, [x8, _SQLITE_STMTSTATUS_AUTOINDEX@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
	mov	x0, x28
	bl	_sqlite3VdbeChangeP5
	mov	x0, x28
	mov	x1, x19
	bl	_sqlite3VdbeJumpHere
	mov	x0, x21
	mov	x1, x24
	bl	_sqlite3ReleaseTempReg
	mov	x0, x28
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_sqlite3VdbeJumpHere
LBB0_56:
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
LBB0_57:
	ldr	x0, [x21]
	bl	_sqlite3ExprDelete
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_58:
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x21, [sp, #80]                  ; 8-byte Folded Reload
	b	LBB0_57
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_Once,4,2                    ; @OP_Once
	.comm	_EP_FromJoin,4,2                ; @EP_FromJoin
	.comm	_TERM_VIRTUAL,4,2               ; @TERM_VIRTUAL
	.comm	_BMS,4,2                        ; @BMS
	.comm	_SQLITE_WARNING_AUTOINDEX,4,2   ; @SQLITE_WARNING_AUTOINDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"automatic index on %s(%s)"

	.comm	_WHERE_COLUMN_EQ,4,2            ; @WHERE_COLUMN_EQ
	.comm	_WHERE_IDX_ONLY,4,2             ; @WHERE_IDX_ONLY
	.comm	_WHERE_INDEXED,4,2              ; @WHERE_INDEXED
	.comm	_WHERE_AUTO_INDEX,4,2           ; @WHERE_AUTO_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"auto-index"

	.comm	_sqlite3StrBINARY,8,3           ; @sqlite3StrBINARY
	.comm	_XN_ROWID,4,2                   ; @XN_ROWID
	.comm	_OP_OpenAutoindex,4,2           ; @OP_OpenAutoindex
	.comm	_OP_Integer,4,2                 ; @OP_Integer
	.comm	_OP_InitCoroutine,4,2           ; @OP_InitCoroutine
	.comm	_OP_Yield,4,2                   ; @OP_Yield
	.comm	_OP_Rewind,4,2                  ; @OP_Rewind
	.comm	_SQLITE_JUMPIFNULL,4,2          ; @SQLITE_JUMPIFNULL
	.comm	_WHERE_PARTIALIDX,4,2           ; @WHERE_PARTIALIDX
	.comm	_OP_IdxInsert,4,2               ; @OP_IdxInsert
	.comm	_OPFLAG_USESEEKRESULT,4,2       ; @OPFLAG_USESEEKRESULT
	.comm	_OP_Next,4,2                    ; @OP_Next
	.comm	_SQLITE_STMTSTATUS_AUTOINDEX,4,2 ; @SQLITE_STMTSTATUS_AUTOINDEX
	.no_dead_strip	_constructAutomaticIndex
.subsections_via_symbols
