	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idxCreateFromCons
_idxCreateFromCons:                     ## @idxCreateFromCons
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	%rdx, %rax
	orq	%rcx, %rax
	je	LBB0_22
## %bb.1:
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-44(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_idxFindCompatible
	testq	%rax, %rax
	jne	LBB0_22
## %bb.2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r14
	testq	%r15, %r15
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.6:
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_idxAppendColDefn
	movq	%rax, %r13
	movq	(%r15), %r15
	testq	%r15, %r15
	jne	LBB0_7
## %bb.4:
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_8:
	leaq	-44(%rbp), %r15
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_idxAppendColDefn
	movq	%rax, %r13
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
	jmp	LBB0_10
LBB0_3:
	xorl	%r13d, %r13d
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_5:
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
LBB0_10:
	movl	-44(%rbp), %eax
	cmpl	(%r12), %eax
	jne	LBB0_21
## %bb.11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %r14
	movb	(%r13), %cl
	testb	%cl, %cl
	je	LBB0_12
## %bb.13:
	leaq	1(%r13), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%cl, %ecx
	leal	(%rdx,%rdx,8), %edx
	addl	%ecx, %edx
	movzbl	(%rax), %ecx
	incq	%rax
	testb	%cl, %cl
	jne	LBB0_14
	jmp	LBB0_15
LBB0_12:
	xorl	%edx, %edx
LBB0_15:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_sqlite3_mprintf
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_idxIdentifierRequiresQuotes
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_sqlite3_mprintf
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3_exec
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_idxHashAdd
	jmp	LBB0_20
LBB0_16:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_21
LBB0_18:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
LBB0_20:
	movq	%rbx, %rdi
	callq	_sqlite3_free
	movq	%r14, %rdi
	callq	_sqlite3_free
LBB0_21:
	movq	%r13, %rdi
	callq	_sqlite3_free
LBB0_22:
	movl	-44(%rbp), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s_idx_%08x"

	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
L_.str.1:                               ## @.str.1
	.asciz	"CREATE INDEX '%q' ON %Q(%s)"

L_.str.2:                               ## @.str.2
	.asciz	"CREATE INDEX %s ON %s(%s)"

	.no_dead_strip	_idxCreateFromCons
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idxCreateFromCons
_idxCreateFromCons:                     ; @idxCreateFromCons
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x26, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x26]
	str	w8, [sp, #28]
	orr	x8, x2, x3
	cbz	x8, LBB0_18
; %bb.1:
	mov	x23, x3
	mov	x25, x2
	mov	x22, x1
	mov	x19, x0
	add	x0, sp, #28
	mov	x1, x20
	mov	x2, x22
	mov	x3, x25
	mov	x4, x23
	bl	_idxFindCompatible
	cbnz	x0, LBB0_18
; %bb.2:
	ldr	x24, [x22]
	mov	x21, #0
	cbz	x25, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #28
	mov	x1, x21
	mov	x2, x24
	mov	x3, x25
	bl	_idxAppendColDefn
	mov	x21, x0
	ldr	x25, [x25]
	cbnz	x25, LBB0_3
LBB0_4:
	cbz	x23, LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #28
	mov	x1, x21
	mov	x2, x24
	mov	x3, x23
	bl	_idxAppendColDefn
	mov	x21, x0
	ldr	x23, [x23]
	cbnz	x23, LBB0_5
LBB0_6:
	ldr	w8, [sp, #28]
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.7:
	ldr	x8, [x22]
	ldr	x22, [x8]
	ldrb	w9, [x21]
	cbz	w9, LBB0_10
; %bb.8:
	mov	w8, #0
	add	x10, x21, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, w8, lsl #3
	add	w8, w8, w9, sxtb
	ldrb	w9, [x10], #1
	cbnz	w9, LBB0_9
	b	LBB0_11
LBB0_10:
	mov	w8, #0
LBB0_11:
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_sqlite3_mprintf
	cbz	x0, LBB0_14
; %bb.12:
	mov	x23, x0
	mov	x0, x22
	bl	_idxIdentifierRequiresQuotes
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x0, x9, x8, eq
	stp	x22, x21, [sp]
	mov	x1, x23
	bl	_sqlite3_mprintf
	mov	x22, x0
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w4, [x19, #4]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	mov	w3, #0
	bl	_sqlite3_exec
	str	w0, [sp, #28]
	add	x0, sp, #28
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_idxHashAdd
	b	LBB0_16
LBB0_14:
Lloh8:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	b	LBB0_17
LBB0_15:
Lloh11:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #28]
LBB0_16:
	mov	x0, x23
	bl	_sqlite3_free
	mov	x0, x22
	bl	_sqlite3_free
LBB0_17:
	mov	x0, x21
	bl	_sqlite3_free
LBB0_18:
	ldr	w0, [sp, #28]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s_idx_%08x"

	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
l_.str.1:                               ; @.str.1
	.asciz	"CREATE INDEX '%q' ON %Q(%s)"

l_.str.2:                               ; @.str.2
	.asciz	"CREATE INDEX %s ON %s(%s)"

	.no_dead_strip	_idxCreateFromCons
.subsections_via_symbols
