	.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), %r15d
	movl	(%rdi), %edi
	callq	_sqlite3_mutex_enter
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sqlite3DbNameToBtree
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_sqlite3BtreeEnter
	movq	%r13, %rdi
	callq	_sqlite3BtreePager
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %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_3
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_sqlite3OsFileControl
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_5:
	movq	_SQLITE_NOTFOUND@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r15d
LBB0_7:
	movq	%r13, %rdi
	callq	_sqlite3BtreeLeave
LBB0_8:
	movl	(%r14), %edi
	callq	_sqlite3_mutex_leave
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_NOTFOUND,4,2            ## @SQLITE_NOTFOUND
.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_8
; %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	x23, 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	x23, [x21]
Lloh6:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_sqlite3OsFileControl
	mov	x23, x0
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _SQLITE_NOTFOUND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SQLITE_NOTFOUND@GOTPAGEOFF]
LBB0_6:
	ldr	w23, [x8]
LBB0_7:
	mov	x0, x20
	bl	_sqlite3BtreeLeave
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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_NOTFOUND,4,2            ; @SQLITE_NOTFOUND
.subsections_via_symbols
