	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_expert_sql             ## -- Begin function sqlite3_expert_sql
	.p2align	4, 0x90
_sqlite3_expert_sql:                    ## @sqlite3_expert_sql
	.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	%rdx, %r14
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
	movq	%rsi, -64(%rbp)
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_SQLITE_MISUSE@GOTPCREL(%rip), %r15
LBB0_18:
	movl	(%r15), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r13
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r15
	leaq	-56(%rbp), %rbx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rsi)
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, -56(%rbp)
	movl	16(%r13), %edi
	movl	$-1, %edx
	movq	%rbx, %rcx
	leaq	-64(%rbp), %r8
	callq	_sqlite3_prepare_v2
	movl	%eax, -44(%rbp)
	cmpl	(%r12), %eax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_sqlite3_sql
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_STRLEN
	movl	%eax, %r14d
	leal	25(%r14), %esi
	movq	%r15, %rdi
	callq	_idxMalloc
	movq	%rax, %r15
	movl	-44(%rbp), %eax
	cmpl	(%r12), %eax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	addq	$24, %rdi
	movq	%rdi, (%r15)
	incl	%r14d
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax), %rax
	incq	%rax
	movq	%rax, 8(%r15)
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, (%r13)
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi
	callq	_sqlite3_finalize
	leaq	-44(%rbp), %r15
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	leaq	-56(%rbp), %rbx
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r13), %edi
	movq	%r14, %rsi
	callq	_idxDatabaseError
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax
	movl	(%r12), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
LBB0_16:
	cmpl	%ecx, %eax
	je	LBB0_18
## %bb.17:
	movq	8(%r13), %rdi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_idxScanFree
	movq	(%r13), %rdi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_idxStatementFree
	movq	%r12, 8(%r13)
	movq	%r14, (%r13)
	jmp	LBB0_18
LBB0_3:
	leaq	-44(%rbp), %r15
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_MISUSE,4,2              ## @SQLITE_MISUSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_expert_sql             ; -- Begin function sqlite3_expert_sql
	.p2align	2
_sqlite3_expert_sql:                    ; @sqlite3_expert_sql
	.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
	ldp	x21, x20, [x0]
Lloh0:
	adrp	x26, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x26]
	str	w8, [sp, #28]
	str	x1, [sp, #16]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _SQLITE_MISUSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_MISUSE@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	cbz	x1, LBB0_16
; %bb.3:
	mov	x22, x2
	mov	x19, x0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #16]
	mov	x1, x22
	bl	_idxDatabaseError
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #28]
	ldr	w9, [x26]
	ldr	x1, [sp, #16]
	cmp	w8, w9
	ccmp	x1, #0, #4, eq
	b.eq	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x1]
	cbz	w8, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [sp, #8]
	ldr	w0, [x19, #16]
	add	x3, sp, #8
	add	x4, sp, #16
	mov	w2, #-1
	bl	_sqlite3_prepare_v2
	str	w0, [sp, #28]
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_sqlite3_sql
	mov	x24, x0
	bl	_STRLEN
	mov	x25, x0
	add	w1, w0, #25
	add	x0, sp, #28
	bl	_idxMalloc
	ldr	w8, [sp, #28]
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
	add	x0, x0, #24
	str	x0, [x23]
	add	w2, w25, #1
	mov	x1, x24
	bl	_memcpy
	ldr	x8, [x19]
	str	x8, [x23, #16]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8, #8]
	add	x8, x8, #1
	str	x8, [x23, #8]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x23, [x19]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]
	bl	_sqlite3_finalize
	b	LBB0_5
LBB0_14:
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.15:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_idxScanFree
	ldr	x0, [x19]
	mov	x1, x21
	bl	_idxStatementFree
	stp	x21, x20, [x19]
LBB0_16:
	add	x8, sp, #28
LBB0_17:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_MISUSE,4,2              ; @SQLITE_MISUSE
.subsections_via_symbols
