	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_file_control           ## -- Begin function sqlite3_file_control
	.p2align	4, 0x90
_sqlite3_file_control:                  ## @sqlite3_file_control
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_SQLITE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%rdi), %edi
	callq	_sqlite3_mutex_enter
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sqlite3DbNameToBtree
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_sqlite3BtreeEnter
	movq	%r15, %rdi
	callq	_sqlite3BtreePager
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r13, %rdi
	callq	_sqlite3PagerFile
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_SQLITE_FCNTL_FILE_POINTER@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	jmp	LBB0_3
LBB0_4:
	movq	_SQLITE_FCNTL_VFS_POINTER@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_7
## %bb.5:
	movq	%r13, %rdi
	callq	_sqlite3PagerVfs
	jmp	LBB0_6
LBB0_7:
	movq	_SQLITE_FCNTL_JOURNAL_POINTER@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_sqlite3PagerJrnlFile
LBB0_6:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_3:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_12:
	movq	%r15, %rdi
	callq	_sqlite3BtreeLeave
LBB0_13:
	movl	(%r14), %edi
	callq	_sqlite3_mutex_leave
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_SQLITE_FCNTL_DATA_VERSION@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_sqlite3PagerDataVersion
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_3
LBB0_11:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_sqlite3OsFileControl
	movl	%eax, %r13d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_ERROR,4,2               ## @SQLITE_ERROR
	.comm	_SQLITE_FCNTL_FILE_POINTER,4,2  ## @SQLITE_FCNTL_FILE_POINTER
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_FCNTL_VFS_POINTER,4,2   ## @SQLITE_FCNTL_VFS_POINTER
	.comm	_SQLITE_FCNTL_JOURNAL_POINTER,4,2 ## @SQLITE_FCNTL_JOURNAL_POINTER
	.comm	_SQLITE_FCNTL_DATA_VERSION,4,2  ## @SQLITE_FCNTL_DATA_VERSION
	.comm	_SQLITE_MISUSE_BKPT,4,2         ## @SQLITE_MISUSE_BKPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_file_control           ; -- Begin function sqlite3_file_control
	.p2align	2
_sqlite3_file_control:                  ; @sqlite3_file_control
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SQLITE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w0, [x0]
	bl	_sqlite3_mutex_enter
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3DbNameToBtree
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	bl	_sqlite3BtreeEnter
	mov	x0, x20
	bl	_sqlite3BtreePager
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x23
	bl	_sqlite3PagerFile
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh3:
	adrp	x8, _SQLITE_FCNTL_FILE_POINTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_FCNTL_FILE_POINTER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.2:
	str	x24, [x21]
	b	LBB0_9
LBB0_3:
Lloh6:
	adrp	x8, _SQLITE_FCNTL_VFS_POINTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_FCNTL_VFS_POINTER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x23
	bl	_sqlite3PagerVfs
	str	x0, [x21]
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _SQLITE_FCNTL_JOURNAL_POINTER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SQLITE_FCNTL_JOURNAL_POINTER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x23
	bl	_sqlite3PagerJrnlFile
	str	x0, [x21]
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _SQLITE_FCNTL_DATA_VERSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SQLITE_FCNTL_DATA_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_12
; %bb.8:
	mov	x0, x23
	bl	_sqlite3PagerDataVersion
	str	w0, [x21]
LBB0_9:
Lloh15:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
LBB0_10:
	mov	x0, x20
	bl	_sqlite3BtreeLeave
LBB0_11:
	ldr	w0, [x19]
	bl	_sqlite3_mutex_leave
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	_sqlite3OsFileControl
	mov	x23, x0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_ERROR,4,2               ; @SQLITE_ERROR
	.comm	_SQLITE_FCNTL_FILE_POINTER,4,2  ; @SQLITE_FCNTL_FILE_POINTER
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_FCNTL_VFS_POINTER,4,2   ; @SQLITE_FCNTL_VFS_POINTER
	.comm	_SQLITE_FCNTL_JOURNAL_POINTER,4,2 ; @SQLITE_FCNTL_JOURNAL_POINTER
	.comm	_SQLITE_FCNTL_DATA_VERSION,4,2  ; @SQLITE_FCNTL_DATA_VERSION
	.comm	_SQLITE_MISUSE_BKPT,4,2         ; @SQLITE_MISUSE_BKPT
.subsections_via_symbols
