	.file	"extr_sqlite3.c_sqlite3_file_control.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sqlite3_file_control
	.type	sqlite3_file_control, @function
sqlite3_file_control:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rdi]
	mov	r14d, DWORD PTR SQLITE_ERROR[rip]
	call	sqlite3_mutex_enter@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	sqlite3DbNameToBtree@PLT
	test	rax, rax
	je	.L2
	mov	rbp, rax
	mov	rdi, rax
	call	sqlite3BtreeEnter@PLT
	mov	rdi, rbp
	call	sqlite3BtreePager@PLT
	xor	edi, edi
	test	rax, rax
	mov	r14, rax
	setne	dil
	call	assert@PLT
	mov	rdi, r14
	call	sqlite3PagerFile@PLT
	xor	edi, edi
	test	rax, rax
	mov	r15, rax
	setne	dil
	call	assert@PLT
	cmp	DWORD PTR SQLITE_FCNTL_FILE_POINTER[rip], r12d
	je	.L12
	cmp	DWORD PTR SQLITE_FCNTL_VFS_POINTER[rip], r12d
	je	.L13
	cmp	DWORD PTR SQLITE_FCNTL_JOURNAL_POINTER[rip], r12d
	je	.L14
	mov	rdx, r13
	mov	esi, r12d
	mov	rdi, r15
	call	sqlite3OsFileControl@PLT
	mov	r14d, eax
.L4:
	mov	rdi, rbp
	call	sqlite3BtreeLeave@PLT
.L2:
	mov	edi, DWORD PTR [rbx]
	call	sqlite3_mutex_leave@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	QWORD PTR 0[r13], r15
	mov	r14d, DWORD PTR SQLITE_OK[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r14
	call	sqlite3PagerJrnlFile@PLT
	mov	r14d, DWORD PTR SQLITE_OK[rip]
	mov	QWORD PTR 0[r13], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r14
	call	sqlite3PagerVfs@PLT
	mov	r14d, DWORD PTR SQLITE_OK[rip]
	mov	QWORD PTR 0[r13], rax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	sqlite3_file_control, .-sqlite3_file_control
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_MISUSE_BKPT,4,4
	.comm	SQLITE_FCNTL_VFS_POINTER,4,4
	.comm	SQLITE_FCNTL_JOURNAL_POINTER,4,4
	.comm	SQLITE_FCNTL_FILE_POINTER,4,4
	.comm	SQLITE_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sqlite3.c_sqlite3_file_control.c"
	.text
	.align	2
	.global	sqlite3_file_control
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3_file_control, %function
sqlite3_file_control:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	ip, .L15
	ldr	r0, [r0]
	mov	r6, r2
	mov	r7, r3
	ldr	r8, [ip]
	bl	sqlite3_mutex_enter
	mov	r1, r5
	mov	r0, r4
	bl	sqlite3DbNameToBtree
	subs	r5, r0, #0
	beq	.L2
	bl	sqlite3BtreeEnter
	mov	r0, r5
	bl	sqlite3BtreePager
	mov	r8, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	mov	r0, r8
	bl	sqlite3PagerFile
	mov	r9, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L12
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L13
	ldr	r3, .L15+12
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L14
	mov	r2, r7
	mov	r1, r6
	mov	r0, r9
	bl	sqlite3OsFileControl
	mov	r8, r0
.L4:
	mov	r0, r5
	bl	sqlite3BtreeLeave
.L2:
	ldr	r0, [r4]
	bl	sqlite3_mutex_leave
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r3, .L15+16
	str	r9, [r7]
	ldr	r8, [r3]
	b	.L4
.L14:
	mov	r0, r8
	bl	sqlite3PagerJrnlFile
	ldr	r3, .L15+16
	str	r0, [r7]
	ldr	r8, [r3]
	b	.L4
.L13:
	mov	r0, r8
	bl	sqlite3PagerVfs
	ldr	r3, .L15+16
	str	r0, [r7]
	ldr	r8, [r3]
	b	.L4
.L16:
	.align	2
.L15:
	.word	SQLITE_ERROR
	.word	SQLITE_FCNTL_FILE_POINTER
	.word	SQLITE_FCNTL_VFS_POINTER
	.word	SQLITE_FCNTL_JOURNAL_POINTER
	.word	SQLITE_OK
	.size	sqlite3_file_control, .-sqlite3_file_control
	.comm	SQLITE_OK,4,4
	.comm	SQLITE_MISUSE_BKPT,4,4
	.comm	SQLITE_FCNTL_VFS_POINTER,4,4
	.comm	SQLITE_FCNTL_JOURNAL_POINTER,4,4
	.comm	SQLITE_FCNTL_FILE_POINTER,4,4
	.comm	SQLITE_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
