	.file	"extr_sqlite3.c_clearAllSharedCacheTableLocks.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clearAllSharedCacheTableLocks, @function
clearAllSharedCacheTableLocks:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 48[rdi]
	call	sqlite3BtreeHoldsMutex@PLT
	mov	edi, eax
	lea	r12, 16[rbx]
	call	assert@PLT
	cmp	QWORD PTR 40[r13], 0
	mov	edi, 1
	jne	.L2
	xor	edi, edi
	cmp	QWORD PTR 16[rbx], 0
	sete	dil
.L2:
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 0[r13], 0
	setg	dil
	call	assert@PLT
	mov	rbp, QWORD PTR 16[rbx]
	test	rbp, rbp
	jne	.L8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	lea	r12, 16[rbp]
.L7:
	mov	rbp, QWORD PTR [r12]
	test	rbp, rbp
	je	.L3
.L8:
	mov	eax, DWORD PTR [rbx]
	mov	edi, 1
	test	DWORD PTR BTS_EXCLUSIVE[rip], eax
	je	.L4
	xor	edi, edi
	mov	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR 8[rbx], rax
	sete	dil
.L4:
	call	assert@PLT
	mov	rax, QWORD PTR 24[rbp]
	xor	edi, edi
	mov	rdx, QWORD PTR 0[rbp]
	cmp	QWORD PTR [rax], rdx
	setge	dil
	call	assert@PLT
	cmp	QWORD PTR 24[rbp], r13
	jne	.L5
	mov	rax, QWORD PTR 16[rbp]
	cmp	DWORD PTR 8[rbp], 1
	mov	edi, 1
	mov	QWORD PTR [r12], rax
	jne	.L6
	lea	rax, 8[r13]
	xor	edi, edi
	cmp	rbp, rax
	sete	dil
.L6:
	call	assert@PLT
	cmp	DWORD PTR 8[rbp], 1
	je	.L7
	mov	rdi, rbp
	call	sqlite3_free@PLT
	mov	rbp, QWORD PTR [r12]
	test	rbp, rbp
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [rbx]
	mov	edi, 1
	test	DWORD PTR BTS_PENDING[rip], eax
	je	.L9
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], 0
	setne	dil
.L9:
	call	assert@PLT
	cmp	QWORD PTR 8[rbx], r13
	je	.L25
	cmp	DWORD PTR 4[rbx], 2
	je	.L26
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	eax, DWORD PTR BTS_PENDING[rip]
	not	eax
	and	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	eax, DWORD PTR BTS_EXCLUSIVE[rip]
	or	eax, DWORD PTR BTS_PENDING[rip]
	mov	QWORD PTR 8[rbx], 0
	not	eax
	and	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	clearAllSharedCacheTableLocks, .-clearAllSharedCacheTableLocks
	.comm	BTS_PENDING,4,4
	.comm	BTS_EXCLUSIVE,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_clearAllSharedCacheTableLocks.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clearAllSharedCacheTableLocks, %function
clearAllSharedCacheTableLocks:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r5, [r0, #24]
	bl	sqlite3BtreeHoldsMutex
	bl	assert
	ldr	r3, [r7, #20]
	add	r6, r5, #12
	cmp	r3, #0
	ldreq	r0, [r5, #12]
	movne	r0, #1
	clzeq	r0, r0
	lsreq	r0, r0, #5
	bl	assert
	ldr	r0, [r7]
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	ldr	r4, [r5, #12]
	cmp	r4, #0
	beq	.L3
	ldr	r8, .L26
	add	r9, r7, #4
	b	.L8
.L7:
	ldr	r4, [r6]
	cmp	r4, #0
	beq	.L3
.L8:
	ldr	r3, [r8]
	ldr	r2, [r5]
	tst	r2, r3
	ldrne	r0, [r5, #8]
	ldrne	r3, [r4, #12]
	moveq	r0, #1
	subne	r0, r0, r3
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	assert
	ldr	r2, [r4, #12]
	ldr	r3, [r4]
	ldr	r0, [r2]
	cmp	r0, r3
	movlt	r0, #0
	movge	r0, #1
	bl	assert
	ldr	r3, [r4, #12]
	cmp	r3, r7
	addne	r6, r4, #8
	bne	.L7
	ldmib	r4, {r2, r3}
	cmp	r2, #1
	subeq	r0, r4, r9
	clzeq	r0, r0
	movne	r0, #1
	str	r3, [r6]
	lsreq	r0, r0, #5
	bl	assert
	ldr	r3, [r4, #4]
	cmp	r3, #1
	beq	.L7
	mov	r0, r4
	bl	sqlite3_free
	ldr	r4, [r6]
	cmp	r4, #0
	bne	.L8
.L3:
	ldr	r4, .L26+4
	ldr	r2, [r5]
	ldr	r3, [r4]
	tst	r2, r3
	moveq	r0, #1
	beq	.L9
	ldr	r0, [r5, #8]
	subs	r0, r0, #0
	movne	r0, #1
.L9:
	bl	assert
	ldr	r3, [r5, #8]
	cmp	r3, r7
	beq	.L25
	ldr	r3, [r5, #4]
	cmp	r3, #2
	ldreq	r2, [r4]
	ldreq	r3, [r5]
	biceq	r3, r3, r2
	streq	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	mov	r1, #0
	ldr	r3, .L26
	ldr	r0, [r4]
	ldr	r2, [r3]
	ldr	r3, [r5]
	orr	r2, r2, r0
	bic	r3, r3, r2
	str	r3, [r5]
	str	r1, [r5, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L27:
	.align	2
.L26:
	.word	BTS_EXCLUSIVE
	.word	BTS_PENDING
	.size	clearAllSharedCacheTableLocks, .-clearAllSharedCacheTableLocks
	.comm	BTS_PENDING,4,4
	.comm	BTS_EXCLUSIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
