	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expertFinish
_expertFinish:                          ## @expertFinish
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	8(%rdi), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.1:
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_assert
	jmp	LBB0_4
LBB0_3:
	movl	$1, %edi
	callq	_assert
	testl	%ebx, %ebx
	jne	LBB0_14
LBB0_4:
	movq	16(%r12), %r15
	movl	(%r12), %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_sqlite3_expert_analyze
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.5:
	movq	%r13, %rdi
	callq	_sqlite3_expert_count
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movq	_EXPERT_REPORT_CANDIDATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_sqlite3_expert_report
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_raw_printf
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_raw_printf
LBB0_7:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_13
## %bb.8:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_raw_printf
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_raw_printf
	cmpl	%r14d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EXPERT_REPORT_SQL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sqlite3_expert_report
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_EXPERT_REPORT_INDEXES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sqlite3_expert_report
	movq	%rax, %r13
	movq	_EXPERT_REPORT_PLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_sqlite3_expert_report
	movq	%rax, %r12
	testq	%r13, %r13
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %r13
	incl	%r14d
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_raw_printf
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_raw_printf
	jmp	LBB0_11
LBB0_12:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_13:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sqlite3_expert_destroy
	movq	$0, 8(%r12)
	movl	%r13d, %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
	.comm	_EXPERT_REPORT_CANDIDATES,4,2   ## @EXPERT_REPORT_CANDIDATES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-- Candidates -----------------------------\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.comm	_EXPERT_REPORT_SQL,4,2          ## @EXPERT_REPORT_SQL
	.comm	_EXPERT_REPORT_INDEXES,4,2      ## @EXPERT_REPORT_INDEXES
	.comm	_EXPERT_REPORT_PLAN,4,2         ## @EXPERT_REPORT_PLAN
L_.str.2:                               ## @.str.2
	.asciz	"(no new indexes)\n"

L_.str.3:                               ## @.str.3
	.asciz	"-- Query %d --------------------------------\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s\n\n"

	.no_dead_strip	_expertFinish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expertFinish
_expertFinish:                          ; @expertFinish
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x19, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SQLITE_OK@GOTPAGEOFF]
	ldr	w25, [x19]
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_assert
	cbnz	w21, LBB0_3
; %bb.1:
	cbz	x23, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	b	LBB0_4
LBB0_3:
	mov	w0, #1
	bl	_assert
	cbnz	w21, LBB0_13
LBB0_4:
	ldr	x22, [x24, #16]
	ldr	w26, [x24]
	mov	x0, x20
	mov	x1, x23
	bl	_sqlite3_expert_analyze
	mov	x25, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.5:
	mov	x0, x20
	bl	_sqlite3_expert_count
	mov	x23, x0
	cbz	w26, LBB0_7
; %bb.6:
Lloh2:
	adrp	x8, _EXPERT_REPORT_CANDIDATES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EXPERT_REPORT_CANDIDATES@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_sqlite3_expert_report
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_raw_printf
	str	x21, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_raw_printf
LBB0_7:
	cmp	w23, #1
	b.lt	LBB0_13
; %bb.8:
	str	w25, [sp, #20]                  ; 4-byte Folded Spill
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	mov	w24, #0
Lloh9:
	adrp	x27, l_.str.2@PAGE
Lloh10:
	add	x27, x27, l_.str.2@PAGEOFF
Lloh11:
	adrp	x25, l_.str.1@PAGE
Lloh12:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	x19, [sp]
	mov	x0, x22
	mov	x1, x25
	bl	_raw_printf
	str	x28, [sp]
	mov	x0, x22
	mov	x1, x25
	bl	_raw_printf
	cmp	w23, w24
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
Lloh13:
	adrp	x8, _EXPERT_REPORT_SQL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EXPERT_REPORT_SQL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x24
	bl	_sqlite3_expert_report
	mov	x21, x0
Lloh16:
	adrp	x8, _EXPERT_REPORT_INDEXES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXPERT_REPORT_INDEXES@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x24
	bl	_sqlite3_expert_report
	mov	x19, x0
Lloh19:
	adrp	x8, _EXPERT_REPORT_PLAN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXPERT_REPORT_PLAN@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x24
	bl	_sqlite3_expert_report
	mov	x28, x0
	cmp	x19, #0
	csel	x19, x27, x19, eq
	add	w24, w24, #1
	cbz	w26, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	x24, [sp]
	mov	x0, x22
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_raw_printf
	str	x21, [sp]
	mov	x0, x22
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_raw_printf
	b	LBB0_9
LBB0_12:
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w25, [sp, #20]                  ; 4-byte Folded Reload
LBB0_13:
	mov	x0, x20
	bl	_sqlite3_expert_destroy
	str	xzr, [x24, #8]
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_EXPERT_REPORT_CANDIDATES,4,2   ; @EXPERT_REPORT_CANDIDATES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-- Candidates -----------------------------\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.comm	_EXPERT_REPORT_SQL,4,2          ; @EXPERT_REPORT_SQL
	.comm	_EXPERT_REPORT_INDEXES,4,2      ; @EXPERT_REPORT_INDEXES
	.comm	_EXPERT_REPORT_PLAN,4,2         ; @EXPERT_REPORT_PLAN
l_.str.2:                               ; @.str.2
	.asciz	"(no new indexes)\n"

l_.str.3:                               ; @.str.3
	.asciz	"-- Query %d --------------------------------\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s\n\n"

	.no_dead_strip	_expertFinish
.subsections_via_symbols
