	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shell_exec
_shell_exec:                            ## @shell_exec
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movq	80(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	$0, (%r14)
LBB0_2:
	cmpq	$0, 72(%r15)
	je	LBB0_3
## %bb.59:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_expertHandleSQL
	xorl	%esi, %esi
	cmpl	(%r12), %eax
	setne	%sil
	movq	%r15, %rdi
	movq	%r14, %rdx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_expertFinish                   ## TAILCALL
LBB0_3:
	cmpb	$0, (%rbx)
	je	LBB0_58
## %bb.4:
	cmpl	%r13d, (%r12)
	jne	LBB0_58
## %bb.5:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
                                        ##     Child Loop BB0_52 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$-1, %edx
	leaq	-48(%rbp), %rcx
	leaq	-80(%rbp), %r8
	callq	_sqlite3_prepare_v2
	cmpl	%eax, (%r12)
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	callq	_sqlite3_sql
	testq	%rax, %rax
	leaq	L_.str(%rip), %rcx
	cmoveq	%rcx, %rax
	movq	%rax, _shell_exec.zStmtSql(%rip)
	movsbl	(%rax), %edi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_IsSpace
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	_shell_exec.zStmtSql(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, _shell_exec.zStmtSql(%rip)
	movsbl	1(%rax), %edi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	testq	%r14, %r14
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	%eax, %r13d
	callq	_save_err_msg
	movq	%rax, (%r14)
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rax
	movq	%rax, 24(%r15)
	movq	$0, 64(%r15)
	movq	_SHFLG_Echo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ShellHasFlag
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	56(%r15), %edi
	movq	_shell_exec.zStmtSql(%rip), %rdx
	testq	%rdx, %rdx
	cmoveq	%rbx, %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_utf8_printf
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, (%r15)
	je	LBB0_38
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi
	callq	_sqlite3_stmt_isexplain
	testl	%eax, %eax
	jne	LBB0_38
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, -64(%rbp)
	xorl	%eax, %eax
	callq	_disable_debug_trace_modes
	movq	_SQLITE_DBCONFIG_TRIGGER_EQP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$-1, %edx
	leaq	-64(%rbp), %rcx
	callq	_sqlite3_db_config
	movq	(%r15), %rax
	movq	_AUTOEQP_trigger@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_SQLITE_DBCONFIG_TRIGGER_EQP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3_db_config
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_shell_exec.zStmtSql(%rip), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_sqlite3_mprintf
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	$-1, %edx
	leaq	-56(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpl	(%r12), %eax
	jne	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=2
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movq	%r13, %rcx
	callq	_eqp_append
LBB0_25:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rdi
	callq	_sqlite3_step
	movq	_SQLITE_ROW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	movq	-56(%rbp), %rdi
	movl	$3, %esi
	callq	_sqlite3_column_text
	movq	%rax, %r13
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_sqlite3_column_int
	movl	%eax, %r12d
	movq	-56(%rbp), %rdi
	movl	$1, %esi
	callq	_sqlite3_column_int
	movl	%eax, %r14d
	cmpb	$45, (%r13)
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=2
	movq	%r15, %rdi
	callq	_eqp_render
	jmp	LBB0_28
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_IsSpace
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_56
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r13d
	jmp	LBB0_56
LBB0_29:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_eqp_render
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi
	callq	_sqlite3_finalize
	movq	%r14, %rdi
	callq	_sqlite3_free
	movq	(%r15), %rax
	movq	_AUTOEQP_full@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	jl	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_shell_exec.zStmtSql(%rip), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_sqlite3_mprintf
	movq	%r13, %rdi
	movq	%rax, %r13
	movq	%rax, %rsi
	movl	$-1, %edx
	leaq	-56(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpl	(%r12), %eax
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MODE_Explain@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_explain_data_prepare
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_exec_prepared_stmt
	movq	%r15, %rdi
	callq	_explain_data_delete
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi
	callq	_sqlite3_finalize
	movq	%r13, %rdi
	callq	_sqlite3_free
	movq	(%r15), %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_34:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_AUTOEQP_trigger@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -64(%rbp)
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_SQLITE_DBCONFIG_TRIGGER_EQP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3_db_config
	movq	-48(%rbp), %rdi
	callq	_sqlite3_finalize
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$-1, %edx
	leaq	-48(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_sqlite3_prepare_v2
	movq	-48(%rbp), %rax
	movq	%rax, 24(%r15)
LBB0_37:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_restore_debug_trace_modes
LBB0_38:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r15), %rax
	movq	%rax, 8(%r15)
	cmpq	$0, 48(%r15)
	je	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi
	callq	_sqlite3_stmt_isexplain
	cmpl	$1, %eax
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MODE_Explain@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
LBB0_41:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi
	callq	_sqlite3_stmt_isexplain
	cmpl	$2, %eax
	jne	LBB0_42
## %bb.43:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MODE_EQP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_44
LBB0_42:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
LBB0_44:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_MODE_Explain@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_explain_data_prepare
LBB0_46:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_bind_prepared_stmt
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_exec_prepared_stmt
	movq	%r15, %rdi
	callq	_explain_data_delete
	movq	%r15, %rdi
	callq	_eqp_render
	cmpq	$0, 40(%r15)
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_display_stats
LBB0_48:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 32(%r15)
	je	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_display_scanstats
LBB0_50:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi
	callq	_sqlite3_finalize
	movl	%eax, %r13d
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	cmovel	%ecx, %r13d
	cmpl	(%r12), %r13d
	jne	LBB0_53
## %bb.51:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_52:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_IsSpace
	testq	%rax, %rax
	jne	LBB0_52
	jmp	LBB0_55
LBB0_53:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%r14, %r14
	je	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_save_err_msg
	movq	%rax, (%r14)
LBB0_55:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, 24(%r15)
LBB0_56:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r13d, (%r12)
	je	LBB0_6
LBB0_58:
	movl	%r13d, %eax
	addq	$56, %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
.zerofill __DATA,__bss,_shell_exec.zStmtSql,8,3 ## @shell_exec.zStmtSql
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_SHFLG_Echo,4,2                 ## @SHFLG_Echo
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.comm	_SQLITE_DBCONFIG_TRIGGER_EQP,4,2 ## @SQLITE_DBCONFIG_TRIGGER_EQP
	.comm	_AUTOEQP_trigger,8,3            ## @AUTOEQP_trigger
L_.str.2:                               ## @.str.2
	.asciz	"EXPLAIN QUERY PLAN %s"

	.comm	_SQLITE_ROW,8,3                 ## @SQLITE_ROW
	.comm	_AUTOEQP_full,8,3               ## @AUTOEQP_full
L_.str.3:                               ## @.str.3
	.asciz	"EXPLAIN %s"

	.comm	_MODE_Explain,8,3               ## @MODE_Explain
	.comm	_MODE_EQP,8,3                   ## @MODE_EQP
	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.no_dead_strip	_shell_exec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shell_exec
_shell_exec:                            ; @shell_exec
	.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, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #40]
Lloh0:
	adrp	x25, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SQLITE_OK@GOTPAGEOFF]
	ldr	w26, [x25]
	ldr	x22, [x0, #80]
	cbz	x2, LBB0_2
; %bb.1:
	str	xzr, [x19]
LBB0_2:
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_expertHandleSQL
	ldr	w8, [x25]
	cmp	w0, w8
	cset	w1, ne
	mov	x0, x20
	mov	x2, x19
	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
	b	_expertFinish
LBB0_4:
	ldrb	w8, [x21]
	ldr	w9, [x25]
	cmp	w8, #0
	ccmp	w9, w26, #0, ne
	b.eq	LBB0_6
LBB0_5:
	mov	x0, x26
	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
LBB0_6:
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	adrp	x27, _shell_exec.zStmtSql@PAGE
Lloh4:
	adrp	x28, _SHFLG_Echo@GOTPAGE
Lloh5:
	ldr	x28, [x28, _SHFLG_Echo@GOTPAGEOFF]
Lloh6:
	adrp	x23, _MODE_Explain@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MODE_Explain@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x20, #24]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [x21]
	ldr	w9, [x25]
	cmp	w8, #0
	ccmp	w9, w26, #0, ne
	b.ne	LBB0_5
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
                                        ;     Child Loop BB0_51 Depth 2
                                        ;     Child Loop BB0_28 Depth 2
	add	x3, sp, #40
	add	x4, sp, #32
	mov	x0, x22
	mov	x1, x21
	mov	w2, #-1
	bl	_sqlite3_prepare_v2
	mov	x26, x0
	ldr	w8, [x25]
	cmp	w8, w0
	b.ne	LBB0_25
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_27
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_sqlite3_sql
	cmp	x0, #0
	csel	x8, x24, x0, eq
	str	x8, [x27, _shell_exec.zStmtSql@PAGEOFF]
	ldrsb	w0, [x8]
	bl	_IsSpace
	cbz	x0, LBB0_13
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27, _shell_exec.zStmtSql@PAGEOFF]
	add	x9, x8, #1
	str	x9, [x27, _shell_exec.zStmtSql@PAGEOFF]
	ldrsb	w0, [x8, #1]
	bl	_IsSpace
	cbnz	x0, LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #40]
	str	x8, [x20, #24]
	str	xzr, [x20, #64]
	ldr	w1, [x28]
	mov	x0, x20
	bl	_ShellHasFlag
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x20, #56]
	ldr	x8, [x27, _shell_exec.zStmtSql@PAGEOFF]
	cmp	x8, #0
	csel	x2, x21, x8, eq
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_utf8_printf
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_37
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #40]
	bl	_sqlite3_stmt_isexplain
	cbnz	w0, LBB0_37
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	str	wzr, [sp, #20]
	bl	_disable_debug_trace_modes
Lloh10:
	adrp	x8, _SQLITE_DBCONFIG_TRIGGER_EQP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_DBCONFIG_TRIGGER_EQP@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x3, sp, #20
	mov	x0, x22
	mov	w2, #-1
	bl	_sqlite3_db_config
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _AUTOEQP_trigger@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AUTOEQP_trigger@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh16:
	adrp	x8, _SQLITE_DBCONFIG_TRIGGER_EQP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SQLITE_DBCONFIG_TRIGGER_EQP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #1
	mov	x3, #0
	bl	_sqlite3_db_config
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x27, _shell_exec.zStmtSql@PAGEOFF]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_sqlite3_mprintf
	mov	x24, x0
	add	x3, sp, #24
	mov	x0, x22
	mov	x1, x24
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	mov	x26, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_30
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=2
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x28
	bl	_eqp_append
LBB0_22:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [sp, #24]
	bl	_sqlite3_step
Lloh21:
	adrp	x8, _SQLITE_ROW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SQLITE_ROW@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_29
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x0, [sp, #24]
	mov	w1, #3
	bl	_sqlite3_column_text
	mov	x28, x0
	ldr	x0, [sp, #24]
	mov	w1, #0
	bl	_sqlite3_column_int
	mov	x24, x0
	ldr	x0, [sp, #24]
	mov	w1, #1
	bl	_sqlite3_column_int
	mov	x23, x0
	ldrb	w8, [x28]
	cmp	w8, #45
	b.ne	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=2
	mov	x0, x20
	bl	_eqp_render
	b	LBB0_21
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	x19, LBB0_8
; %bb.26:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_save_err_msg
	str	x0, [x19]
	b	LBB0_8
LBB0_27:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #32]
	sub	x21, x8, #1
LBB0_28:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x21, #1]!
	bl	_IsSpace
	cbnz	x0, LBB0_28
	b	LBB0_8
LBB0_29:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_eqp_render
Lloh24:
	adrp	x28, _SHFLG_Echo@GOTPAGE
Lloh25:
	ldr	x28, [x28, _SHFLG_Echo@GOTPAGEOFF]
Lloh26:
	adrp	x23, _MODE_Explain@GOTPAGE
Lloh27:
	ldr	x23, [x23, _MODE_Explain@GOTPAGEOFF]
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
LBB0_30:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #24]
	bl	_sqlite3_finalize
	mov	x0, x24
	bl	_sqlite3_free
	ldr	x8, [x20]
Lloh28:
	adrp	x9, _AUTOEQP_full@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AUTOEQP_full@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x27, _shell_exec.zStmtSql@PAGEOFF]
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_sqlite3_mprintf
	mov	x23, x0
	add	x3, sp, #24
	mov	x0, x22
	mov	x1, x23
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	mov	x26, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh33:
	adrp	x8, _MODE_Explain@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MODE_Explain@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_explain_data_prepare
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_exec_prepared_stmt
	mov	x0, x20
	bl	_explain_data_delete
LBB0_33:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #24]
	bl	_sqlite3_finalize
	mov	x0, x23
	bl	_sqlite3_free
	ldr	x8, [x20]
Lloh36:
	adrp	x23, _MODE_Explain@GOTPAGE
Lloh37:
	ldr	x23, [x23, _MODE_Explain@GOTPAGEOFF]
LBB0_34:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh38:
	adrp	x24, l_.str@PAGE
Lloh39:
	add	x24, x24, l_.str@PAGEOFF
Lloh40:
	adrp	x9, _AUTOEQP_trigger@GOTPAGE
Lloh41:
	ldr	x9, [x9, _AUTOEQP_trigger@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	ldr	w10, [sp, #20]
	cmp	x8, x9
	ccmp	w10, #0, #0, ge
	b.ne	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh43:
	adrp	x8, _SQLITE_DBCONFIG_TRIGGER_EQP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SQLITE_DBCONFIG_TRIGGER_EQP@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	x3, #0
	bl	_sqlite3_db_config
	ldr	x0, [sp, #40]
	bl	_sqlite3_finalize
	add	x3, sp, #40
	mov	x0, x22
	mov	x1, x21
	mov	w2, #-1
	mov	x4, #0
	bl	_sqlite3_prepare_v2
	ldr	x8, [sp, #40]
	str	x8, [x20, #24]
LBB0_36:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_restore_debug_trace_modes
LBB0_37:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #16]
	str	x8, [x20, #8]
	ldr	x9, [x20, #48]
	cbz	x9, LBB0_43
; %bb.38:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #40]
	bl	_sqlite3_stmt_isexplain
	cmp	w0, #1
	b.ne	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x23]
	str	x8, [x20, #8]
LBB0_40:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #40]
	bl	_sqlite3_stmt_isexplain
	cmp	w0, #2
	b.ne	LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh46:
	adrp	x8, _MODE_EQP@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MODE_EQP@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	b	LBB0_43
LBB0_42:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #8]
LBB0_43:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [sp, #40]
	mov	x0, x20
	bl	_explain_data_prepare
LBB0_45:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [sp, #40]
	mov	x0, x20
	bl	_bind_prepared_stmt
	ldr	x1, [sp, #40]
	mov	x0, x20
	bl	_exec_prepared_stmt
	mov	x0, x20
	bl	_explain_data_delete
	mov	x0, x20
	bl	_eqp_render
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_47
; %bb.46:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	w2, #0
	bl	_display_stats
LBB0_47:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_49
; %bb.48:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_display_scanstats
LBB0_49:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [sp, #40]
	bl	_sqlite3_finalize
Lloh49:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	cmp	w26, w8
	csel	w26, w26, w0, eq
	ldr	w8, [x25]
	cmp	w26, w8
	b.ne	LBB0_52
; %bb.50:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #32]
	sub	x21, x8, #1
LBB0_51:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x21, #1]!
	bl	_IsSpace
	cbnz	x0, LBB0_51
	b	LBB0_7
LBB0_52:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	x19, LBB0_7
; %bb.53:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	bl	_save_err_msg
	str	x0, [x19]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
.zerofill __DATA,__bss,_shell_exec.zStmtSql,8,3 ; @shell_exec.zStmtSql
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_SHFLG_Echo,4,2                 ; @SHFLG_Echo
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.comm	_SQLITE_DBCONFIG_TRIGGER_EQP,4,2 ; @SQLITE_DBCONFIG_TRIGGER_EQP
	.comm	_AUTOEQP_trigger,8,3            ; @AUTOEQP_trigger
l_.str.2:                               ; @.str.2
	.asciz	"EXPLAIN QUERY PLAN %s"

	.comm	_SQLITE_ROW,8,3                 ; @SQLITE_ROW
	.comm	_AUTOEQP_full,8,3               ; @AUTOEQP_full
l_.str.3:                               ; @.str.3
	.asciz	"EXPLAIN %s"

	.comm	_MODE_Explain,8,3               ; @MODE_Explain
	.comm	_MODE_EQP,8,3                   ; @MODE_EQP
	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.no_dead_strip	_shell_exec
.subsections_via_symbols
