	.file	"675001.c"
	.intel_syntax noprefix
	.text
	.type	superlockBusyHandler, @function
superlockBusyHandler:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	esi, 1[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 16[rdx], esi
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	mov	esi, eax
	mov	rdi, rdx
	call	rcx
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	superlockBusyHandler, .-superlockBusyHandler
	.section	.rodata
.LC0:
	.string	"PRAGMA main.journal_mode"
.LC1:
	.string	"wal"
	.text
	.type	superlockIsWal, @function
superlockIsWal:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -24[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, -1
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	sqlite3_prepare@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L8
.L5:
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sqlite3_step@PLT
	cmp	eax, 100
	jne	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sqlite3_column_text@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 3
	jne	.L7
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 3
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	sqlite3_strnicmp@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], 1
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	sqlite3_finalize@PLT
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	superlockIsWal, .-superlockIsWal
	.type	superlockShmLock, @function
superlockShmLock:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 112[rax]
	mov	QWORD PTR -8[rbp], rax
.L12:
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR -8[rbp]
	mov	ecx, 10
	mov	rdi, rax
	call	r8
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 5
	jne	.L11
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	superlockBusyHandler
	test	eax, eax
	jne	.L12
.L11:
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	superlockShmLock, .-superlockShmLock
	.section	.rodata
.LC2:
	.string	"main"
	.text
	.type	superlockWalLock, @function
superlockWalLock:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	lea	rdx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 7
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	sqlite3_file_control@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L15
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L19
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	superlockShmLock
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L19
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r9, QWORD PTR 104[rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -16[rbp]
	mov	r8, rdx
	mov	ecx, 1
	mov	edx, 32768
	mov	esi, 0
	mov	rdi, rax
	call	r9
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	edx, 5
	mov	esi, 3
	mov	rdi, rax
	call	superlockShmLock
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	superlockWalLock, .-superlockWalLock
	.globl	sqlite3demo_superunlock
	.type	sqlite3demo_superunlock, @function
sqlite3demo_superunlock:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L22
	mov	DWORD PTR -32[rbp], 9
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -24[rbp]
	mov	rcx, rdx
	mov	edx, 7
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	sqlite3_file_control@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8, QWORD PTR 112[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, edx
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	r8
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8, QWORD PTR 112[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, edx
	mov	edx, 5
	mov	esi, 3
	mov	rdi, rax
	call	r8
.L22:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	sqlite3_close@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	sqlite3demo_superunlock, .-sqlite3demo_superunlock
	.section	.rodata
.LC3:
	.string	"BEGIN EXCLUSIVE"
.LC4:
	.string	"COMMIT"
	.text
	.globl	sqlite3demo_superlock
	.type	sqlite3demo_superlock, @function
sqlite3demo_superlock:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -88[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	edi, 16
	call	sqlite3_malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L26
	mov	eax, 7
	jmp	.L32
.L26:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rsi, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, rdx
	mov	edx, 6
	mov	rdi, rax
	call	sqlite3_open_v2@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	lea	rsi, superlockBusyHandler[rip]
	mov	rdi, rax
	call	sqlite3_busy_handler@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	mov	DWORD PTR -44[rbp], eax
.L28:
	cmp	DWORD PTR -44[rbp], 0
	jne	.L29
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	superlockIsWal
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jne	.L29
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	sqlite3_exec@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jne	.L29
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	superlockWalLock
	mov	DWORD PTR -44[rbp], eax
.L29:
	cmp	DWORD PTR -44[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	sqlite3demo_superunlock
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR [rax], 0
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
.L31:
	mov	eax, DWORD PTR -44[rbp]
.L32:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	sqlite3demo_superlock, .-sqlite3demo_superlock
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"675001.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	superlockBusyHandler, %function
superlockBusyHandler:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	ip, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	add	r0, r3, #1
	ldr	r1, [fp, #-8]
	str	r0, [r1, #8]
	mov	r1, r3
	mov	r0, ip
	blx	r2
	mov	r3, r0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	superlockBusyHandler, .-superlockBusyHandler
	.section	.rodata
	.align	2
.LC0:
	.ascii	"PRAGMA main.journal_mode\000"
	.align	2
.LC1:
	.ascii	"wal\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	superlockIsWal, %function
superlockIsWal:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	ldr	r0, [r3]
	sub	r3, fp, #20
	mov	r2, #0
	str	r2, [sp]
	mvn	r2, #0
	ldr	r1, .L10+4
	bl	sqlite3_prepare
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-16]
	b	.L8
.L5:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	sqlite3_step
	mov	r3, r0
	cmp	r3, #100
	bne	.L7
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	sqlite3_column_text
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L7
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	cmp	r3, #3
	bne	.L7
	mov	r2, #3
	ldr	r1, [fp, #-12]
	ldr	r0, .L10+8
	bl	sqlite3_strnicmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-24]
	mov	r2, #1
	str	r2, [r3, #4]
.L7:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	sqlite3_finalize
	mov	r3, r0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	superlockIsWal, .-superlockIsWal
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	superlockShmLock, %function
superlockShmLock:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #56]
	str	r3, [fp, #-20]
.L14:
	ldr	r4, [fp, #-20]
	mov	r3, #10
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	blx	r4
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	bne	.L13
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	superlockBusyHandler
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
.L13:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	superlockShmLock, .-superlockShmLock
	.section	.rodata
	.align	2
.LC3:
	.ascii	"main\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	superlockWalLock, %function
superlockWalLock:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	mov	r2, #7
	ldr	r1, .L23+4
	ldr	r0, [fp, #-32]
	bl	sqlite3_file_control
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-20]
	b	.L21
.L17:
	ldr	r0, [fp, #-28]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	mov	r1, #2
	bl	superlockShmLock
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-20]
	b	.L21
.L19:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r4, [r3, #52]
	ldr	r0, [fp, #-28]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #32768
	mov	r1, #0
	blx	r4
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-20]
	b	.L21
.L20:
	ldr	r3, [fp, #-24]
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-28]
	ldr	r3, [fp, #-36]
	mov	r2, #5
	mov	r1, #3
	bl	superlockShmLock
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
.L21:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC4
	.word	.LC3
	.size	superlockWalLock, .-superlockWalLock
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sqlite3demo_superunlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3demo_superunlock, %function
sqlite3demo_superunlock:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L26
	mov	r3, #9
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	ldr	r0, [r3]
	sub	r3, fp, #32
	mov	r2, #7
	ldr	r1, .L29+4
	bl	sqlite3_file_control
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r4, [r3, #56]
	ldr	r0, [fp, #-32]
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #2
	blx	r4
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r4, [r3, #56]
	ldr	r0, [fp, #-32]
	ldr	r3, [fp, #-24]
	mov	r2, #5
	mov	r1, #3
	blx	r4
.L26:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r0, [fp, #-28]
	bl	sqlite3_free
	nop
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC5
	.word	.LC3
	.size	sqlite3demo_superunlock, .-sqlite3demo_superunlock
	.section	.rodata
	.align	2
.LC6:
	.ascii	"BEGIN EXCLUSIVE\000"
	.align	2
.LC7:
	.ascii	"COMMIT\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sqlite3demo_superlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3demo_superlock, %function
sqlite3demo_superlock:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-48]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #8
	bl	sqlite3_malloc
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L32
	mov	r3, #7
	b	.L38
.L32:
	mov	r2, #8
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	memset
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-36]
	mov	r2, #6
	ldr	r0, [fp, #-32]
	bl	sqlite3_open_v2
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r2, fp, #20
	ldr	r1, .L40+4
	mov	r0, r3
	bl	sqlite3_busy_handler
	ldr	r3, [fp, #-24]
	ldr	r0, [r3]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L40+8
	bl	sqlite3_exec
	str	r0, [fp, #-28]
.L34:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L35
	ldr	r0, [fp, #-24]
	bl	superlockIsWal
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-24]
	ldr	r0, [r3]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L40+12
	bl	sqlite3_exec
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r2, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	superlockWalLock
	str	r0, [fp, #-28]
.L35:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L36
	ldr	r0, [fp, #-24]
	bl	sqlite3demo_superunlock
	ldr	r3, [fp, #-48]
	mov	r2, #0
	str	r2, [r3]
	b	.L37
.L36:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
.L37:
	ldr	r3, [fp, #-28]
.L38:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC8
	.word	superlockBusyHandler
	.word	.LC6
	.word	.LC7
	.size	sqlite3demo_superlock, .-sqlite3demo_superlock
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
