	.file	"extr_build.c_sqlite3TableLock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sqlite3TableLock
	.type	sqlite3TableLock, @function
sqlite3TableLock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	sqlite3ParseToplevel@PLT
	mov	edi, ebx
	not	edi
	mov	r12, rax
	shr	edi, 31
	call	assert@PLT
	cmp	ebx, 1
	je	.L1
	mov	rdx, QWORD PTR 8[r15]
	movsx	rax, ebx
	mov	rdx, QWORD PTR [rdx]
	mov	edi, DWORD PTR [rdx+rax*4]
	call	sqlite3BtreeSharable@PLT
	test	eax, eax
	je	.L1
	mov	ecx, DWORD PTR [r12]
	mov	rsi, QWORD PTR 16[r12]
	test	ecx, ecx
	jle	.L5
	lea	edx, -1[rcx]
	mov	rax, rsi
	lea	rdx, [rdx+rdx*2]
	lea	rdx, 24[rsi+rdx*8]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	add	rax, 24
	cmp	rax, rdx
	je	.L5
.L7:
	cmp	DWORD PTR [rax], ebx
	jne	.L6
	cmp	DWORD PTR 4[rax], ebp
	jne	.L6
	xor	edx, edx
	or	r13d, DWORD PTR 8[rax]
	setne	dl
	mov	DWORD PTR 8[rax], edx
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L5:
	.cfi_restore_state
	lea	edx, 3[rcx+rcx*2]
	mov	rdi, QWORD PTR 8[r12]
	sal	edx, 3
	call	sqlite3DbReallocOrFree@PLT
	mov	QWORD PTR 16[r12], rax
	test	rax, rax
	je	.L8
	movsx	rdx, DWORD PTR [r12]
	lea	ecx, 1[rdx]
	lea	rdx, [rdx+rdx*2]
	lea	rax, [rax+rdx*8]
	mov	DWORD PTR [r12], ecx
	mov	DWORD PTR [rax], ebx
	mov	DWORD PTR 4[rax], ebp
	mov	DWORD PTR 8[rax], r13d
	mov	QWORD PTR 16[rax], r14
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L8:
	.cfi_restore_state
	mov	DWORD PTR [r12], 0
	mov	rdi, QWORD PTR 8[r12]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	jmp	sqlite3OomFault@PLT
	.cfi_endproc
.LFE0:
	.size	sqlite3TableLock, .-sqlite3TableLock
	.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_build.c_sqlite3TableLock.c"
	.text
	.align	2
	.global	sqlite3TableLock
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3TableLock, %function
sqlite3TableLock:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, [sp, #32]
	mov	r4, r1
	mov	r6, r2
	mov	r8, r3
	mov	r5, r0
	bl	sqlite3ParseToplevel
	mov	r7, r0
	mvn	r0, r4
	lsr	r0, r0, #31
	bl	assert
	cmp	r4, #1
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r5, #4]
	ldr	r3, [r3]
	ldr	r0, [r3, r4, lsl #2]
	bl	sqlite3BtreeSharable
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, [r7]
	ldr	r1, [r7, #8]
	cmp	r2, #0
	ble	.L5
	mov	lr, r1
	mov	ip, #0
	b	.L7
.L6:
	cmp	ip, r2
	add	lr, lr, #16
	beq	.L5
.L7:
	ldr	r5, [r1, ip, lsl #4]
	add	ip, ip, #1
	cmp	r5, r4
	bne	.L6
	ldr	r3, [lr, #4]
	cmp	r3, r6
	bne	.L6
	ldr	r3, [lr, #8]
	orrs	r3, r8, r3
	movne	r3, #1
	moveq	r3, #0
	str	r3, [lr, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	add	r2, r2, #1
	ldr	r0, [r7, #4]
	lsl	r2, r2, #4
	bl	sqlite3DbReallocOrFree
	cmp	r0, #0
	str	r0, [r7, #8]
	beq	.L8
	ldr	r2, [r7]
	add	r1, r2, #1
	add	r3, r0, r2, lsl #4
	str	r1, [r7]
	str	r4, [r0, r2, lsl #4]
	stmib	r3, {r6, r8, r9}
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	str	r0, [r7]
	ldr	r0, [r7, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	sqlite3OomFault
	.size	sqlite3TableLock, .-sqlite3TableLock
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
