	.file	"extr_sqlite3.c_unixClose.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	unixClose, @function
unixClose:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	verifyDbFile@PLT
	mov	esi, DWORD PTR NO_LOCK[rip]
	mov	rdi, rbp
	call	unixUnlock@PLT
	xor	eax, eax
	call	unixEnterMutex@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, 1
	cmp	QWORD PTR [rax], 0
	jg	.L2
	xor	edi, edi
	cmp	QWORD PTR 8[rax], 0
	sete	dil
.L2:
	call	assert@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	ALWAYS@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L11
.L3:
	mov	rdi, rbp
	call	releaseInodeInfo@PLT
	mov	rdi, rbp
	call	closeUnixFile@PLT
	mov	r12d, eax
	xor	eax, eax
	call	unixLeaveMutex@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	setPendingFd@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	unixClose, .-unixClose
	.comm	SQLITE_OK,4,4
	.comm	NO_LOCK,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_unixClose.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	unixClose, %function
unixClose:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	verifyDbFile
	ldr	r3, .L14
	mov	r0, r4
	ldr	r1, [r3]
	bl	unixUnlock
	bl	unixEnterMutex
	ldr	r3, [r4]
	ldr	r2, [r3]
	cmp	r2, #0
	ldrle	r0, [r3, #4]
	movgt	r0, #1
	clzle	r0, r0
	lsrle	r0, r0, #5
	bl	assert
	ldr	r0, [r4]
	bl	ALWAYS
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
.L3:
	mov	r0, r4
	bl	releaseInodeInfo
	mov	r0, r4
	bl	closeUnixFile
	mov	r4, r0
	bl	unixLeaveMutex
	mov	r0, r4
	pop	{r4, pc}
.L13:
	mov	r0, r4
	bl	setPendingFd
	b	.L3
.L15:
	.align	2
.L14:
	.word	NO_LOCK
	.size	unixClose, .-unixClose
	.comm	SQLITE_OK,4,4
	.comm	NO_LOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
