	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_expert_new             ## -- Begin function sqlite3_expert_new
	.p2align	4, 0x90
_sqlite3_expert_new:                    ## @sqlite3_expert_new
	.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	$24, %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
	movq	_SQLITE_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdi
	movl	$24, %esi
	callq	_idxMalloc
	movq	%rax, %rbx
	movq	%rax, %r15
	movl	-44(%rbp), %eax
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r12, 16(%r15)
	movl	$100, (%r15)
	leaq	4(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_sqlite3_open
	movl	%eax, -44(%rbp)
	movl	(%r13), %ecx
LBB0_2:
	cmpl	%ecx, %eax
	jne	LBB0_5
## %bb.3:
	addq	$8, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_sqlite3_open
	movl	%eax, -44(%rbp)
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	movq	_SQLITE_DBCONFIG_TRIGGER_EQP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3_db_config
	movl	-44(%rbp), %eax
	movl	(%r13), %ecx
LBB0_5:
	cmpl	%ecx, %eax
	je	LBB0_6
## %bb.11:
	cmpl	%ecx, %eax
	je	LBB0_12
LBB0_13:
	cmpl	%ecx, %eax
	je	LBB0_14
LBB0_15:
	cmpl	%ecx, %eax
	je	LBB0_17
LBB0_16:
	movq	%r15, %rdi
	callq	_sqlite3_expert_destroy
	xorl	%r15d, %r15d
LBB0_17:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	16(%r15), %rdi
	leaq	L_.str.1(%rip), %rcx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdx
	callq	_idxPrintfPrepareStmt
	movl	%eax, -44(%rbp)
	cmpl	(%r13), %eax
	jne	LBB0_10
## %bb.7:
	movq	_SQLITE_ROW@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	movq	-56(%rbp), %rdi
	callq	_sqlite3_step
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_sqlite3_column_text
	movl	8(%r15), %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_sqlite3_exec
	movl	%eax, -44(%rbp)
	cmpl	(%r13), %eax
	je	LBB0_8
LBB0_10:
	movq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdi
	callq	_idxFinalize
	movl	-44(%rbp), %eax
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_idxCreateVtabSchema
	movl	%eax, -44(%rbp)
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_15
LBB0_14:
	movl	4(%r15), %edi
	movq	_idxAuthCallback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_sqlite3_set_authorizer
	movl	-44(%rbp), %eax
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	":memory:"

	.comm	_SQLITE_DBCONFIG_TRIGGER_EQP,4,2 ## @SQLITE_DBCONFIG_TRIGGER_EQP
L_.str.1:                               ## @.str.1
	.asciz	"SELECT sql FROM sqlite_master WHERE name NOT LIKE 'sqlite_%%' AND sql NOT LIKE 'CREATE VIRTUAL %%'"

	.comm	_SQLITE_ROW,8,3                 ## @SQLITE_ROW
	.comm	_idxAuthCallback,4,2            ## @idxAuthCallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_expert_new             ; -- Begin function sqlite3_expert_new
	.p2align	2
_sqlite3_expert_new:                    ; @sqlite3_expert_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x22]
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #24
	bl	_idxMalloc
	mov	x19, x0
	ldr	w0, [sp, #12]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	str	x21, [x19, #16]
	mov	w8, #100
	str	w8, [x19]
	add	x1, x19, #4
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_sqlite3_open
	str	w0, [sp, #12]
	ldr	w8, [x22]
LBB0_2:
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	add	x21, x19, #8
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_sqlite3_open
	str	w0, [sp, #12]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _SQLITE_DBCONFIG_TRIGGER_EQP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_DBCONFIG_TRIGGER_EQP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #1
	mov	x3, #0
	bl	_sqlite3_db_config
	ldr	w0, [sp, #12]
	ldr	w8, [x22]
LBB0_5:
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.6:
	cmp	w0, w8
	b.eq	LBB0_16
LBB0_7:
	cmp	w0, w8
	b.eq	LBB0_17
LBB0_8:
	cmp	w0, w8
	b.eq	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_sqlite3_expert_destroy
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x1, sp
	mov	x2, x20
	bl	_idxPrintfPrepareStmt
	str	w0, [sp, #12]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.12:
Lloh11:
	adrp	x21, _SQLITE_ROW@GOTPAGE
Lloh12:
	ldr	x21, [x21, _SQLITE_ROW@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x21]
	ldr	x0, [sp]
	bl	_sqlite3_step
	cmp	x23, x0
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [sp]
	mov	w1, #0
	bl	_sqlite3_column_text
	mov	x1, x0
	ldr	w0, [x19, #8]
	mov	w2, #0
	mov	w3, #0
	mov	x4, x20
	bl	_sqlite3_exec
	str	w0, [sp, #12]
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_13
LBB0_15:
	ldr	x1, [sp]
	add	x0, sp, #12
	bl	_idxFinalize
	ldr	w0, [sp, #12]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_7
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_idxCreateVtabSchema
	str	w0, [sp, #12]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_17:
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x8, _idxAuthCallback@GOTPAGE
Lloh14:
	ldr	x8, [x8, _idxAuthCallback@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_sqlite3_set_authorizer
	ldr	w0, [sp, #12]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_9
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":memory:"

	.comm	_SQLITE_DBCONFIG_TRIGGER_EQP,4,2 ; @SQLITE_DBCONFIG_TRIGGER_EQP
l_.str.1:                               ; @.str.1
	.asciz	"SELECT sql FROM sqlite_master WHERE name NOT LIKE 'sqlite_%%' AND sql NOT LIKE 'CREATE VIRTUAL %%'"

	.comm	_SQLITE_ROW,8,3                 ; @SQLITE_ROW
	.comm	_idxAuthCallback,4,2            ; @idxAuthCallback
.subsections_via_symbols
