	.file	"151706760.c"
	.intel_syntax noprefix
	.text
	.globl	db
	.bss
	.align 8
	.type	db, @object
	.size	db, 8
db:
	.zero	8
	.globl	socket_fd
	.align 4
	.type	socket_fd, @object
	.size	socket_fd, 4
socket_fd:
	.zero	4
	.globl	handlers
	.align 32
	.type	handlers, @object
	.size	handlers, 320
handlers:
	.zero	320
	.globl	messages
	.align 32
	.type	messages, @object
	.size	messages, 800
messages:
	.zero	800
	.globl	lock
	.align 32
	.type	lock, @object
	.size	lock, 40
lock:
	.zero	40
	.section	.rodata
.LC0:
	.string	"/tmp/sqlite-queue.socket"
	.text
	.globl	destroy
	.type	destroy, @function
destroy:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR db[rip]
	mov	rdi, rax
	call	sqlite3_close@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_destroy@PLT
	mov	eax, DWORD PTR socket_fd[rip]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC0[rip]
	call	unlink@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	destroy, .-destroy
	.section	.fini_array,"aw"
	.align 8
	.quad	destroy
	.text
	.type	sigint_hack.0, @function
sigint_hack.0:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], r10
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	sigint_hack.0, .-sigint_hack.0
	.section	.rodata
	.align 8
.LC1:
	.string	"Incorrect amount of arguments\n"
.LC2:
	.string	"sqlite3_open failed\n"
.LC3:
	.string	"socket failed\n"
.LC4:
	.string	"bind failed\n"
.LC5:
	.string	"listen failed\n"
.LC6:
	.string	"pthread_mutex_init failed\n"
