	.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, %r12
	callq	_sqlite3VtabSync
	movl	%eax, %r15d
	movq	_SQLITE_OK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_75
## %bb.1:
	xorl	%ebx, %ebx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r12
	movq	%r14, %r13
	incq	%rbx
	cmpl	(%r14), %r15d
	jne	LBB0_75
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r14
	movq	%r12, %r13
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %r12
	movq	%r12, %rdi
	callq	_sqlite3BtreeIsInTrans
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	cmpq	$1, %rbx
	setne	%al
	addl	%eax, -56(%rbp)                 ## 4-byte Folded Spill
	movq	%r12, %rdi
	callq	_sqlite3BtreeEnter
	movq	%r12, %rdi
	callq	_sqlite3BtreePager
	movl	%eax, %edi
	callq	_sqlite3PagerExclusiveLock
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_sqlite3BtreeLeave
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_6:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.7:
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.8:
	movl	32(%r12), %edi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_SQLITE_CONSTRAINT_COMMITHOOK@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	callq	_sqlite3BtreeGetFilename
	movq	%rax, %rdi
	callq	_sqlite3Strlen30
	testl	%eax, %eax
	je	LBB0_21
## %bb.12:
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_21
## %bb.13:
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rdi
	callq	_sqlite3BtreeGetFilename
	movq	%rax, %rbx
	movq	$0, -64(%rbp)
	movq	%rax, %rdi
	callq	_sqlite3Strlen30
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_sqlite3MPrintf
	testq	%rax, %rax
	je	LBB0_27
## %bb.14:
	movq	%rax, %r15
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %r12
	addq	%rax, %r12
	xorl	%ebx, %ebx
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$100, %ebx
	ja	LBB0_37
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$1, %ebx
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SQLITE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_sqlite3_log
LBB0_19:                                ##   in Loop: Header=BB0_15 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	%r12, %rsi
	leaq	L_.str.3(%rip), %rdx
	callq	_sqlite3_snprintf
	movq	%r15, %rdi
	callq	_sqlite3Strlen30
	cltq
	xorl	%edi, %edi
	cmpb	$57, -3(%rax,%r15)
	sete	%dil
	callq	_assert
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_sqlite3FileSuffix3
	movq	_SQLITE_ACCESS_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	leaq	-88(%rbp), %rcx
	callq	_sqlite3OsAccess
	movl	(%r13), %r14d
	cmpl	%r14d, %eax
	jne	LBB0_38
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	cmpl	$0, -88(%rbp)
	jne	LBB0_15
	jmp	LBB0_38
LBB0_21:
	movl	(%r13), %r14d
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r14d, %r15d
	jne	LBB0_30
## %bb.22:
	xorl	%ebx, %ebx
	movl	%r15d, %r14d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	cmpl	%r14d, %r15d
	jne	LBB0_30
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	%r14d, %r15d
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	xorl	%esi, %esi
	callq	_sqlite3BtreeCommitPhaseOne
	movl	%eax, %r15d
	movl	(%r13), %r14d
	jmp	LBB0_23
LBB0_27:
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %r15d
	jmp	LBB0_75
LBB0_29:
	movl	%r14d, %r15d
LBB0_30:
	cmpl	%r14d, %r15d
	jne	LBB0_75
## %bb.31:
	xorl	%ebx, %ebx
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_33 Depth=1
	incq	%rbx
	cmpl	%r14d, %r15d
	jne	LBB0_75
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	%r14d, %r15d
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.35:                              ##   in Loop: Header=BB0_33 Depth=1
	xorl	%esi, %esi
	callq	_sqlite3BtreeCommitPhaseTwo
	movl	%eax, %r15d
	movl	(%r13), %r14d
	jmp	LBB0_32
LBB0_36:
	movq	%r12, %rdi
	callq	_sqlite3VtabCommit
	movl	%r14d, %r15d
	jmp	LBB0_75
LBB0_37:
	movq	_SQLITE_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movl	%eax, %ebx
	callq	_sqlite3_log
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_sqlite3OsDelete
	movl	%ebx, %eax
	movl	(%r13), %r14d
LBB0_38:
	cmpl	%r14d, %eax
	jne	LBB0_40
## %bb.39:
	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	-64(%rbp), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_sqlite3OsOpenMalloc
	movl	(%r13), %r14d
LBB0_40:
	cmpl	%r14d, %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_52
## %bb.41:
	cmpl	$0, (%r12)
	jle	LBB0_56
