	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function updateVirtualTable
_updateVirtualTable:                    ## @updateVirtualTable
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	16(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_sqlite3GetVTable
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	_TK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rbx
	callq	_sqlite3Expr
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_sqlite3ExprListAppend
	movq	%rax, %r12
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_sqlite3ExprDup
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_sqlite3ExprListAppend
	movq	%rax, %r12
LBB0_2:
	movq	(%r14), %rdi
	shrq	$63, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	cmpl	$0, 8(%r14)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_TK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_sqlite3Expr
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_sqlite3ExprListAppend
	movq	%rax, %r12
	incq	%rbx
	movslq	8(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %eax
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%rax,8), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_sqlite3ExprDup
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	setne	%al
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	callq	_sqlite3SelectNew
	addq	$32, %rsp
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edi
	callq	_assert
	movl	4(%r13), %ebx
	leal	1(%rbx), %eax
	movl	%eax, 4(%r13)
	movq	_OP_OpenEphemeral@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	addl	%eax, %ecx
	incl	%ecx
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_sqlite3VdbeAddOp2
	movq	_BTREE_UNORDERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sqlite3VdbeChangeP5
	movq	_SRT_Table@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-124(%rbp), %r14
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_sqlite3SelectDestInit
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_sqlite3Select
	movl	(%r13), %eax
	leal	1(%rax), %r14d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	2(%rax), %ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %eax
	addl	%ecx, %eax
	movl	%eax, (%r13)
	movq	_OP_Rewind@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3VdbeAddOp2
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	_OP_Column@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%r14d, -88(%rbp)                ## 4-byte Spill
	movl	%r14d, %r8d
	callq	_sqlite3VdbeAddOp3
	movl	(%r13), %esi
	movq	%r12, %rdi
	movq	%rbx, %r14
	movl	%ebx, %edx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, %rbx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-84(%rbp), %r8d                 ## 4-byte Reload
	callq	_sqlite3VdbeAddOp3
	movq	-112(%rbp), %r13                ## 8-byte Reload
	cmpl	$0, 8(%r13)
	jle	LBB0_11
## %bb.9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	$3, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	incl	%ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_OP_Column@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	1(%r15), %r12d
	leal	(%rbx,%r15), %ecx
	addl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r15d, %r8d
	callq	_sqlite3VdbeAddOp3
	movl	%r12d, %r15d
	cmpl	8(%r13), %r12d
	jl	LBB0_10
LBB0_11:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_sqlite3VtabMakeWritable
	movq	_OP_VUpdate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %ecx
	addl	$2, %ecx
	movq	_P4_VTAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	-88(%rbp), %r8d                 ## 4-byte Reload
	movq	-120(%rbp), %r9                 ## 8-byte Reload
	pushq	%rax
	callq	_sqlite3VdbeAddOp4
	addq	$16, %rsp
	movq	_OE_Default@GOTPCREL(%rip), %rax
	movl	24(%rbp), %esi
	cmpl	%esi, (%rax)
	jne	LBB0_13
## %bb.12:
	movq	_OE_Abort@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_13:
	movq	%rbx, %rdi
	callq	_sqlite3VdbeChangeP5
	movq	%r15, %rdi
	callq	_sqlite3MayAbort
	movq	_OP_Next@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-92(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	incl	%ecx
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_sqlite3VdbeAddOp2
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_sqlite3VdbeJumpHere
	movq	_OP_Close@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3VdbeAddOp2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_sqlite3SelectDelete
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TK_ID,4,2                      ## @TK_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_rowid_"

	.comm	_OP_OpenEphemeral,4,2           ## @OP_OpenEphemeral
	.comm	_BTREE_UNORDERED,4,2            ## @BTREE_UNORDERED
	.comm	_SRT_Table,4,2                  ## @SRT_Table
	.comm	_OP_Rewind,4,2                  ## @OP_Rewind
	.comm	_OP_Column,4,2                  ## @OP_Column
	.comm	_OP_VUpdate,4,2                 ## @OP_VUpdate
	.comm	_P4_VTAB,4,2                    ## @P4_VTAB
	.comm	_OE_Default,4,2                 ## @OE_Default
	.comm	_OE_Abort,4,2                   ## @OE_Abort
	.comm	_OP_Next,4,2                    ## @OP_Next
	.comm	_OP_Close,4,2                   ## @OP_Close
	.no_dead_strip	_updateVirtualTable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function updateVirtualTable
_updateVirtualTable:                    ; @updateVirtualTable
	.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
	str	w7, [sp, #40]                   ; 4-byte Folded Spill
	stp	x1, x6, [sp, #16]               ; 16-byte Folded Spill
	mov	x28, x5
	mov	x26, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x0
	ldp	x19, x20, [x0, #8]
	mov	x0, x19
	mov	x1, x2
	bl	_sqlite3GetVTable
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x25, _TK_ID@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TK_ID@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sqlite3Expr
	mov	x2, x0
	mov	x0, x21
	mov	x1, #0
	bl	_sqlite3ExprListAppend
	mov	x22, x0
	cbz	x26, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x26
	mov	w2, #0
	bl	_sqlite3ExprDup
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_sqlite3ExprListAppend
	mov	x22, x0
LBB0_2:
	ldr	x8, [x24]
	lsr	x0, x8, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_assert
	ldr	w8, [x24, #8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x27, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x25]
	ldr	x8, [x24, #16]
	ldr	x2, [x8, x27, lsl #3]
	mov	x0, x19
	bl	_sqlite3Expr
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_sqlite3ExprListAppend
	mov	x22, x0
	add	x27, x27, #1
	ldrsw	x8, [x24, #8]
	cmp	x27, x8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28, x27, lsl #2]
	tbnz	w8, #31, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x23]
	ldr	x1, [x9, x8, lsl #3]
	mov	x0, x19
	mov	w2, #0
	bl	_sqlite3ExprDup
	b	LBB0_5
LBB0_8:
	str	xzr, [sp]
	mov	x0, x21
	mov	x1, x22
	ldp	x2, x3, [sp, #16]               ; 16-byte Folded Reload
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_sqlite3SelectNew
	mov	x22, x0
	mov	x0, x20
	bl	_assert
	cmp	x26, #0
	cset	w27, ne
	ldr	w26, [x21, #4]
	add	w8, w26, #1
Lloh4:
	adrp	x9, _OP_OpenEphemeral@GOTPAGE
Lloh5:
	ldr	x9, [x9, _OP_OpenEphemeral@GOTPAGEOFF]
	str	w8, [x21, #4]
Lloh6:
	ldr	w1, [x9]
	ldr	w8, [x24, #8]
	mov	w9, #1
	cinc	w9, w9, ne
	add	w3, w9, w8
	mov	x0, x20
	mov	x2, x26
	bl	_sqlite3VdbeAddOp2
Lloh7:
	adrp	x8, _BTREE_UNORDERED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BTREE_UNORDERED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sqlite3VdbeChangeP5
Lloh10:
	adrp	x8, _SRT_Table@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SRT_Table@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x0, sp, #44
	mov	x2, x26
	bl	_sqlite3SelectDestInit
	add	x2, sp, #44
	mov	x0, x21
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	mov	x1, x22
	bl	_sqlite3Select
	ldr	w23, [x21]
	add	w22, w23, #1
	ldr	w8, [x24, #8]
	add	w28, w23, #2
	add	w8, w28, w8
	str	w8, [x21]
Lloh13:
	adrp	x8, _OP_Rewind@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OP_Rewind@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x26
	mov	w3, #0
	bl	_sqlite3VdbeAddOp2
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
Lloh16:
	adrp	x25, _OP_Column@GOTPAGE
Lloh17:
	ldr	x25, [x25, _OP_Column@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x26
	mov	w3, #0
	mov	x4, x22
	bl	_sqlite3VdbeAddOp3
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x26
	mov	x3, x27
	mov	x4, x28
	bl	_sqlite3VdbeAddOp3
	ldr	w8, [x24, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	w8, #0
	add	w23, w23, #3
	add	w27, w27, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	add	w28, w8, #1
	add	w3, w27, w8
	add	w4, w23, w8
	mov	x0, x20
	mov	x2, x26
	bl	_sqlite3VdbeAddOp3
	ldr	w9, [x24, #8]
	mov	x8, x28
	cmp	w28, w9
	b.lt	LBB0_10
LBB0_11:
	mov	x0, x21
	mov	x1, x24
	bl	_sqlite3VtabMakeWritable
Lloh18:
	adrp	x8, _OP_VUpdate@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OP_VUpdate@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w8, [x24, #8]
	add	w3, w8, #2
Lloh21:
	adrp	x8, _P4_VTAB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _P4_VTAB@GOTPAGEOFF]
Lloh23:
	ldr	w6, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	x4, x22
	ldr	x5, [sp, #32]                   ; 8-byte Folded Reload
	bl	_sqlite3VdbeAddOp4
Lloh24:
	adrp	x8, _OE_Default@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OE_Default@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _OE_Abort@GOTPAGE
Lloh28:
	ldr	x9, [x9, _OE_Abort@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	ldr	w10, [sp, #40]                  ; 4-byte Folded Reload
	cmp	w8, w10
	csel	w1, w9, w10, eq
	mov	x0, x20
	bl	_sqlite3VdbeChangeP5
	mov	x0, x21
	bl	_sqlite3MayAbort
Lloh30:
	adrp	x8, _OP_Next@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OP_Next@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w21, [sp, #16]                  ; 4-byte Folded Reload
	add	w3, w21, #1
	mov	x0, x20
	mov	x2, x26
	bl	_sqlite3VdbeAddOp2
	mov	x0, x20
	mov	x1, x21
	bl	_sqlite3VdbeJumpHere
Lloh33:
	adrp	x8, _OP_Close@GOTPAGE
Lloh34:
	ldr	x8, [x8, _OP_Close@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x26
	mov	w3, #0
	bl	_sqlite3VdbeAddOp2
	mov	x0, x19
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_sqlite3SelectDelete
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TK_ID,4,2                      ; @TK_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_rowid_"

	.comm	_OP_OpenEphemeral,4,2           ; @OP_OpenEphemeral
	.comm	_BTREE_UNORDERED,4,2            ; @BTREE_UNORDERED
	.comm	_SRT_Table,4,2                  ; @SRT_Table
	.comm	_OP_Rewind,4,2                  ; @OP_Rewind
	.comm	_OP_Column,4,2                  ; @OP_Column
	.comm	_OP_VUpdate,4,2                 ; @OP_VUpdate
	.comm	_P4_VTAB,4,2                    ; @P4_VTAB
	.comm	_OE_Default,4,2                 ; @OE_Default
	.comm	_OE_Abort,4,2                   ; @OE_Abort
	.comm	_OP_Next,4,2                    ; @OP_Next
	.comm	_OP_Close,4,2                   ; @OP_Close
	.no_dead_strip	_updateVirtualTable
.subsections_via_symbols
