	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idxCreateVtabSchema
_idxCreateVtabSchema:                   ## @idxCreateVtabSchema
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_idxRegisterVtab
	movq	$0, -56(%rbp)
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rcx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdx
	callq	_idxPrepareStmt
	movl	%eax, -44(%rbp)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.1:
	leaq	-44(%rbp), %r13
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_sqlite3_exec
	movl	%eax, -44(%rbp)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	_SQLITE_ROW@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	-56(%rbp), %rdi
	callq	_sqlite3_step
	cmpq	%rax, %rbx
	jne	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_sqlite3_column_text
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	movl	$1, %esi
	callq	_sqlite3_column_text
	movq	%rax, %r15
	movq	-56(%rbp), %rdi
	movl	$2, %esi
	callq	_sqlite3_column_text
	cmpb	$118, (%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$114, 1(%rbx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12), %edi
	movq	%r15, %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rcx
	callq	_idxGetTableInfo
	movl	%eax, -44(%rbp)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	-64(%rbp), %rcx
	movq	%rax, 16(%rcx)
	movq	%rcx, 8(%r12)
	movq	%r13, %rdi
	xorl	%esi, %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_idxAppendText
	movq	-64(%rbp), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	leaq	L_.str.3(%rip), %r14
	leaq	L_.str.4(%rip), %r12
	leaq	-44(%rbp), %r13
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	movq	%r12, %rcx
	cmoveq	%r14, %rcx
	movq	8(%rdx), %rdx
	movl	(%rdx,%rbx,8), %r9d
	movl	4(%rdx,%rbx,8), %r8d
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_idxAppendText
	incq	%rbx
	movq	-64(%rbp), %rdx
	movslq	(%rdx), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-44(%rbp), %r13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%rax, %rsi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_idxAppendText
	movq	%rax, %r14
	movq	%r13, %rdi
	xorl	%esi, %esi
	leaq	L_.str.6(%rip), %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_idxAppendText
	movq	%rax, %r15
	movl	-44(%rbp), %eax
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_sqlite3_exec
	movl	%eax, -44(%rbp)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_sqlite3_free
	movq	%r15, %rdi
	callq	_sqlite3_free
	movl	-44(%rbp), %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_15:
	movq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdi
	callq	_idxFinalize
	movl	-44(%rbp), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT type, name, sql, 1 FROM sqlite_master WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%%'  UNION ALL SELECT type, name, sql, 2 FROM sqlite_master WHERE type = 'trigger'  AND tbl_name IN(SELECT name FROM sqlite_master WHERE type = 'view') ORDER BY 4, 1"

	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_ROW,8,3                 ## @SQLITE_ROW
L_.str.1:                               ## @.str.1
	.asciz	"CREATE TABLE x("

L_.str.2:                               ## @.str.2
	.asciz	"%s%Q COLLATE %s"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	", "

L_.str.5:                               ## @.str.5
	.asciz	")"

L_.str.6:                               ## @.str.6
	.asciz	"CREATE VIRTUAL TABLE %Q USING expert(%Q)"

	.no_dead_strip	_idxCreateVtabSchema
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idxCreateVtabSchema
_idxCreateVtabSchema:                   ; @idxCreateVtabSchema
	.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	x19, x1
	mov	x20, x0
	bl	_idxRegisterVtab
	str	xzr, [sp, #32]
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	add	x1, sp, #32
	mov	x2, x19
	bl	_idxPrepareStmt
	str	w0, [sp, #44]
Lloh2:
	adrp	x27, _SQLITE_OK@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.1:
Lloh4:
	adrp	x28, _SQLITE_ROW@GOTPAGE
Lloh5:
	ldr	x28, [x28, _SQLITE_ROW@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.4@PAGE
Lloh7:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh8:
	adrp	x23, l_.str.3@PAGE
Lloh9:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh10:
	adrp	x22, l_.str.2@PAGE
Lloh11:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	w2, #0
	mov	w3, #0
	mov	x4, x19
	bl	_sqlite3_exec
	str	w0, [sp, #44]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x24, [x28]
	ldr	x0, [sp, #32]
	bl	_sqlite3_step
	cmp	x24, x0
	b.ne	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #32]
	mov	w1, #0
	bl	_sqlite3_column_text
	mov	x26, x0
	ldr	x0, [sp, #32]
	mov	w1, #1
	bl	_sqlite3_column_text
	mov	x25, x0
	ldr	x0, [sp, #32]
	mov	w1, #2
	bl	_sqlite3_column_text
	mov	x1, x0
	ldrb	w8, [x26]
	cmp	w8, #118
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x26, #1]
	cmp	w8, #114
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #16]
	add	x2, sp, #24
	mov	x1, x25
	mov	x3, x19
	bl	_idxGetTableInfo
	str	w0, [sp, #44]
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [sp, #24]
	str	x8, [x9, #16]
	str	x9, [x20, #8]
	add	x0, sp, #44
	mov	x1, #0
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_idxAppendText
	mov	x1, x0
	ldr	x8, [sp, #24]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	mov	x24, #0
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x26, #0
	csel	x9, x23, x21, eq
	ldr	x8, [x8, #8]
	add	x8, x8, x26
	ldp	w8, w10, [x8]
	stp	x10, x8, [sp, #8]
	add	x0, sp, #44
	str	x9, [sp]
	mov	x2, x22
	bl	_idxAppendText
	mov	x1, x0
	add	x24, x24, #1
	ldr	x8, [sp, #24]
	ldrsw	x9, [x8]
	add	x26, x26, #8
	cmp	x24, x9
	b.lt	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #44
Lloh14:
	adrp	x2, l_.str.5@PAGE
Lloh15:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_idxAppendText
	mov	x26, x0
	stp	x25, x0, [sp]
	add	x0, sp, #44
	mov	x1, #0
Lloh16:
	adrp	x2, l_.str.6@PAGE
Lloh17:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_idxAppendText
	mov	x25, x0
	ldr	w8, [sp, #44]
	ldr	w9, [x27]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	x1, x25
	mov	w2, #0
	mov	w3, #0
	mov	x4, x19
	bl	_sqlite3_exec
	str	w0, [sp, #44]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_sqlite3_free
	mov	x0, x25
	bl	_sqlite3_free
	ldr	w0, [sp, #44]
	b	LBB0_3
LBB0_14:
	ldr	x1, [sp, #32]
	add	x0, sp, #44
	bl	_idxFinalize
	ldr	w0, [sp, #44]
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT type, name, sql, 1 FROM sqlite_master WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%%'  UNION ALL SELECT type, name, sql, 2 FROM sqlite_master WHERE type = 'trigger'  AND tbl_name IN(SELECT name FROM sqlite_master WHERE type = 'view') ORDER BY 4, 1"

	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_ROW,8,3                 ; @SQLITE_ROW
l_.str.1:                               ; @.str.1
	.asciz	"CREATE TABLE x("

l_.str.2:                               ; @.str.2
	.asciz	"%s%Q COLLATE %s"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	", "

l_.str.5:                               ; @.str.5
	.asciz	")"

l_.str.6:                               ; @.str.6
	.asciz	"CREATE VIRTUAL TABLE %Q USING expert(%Q)"

	.no_dead_strip	_idxCreateVtabSchema
.subsections_via_symbols