## %bb.42:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_45 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_45 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jge	LBB0_53
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%r15,8), %r12
	movq	%r12, %rdi
	callq	_sqlite3BtreeIsInTrans
	testq	%rax, %rax
	je	LBB0_43
## %bb.46:                              ##   in Loop: Header=BB0_45 Depth=1
	movq	%r12, %rdi
	callq	_sqlite3BtreeGetJournalname
	testq	%rax, %rax
	je	LBB0_51
## %bb.47:                              ##   in Loop: Header=BB0_45 Depth=1
	movq	%rax, %r13
	xorl	%edi, %edi
	cmpb	$0, (%rax)
	setne	%dil
	callq	_assert
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movl	$1, %ecx
	jne	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_45 Depth=1
	movq	%r12, %rdi
	callq	_sqlite3BtreeSyncDisabled
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
LBB0_49:                                ##   in Loop: Header=BB0_45 Depth=1
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %r14
	movq	%r13, %rdi
	callq	_sqlite3Strlen30
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %ecx
	callq	_sqlite3OsWrite
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_sqlite3Strlen30
                                        ## kill: def $eax killed $eax def $rax
	movq	_SQLITE_OK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %r14d
	jne	LBB0_71
## %bb.50:                              ##   in Loop: Header=BB0_45 Depth=1
	addl	%eax, %ebx
	incl	%ebx
	jmp	LBB0_43
LBB0_51:                                ##   in Loop: Header=BB0_45 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	_SQLITE_OK@GOTPCREL(%rip), %r13
	jmp	LBB0_44
LBB0_52:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %r15d
	callq	_sqlite3DbFree
	jmp	LBB0_75
LBB0_53:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_56
## %bb.54:
	movq	-64(%rbp), %rdi
	callq	_sqlite3OsDeviceCharacteristics
	movq	_SQLITE_IOCAP_SEQUENTIAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_56
## %bb.55:
	movl	(%r13), %r14d
	movq	-64(%rbp), %rdi
	movq	_SQLITE_SYNC_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sqlite3OsSync
	cmpl	%eax, %r14d
	jne	LBB0_73
LBB0_56:
	cmpl	(%r13), %r14d
	jne	LBB0_63
## %bb.57:
	xorl	%ebx, %ebx
	jmp	LBB0_59
LBB0_58:                                ##   in Loop: Header=BB0_59 Depth=1
	incq	%rbx
	cmpl	%r14d, %eax
	jne	LBB0_64
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_63
## %bb.60:                              ##   in Loop: Header=BB0_59 Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	%r14d, %eax
	testq	%rdi, %rdi
	je	LBB0_58
## %bb.61:                              ##   in Loop: Header=BB0_59 Depth=1
	movq	%r15, %rsi
	callq	_sqlite3BtreeCommitPhaseOne
	movl	(%r13), %r14d
	jmp	LBB0_58
LBB0_63:
	movl	%r14d, %eax
LBB0_64:
	movq	-64(%rbp), %rdi
	movl	%eax, %ebx
	callq	_sqlite3OsCloseFree
	movq	_SQLITE_BUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	setne	%dil
	callq	_assert
	movl	%ebx, %eax
	cmpl	(%r13), %ebx
	jne	LBB0_74
## %bb.65:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_sqlite3OsDelete
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sqlite3DbFree
	movl	%ebx, %r15d
	testl	%ebx, %ebx
	jne	LBB0_75
## %bb.66:
	xorl	%eax, %eax
	callq	_disable_simulated_io_errors
	xorl	%eax, %eax
	callq	_sqlite3BeginBenignMalloc
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_72
## %bb.67:
	xorl	%ebx, %ebx
	jmp	LBB0_69
LBB0_68:                                ##   in Loop: Header=BB0_69 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_72
LBB0_69:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_68
## %bb.70:                              ##   in Loop: Header=BB0_69 Depth=1
	movl	$1, %esi
	callq	_sqlite3BtreeCommitPhaseTwo
	movl	(%r12), %eax
	jmp	LBB0_68
LBB0_71:
	movq	-64(%rbp), %rdi
	callq	_sqlite3OsCloseFree
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sqlite3OsDelete
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_sqlite3DbFree
	movl	%r14d, %r15d
	jmp	LBB0_75
LBB0_72:
	xorl	%eax, %eax
	callq	_sqlite3EndBenignMalloc
	xorl	%eax, %eax
	callq	_enable_simulated_io_errors
	movq	%r12, %rdi
	callq	_sqlite3VtabCommit
	xorl	%r15d, %r15d
	jmp	LBB0_75
