	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_declare_vtab           ## -- Begin function sqlite3_declare_vtab
	.p2align	4, 0x90
_sqlite3_declare_vtab:                  ## @sqlite3_declare_vtab
	.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, %r12
	movq	%rdi, %r13
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	$0, -56(%rbp)
	movl	(%rdi), %edi
	callq	_sqlite3_mutex_enter
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_TF_Virtual@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	setne	%dil
	callq	_assert
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_sqlite3StackAllocZero
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r15)
	movq	%r13, 24(%r15)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sqlite3RunParser
	cmpl	%eax, %ebx
	jne	LBB0_13
## %bb.6:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	cmpl	$0, 16(%r13)
	jne	LBB0_13
## %bb.8:
	cmpl	$0, 24(%rax)
	jne	LBB0_13
## %bb.9:
	movq	_TF_Virtual@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
LBB0_13:
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-56(%rbp), %rcx
	testq	%rcx, %rcx
	leaq	L_.str(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_sqlite3Error
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_sqlite3DbFree
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_14:
	movl	$0, (%r15)
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_sqlite3VdbeFinalize
LBB0_16:
	movq	8(%r15), %rsi
	movq	%r13, %rdi
	callq	_sqlite3DeleteTable
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_sqlite3StackFree
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_2:
	movq	_SQLITE_MISUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_sqlite3Error
	movl	(%r13), %edi
	callq	_sqlite3_mutex_leave
	movq	_SQLITE_MISUSE_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_18
LBB0_4:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	xorl	%edi, %edi
	cmpl	$256, %ebx                      ## imm = 0x100
	setb	%dil
	callq	_assert
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_sqlite3ApiExit
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_sqlite3_mutex_leave
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpq	$0, 16(%r14)
	jne	LBB0_12
## %bb.11:
	movdqu	8(%rax), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, 8(%r14)
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 8(%rax)
LBB0_12:
	movq	8(%r13), %rax
	movq	$0, (%rax)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_MISUSE,4,2              ## @SQLITE_MISUSE
	.comm	_SQLITE_MISUSE_BKPT,4,2         ## @SQLITE_MISUSE_BKPT
	.comm	_TF_Virtual,4,2                 ## @TF_Virtual
	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.comm	_SQLITE_ERROR,4,2               ## @SQLITE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_declare_vtab           ; -- Begin function sqlite3_declare_vtab
	.p2align	2
_sqlite3_declare_vtab:                  ; @sqlite3_declare_vtab
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SQLITE_OK@GOTPAGEOFF]
	ldr	w20, [x25]
	str	xzr, [sp, #8]
	ldr	w0, [x0]
	bl	_sqlite3_mutex_enter
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.1:
	ldr	x23, [x8]
	cbz	x23, LBB0_12
; %bb.2:
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _TF_Virtual@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TF_Virtual@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	mov	w1, #32
	bl	_sqlite3StackAllocZero
	cbz	x0, LBB0_13
; %bb.3:
	mov	x21, x0
	str	x19, [x0, #24]
	movi.2s	v0, #1
	str	d0, [x0]
	ldr	w25, [x25]
	add	x2, sp, #8
	mov	x1, x22
	bl	_sqlite3RunParser
	cmp	w25, w0
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	w9, [x19, #16]
	cbnz	w9, LBB0_8
; %bb.6:
	ldr	w9, [x8, #24]
	cbnz	w9, LBB0_8
; %bb.7:
	ldr	w9, [x8]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_16
LBB0_8:
Lloh4:
	adrp	x20, _SQLITE_ERROR@GOTPAGE
Lloh5:
	ldr	x20, [x20, _SQLITE_ERROR@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x2, xzr, x9, eq
	str	x8, [sp]
	mov	x0, x19
	bl	_sqlite3Error
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_sqlite3DbFree
	ldr	w20, [x20]
LBB0_9:
	str	wzr, [x21]
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_sqlite3VdbeFinalize
LBB0_11:
	ldr	x1, [x21, #8]
	mov	x0, x19
	bl	_sqlite3DeleteTable
	mov	x0, x19
	mov	x1, x21
	bl	_sqlite3StackFree
	b	LBB0_14
LBB0_12:
Lloh8:
	adrp	x8, _SQLITE_MISUSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SQLITE_MISUSE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_sqlite3Error
	ldr	w0, [x19]
	bl	_sqlite3_mutex_leave
Lloh11:
	adrp	x8, _SQLITE_MISUSE_BKPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SQLITE_MISUSE_BKPT@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_13:
Lloh14:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_14:
	cmp	w20, #256
	cset	w0, lo
	bl	_assert
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3ApiExit
	mov	x20, x0
	ldr	w0, [x19]
	bl	_sqlite3_mutex_leave
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	ldr	x9, [x23, #16]
	cbnz	x9, LBB0_18
; %bb.17:
	ldur	q0, [x8, #8]
	ext.16b	v0, v0, v0, #8
	stur	q0, [x23, #8]
	stp	xzr, xzr, [x8, #8]
LBB0_18:
	ldr	x8, [x19, #8]
	str	xzr, [x8]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_MISUSE,4,2              ; @SQLITE_MISUSE
	.comm	_SQLITE_MISUSE_BKPT,4,2         ; @SQLITE_MISUSE_BKPT
	.comm	_TF_Virtual,4,2                 ; @TF_Virtual
	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.comm	_SQLITE_ERROR,4,2               ; @SQLITE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