.LC7:
	.string	"pthread_create failed\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -144[rbp], rax
	lea	rax, -176[rbp]
	lea	rdx, -176[rbp]
	mov	DWORD PTR [rax], -98693133
	mov	WORD PTR 4[rax], -17591
	lea	rcx, sigint_hack.0[rip]
	mov	QWORD PTR 6[rax], rcx
	mov	WORD PTR 14[rax], -17847
	mov	QWORD PTR 16[rax], rdx
	mov	DWORD PTR 24[rax], -1864106167
	lea	rax, -176[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	signal@PLT
	cmp	DWORD PTR -212[rbp], 2
	je	.L4
	lea	rsi, .LC1[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -224[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, db[rip]
	mov	rdi, rax
	call	sqlite3_open@PLT
	test	eax, eax
	je	.L5
	lea	rsi, .LC2[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	edx, 0
	mov	esi, 5
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR socket_fd[rip], eax
	mov	eax, DWORD PTR socket_fd[rip]
	cmp	eax, -1
	jne	.L6
	lea	rsi, .LC3[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	WORD PTR -128[rbp], 1
	lea	rax, -128[rbp]
	add	rax, 2
	movabs	rdx, 7814153476051399727
	movabs	rcx, 8459296604038722665
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	movabs	rcx, 8387227955863170661
	mov	QWORD PTR 16[rax], rcx
	mov	BYTE PTR 24[rax], 0
	mov	eax, DWORD PTR socket_fd[rip]
	lea	rcx, -128[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L7
	lea	rsi, .LC4[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR socket_fd[rip]
	mov	esi, 40
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L8
	lea	rsi, .LC5[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	esi, 0
	lea	rdi, lock[rip]
	call	pthread_mutex_init@PLT
	test	eax, eax
	je	.L9
	lea	rsi, .LC6[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rax, -192[rbp]
	mov	ecx, 0
	lea	rdx, execute_queries[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L10
	lea	rsi, .LC7[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR socket_fd[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -196[rbp], eax
	mov	DWORD PTR -200[rbp], 0
	jmp	.L11
.L15:
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, handlers[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L12
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	mov	edx, DWORD PTR -196[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -184[rbp]
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -200[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, handlers[rip]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	rcx, rax
	lea	rdx, handle_connection[rip]
	mov	esi, 0
	call	pthread_create@PLT
	test	eax, eax
	je	.L17
	lea	rsi, .LC7[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	add	DWORD PTR -200[rbp], 1
.L11:
	cmp	DWORD PTR -200[rbp], 39
	jle	.L15
	jmp	.L10
.L17:
	nop
	jmp	.L10
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.globl	execute_queries
	.type	execute_queries, @function
execute_queries:
.LFB9:
	.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
.L22:
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, messages[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L20
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, messages[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR db[rip]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	sqlite3_exec@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, messages[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, messages[rip]
	mov	QWORD PTR [rdx+rax], 0
.L20:
	add	DWORD PTR -4[rbp], 1
.L19:
	cmp	DWORD PTR -4[rbp], 99
	jle	.L21
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L22
	.cfi_endproc
.LFE9:
	.size	execute_queries, .-execute_queries
	.section	.rodata
.LC8:
	.string	"read failed\n"
.LC9:
	.string	"atoi failed\n"
.LC10:
	.string	"exit"
	.text
	.globl	handle_connection
	.type	handle_connection, @function
handle_connection:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
.L37:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rcx, -18[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L24
	lea	rsi, .LC8[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	jmp	.L25
.L28:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	cmp	al, 101
	je	.L26
	cmp	DWORD PTR -52[rbp], 0
	je	.L27
.L26:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], 0
	mov	DWORD PTR -52[rbp], 1
.L27:
	add	DWORD PTR -48[rbp], 1
.L25:
	cmp	DWORD PTR -48[rbp], 9
	jle	.L28
	lea	rax, -18[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L29
	lea	rsi, .LC9[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L30
.L34:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, messages[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L31
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, messages[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, messages[rip]
	mov	rcx, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, -1
	jne	.L40
	lea	rsi, .LC8[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	add	DWORD PTR -44[rbp], 1
.L30:
	cmp	DWORD PTR -44[rbp], 99
	jle	.L34
	jmp	.L33
.L40:
	nop
.L33:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, messages[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L35
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, messages[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, messages[rip]
	mov	QWORD PTR [rdx+rax], 0
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, handlers[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L38
	jmp	.L39
.L35:
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L37
.L39:
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	handle_connection, .-handle_connection
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"x",@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	"151706760.c"
	.text
	.comm	db,4,4
	.comm	socket_fd,4,4
	.comm	handlers,160,4
	.comm	messages,400,4
	.comm	lock,24,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/sqlite-queue.socket\000"
	.text
	.align	2
	.global	destroy
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroy, %function
destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r0, r3
	bl	sqlite3_close
	ldr	r0, .L2+4
	bl	pthread_mutex_destroy
	ldr	r3, .L2+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r0, .L2+12
	bl	unlink
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	db
	.word	lock
	.word	socket_fd
	.word	.LC0
	.size	destroy, .-destroy
	.section	.fini_array,"aw",%fini_array
	.align	2
	.word	destroy(target1)
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigint_hack.8540, %function
sigint_hack.8540:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	ip, [fp, #-12]
	mov	r0, #0
	bl	exit
	.size	sigint_hack.8540, .-sigint_hack.8540
	.section	.rodata
	.align	2
.LTRAMP0:
	.syntax unified
	.arm
	ldr	ip, [pc, #0]
	ldr	pc, [pc, #0]
	.word	0
	.word	0
	.global	__clear_cache
	.align	2
.LC1:
	.ascii	"Incorrect amount of arguments\012\000"
	.align	2
.LC2:
	.ascii	"sqlite3_open failed\012\000"
	.align	2
.LC3:
	.ascii	"socket failed\012\000"
	.align	2
.LC4:
	.ascii	"bind failed\012\000"
	.align	2
.LC5:
	.ascii	"listen failed\012\000"
	.align	2
.LC6:
	.ascii	"pthread_mutex_init failed\012\000"
	.align	2
.LC7:
	.ascii	"pthread_create failed\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #164
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-132]
	sub	ip, fp, #148
	sub	lr, fp, #148
	ldr	r3, .L20+4
	mov	r4, ip
	ldm	r3, {r0, r1, r2, r3}
	stm	r4, {r0, r1, r2, r3}
	str	lr, [ip, #8]
	ldr	r3, .L20+8
	str	r3, [ip, #12]
	add	r3, ip, #16
	mov	r1, r3
	mov	r0, ip
	bl	__clear_cache
	sub	r3, fp, #148
	mov	r1, r3
	mov	r0, #2
	bl	signal
	ldr	r3, [fp, #-168]
	cmp	r3, #2
	beq	.L6
	ldr	r1, .L20+12
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-172]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L20+16
	mov	r0, r3
	bl	sqlite3_open
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r1, .L20+20
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L7:
	mov	r2, #0
	mov	r1, #5
	mov	r0, #1
	bl	socket
	mov	r3, r0
	ldr	r2, .L20+24
	str	r3, [r2]
	ldr	r3, .L20+24
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L8
	ldr	r1, .L20+28
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L8:
	mov	r3, #1
	strh	r3, [fp, #-128]	@ movhi
	sub	r3, fp, #128
	add	r3, r3, #2
	ldr	r2, .L20+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #25
	mov	r2, r3
	bl	memcpy
	ldr	r3, .L20+24
	ldr	r3, [r3]
	sub	r1, fp, #128
	mov	r2, #110
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r1, .L20+36
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, .L20+24
	ldr	r3, [r3]
	mov	r1, #40
	mov	r0, r3
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r1, .L20+40
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L10:
	mov	r1, #0
	ldr	r0, .L20+44
	bl	pthread_mutex_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r1, .L20+48
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L11:
	sub	r0, fp, #164
	mov	r3, #0
	ldr	r2, .L20+52
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r1, .L20+56
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, .L20+24
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	accept
	str	r0, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L13
.L17:
	ldr	r2, .L20+60
	ldr	r3, [fp, #-160]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L14
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	ldr	r2, [fp, #-156]
	str	r2, [r3]
	ldr	r3, [fp, #-152]
	add	r3, r3, #4
	ldr	r2, [fp, #-160]
	str	r2, [r3]
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #2
	ldr	r2, .L20+60
	add	r0, r3, r2
	ldr	r3, [fp, #-152]
	ldr	r2, .L20+64
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r1, .L20+56
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L13:
	ldr	r3, [fp, #-160]
	cmp	r3, #39
	ble	.L17
	b	.L12
.L19:
	nop
	b	.L12
.L21:
	.align	2
.L20:
	.word	.LC8
	.word	.LTRAMP0
	.word	sigint_hack.8540
	.word	.LC1
	.word	db
	.word	.LC2
	.word	socket_fd
	.word	.LC3
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	lock
	.word	.LC6
	.word	execute_queries
	.word	.LC7
	.word	handlers
	.word	handle_connection
	.size	main, .-main
	.align	2
	.global	execute_queries
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute_queries, %function
execute_queries:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
.L26:
	ldr	r0, .L27
	bl	pthread_mutex_lock
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L23
.L25:
	ldr	r2, .L27+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L27+8
	ldr	r0, [r3]
	ldr	r2, .L27+4
	ldr	r3, [fp, #-8]
	ldr	r1, [r2, r3, lsl #2]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	sqlite3_exec
	ldr	r2, .L27+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r2, .L27+4
	ldr	r3, [fp, #-8]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	ble	.L25
	ldr	r0, .L27
	bl	pthread_mutex_unlock
	mov	r0, #1
	bl	sleep
	b	.L26
.L28:
	.align	2
.L27:
	.word	lock
	.word	messages
	.word	db
	.size	execute_queries, .-execute_queries
	.section	.rodata
	.align	2
.LC9:
	.ascii	"read failed\012\000"
	.align	2
.LC10:
	.ascii	"atoi failed\012\000"
	.align	2
.LC11:
	.ascii	"exit\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_connection
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_connection, %function
handle_connection:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-32]
.L43:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	sub	r1, fp, #20
	mov	r2, #10
	mov	r0, r3
	bl	read
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L30
	ldr	r1, .L47+4
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L30:
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L31
.L34:
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #101
	beq	.L32
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L33
.L32:
	sub	r2, fp, #20
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-44]
.L33:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L31:
	ldr	r3, [fp, #-40]
	cmp	r3, #9
	ble	.L34
	sub	r3, fp, #20
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L35
	ldr	r1, .L47+8
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L35:
	ldr	r0, .L47+12
	bl	pthread_mutex_lock
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L36
.L40:
	ldr	r2, .L47+16
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-24]
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L47+16
	ldr	r3, [fp, #-36]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-32]
	ldr	r0, [r3]
	ldr	r2, .L47+16
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	mov	r1, r3
	bl	read
	mov	r3, r0
	cmn	r3, #1
	bne	.L46
	ldr	r1, .L47+4
	mov	r0, #2
	bl	dprintf
	mov	r0, #1
	bl	exit
.L37:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L36:
	ldr	r3, [fp, #-36]
	cmp	r3, #99
	ble	.L40
	b	.L39
.L46:
	nop
.L39:
	ldr	r2, .L47+16
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, .L47+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	ldr	r2, .L47+16
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r2, .L47+16
	ldr	r3, [fp, #-36]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r0, .L47+12
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L47+24
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r0, [fp, #-32]
	bl	free
	mov	r3, #0
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	b	.L45
.L41:
	ldr	r0, .L47+12
	bl	pthread_mutex_unlock
	b	.L43
.L45:
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC12
	.word	.LC9
	.word	.LC10
	.word	lock
	.word	messages
	.word	.LC11
	.word	handlers
	.size	handle_connection, .-handle_connection
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"x",%progbits