LBB0_73:
	movq	-64(%rbp), %rdi
	movl	%eax, %ebx
	callq	_sqlite3OsCloseFree
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_sqlite3OsDelete
LBB0_74:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sqlite3DbFree
	movl	%ebx, %r15d
LBB0_75:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_CONSTRAINT_COMMITHOOK,4,2 ## @SQLITE_CONSTRAINT_COMMITHOOK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-mjXXXXXX9XXz"

	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.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_70
; %bb.1:
	mov	x23, #0
	mov	w21, #0
	mov	w24, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	w8, [x28]
	cmp	w22, w8
	b.ne	LBB0_70
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	x20, [x8, x23, lsl #3]
	mov	x0, x20
	bl	_sqlite3BtreeIsInTrans
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x23, #1
	cinc	w21, w21, ne
	mov	x0, x20
	bl	_sqlite3BtreeEnter
	mov	x0, x20
	bl	_sqlite3BtreePager
	bl	_sqlite3PagerExclusiveLock
	mov	x22, x0
	mov	x0, x20
	bl	_sqlite3BtreeLeave
	mov	w24, #1
	b	LBB0_2
LBB0_6:
	cbz	w24, LBB0_11
; %bb.7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	w0, [x19, #32]
	blr	x8
	cbz	w0, LBB0_10
; %bb.9:
Lloh2:
	adrp	x8, _SQLITE_CONSTRAINT_COMMITHOOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_CONSTRAINT_COMMITHOOK@GOTPAGEOFF]
	b	LBB0_26
LBB0_10:
	mov	w22, #0
LBB0_11:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_sqlite3BtreeGetFilename
	bl	_sqlite3Strlen30
	cmp	w0, #0
	ccmp	w21, #1, #4, ne
	b.gt	LBB0_18
; %bb.12:
	ldr	w20, [x28]
	cmp	w22, w20
	b.ne	LBB0_28
; %bb.13:
	mov	x21, #0
	mov	x20, x22
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x21, x21, #1
	cmp	w22, w20
	b.ne	LBB0_28
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_27
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x21, lsl #3]
	mov	x22, x20
	cbz	x0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x1, #0
	bl	_sqlite3BtreeCommitPhaseOne
	mov	x22, x0
	ldr	w20, [x28]
	b	LBB0_14
LBB0_18:
	ldr	x8, [x19, #24]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_sqlite3BtreeGetFilename
	mov	x24, x0
	str	xzr, [sp, #24]
	bl	_sqlite3Strlen30
	mov	x23, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_sqlite3MPrintf
	cbz	x0, LBB0_25
; %bb.19:
	mov	x20, x0
	mov	w27, #0
	add	x25, x0, w23, sxtw
Lloh6:
	adrp	x26, l_.str.3@PAGE
Lloh7:
	add	x26, x26, l_.str.3@PAGEOFF
Lloh8:
	adrp	x21, _SQLITE_ACCESS_EXISTS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SQLITE_ACCESS_EXISTS@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 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_36
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	cbz	w27, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	w27, #100
	b.hi	LBB0_35
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	w27, #1
	b.ne	LBB0_20
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh10:
	adrp	x8, _SQLITE_FULL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_FULL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_sqlite3_log
	b	LBB0_20
LBB0_25:
Lloh15:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
LBB0_26:
	ldr	w22, [x8]
	b	LBB0_70
LBB0_27:
	mov	x22, x20
LBB0_28:
	cmp	w22, w20
	b.ne	LBB0_70
; %bb.29:
	mov	x21, #0
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x21, x21, #1
	cmp	w22, w20
	b.ne	LBB0_70
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x21, lsl #3]
	mov	x22, x20
	cbz	x0, LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	w1, #0
	bl	_sqlite3BtreeCommitPhaseTwo
	mov	x22, x0
	ldr	w20, [x28]
	b	LBB0_30
LBB0_34:
	mov	x0, x19
	bl	_sqlite3VtabCommit
	mov	x22, x20
	b	LBB0_70
LBB0_35:
Lloh17:
	adrp	x8, _SQLITE_FULL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SQLITE_FULL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	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_36:
	cmp	w22, w23
	b.ne	LBB0_38
; %bb.37:
Lloh22:
	adrp	x8, _SQLITE_OPEN_READWRITE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SQLITE_OPEN_READWRITE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _SQLITE_OPEN_CREATE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SQLITE_OPEN_CREATE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _SQLITE_OPEN_EXCLUSIVE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SQLITE_OPEN_EXCLUSIVE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _SQLITE_OPEN_MASTER_JOURNAL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SQLITE_OPEN_MASTER_JOURNAL@GOTPAGEOFF]
Lloh33:
	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_38:
	cmp	w22, w23
	b.ne	LBB0_69
; %bb.39:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_52
; %bb.40:
	mov	x26, #0
	mov	w22, #0
	mov	w27, #0
	b	LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19]
	cmp	x26, x8
	b.ge	LBB0_49
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x25, [x8, x26, lsl #3]
	mov	x0, x25
	bl	_sqlite3BtreeIsInTrans
	cbz	x0, LBB0_41
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=1
	mov	x0, x25
	bl	_sqlite3BtreeGetJournalname
	cbz	x0, LBB0_41
; %bb.44:                               ;   in Loop: Header=BB0_42 Depth=1
	mov	x24, x0
	ldrb	w8, [x0]
	cmp	w8, #0
	cset	w0, ne
	bl	_assert
	cbz	w27, LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_42 Depth=1
	mov	w27, #1
	b	LBB0_47
LBB0_46:                                ;   in Loop: Header=BB0_42 Depth=1
	mov	x0, x25
	bl	_sqlite3BtreeSyncDisabled
	cmp	w0, #0
	cset	w27, eq
LBB0_47:                                ;   in Loop: Header=BB0_42 Depth=1
	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.ne	LBB0_66
; %bb.48:                               ;   in Loop: Header=BB0_42 Depth=1
	add	w8, w22, w0
	add	w22, w8, #1
	b	LBB0_41
LBB0_49:
	cbz	w27, LBB0_52
; %bb.50:
	ldr	x0, [sp, #24]
	bl	_sqlite3OsDeviceCharacteristics
Lloh34:
	adrp	x8, _SQLITE_IOCAP_SEQUENTIAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SQLITE_IOCAP_SEQUENTIAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_52
; %bb.51:
	ldr	w23, [x28]
	ldr	x0, [sp, #24]
Lloh37:
	adrp	x8, _SQLITE_SYNC_NORMAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SQLITE_SYNC_NORMAL@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_sqlite3OsSync
	cmp	w23, w0
	b.ne	LBB0_68
LBB0_52:
	ldr	w8, [x28]
	cmp	w23, w8
	b.ne	LBB0_58
; %bb.53:
	mov	x21, #0
	b	LBB0_55
LBB0_54:                                ;   in Loop: Header=BB0_55 Depth=1
	add	x21, x21, #1
	cmp	w22, w23
	b.ne	LBB0_59
LBB0_55:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_58
; %bb.56:                               ;   in Loop: Header=BB0_55 Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x21, lsl #3]
	mov	x22, x23
	cbz	x0, LBB0_54
; %bb.57:                               ;   in Loop: Header=BB0_55 Depth=1
	mov	x1, x20
	bl	_sqlite3BtreeCommitPhaseOne
	mov	x22, x0
	ldr	w23, [x28]
	b	LBB0_54
LBB0_58:
	mov	x22, x23
LBB0_59:
	ldr	x0, [sp, #24]
	bl	_sqlite3OsCloseFree
Lloh40:
	adrp	x8, _SQLITE_BUSY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SQLITE_BUSY@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, ne
	bl	_assert
	ldr	w8, [x28]
	cmp	w22, w8
	b.ne	LBB0_69
; %bb.60:
	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_70
; %bb.61:
	bl	_disable_simulated_io_errors
	bl	_sqlite3BeginBenignMalloc
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_67
; %bb.62:
	mov	x20, #0
	b	LBB0_64
LBB0_63:                                ;   in Loop: Header=BB0_64 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_67
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_63
; %bb.65:                               ;   in Loop: Header=BB0_64 Depth=1
	mov	w1, #1
	bl	_sqlite3BtreeCommitPhaseTwo
	ldr	w8, [x19]
	b	LBB0_63
LBB0_66:
	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_70
LBB0_67:
	bl	_sqlite3EndBenignMalloc
	bl	_enable_simulated_io_errors
	mov	x0, x19
	bl	_sqlite3VtabCommit
	mov	w22, #0
	b	LBB0_70
LBB0_68:
	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_69:
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3DbFree
LBB0_70:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_CONSTRAINT_COMMITHOOK,4,2 ; @SQLITE_CONSTRAINT_COMMITHOOK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-mjXXXXXX9XXz"

	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.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
