	.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	$72, %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), %r14
	movl	(%r14), %ebx
	movq	$0, -56(%rbp)
	movl	(%rdi), %edi
	callq	_sqlite3_mutex_enter
	movq	8(%r13), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%r15)
	je	LBB0_3
LBB0_2:
	movq	_SQLITE_MISUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_sqlite3Error
	movl	(%r13), %edi
	callq	_sqlite3_mutex_leave
	movq	_SQLITE_MISUSE_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r15), %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_IsVirtual
	movl	%eax, %edi
	callq	_assert
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_PARSE_MODE_DECLARE_VTAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	%r13, -64(%rbp)
	movl	$1, -96(%rbp)
	movl	(%r14), %ebx
	leaq	-56(%rbp), %rdx
	leaq	-96(%rbp), %rdi
	movq	%r12, %rsi
	callq	_sqlite3RunParser
	cmpl	%eax, %ebx
	jne	LBB0_19
## %bb.4:
	movq	-88(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.5:
	cmpl	$0, 4(%r13)
	jne	LBB0_19
## %bb.6:
	cmpl	$0, 32(%rdi)
	jne	LBB0_19
## %bb.7:
	callq	_IsVirtual
	testl	%eax, %eax
	je	LBB0_8
LBB0_19:
	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
	callq	_sqlite3ErrorWithMsg
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_sqlite3DbFree
	movl	(%rbx), %ebx
LBB0_20:
	movq	_PARSE_MODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_sqlite3VdbeFinalize
LBB0_22:
	movq	-88(%rbp), %rsi
	movq	%r13, %rdi
	callq	_sqlite3DeleteTable
	leaq	-96(%rbp), %rdi
	callq	_sqlite3ParserReset
	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_23:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-104(%rbp), %r14                ## 8-byte Reload
	cmpq	$0, 16(%r14)
	jne	LBB0_18
## %bb.9:
	movq	-88(%rbp), %r12
	movups	16(%r12), %xmm0
	movups	%xmm0, 16(%r14)
	movq	_TF_WithoutRowid@GOTPCREL(%rip), %rax
	movq	_TF_NoVisibleRowid@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	(%r12), %ecx
	orl	%ecx, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12)
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	sete	%dil
	callq	_assert
	movq	%r12, %rdi
	callq	_HasRowid
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_sqlite3PrimaryKeyIndex
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_11:
	callq	_assert
	movq	%r12, %rdi
	callq	_HasRowid
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_16
## %bb.12:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.13:
	movq	%r12, %rdi
	callq	_sqlite3PrimaryKeyIndex
	cmpl	$1, (%rax)
	je	LBB0_15
## %bb.14:
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_16:
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.17:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_assert
	movq	%rbx, 8(%r14)
	movq	$0, 8(%r12)
	movq	%r14, 8(%rbx)
LBB0_18:
	movl	$1, (%r15)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_20
	.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	_PARSE_MODE_DECLARE_VTAB,4,2    ## @PARSE_MODE_DECLARE_VTAB
	.comm	_TF_WithoutRowid,4,2            ## @TF_WithoutRowid
	.comm	_TF_NoVisibleRowid,4,2          ## @TF_NoVisibleRowid
	.comm	_SQLITE_ERROR,4,2               ## @SQLITE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_PARSE_MODE_NORMAL,4,2          ## @PARSE_MODE_NORMAL
.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, #112
	.cfi_def_cfa_offset 112
	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
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SQLITE_OK@GOTPAGEOFF]
	ldr	w20, [x24]
	str	xzr, [sp, #40]
	ldr	w0, [x0]
	bl	_sqlite3_mutex_enter
	ldr	x23, [x19, #8]
	cbz	x23, LBB0_2
; %bb.1:
	ldr	w8, [x23]
	cbz	w8, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _SQLITE_MISUSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_MISUSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sqlite3Error
	ldr	w0, [x19]
	bl	_sqlite3_mutex_leave
Lloh5:
	adrp	x8, _SQLITE_MISUSE_BKPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_MISUSE_BKPT@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_3:
	ldr	x21, [x23, #16]
	mov	x0, x21
	bl	_IsVirtual
	bl	_assert
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh8:
	adrp	x8, _PARSE_MODE_DECLARE_VTAB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PARSE_MODE_DECLARE_VTAB@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	x19, [sp, #32]
	mov	w9, #1
	str	w8, [sp, #24]
	str	w9, [sp]
	ldr	w24, [x24]
	mov	x0, sp
	add	x2, sp, #40
	mov	x1, x22
	bl	_sqlite3RunParser
	mov	x8, x0
	ldr	x0, [sp, #8]
	cmp	w24, w8
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_7
; %bb.5:
	ldr	w8, [x0, #32]
	cbnz	w8, LBB0_7
; %bb.6:
	bl	_IsVirtual
	cbz	w0, LBB0_12
LBB0_7:
Lloh11:
	adrp	x20, _SQLITE_ERROR@GOTPAGE
Lloh12:
	ldr	x20, [x20, _SQLITE_ERROR@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x3, [sp, #40]
Lloh13:
	adrp	x8, l_.str@PAGE
Lloh14:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x3, #0
	csel	x2, xzr, x8, eq
	mov	x0, x19
	bl	_sqlite3ErrorWithMsg
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_sqlite3DbFree
	ldr	w20, [x20]
LBB0_8:
Lloh15:
	adrp	x8, _PARSE_MODE_NORMAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PARSE_MODE_NORMAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_sqlite3VdbeFinalize
LBB0_10:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_sqlite3DeleteTable
	mov	x0, sp
	bl	_sqlite3ParserReset
	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_11:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
LBB0_12:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_21
; %bb.13:
	ldr	x22, [sp, #8]
	ldr	q0, [x22, #16]
	str	q0, [x21, #16]
	ldr	w8, [x22]
Lloh18:
	adrp	x9, _TF_WithoutRowid@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TF_WithoutRowid@GOTPAGEOFF]
Lloh20:
	adrp	x10, _TF_NoVisibleRowid@GOTPAGE
Lloh21:
	ldr	x10, [x10, _TF_NoVisibleRowid@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x21]
	stp	xzr, xzr, [x22, #16]
	ldr	x8, [x21, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x22
	bl	_HasRowid
	cbz	x0, LBB0_15
; %bb.14:
	mov	w0, #1
	b	LBB0_16
LBB0_15:
	mov	x0, x22
	bl	_sqlite3PrimaryKeyIndex
	cmp	x0, #0
	cset	w0, ne
LBB0_16:
	bl	_assert
	mov	x0, x22
	bl	_HasRowid
	cbnz	x0, LBB0_19
; %bb.17:
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, x22
	bl	_sqlite3PrimaryKeyIndex
	ldr	w8, [x0]
Lloh24:
	adrp	x9, _SQLITE_ERROR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SQLITE_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, #1
	csel	w20, w20, w9, eq
LBB0_19:
	ldr	x24, [x22, #8]
	cbz	x24, LBB0_21
; %bb.20:
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	str	x24, [x21, #8]
	str	xzr, [x22, #8]
	str	x21, [x24, #8]
LBB0_21:
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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	_PARSE_MODE_DECLARE_VTAB,4,2    ; @PARSE_MODE_DECLARE_VTAB
	.comm	_TF_WithoutRowid,4,2            ; @TF_WithoutRowid
	.comm	_TF_NoVisibleRowid,4,2          ; @TF_NoVisibleRowid
	.comm	_SQLITE_ERROR,4,2               ; @SQLITE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_PARSE_MODE_NORMAL,4,2          ; @PARSE_MODE_NORMAL
.subsections_via_symbols
