	.file	"550396.c"
	.intel_syntax noprefix
	.text
	.type	sqlite3Delete83Name, @function
sqlite3Delete83Name:
.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	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L2
.L4:
	sub	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 0
	jle	.L3
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L3
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L4
.L3:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L6
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 4
	cmp	DWORD PTR -4[rbp], eax
	jle	.L6
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 1[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sqlite3Delete83Name, .-sqlite3Delete83Name
	.type	sqlite3DeleteUnlinkIfExists, @function
sqlite3DeleteUnlinkIfExists:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L9
	cmp	QWORD PTR -32[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
.L10:
	mov	eax, 0
	jmp	.L11
.L9:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L11
.L8:
	cmp	QWORD PTR -32[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 1
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	unlink@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L11
.L13:
	mov	eax, 0
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sqlite3DeleteUnlinkIfExists, .-sqlite3DeleteUnlinkIfExists
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%s-journal"
.LC2:
	.string	"%s-wal"
.LC3:
	.string	"%s-shm"
.LC4:
	.string	"%s%03d"
.LC5:
	.string	"%s-journal%03d"
.LC6:
	.string	"%s-wal%03d"
	.text
	.globl	sqlite3_delete_database
	.type	sqlite3_delete_database, @function
sqlite3_delete_database:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -176[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -144[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -136[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -128[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -120[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -112[rbp], rax
	mov	DWORD PTR -104[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	lea	rax, .LC5[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	lea	rax, .LC6[rip]
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	lea	rax, .LC4[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 1
	lea	rax, .LC5[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -40[rbp], 400
	mov	DWORD PTR -36[rbp], 1
	lea	rax, .LC6[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -24[rbp], 700
	mov	DWORD PTR -20[rbp], 1
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 100
	mov	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	sqlite3_malloc@PLT
	mov	QWORD PTR -160[rbp], rax
	cmp	QWORD PTR -160[rbp], 0
	jne	.L15
	mov	eax, 7
	jmp	.L29
.L15:
	mov	DWORD PTR -172[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	mov	rdx, QWORD PTR -144[rbp+rax*8]
	mov	rcx, QWORD PTR -200[rbp]
	mov	rsi, QWORD PTR -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	mov	eax, 0
	call	sqlite3_snprintf@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sqlite3DeleteUnlinkIfExists
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	jne	.L18
	cmp	DWORD PTR -172[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	sqlite3Delete83Name
	mov	rax, QWORD PTR -160[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	sqlite3DeleteUnlinkIfExists
	mov	DWORD PTR -176[rbp], eax
.L18:
	add	DWORD PTR -172[rbp], 1
.L17:
	cmp	DWORD PTR -176[rbp], 0
	jne	.L19
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, 3
	jbe	.L20
.L19:
	mov	DWORD PTR -172[rbp], 0
	jmp	.L21
.L28:
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	QWORD PTR -152[rbp], rax
	mov	DWORD PTR -168[rbp], 1
	jmp	.L22
.L26:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -168[rbp]
	lea	edi, [rdx+rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR -200[rbp]
	mov	rsi, QWORD PTR -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	r8d, edi
	mov	edi, eax
	mov	eax, 0
	call	sqlite3_snprintf@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	je	.L23
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	sqlite3Delete83Name
.L23:
	lea	rdx, -180[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sqlite3DeleteUnlinkIfExists
	mov	DWORD PTR -176[rbp], eax
	mov	eax, DWORD PTR -180[rbp]
	test	eax, eax
	je	.L25
	cmp	DWORD PTR -176[rbp], 0
	jne	.L25
	add	DWORD PTR -168[rbp], 1
.L22:
	cmp	DWORD PTR -168[rbp], 299
	jle	.L26
.L25:
	add	DWORD PTR -172[rbp], 1
.L21:
	cmp	DWORD PTR -176[rbp], 0
	jne	.L27
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, 5
	jbe	.L28
.L27:
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	sqlite3_free@PLT
	cmp	DWORD PTR -176[rbp], 0
	setne	al
	movzx	eax, al
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	sqlite3_delete_database, .-sqlite3_delete_database
	.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	"550396.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%s-journal\000"
	.align	2
.LC2:
	.ascii	"%s-wal\000"
	.align	2
.LC3:
	.ascii	"%s-shm\000"
	.align	2
.LC5:
	.ascii	"%s%03d\000"
	.align	2
.LC6:
	.ascii	"%s-journal%03d\000"
	.align	2
.LC7:
	.ascii	"%s-wal%03d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3Delete83Name, %function
sqlite3Delete83Name:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L3
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L3
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L4
.L3:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L6
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L6
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-8]
	sub	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #4
	mov	r1, r3
	bl	memmove
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sqlite3Delete83Name, .-sqlite3Delete83Name
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3DeleteUnlinkIfExists, %function
sqlite3DeleteUnlinkIfExists:
	@ 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]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	access
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L9
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
.L10:
	mov	r3, #0
	b	.L11
.L9:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L11
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3]
.L12:
	ldr	r0, [fp, #-16]
	bl	unlink
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L13
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L11
.L13:
	mov	r3, #0
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sqlite3DeleteUnlinkIfExists, .-sqlite3DeleteUnlinkIfExists
	.section	.rodata
	.align	2
.LC9:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.align	2
.LC10:
	.word	.LC5
	.word	0
	.word	0
	.word	.LC6
	.word	0
	.word	0
	.word	.LC7
	.word	0
	.word	0
	.word	.LC5
	.word	0
	.word	1
	.word	.LC6
	.word	400
	.word	1
	.word	.LC7
	.word	700
	.word	1
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sqlite3_delete_database
	.syntax unified
	.arm
	.fpu softvfp
	.type	sqlite3_delete_database, %function
sqlite3_delete_database:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-128]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	ldr	r3, .L31+4
	sub	ip, fp, #96
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r2, .L31+8
	sub	r3, fp, #80
	mov	r1, r2
	mov	r2, #72
	mov	r0, r3
	bl	memcpy
	ldr	r0, [fp, #-128]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #100
	str	r3, [fp, #-108]
	ldr	r0, [fp, #-108]
	bl	sqlite3_malloc
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L15
	mov	r3, #7
	b	.L29
.L15:
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L17
.L20:
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-92]
	ldr	r3, [fp, #-128]
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-108]
	bl	sqlite3_snprintf
	mov	r1, #0
	ldr	r0, [fp, #-104]
	bl	sqlite3DeleteUnlinkIfExists
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L18
	ldr	r0, [fp, #-104]
	bl	sqlite3Delete83Name
	mov	r1, #0
	ldr	r0, [fp, #-104]
	bl	sqlite3DeleteUnlinkIfExists
	str	r0, [fp, #-120]
.L18:
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L17:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-116]
	cmp	r3, #3
	bls	.L20
.L19:
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L21
.L28:
	sub	r1, fp, #80
	ldr	r2, [fp, #-116]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r3, [fp, #-100]
	mov	r3, #1
	str	r3, [fp, #-112]
	b	.L22
.L26:
	ldr	r3, [fp, #-100]
	ldr	r1, [r3]
	ldr	r3, [fp, #-100]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	str	r3, [sp]
	ldr	r3, [fp, #-128]
	mov	r2, r1
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-108]
	bl	sqlite3_snprintf
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L23
	ldr	r0, [fp, #-104]
	bl	sqlite3Delete83Name
.L23:
	sub	r3, fp, #124
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	sqlite3DeleteUnlinkIfExists
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L22:
	ldr	r3, [fp, #-112]
	cmp	r3, #300
	blt	.L26
.L25:
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L21:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-116]
	cmp	r3, #5
	bls	.L28
.L27:
	ldr	r0, [fp, #-104]
	bl	sqlite3_free
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
.L29:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC11
	.word	.LC9
	.word	.LC10
	.size	sqlite3_delete_database, .-sqlite3_delete_database
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
