	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdbeCommit
_vdbeCommit:                            ## @vdbeCommit
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_sqlite3VtabSync
	movl	%eax, %r13d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_77
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_sqlite3PagerExclusiveLock
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_sqlite3BtreeLeave
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	addq	$16, %r12
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_77
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx), %rax
	cmpq	%rax, %r14
	jge	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %r15d
	movq	16(%rcx), %rax
	movq	8(%rax,%r12), %rbx
	movq	%rbx, %rdi
	movq	%rcx, %r13
	callq	_sqlite3BtreeIsInTrans
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_sqlite3BtreeEnter
	movq	%rbx, %rdi
	callq	_sqlite3BtreePager
	movq	%rax, %r15
	movq	16(%r13), %rax
	movq	(%rax,%r12), %rax
	movq	_PAGER_SYNCHRONOUS_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_sqlite3PagerGetJournalMode
	movl	$52, %ecx
	btq	%rax, %rcx
	jb	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_sqlite3PagerIsMemdb
	testq	%rax, %rax
	jne	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	cmpq	$1, %r14
	setne	%dil
	callq	_assert
	incl	-64(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %r13d
	jmp	LBB0_3
LBB0_11:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.12:
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movl	32(%rcx), %edi
	movq	%rcx, %rbx
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	_SQLITE_CONSTRAINT_COMMITHOOK@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_15:
	xorl	%r13d, %r13d
	movq	%rbx, %rcx
LBB0_16:
	movq	16(%rcx), %rax
	movq	8(%rax), %rdi
	callq	_sqlite3BtreeGetFilename
	movq	%rax, %rdi
	callq	_sqlite3Strlen30
	testl	%eax, %eax
	je	LBB0_26
## %bb.17:
	cmpl	$1, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_26
## %bb.18:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rdi
	callq	_sqlite3BtreeGetFilename
	movq	%rax, %rbx
	movq	$0, -72(%rbp)
	movq	%rax, %rdi
	callq	_sqlite3Strlen30
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %r15
	movq	%rbx, %rdx
	callq	_sqlite3MPrintf
	testq	%rax, %rax
	je	LBB0_34
## %bb.19:
	movslq	%r14d, %r14
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	%rax, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	$100, %ebx
	ja	LBB0_43
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	$1, %ebx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_SQLITE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	callq	_sqlite3_log
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	$4, %edi
	leaq	-84(%rbp), %rsi
	callq	_sqlite3_randomness
	movl	-84(%rbp), %ecx
	movzbl	%cl, %r8d
	shrl	$8, %ecx
	movl	$13, %edi
	movq	%r14, %rsi
	leaq	L_.str.3(%rip), %rdx
	callq	_sqlite3_snprintf
	movq	%r12, %rdi
	callq	_sqlite3Strlen30
	cltq
	xorl	%edi, %edi
	cmpb	$57, -3(%rax,%r12)
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_sqlite3FileSuffix3
	movq	_SQLITE_ACCESS_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	leaq	-88(%rbp), %rcx
	callq	_sqlite3OsAccess
	movl	%eax, %r13d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpl	%r12d, %r13d
	jne	LBB0_44
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	incl	%ebx
	cmpl	$0, -88(%rbp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_20
	jmp	LBB0_45
LBB0_26:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	%r14d, %r13d
	jne	LBB0_32
## %bb.27:
	movq	$-1, %rbx
	movl	$8, %r15d
	movl	%r13d, %r14d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	addq	$16, %r15
	cmpl	%r14d, %r13d
	jne	LBB0_33
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_36
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	16(%rcx), %rax
	movq	(%rax,%r15), %rdi
	movl	%r14d, %r13d
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	xorl	%esi, %esi
	callq	_sqlite3BtreeCommitPhaseOne
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r13d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_28
LBB0_32:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_33:
	cmpl	%r14d, %r13d
	je	LBB0_37
	jmp	LBB0_77
LBB0_34:
	movq	_SQLITE_NOMEM_BKPT@GOTPCREL(%rip), %rax
LBB0_35:
	movl	(%rax), %r13d
	jmp	LBB0_77
LBB0_36:
	movl	%r14d, %r13d
	cmpl	%r14d, %r13d
	jne	LBB0_77
LBB0_37:
	movq	$-1, %rbx
	movl	$8, %r15d
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_39 Depth=1
	addq	$16, %r15
	cmpl	%r14d, %r13d
	jne	LBB0_77
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	16(%rcx), %rax
	movq	(%rax,%r15), %rdi
	movl	%r14d, %r13d
	testq	%rdi, %rdi
	je	LBB0_38
## %bb.41:                              ##   in Loop: Header=BB0_39 Depth=1
	xorl	%esi, %esi
	callq	_sqlite3BtreeCommitPhaseTwo
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r13d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_38
LBB0_42:
	movq	%rcx, %rdi
	callq	_sqlite3VtabCommit
	movl	%r14d, %r13d
	jmp	LBB0_77
LBB0_43:
	movq	_SQLITE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	callq	_sqlite3_log
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_sqlite3OsDelete
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_45
LBB0_44:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_45:
	cmpl	%r12d, %r13d
	jne	LBB0_47
## %bb.46:
	movq	_SQLITE_OPEN_READWRITE@GOTPCREL(%rip), %rax
	movq	_SQLITE_OPEN_CREATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SQLITE_OPEN_EXCLUSIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SQLITE_OPEN_MASTER_JOURNAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	-72(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_sqlite3OsOpenMalloc
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r13d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_47:
	cmpl	%r12d, %r13d
	jne	LBB0_75
## %bb.48:
	cmpl	$0, (%rdi)
	jle	LBB0_56
## %bb.49:
	xorl	%r14d, %r14d
	movl	$8, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_52 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_51:                                ##   in Loop: Header=BB0_52 Depth=1
	incq	%r14
	movslq	(%rdi), %rax
	addq	$16, %r15
	cmpq	%rax, %r14
	jge	LBB0_56
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	(%rax,%r15), %rbx
	movq	%rbx, %rdi
	callq	_sqlite3BtreeIsInTrans
	testq	%rax, %rax
	je	LBB0_50
## %bb.53:                              ##   in Loop: Header=BB0_52 Depth=1
	movq	%rbx, %rdi
	callq	_sqlite3BtreeGetJournalname
	testq	%rax, %rax
	je	LBB0_50
## %bb.54:                              ##   in Loop: Header=BB0_52 Depth=1
	movq	%rax, %r13
	xorl	%edi, %edi
	cmpb	$0, (%rax)
	setne	%dil
	callq	_assert
	movq	-72(%rbp), %rbx
	movq	%r13, %rdi
	callq	_sqlite3Strlen30
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_sqlite3OsWrite
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_sqlite3Strlen30
                                        ## kill: def $eax killed $eax def $rax
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_65
## %bb.55:                              ##   in Loop: Header=BB0_52 Depth=1
	addl	%eax, %ebx
	incl	%ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_51
LBB0_56:
	movq	-72(%rbp), %rdi
	callq	_sqlite3OsDeviceCharacteristics
	movq	_SQLITE_IOCAP_SEQUENTIAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_58
## %bb.57:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-72(%rbp), %rdi
	movq	_SQLITE_SYNC_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sqlite3OsSync
	cmpl	%eax, %r12d
	jne	LBB0_78
LBB0_58:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_66
## %bb.59:
	movq	$-1, %rbx
	movl	$8, %r14d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_61
LBB0_60:                                ##   in Loop: Header=BB0_61 Depth=1
	addq	$16, %r14
	cmpl	%r12d, %r13d
	jne	LBB0_67
LBB0_61:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_66
## %bb.62:                              ##   in Loop: Header=BB0_61 Depth=1
	movq	16(%rcx), %rax
	movq	(%rax,%r14), %rdi
	movl	%r12d, %r13d
	testq	%rdi, %rdi
	je	LBB0_60
## %bb.63:                              ##   in Loop: Header=BB0_61 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_sqlite3BtreeCommitPhaseOne
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r13d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_60
LBB0_66:
	movl	%r12d, %r13d
LBB0_67:
	movq	-72(%rbp), %rdi
	callq	_sqlite3OsCloseFree
	movq	_SQLITE_BUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r13d
	setne	%dil
	callq	_assert
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_74
## %bb.68:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_sqlite3OsDelete
	movl	%eax, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sqlite3DbFree
	testl	%r13d, %r13d
	jne	LBB0_77
## %bb.69:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_disable_simulated_io_errors
	xorl	%eax, %eax
	callq	_sqlite3BeginBenignMalloc
	movl	(%r14), %eax
	testl	%eax, %eax
	movq	%r14, %rdx
	jle	LBB0_79
## %bb.70:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_72
LBB0_71:                                ##   in Loop: Header=BB0_72 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r14
	cmpq	%rcx, %rbx
	jge	LBB0_79
LBB0_72:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rdx), %rcx
	movq	(%rcx,%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_71
## %bb.73:                              ##   in Loop: Header=BB0_72 Depth=1
	movl	$1, %esi
	callq	_sqlite3BtreeCommitPhaseTwo
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	jmp	LBB0_71
LBB0_74:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_75:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_76:
	callq	_sqlite3DbFree
LBB0_77:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_65:
	movq	-72(%rbp), %rdi
	callq	_sqlite3OsCloseFree
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sqlite3OsDelete
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_sqlite3DbFree
	movl	%r12d, %r13d
	jmp	LBB0_77
LBB0_78:
	movl	%eax, %r13d
	movq	-72(%rbp), %rdi
	callq	_sqlite3OsCloseFree
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sqlite3OsDelete
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	jmp	LBB0_76
LBB0_79:
	xorl	%eax, %eax
	movq	%rdx, %rbx
	callq	_sqlite3EndBenignMalloc
	xorl	%eax, %eax
	callq	_enable_simulated_io_errors
	movq	%rbx, %rdi
	callq	_sqlite3VtabCommit
	jmp	LBB0_77
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_PAGER_SYNCHRONOUS_OFF,8,3      ## @PAGER_SYNCHRONOUS_OFF
	.comm	_SQLITE_CONSTRAINT_COMMITHOOK,4,2 ## @SQLITE_CONSTRAINT_COMMITHOOK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-mjXXXXXX9XXz"

	.comm	_SQLITE_NOMEM_BKPT,4,2          ## @SQLITE_NOMEM_BKPT
	.comm	_SQLITE_FULL,4,2                ## @SQLITE_FULL
L_.str.1:                               ## @.str.1
	.asciz	"MJ delete: %s"

L_.str.2:                               ## @.str.2
	.asciz	"MJ collide: %s"

L_.str.3:                               ## @.str.3
	.asciz	"-mj%06X9%02X"

	.comm	_SQLITE_ACCESS_EXISTS,4,2       ## @SQLITE_ACCESS_EXISTS
	.comm	_SQLITE_OPEN_READWRITE,4,2      ## @SQLITE_OPEN_READWRITE
	.comm	_SQLITE_OPEN_CREATE,4,2         ## @SQLITE_OPEN_CREATE
	.comm	_SQLITE_OPEN_EXCLUSIVE,4,2      ## @SQLITE_OPEN_EXCLUSIVE
	.comm	_SQLITE_OPEN_MASTER_JOURNAL,4,2 ## @SQLITE_OPEN_MASTER_JOURNAL
	.comm	_SQLITE_IOCAP_SEQUENTIAL,4,2    ## @SQLITE_IOCAP_SEQUENTIAL
	.comm	_SQLITE_SYNC_NORMAL,4,2         ## @SQLITE_SYNC_NORMAL
	.comm	_SQLITE_BUSY,4,2                ## @SQLITE_BUSY
	.no_dead_strip	_vdbeCommit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdbeCommit
_vdbeCommit:                            ; @vdbeCommit
	.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	x19, x0
	bl	_sqlite3VtabSync
	mov	x22, x0
Lloh0:
	adrp	x28, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x28, [x28, _SQLITE_OK@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_69
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	mov	w23, #0
	mov	w21, #0
Lloh2:
	adrp	x26, _PAGER_SYNCHRONOUS_OFF@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PAGER_SYNCHRONOUS_OFF@GOTPAGEOFF]
	mov	w27, #52
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_sqlite3PagerExclusiveLock
	mov	x22, x0
	mov	x0, x20
	bl	_sqlite3BtreeLeave
	mov	w21, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldr	w8, [x28]
	add	x24, x24, #16
	cmp	w22, w8
	b.ne	LBB0_69
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	cmp	x25, x8
	b.ge	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x24
	ldr	x20, [x8, #8]
	mov	x0, x20
	bl	_sqlite3BtreeIsInTrans
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_sqlite3BtreeEnter
	mov	x0, x20
	bl	_sqlite3BtreePager
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_sqlite3PagerGetJournalMode
	lsr	x8, x27, x0
	tbnz	w8, #0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_sqlite3PagerIsMemdb
	cbnz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x25, #1
	cset	w0, ne
	bl	_assert
	add	w23, w23, #1
	b	LBB0_2
LBB0_10:
	cbz	w21, LBB0_15
; %bb.11:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	w0, [x19, #32]
	blr	x8
	cbz	w0, LBB0_14
; %bb.13:
Lloh4:
	adrp	x8, _SQLITE_CONSTRAINT_COMMITHOOK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_CONSTRAINT_COMMITHOOK@GOTPAGEOFF]
	b	LBB0_30
LBB0_14:
	mov	w22, #0
LBB0_15:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	bl	_sqlite3BtreeGetFilename
	bl	_sqlite3Strlen30
	cmp	w0, #0
	ccmp	w23, #1, #4, ne
	b.gt	LBB0_22
; %bb.16:
	ldr	w20, [x28]
	cmp	w22, w20
	b.ne	LBB0_32
; %bb.17:
	mov	x21, #-1
	mov	w23, #8
	mov	x20, x22
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x23, x23, #16
	cmp	w22, w20
	b.ne	LBB0_32
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	add	x21, x21, #1
	cmp	x21, x8
	b.ge	LBB0_31
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x23]
	mov	x22, x20
	cbz	x0, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x1, #0
	bl	_sqlite3BtreeCommitPhaseOne
	mov	x22, x0
	ldr	w20, [x28]
	b	LBB0_18
LBB0_22:
	ldr	x8, [x19, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	bl	_sqlite3BtreeGetFilename
	mov	x24, x0
	str	xzr, [sp, #24]
	bl	_sqlite3Strlen30
	mov	x23, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_sqlite3MPrintf
	cbz	x0, LBB0_29
; %bb.23:
	mov	x20, x0
	mov	w27, #0
	add	x25, x0, w23, sxtw
Lloh8:
	adrp	x26, l_.str.3@PAGE
Lloh9:
	add	x26, x26, l_.str.3@PAGEOFF
Lloh10:
	adrp	x21, _SQLITE_ACCESS_EXISTS@GOTPAGE
Lloh11:
	ldr	x21, [x21, _SQLITE_ACCESS_EXISTS@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	w27, w27, #1
	add	x1, sp, #16
	mov	w0, #4
	bl	_sqlite3_randomness
	ldr	w8, [sp, #16]
	lsr	w3, w8, #8
	and	w4, w8, #0xff
	mov	w0, #13
	mov	x1, x25
	mov	x2, x26
	bl	_sqlite3_snprintf
	mov	x0, x20
	bl	_sqlite3Strlen30
	add	x8, x20, w0, sxtw
	ldurb	w8, [x8, #-3]
	cmp	w8, #57
	cset	w0, eq
	bl	_assert
	mov	x0, x24
	mov	x1, x20
	bl	_sqlite3FileSuffix3
	ldr	w2, [x21]
	add	x3, sp, #20
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	bl	_sqlite3OsAccess
	mov	x22, x0
	ldr	w23, [x28]
	ldr	w8, [sp, #20]
	cmp	w0, w23
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_40
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	cbz	w27, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w27, #100
	b.hi	LBB0_39
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w27, #1
	b.ne	LBB0_24
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
Lloh12:
	adrp	x8, _SQLITE_FULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SQLITE_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_sqlite3_log
	b	LBB0_24
LBB0_29:
Lloh17:
	adrp	x8, _SQLITE_NOMEM_BKPT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SQLITE_NOMEM_BKPT@GOTPAGEOFF]
LBB0_30:
	ldr	w22, [x8]
	b	LBB0_69
LBB0_31:
	mov	x22, x20
LBB0_32:
	cmp	w22, w20
	b.ne	LBB0_69
; %bb.33:
	mov	x21, #-1
	mov	w23, #8
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	add	x23, x23, #16
	cmp	w22, w20
	b.ne	LBB0_69
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	add	x21, x21, #1
	cmp	x21, x8
	b.ge	LBB0_38
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x23]
	mov	x22, x20
	cbz	x0, LBB0_34
; %bb.37:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	w1, #0
	bl	_sqlite3BtreeCommitPhaseTwo
	mov	x22, x0
	ldr	w20, [x28]
	b	LBB0_34
LBB0_38:
	mov	x0, x19
	bl	_sqlite3VtabCommit
	mov	x22, x20
	b	LBB0_69
LBB0_39:
Lloh19:
	adrp	x8, _SQLITE_FULL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SQLITE_FULL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_sqlite3_log
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	mov	w2, #0
	bl	_sqlite3OsDelete
	ldr	w23, [x28]
LBB0_40:
	cmp	w22, w23
	b.ne	LBB0_42
; %bb.41:
Lloh24:
	adrp	x8, _SQLITE_OPEN_READWRITE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SQLITE_OPEN_READWRITE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _SQLITE_OPEN_CREATE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SQLITE_OPEN_CREATE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh30:
	adrp	x9, _SQLITE_OPEN_EXCLUSIVE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SQLITE_OPEN_EXCLUSIVE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _SQLITE_OPEN_MASTER_JOURNAL@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SQLITE_OPEN_MASTER_JOURNAL@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w3, w8, w9
	add	x2, sp, #24
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	mov	w4, #0
	bl	_sqlite3OsOpenMalloc
	mov	x22, x0
	ldr	w23, [x28]
LBB0_42:
	cmp	w22, w23
	b.ne	LBB0_68
; %bb.43:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_51
; %bb.44:
	mov	x25, #0
	mov	w22, #0
	mov	w26, #8
	b	LBB0_47
LBB0_45:                                ;   in Loop: Header=BB0_47 Depth=1
	add	w8, w22, w0
	add	w22, w8, #1
LBB0_46:                                ;   in Loop: Header=BB0_47 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x26, x26, #16
	cmp	x25, x8
	b.ge	LBB0_51
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x24, [x8, x26]
	mov	x0, x24
	bl	_sqlite3BtreeIsInTrans
	cbz	x0, LBB0_46
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x24
	bl	_sqlite3BtreeGetJournalname
	cbz	x0, LBB0_46
; %bb.49:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x24, x0
	ldrb	w8, [x0]
	cmp	w8, #0
	cset	w0, ne
	bl	_assert
	ldr	x23, [sp, #24]
	mov	x0, x24
	bl	_sqlite3Strlen30
	add	w2, w0, #1
	mov	x0, x23
	mov	x1, x24
	mov	x3, x22
	bl	_sqlite3OsWrite
	mov	x23, x0
	mov	x0, x24
	bl	_sqlite3Strlen30
	ldr	w8, [x28]
	cmp	w23, w8
	b.eq	LBB0_45
; %bb.50:
	ldr	x0, [sp, #24]
	bl	_sqlite3OsCloseFree
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	mov	w2, #0
	bl	_sqlite3OsDelete
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3DbFree
	mov	x22, x23
	b	LBB0_69
LBB0_51:
	ldr	x0, [sp, #24]
	bl	_sqlite3OsDeviceCharacteristics
Lloh36:
	adrp	x8, _SQLITE_IOCAP_SEQUENTIAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SQLITE_IOCAP_SEQUENTIAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_53
; %bb.52:
	ldr	w23, [x28]
	ldr	x0, [sp, #24]
Lloh39:
	adrp	x8, _SQLITE_SYNC_NORMAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SQLITE_SYNC_NORMAL@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	bl	_sqlite3OsSync
	cmp	w23, w0
	b.ne	LBB0_67
LBB0_53:
	ldr	w8, [x28]
	cmp	w23, w8
	b.ne	LBB0_59
; %bb.54:
	mov	x21, #-1
	mov	w24, #8
	b	LBB0_56
LBB0_55:                                ;   in Loop: Header=BB0_56 Depth=1
	add	x24, x24, #16
	cmp	w22, w23
	b.ne	LBB0_60
LBB0_56:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	add	x21, x21, #1
	cmp	x21, x8
	b.ge	LBB0_59
; %bb.57:                               ;   in Loop: Header=BB0_56 Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x24]
	mov	x22, x23
	cbz	x0, LBB0_55
; %bb.58:                               ;   in Loop: Header=BB0_56 Depth=1
	mov	x1, x20
	bl	_sqlite3BtreeCommitPhaseOne
	mov	x22, x0
	ldr	w23, [x28]
	b	LBB0_55
LBB0_59:
	mov	x22, x23
LBB0_60:
	ldr	x0, [sp, #24]
	bl	_sqlite3OsCloseFree
Lloh42:
	adrp	x8, _SQLITE_BUSY@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SQLITE_BUSY@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, ne
	bl	_assert
	ldr	w8, [x28]
	cmp	w22, w8
	b.ne	LBB0_68
; %bb.61:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	mov	w2, #1
	bl	_sqlite3OsDelete
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3DbFree
	cbnz	w22, LBB0_69
; %bb.62:
	bl	_disable_simulated_io_errors
	bl	_sqlite3BeginBenignMalloc
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_70
; %bb.63:
	mov	x20, #0
	mov	w21, #8
	b	LBB0_65
LBB0_64:                                ;   in Loop: Header=BB0_65 Depth=1
	add	x20, x20, #1
	add	x21, x21, #16
	cmp	x20, w8, sxtw
	b.ge	LBB0_70
LBB0_65:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x0, [x9, x21]
	cbz	x0, LBB0_64
; %bb.66:                               ;   in Loop: Header=BB0_65 Depth=1
	mov	w1, #1
	bl	_sqlite3BtreeCommitPhaseTwo
	ldr	w8, [x19]
	b	LBB0_64
LBB0_67:
	mov	x22, x0
	ldr	x0, [sp, #24]
	bl	_sqlite3OsCloseFree
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	mov	w2, #0
	bl	_sqlite3OsDelete
LBB0_68:
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3DbFree
LBB0_69:
	mov	x0, x22
	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
LBB0_70:
	bl	_sqlite3EndBenignMalloc
	bl	_enable_simulated_io_errors
	mov	x0, x19
	bl	_sqlite3VtabCommit
	mov	w22, #0
	b	LBB0_69
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PAGER_SYNCHRONOUS_OFF,8,3      ; @PAGER_SYNCHRONOUS_OFF
	.comm	_SQLITE_CONSTRAINT_COMMITHOOK,4,2 ; @SQLITE_CONSTRAINT_COMMITHOOK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-mjXXXXXX9XXz"

	.comm	_SQLITE_NOMEM_BKPT,4,2          ; @SQLITE_NOMEM_BKPT
	.comm	_SQLITE_FULL,4,2                ; @SQLITE_FULL
l_.str.1:                               ; @.str.1
	.asciz	"MJ delete: %s"

l_.str.2:                               ; @.str.2
	.asciz	"MJ collide: %s"

l_.str.3:                               ; @.str.3
	.asciz	"-mj%06X9%02X"

	.comm	_SQLITE_ACCESS_EXISTS,4,2       ; @SQLITE_ACCESS_EXISTS
	.comm	_SQLITE_OPEN_READWRITE,4,2      ; @SQLITE_OPEN_READWRITE
	.comm	_SQLITE_OPEN_CREATE,4,2         ; @SQLITE_OPEN_CREATE
	.comm	_SQLITE_OPEN_EXCLUSIVE,4,2      ; @SQLITE_OPEN_EXCLUSIVE
	.comm	_SQLITE_OPEN_MASTER_JOURNAL,4,2 ; @SQLITE_OPEN_MASTER_JOURNAL
	.comm	_SQLITE_IOCAP_SEQUENTIAL,4,2    ; @SQLITE_IOCAP_SEQUENTIAL
	.comm	_SQLITE_SYNC_NORMAL,4,2         ; @SQLITE_SYNC_NORMAL
	.comm	_SQLITE_BUSY,4,2                ; @SQLITE_BUSY
	.no_dead_strip	_vdbeCommit
.subsections_via_symbols
