	.file	"1067401.c"
	.intel_syntax noprefix
	.text
	.globl	svr
	.bss
	.align 32
	.type	svr, @object
	.size	svr, 520
svr:
	.zero	520
	.globl	requestP
	.align 8
	.type	requestP, @object
	.size	requestP, 8
requestP:
	.zero	8
	.globl	maxfd
	.align 4
	.type	maxfd, @object
	.size	maxfd, 4
maxfd:
	.zero	4
	.globl	accept_read_header
	.section	.rodata
.LC0:
	.string	"ACCEPT_FROM_READ"
	.section	.data.rel.local,"aw"
	.align 8
	.type	accept_read_header, @object
	.size	accept_read_header, 8
accept_read_header:
	.quad	.LC0
	.globl	accept_write_header
	.section	.rodata
.LC1:
	.string	"ACCEPT_FROM_WRITE"
	.section	.data.rel.local
	.align 8
	.type	accept_write_header, @object
	.size	accept_write_header, 8
accept_write_header:
	.quad	.LC1
	.section	.rodata
.LC2:
	.string	"usage: %s [port]\n"
	.align 8
.LC3:
	.string	"out of memory allocating all requests"
	.align 8
.LC4:
	.string	"\nstarting on %.80s, port %d, fd %d, maxconn %d...\n"
	.align 8
.LC5:
	.string	"out of file descriptor table ... (maxconn %d)\n"
.LC6:
	.string	"accept"
	.align 8
.LC7:
	.string	"getting a new request... fd %d from %s\n"
.LC8:
	.string	"bad request from %s\n"
.LC9:
	.string	"item_list"
.LC10:
	.string	"This item is locked.\n"
.LC11:
	.string	"lock failed"
.LC12:
	.string	"This item is modifiable.\n"
.LC13:
	.string	"%s : %s\n"
.LC14:
	.string	"%*s %d"
.LC15:
	.string	"Operation failed.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 928
	mov	DWORD PTR -5012[rbp], edi
	mov	QWORD PTR -5024[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -4864[rbp], 0
	mov	QWORD PTR -4856[rbp], 0
	mov	QWORD PTR -4848[rbp], 0
	mov	QWORD PTR -4840[rbp], 0
	mov	QWORD PTR -4832[rbp], 0
	mov	QWORD PTR -4824[rbp], 0
	mov	QWORD PTR -4816[rbp], 0
	mov	QWORD PTR -4808[rbp], 0
	mov	QWORD PTR -4800[rbp], 0
	mov	QWORD PTR -4792[rbp], 0
	lea	rdx, -4528[rbp]
	mov	eax, 0
	mov	ecx, 500
	mov	rdi, rdx
	rep stosq
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -4784[rbp]
	mov	rdi, rdx
#APP
# 67 "the_stack_data/1067401.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -4992[rbp], edx
	mov	DWORD PTR -4988[rbp], eax
	cmp	DWORD PTR -5012[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -5024[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -5024[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	init_server
	mov	eax, DWORD PTR svr[rip+516]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4784[rbp+rax*8]
	mov	eax, DWORD PTR svr[rip+516]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -4784[rbp+rax*8], rdx
	call	getdtablesize@PLT
	mov	DWORD PTR maxfd[rip], eax
	mov	eax, DWORD PTR maxfd[rip]
	cdqe
	imul	rax, rax, 1048
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR requestP[rip], rax
	mov	rax, QWORD PTR requestP[rip]
	test	rax, rax
	jne	.L3
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	DWORD PTR -5000[rbp], 0
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -5000[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	rdi, rax
	call	init_request
	add	DWORD PTR -5000[rbp], 1
.L4:
	mov	eax, DWORD PTR maxfd[rip]
	cmp	DWORD PTR -5000[rbp], eax
	jl	.L5
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR svr[rip+516]
	cdqe
	imul	rax, rax, 1048
	add	rdx, rax
	mov	eax, DWORD PTR svr[rip+516]
	mov	DWORD PTR 512[rdx], eax
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR svr[rip+516]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	lea	rsi, svr[rip]
	mov	rdi, rax
	call	strcpy@PLT
	mov	esi, DWORD PTR maxfd[rip]
	mov	ecx, DWORD PTR svr[rip+516]
	movzx	eax, WORD PTR svr[rip+512]
	movzx	edx, ax
	mov	rax, QWORD PTR stderr[rip]
	mov	r9d, esi
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, svr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L34:
	mov	rax, QWORD PTR -4784[rbp]
	mov	rdx, QWORD PTR -4776[rbp]
	mov	QWORD PTR -4656[rbp], rax
	mov	QWORD PTR -4648[rbp], rdx
	mov	rax, QWORD PTR -4768[rbp]
	mov	rdx, QWORD PTR -4760[rbp]
	mov	QWORD PTR -4640[rbp], rax
	mov	QWORD PTR -4632[rbp], rdx
	mov	rax, QWORD PTR -4752[rbp]
	mov	rdx, QWORD PTR -4744[rbp]
	mov	QWORD PTR -4624[rbp], rax
	mov	QWORD PTR -4616[rbp], rdx
	mov	rax, QWORD PTR -4736[rbp]
	mov	rdx, QWORD PTR -4728[rbp]
	mov	QWORD PTR -4608[rbp], rax
	mov	QWORD PTR -4600[rbp], rdx
	mov	rax, QWORD PTR -4720[rbp]
	mov	rdx, QWORD PTR -4712[rbp]
	mov	QWORD PTR -4592[rbp], rax
	mov	QWORD PTR -4584[rbp], rdx
	mov	rax, QWORD PTR -4704[rbp]
	mov	rdx, QWORD PTR -4696[rbp]
	mov	QWORD PTR -4576[rbp], rax
	mov	QWORD PTR -4568[rbp], rdx
	mov	rax, QWORD PTR -4688[rbp]
	mov	rdx, QWORD PTR -4680[rbp]
	mov	QWORD PTR -4560[rbp], rax
	mov	QWORD PTR -4552[rbp], rdx
	mov	rax, QWORD PTR -4672[rbp]
	mov	rdx, QWORD PTR -4664[rbp]
	mov	QWORD PTR -4544[rbp], rax
	mov	QWORD PTR -4536[rbp], rdx
	lea	rax, -4656[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1000
	call	select@PLT
	mov	DWORD PTR -4996[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -4996[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -4656[rbp+rax*8]
	mov	eax, DWORD PTR -4996[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	jne	.L36
	add	DWORD PTR -4996[rbp], 1
.L6:
	cmp	DWORD PTR -4996[rbp], 999
	jle	.L9
	jmp	.L8
.L36:
	nop
.L8:
	mov	eax, DWORD PTR svr[rip+516]
	cmp	DWORD PTR -4996[rbp], eax
	jne	.L10
	mov	DWORD PTR -5008[rbp], 16
	mov	eax, DWORD PTR svr[rip+516]
	lea	rdx, -5008[rbp]
	lea	rcx, -4880[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -4984[rbp], eax
	mov	eax, DWORD PTR -4984[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4784[rbp+rax*8]
	mov	eax, DWORD PTR -4984[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -4784[rbp+rax*8], rdx
	cmp	DWORD PTR -4984[rbp], 0
	jns	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L37
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L37
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 23
	jne	.L15
	mov	edx, DWORD PTR maxfd[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L33
.L15:
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rdx, rax
	mov	eax, DWORD PTR -4984[rbp]
	mov	DWORD PTR 512[rdx], eax
	mov	eax, DWORD PTR -4876[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rcx, QWORD PTR requestP[rip]
	mov	edx, DWORD PTR -4984[rbp]
	movsx	rdx, edx
	imul	rdx, rdx, 1048
	add	rdx, rcx
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4984[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L33
.L10:
	mov	eax, DWORD PTR -4996[rbp]
	mov	DWORD PTR -4984[rbp], eax
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	rdi, rax
	call	handle_read
	mov	DWORD PTR -4980[rbp], eax
	cmp	DWORD PTR -4980[rbp], 0
	jns	.L16
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L33
.L16:
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	mov	eax, DWORD PTR -4528[rbp+rax*4]
	test	eax, eax
	jne	.L17
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	add	rax, 516
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4964[rbp], eax
	mov	edx, 484
	mov	esi, 1052674
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4960[rbp], eax
	mov	eax, DWORD PTR -4964[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -4864[rbp+rax*4]
	cmp	eax, 1
	jne	.L18
	lea	rax, -528[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rcx
	mov	eax, DWORD PTR 512[rax]
	lea	rcx, -528[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	eax, DWORD PTR 512[rax]
	mov	edi, eax
	call	close@PLT
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	eax, DWORD PTR 512[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4784[rbp+rax*8]
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	eax, DWORD PTR 512[rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	not	rax
	and	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -4784[rbp+rax*8], rdx
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	rdi, rax
	call	free_request
	jmp	.L33
.L18:
	mov	eax, DWORD PTR -4964[rbp]
	lea	edx, -1[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	cdqe
	mov	QWORD PTR -4936[rbp], rax
	mov	WORD PTR -4942[rbp], 0
	mov	QWORD PTR -4928[rbp], 12
	mov	WORD PTR -4944[rbp], 1
	mov	rax, QWORD PTR -4944[rbp]
	mov	rdx, QWORD PTR -4936[rbp]
	mov	QWORD PTR -4912[rbp], rax
	mov	QWORD PTR -4904[rbp], rdx
	mov	rax, QWORD PTR -4928[rbp]
	mov	rdx, QWORD PTR -4920[rbp]
	mov	QWORD PTR -4896[rbp], rax
	mov	QWORD PTR -4888[rbp], rdx
	lea	rdx, -4944[rbp]
	mov	eax, DWORD PTR -4960[rbp]
	mov	esi, 5
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	movzx	eax, WORD PTR -4944[rbp]
	cmp	ax, 1
	jne	.L20
	lea	rax, -528[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rcx
	mov	eax, DWORD PTR 512[rax]
	lea	rcx, -528[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	eax, DWORD PTR 512[rax]
	mov	edi, eax
	call	close@PLT
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	eax, DWORD PTR 512[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4784[rbp+rax*8]
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	eax, DWORD PTR 512[rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	not	rax
	and	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -4784[rbp+rax*8], rdx
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	rdi, rax
	call	free_request
	jmp	.L33
.L20:
	mov	eax, DWORD PTR -4964[rbp]
	sub	eax, 1
	cdqe
	mov	DWORD PTR -4864[rbp+rax*4], 1
	mov	eax, DWORD PTR -4964[rbp]
	lea	edx, -1[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	movsx	rcx, eax
	mov	eax, DWORD PTR -4960[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -4956[rbp]
	mov	eax, DWORD PTR -4960[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rdx, -4912[rbp]
	mov	eax, DWORD PTR -4960[rbp]
	mov	esi, 6
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L21
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L21:
	cmp	DWORD PTR -4964[rbp], 20
	jg	.L22
	cmp	DWORD PTR -4964[rbp], 0
	jle	.L22
	lea	rax, -528[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L23
.L22:
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	lea	rcx, 516[rax]
	mov	rdx, QWORD PTR accept_write_header[rip]
	lea	rax, -528[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L23:
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rcx
	mov	eax, DWORD PTR 512[rax]
	lea	rcx, -528[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	mov	edx, DWORD PTR -4964[rbp]
	mov	DWORD PTR -4528[rbp+rax*4], edx
	jmp	.L33
.L17:
	mov	DWORD PTR -4976[rbp], 1
	cmp	DWORD PTR -4976[rbp], 0
	je	.L24
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	mov	eax, DWORD PTR -4528[rbp+rax*4]
	mov	DWORD PTR -4972[rbp], eax
	mov	edx, 484
	mov	esi, 1052674
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4968[rbp], eax
	mov	eax, DWORD PTR -4972[rbp]
	sub	eax, 1
	cdqe
	mov	DWORD PTR -4864[rbp+rax*4], 0
	mov	eax, DWORD PTR -4972[rbp]
	lea	edx, -1[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	cdqe
	mov	QWORD PTR -4936[rbp], rax
	mov	WORD PTR -4942[rbp], 0
	mov	QWORD PTR -4928[rbp], 12
	mov	WORD PTR -4944[rbp], 2
	lea	rdx, -4944[rbp]
	mov	eax, DWORD PTR -4968[rbp]
	mov	esi, 6
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	eax, DWORD PTR -4972[rbp]
	lea	edx, -1[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	movsx	rcx, eax
	mov	eax, DWORD PTR -4968[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -4956[rbp]
	mov	eax, DWORD PTR -4968[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	movzx	eax, BYTE PTR 516[rax]
	movsx	eax, al
	cmp	eax, 115
	je	.L25
	cmp	eax, 115
	jg	.L26
	cmp	eax, 98
	je	.L27
	cmp	eax, 112
	je	.L28
	jmp	.L26
.L27:
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	lea	rcx, 516[rax]
	lea	rax, -5004[rbp]
	mov	rdx, rax
	lea	rsi, .LC14[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	edx, DWORD PTR -4952[rbp]
	mov	eax, DWORD PTR -5004[rbp]
	cmp	edx, eax
	jge	.L29
	lea	rax, -528[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rcx
	mov	eax, DWORD PTR 512[rax]
	lea	rcx, -528[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L26
.L29:
	mov	eax, DWORD PTR -4952[rbp]
	mov	edx, DWORD PTR -5004[rbp]
	sub	eax, edx
	mov	DWORD PTR -4952[rbp], eax
	mov	eax, DWORD PTR -4972[rbp]
	lea	edx, -1[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	movsx	rcx, eax
	mov	eax, DWORD PTR -4968[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -4956[rbp]
	mov	eax, DWORD PTR -4968[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L26
.L25:
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	lea	rcx, 516[rax]
	lea	rax, -5004[rbp]
	mov	rdx, rax
	lea	rsi, .LC14[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	edx, DWORD PTR -4952[rbp]
	mov	eax, DWORD PTR -5004[rbp]
	add	eax, edx
	mov	DWORD PTR -4952[rbp], eax
	mov	eax, DWORD PTR -4972[rbp]
	lea	edx, -1[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	movsx	rcx, eax
	mov	eax, DWORD PTR -4968[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -4956[rbp]
	mov	eax, DWORD PTR -4968[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L26
.L28:
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	lea	rcx, 516[rax]
	lea	rax, -5004[rbp]
	mov	rdx, rax
	lea	rsi, .LC14[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -5004[rbp]
	test	eax, eax
	jns	.L31
	lea	rax, -528[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rcx
	mov	eax, DWORD PTR 512[rax]
	lea	rcx, -528[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L38
.L31:
	mov	eax, DWORD PTR -5004[rbp]
	mov	DWORD PTR -4948[rbp], eax
	mov	eax, DWORD PTR -4972[rbp]
	lea	edx, -1[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	movsx	rcx, eax
	mov	eax, DWORD PTR -4968[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -4956[rbp]
	mov	eax, DWORD PTR -4968[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L38:
	nop
.L26:
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	mov	DWORD PTR -4528[rbp+rax*4], 0
.L24:
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	eax, DWORD PTR 512[rax]
	mov	edi, eax
	call	close@PLT
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	eax, DWORD PTR 512[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4784[rbp+rax*8]
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	eax, DWORD PTR 512[rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	not	rax
	and	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -4784[rbp+rax*8], rdx
	mov	rdx, QWORD PTR requestP[rip]
	mov	eax, DWORD PTR -4984[rbp]
	cdqe
	imul	rax, rax, 1048
	add	rax, rdx
	mov	rdi, rax
	call	free_request
	jmp	.L34
.L37:
	nop
.L33:
	jmp	.L34
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	init_request, @function
init_request:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 512[rax], -1
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 1032[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 1040[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 1044[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init_request, .-init_request
	.type	free_request, @function
free_request:
.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, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	init_request
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	free_request, .-free_request
	.section	.rodata
.LC16:
	.string	"\r\n"
	.align 8
.LC17:
	.string	"this really should not happen..."
	.text
	.type	handle_read, @function
handle_read:
.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, 576
	mov	QWORD PTR -568[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -568[rbp]
	mov	eax, DWORD PTR 512[rax]
	lea	rcx, -528[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -552[rbp], eax
	cmp	DWORD PTR -552[rbp], 0
	jns	.L42
	mov	eax, -1
	jmp	.L46
.L42:
	cmp	DWORD PTR -552[rbp], 0
	jne	.L44
	mov	eax, 0
	jmp	.L46
.L44:
	lea	rax, -528[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -544[rbp], rax
	mov	DWORD PTR -548[rbp], 2
	cmp	QWORD PTR -544[rbp], 0
	jne	.L45
	lea	rax, -528[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -544[rbp], rax
	mov	DWORD PTR -548[rbp], 1
	cmp	QWORD PTR -544[rbp], 0
	jne	.L45
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	lea	rdx, -528[rbp]
	mov	rax, QWORD PTR -544[rbp]
	sub	rax, rdx
	add	rax, 1
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -568[rbp]
	lea	rcx, 516[rax]
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	rax, QWORD PTR -536[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -568[rbp]
	mov	BYTE PTR 516[rax+rdx], 0
	mov	rax, QWORD PTR -536[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -568[rbp]
	mov	QWORD PTR 1032[rax], rdx
	mov	eax, 1
.L46:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	handle_read, .-handle_read
	.section	.rodata
.LC18:
	.string	"socket"
.LC19:
	.string	"setsockopt"
.LC20:
	.string	"bind"
.LC21:
	.string	"listen"
	.text
	.type	init_server, @function
init_server:
.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, 64
	mov	eax, edi
	mov	WORD PTR -52[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 512
	lea	rdi, svr[rip]
	call	gethostname@PLT
	movzx	eax, WORD PTR -52[rbp]
	mov	WORD PTR svr[rip+512], ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR svr[rip+516], eax
	mov	eax, DWORD PTR svr[rip+516]
	test	eax, eax
	jns	.L49
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L49:
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	movzx	eax, WORD PTR -52[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR svr[rip+516]
	lea	rdx, -36[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L50
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L50:
	mov	eax, DWORD PTR svr[rip+516]
	lea	rcx, -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L51
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	mov	eax, DWORD PTR svr[rip+516]
	mov	esi, 1024
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L54
	lea	rdi, .LC21[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L54:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	init_server, .-init_server
	.section	.rodata
.LC22:
	.string	"out of memory"
	.text
	.type	e_malloc, @function
e_malloc:
.LFB11:
	.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	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L56
	lea	rdi, .LC22[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L56:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	e_malloc, .-e_malloc
	.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	"1067401.c"
	.text
	.comm	svr,520,4
	.global	requestP
	.bss
	.align	2
	.type	requestP, %object
	.size	requestP, 4
requestP:
	.space	4
	.comm	maxfd,4,4
	.global	accept_read_header
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ACCEPT_FROM_READ\000"
	.data
	.align	2
	.type	accept_read_header, %object
	.size	accept_read_header, 4
accept_read_header:
	.word	.LC0
	.global	accept_write_header
	.section	.rodata
	.align	2
.LC1:
	.ascii	"ACCEPT_FROM_WRITE\000"
	.data
	.align	2
	.type	accept_write_header, %object
	.size	accept_write_header, 4
accept_write_header:
	.word	.LC1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"usage: %s [port]\012\000"
	.align	2
.LC3:
	.ascii	"out of memory allocating all requests\000"
	.align	2
.LC4:
	.ascii	"\012starting on %.80s, port %d, fd %d, maxconn %d.."
	.ascii	".\012\000"
	.align	2
.LC5:
	.ascii	"out of file descriptor table ... (maxconn %d)\012\000"
	.align	2
.LC6:
	.ascii	"accept\000"
	.align	2
.LC7:
	.ascii	"getting a new request... fd %d from %s\012\000"
	.align	2
.LC8:
	.ascii	"bad request from %s\012\000"
	.align	2
.LC9:
	.ascii	"item_list\000"
	.align	2
.LC10:
	.ascii	"This item is locked.\012\000"
	.align	2
.LC11:
	.ascii	"lock failed\000"
	.align	2
.LC12:
	.ascii	"This item is modifiable.\012\000"
	.align	2
.LC13:
	.ascii	"%s : %s\012\000"
	.align	2
.LC14:
	.ascii	"%*s %d\000"
	.align	2
.LC15:
	.ascii	"Operation failed.\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4976
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4928
	sub	sp, sp, #60
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-876]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-880]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #756
	mov	r2, #80
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #420
	mov	r2, #4000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4736
	sub	r3, r3, #12
	sub	r3, r3, #36
	str	r3, [r2, #-848]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-856]
	b	.L2
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-848]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-856]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-856]
	add	r3, r3, #1
	str	r3, [r2, #-856]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-856]
	cmp	r3, #31
	bls	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-876]
	cmp	r3, #2
	beq	.L4
	ldr	r3, .L41+4
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-880]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L41+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-880]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	init_server
	ldr	r3, .L41+12
	ldr	r3, [r3, #516]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-676]
	ldr	r3, .L41+12
	ldr	r3, [r3, #516]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-676]
	bl	getdtablesize
	mov	r3, r0
	ldr	r2, .L41+16
	str	r3, [r2]
	ldr	r3, .L41+16
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L41+80
	str	r2, [r3]
	ldr	r3, .L41+80
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L41+20
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-860]
	b	.L6
.L7:
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-860]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r0, r3
	bl	init_request
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-860]
	add	r3, r3, #1
	str	r3, [r2, #-860]
.L6:
	ldr	r3, .L41+16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-860]
	cmp	r2, r3
	blt	.L7
	ldr	r3, .L41+80
	ldr	r2, [r3]
	ldr	r3, .L41+12
	ldr	r3, [r3, #516]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #6
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, .L41+12
	ldr	r2, [r2, #516]
	str	r2, [r3, #512]
	ldr	r3, .L41+80
	ldr	r2, [r3]
	ldr	r3, .L41+12
	ldr	r3, [r3, #516]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #6
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, .L41+12
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L41+4
	ldr	r0, [r3]
	ldr	r3, .L41+12
	add	r3, r3, #512
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r3, .L41+12
	ldr	r3, [r3, #516]
	ldr	r2, .L41+16
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, .L41+12
	ldr	r1, .L41+24
	bl	fprintf
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r3, r3, #548
	sub	r1, r2, #676
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r1, fp, #4608
	sub	r1, r1, #12
	sub	r1, r1, #36
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r0, #1000
	bl	select
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-852]
	b	.L8
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-852]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-548]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-852]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L38
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-852]
	add	r3, r3, #1
	str	r3, [r2, #-852]
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-852]
	cmp	r3, #1000
	blt	.L11
	b	.L10
.L38:
	nop
.L10:
	ldr	r3, .L41+12
	ldr	r3, [r3, #516]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-852]
	cmp	r2, r3
	bne	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-868]
	ldr	r3, .L41+12
	ldr	r0, [r3, #516]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #4928
	sub	r2, r2, #12
	sub	r2, r2, #36
	sub	r3, fp, #4864
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	bl	accept
	str	r0, [r4, #-844]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-844]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-676]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-844]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-676]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-844]
	cmp	r3, #0
	bge	.L13
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L39
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L39
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #23
	bne	.L17
	ldr	r3, .L41+4
	ldr	r3, [r3]
	ldr	r2, .L41+16
	ldr	r2, [r2]
	ldr	r1, .L41+28
	mov	r0, r3
	bl	fprintf
	b	.L35
.L17:
	ldr	r0, .L41+32
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-844]
	str	r2, [r3, #512]
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-768]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	strcpy
	ldr	r3, .L41+4
	ldr	r0, [r3]
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, r1
	ldr	r2, [r2, #-844]
	ldr	r1, .L41+36
	bl	fprintf
	b	.L35
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-852]
	str	r3, [r2, #-844]
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	handle_read
	str	r0, [r4, #-840]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-840]
	cmp	r3, #0
	bge	.L18
	ldr	r3, .L41+4
	ldr	r0, [r3]
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r2, r3
	ldr	r1, .L41+40
	bl	fprintf
	b	.L35
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-844]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-420]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #516
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-824]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #484
	ldr	r1, .L41+44
	ldr	r0, .L41+48
	bl	open
	str	r0, [r4, #-820]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-756]
	cmp	r3, #1
	bne	.L20
	sub	r3, fp, #528
	ldr	r1, .L41+52
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r4, [r3, #512]
	sub	r3, fp, #528
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #528
	mov	r1, r3
	mov	r0, r4
	bl	write
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #512]
	mov	r0, r3
	bl	close
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #512]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r0, [r3, #-676]
	ldr	r3, .L41+80
	ldr	ip, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-844]
	mov	r3, r1
	lsl	r3, r3, #6
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, ip, r3
	ldr	r3, [r3, #512]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	mvn	r3, r3
	and	r1, r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-676]
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r0, r3
	bl	free_request
	b	.L35
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-800]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #804
	mov	r2, #0
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #12
	str	r3, [r2, #-796]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #804
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	ip, r2, #788
	sub	r3, r3, #804
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #4864
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	mov	r1, #5
	ldr	r0, [r0, #-820]
	bl	fcntl
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #804
	ldrsh	r3, [r3]
	cmp	r3, #1
	bne	.L22
	sub	r3, fp, #528
	ldr	r1, .L41+52
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r4, [r3, #512]
	sub	r3, fp, #528
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #528
	mov	r1, r3
	mov	r0, r4
	bl	write
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #512]
	mov	r0, r3
	bl	close
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #512]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r0, [r3, #-676]
	ldr	r3, .L41+80
	ldr	ip, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-844]
	mov	r3, r1
	lsl	r3, r3, #6
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, ip, r3
	ldr	r3, [r3, #512]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	mvn	r3, r3
	and	r1, r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-676]
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r0, r3
	bl	free_request
	b	.L35
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-756]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r0, [r3, #-820]
	bl	lseek
	sub	r3, fp, #4864
	sub	r3, r3, #12
	sub	r3, r3, #48
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [r0, #-820]
	bl	read
	sub	r3, fp, #4864
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	mov	r1, #6
	ldr	r0, [r0, #-820]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L41+56
	bl	puts
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	cmp	r3, #20
	bgt	.L24
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-824]
	cmp	r3, #0
	ble	.L24
	sub	r3, fp, #528
	ldr	r1, .L41+60
	mov	r0, r3
	bl	sprintf
	b	.L25
.L24:
	ldr	r3, .L41+64
	ldr	ip, [r3]
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #516
	sub	r0, fp, #528
	mov	r2, ip
	ldr	r1, .L41+68
	bl	sprintf
.L25:
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r4, [r3, #512]
	sub	r3, fp, #528
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #528
	mov	r1, r3
	mov	r0, r4
	bl	write
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-844]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-824]
	str	r2, [r3, #-420]
	b	.L35
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-836]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-836]
	cmp	r3, #0
	beq	.L26
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-844]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-420]
	str	r3, [r2, #-832]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #484
	ldr	r1, .L41+44
	ldr	r0, .L41+48
	bl	open
	str	r0, [r4, #-828]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-832]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-756]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-832]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-800]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #804
	mov	r2, #0
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #12
	str	r3, [r2, #-796]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #804
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #4864
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	mov	r1, #6
	ldr	r0, [r0, #-828]
	bl	fcntl
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-832]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r0, [r3, #-828]
	bl	lseek
	sub	r3, fp, #4864
	sub	r3, r3, #12
	sub	r3, r3, #48
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [r0, #-828]
	bl	read
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldrb	r3, [r3, #516]	@ zero_extendqisi2
	cmp	r3, #115
	beq	.L27
	cmp	r3, #115
	bgt	.L28
	cmp	r3, #98
	beq	.L29
	cmp	r3, #112
	beq	.L30
	b	.L28
.L42:
	.align	2
.L41:
	.word	.LC16
	.word	stderr
	.word	.LC2
	.word	svr
	.word	maxfd
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	1052674
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	accept_write_header
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	requestP
.L29:
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #516
	sub	r3, fp, #4928
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r2, r3
	ldr	r1, .L41+72
	bl	__isoc99_sscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-812]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-864]
	cmp	r2, r3
	bge	.L31
	sub	r3, fp, #528
	ldr	r1, .L41+76
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r4, [r3, #512]
	sub	r3, fp, #528
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #528
	mov	r1, r3
	mov	r0, r4
	bl	write
	b	.L28
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-812]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-864]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-812]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-832]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r0, [r3, #-828]
	bl	lseek
	sub	r3, fp, #4864
	sub	r3, r3, #12
	sub	r3, r3, #48
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [r0, #-828]
	bl	write
	b	.L28
.L27:
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #516
	sub	r3, fp, #4928
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r2, r3
	ldr	r1, .L41+72
	bl	__isoc99_sscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-812]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-864]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-812]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-832]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r0, [r3, #-828]
	bl	lseek
	sub	r3, fp, #4864
	sub	r3, r3, #12
	sub	r3, r3, #48
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [r0, #-828]
	bl	write
	b	.L28
.L30:
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #516
	sub	r3, fp, #4928
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r2, r3
	ldr	r1, .L41+72
	bl	__isoc99_sscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-864]
	cmp	r3, #0
	bge	.L33
	sub	r3, fp, #528
	ldr	r1, .L41+76
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r4, [r3, #512]
	sub	r3, fp, #528
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #528
	mov	r1, r3
	mov	r0, r4
	bl	write
	b	.L40
.L33:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-864]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-808]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-832]
	sub	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r0, [r3, #-828]
	bl	lseek
	sub	r3, fp, #4864
	sub	r3, r3, #12
	sub	r3, r3, #48
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [r0, #-828]
	bl	write
.L40:
	nop
.L28:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-844]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-420]
.L26:
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #512]
	mov	r0, r3
	bl	close
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #512]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r0, [r3, #-676]
	ldr	r3, .L41+80
	ldr	ip, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-844]
	mov	r3, r1
	lsl	r3, r3, #6
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, ip, r3
	ldr	r3, [r3, #512]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	mvn	r3, r3
	and	r1, r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-676]
	ldr	r3, .L41+80
	ldr	r1, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-844]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r0, r3
	bl	free_request
	b	.L36
.L39:
	nop
.L35:
	b	.L36
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_request, %function
init_request:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mvn	r2, #0
	str	r2, [r3, #512]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #1028]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #1032]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #1036]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	init_request, .-init_request
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_request, %function
free_request:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	init_request
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_request, .-free_request
	.section	.rodata
	.align	2
.LC17:
	.ascii	"\015\012\000"
	.align	2
.LC18:
	.ascii	"this really should not happen...\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_read, %function
handle_read:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-544]
	ldr	r3, [r3, #512]
	sub	r1, fp, #520
	mov	r2, #512
	mov	r0, r3
	bl	read
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bge	.L46
	mvn	r3, #0
	b	.L50
.L46:
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bne	.L48
	mov	r3, #0
	b	.L50
.L48:
	sub	r3, fp, #520
	ldr	r1, .L52+4
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-536]
	mov	r3, #2
	str	r3, [fp, #-528]
	ldr	r3, [fp, #-536]
	cmp	r3, #0
	bne	.L49
	sub	r3, fp, #520
	mov	r1, #10
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-536]
	mov	r3, #1
	str	r3, [fp, #-528]
	ldr	r3, [fp, #-536]
	cmp	r3, #0
	bne	.L49
	ldr	r0, .L52+8
	bl	perror
	mov	r0, #1
	bl	exit
.L49:
	sub	r3, fp, #520
	ldr	r2, [fp, #-536]
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-524]
	ldr	r3, [fp, #-544]
	add	r3, r3, #516
	sub	r1, fp, #520
	ldr	r2, [fp, #-524]
	mov	r0, r3
	bl	memmove
	ldr	r3, [fp, #-524]
	sub	r3, r3, #1
	ldr	r2, [fp, #-544]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #516]
	ldr	r3, [fp, #-524]
	sub	r2, r3, #1
	ldr	r3, [fp, #-544]
	str	r2, [r3, #1028]
	mov	r3, #1
.L50:
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC19
	.word	.LC17
	.word	.LC18
	.size	handle_read, .-handle_read
	.section	.rodata
	.align	2
.LC20:
	.ascii	"socket\000"
	.align	2
.LC21:
	.ascii	"setsockopt\000"
	.align	2
.LC22:
	.ascii	"bind\000"
	.align	2
.LC23:
	.ascii	"listen\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_server, %function
init_server:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #512
	ldr	r0, .L61+4
	bl	gethostname
	ldr	r3, .L61+4
	add	r3, r3, #512
	ldrh	r2, [fp, #-30]	@ movhi
	strh	r2, [r3]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L61+4
	str	r3, [r2, #516]
	ldr	r3, .L61+4
	ldr	r3, [r3, #516]
	cmp	r3, #0
	bge	.L55
	ldr	r0, .L61+8
	bl	perror
	mov	r0, #1
	bl	exit
.L55:
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldrh	r3, [fp, #-30]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, .L61+4
	ldr	r0, [r3, #516]
	sub	r3, fp, #28
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L56
	ldr	r0, .L61+12
	bl	perror
	mov	r0, #1
	bl	exit
.L56:
	ldr	r3, .L61+4
	ldr	r3, [r3, #516]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L57
	ldr	r0, .L61+16
	bl	perror
	mov	r0, #1
	bl	exit
.L57:
	ldr	r3, .L61+4
	ldr	r3, [r3, #516]
	mov	r1, #1024
	mov	r0, r3
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L60
	ldr	r0, .L61+20
	bl	perror
	mov	r0, #1
	bl	exit
.L60:
	nop
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L59
	bl	__stack_chk_fail
.L59:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC24
	.word	svr
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	init_server, .-init_server
	.section	.rodata
	.align	2
.LC25:
	.ascii	"out of memory\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e_malloc, %function
e_malloc:
	@ 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	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L64
	ldr	r0, .L66
	bl	perror
	mov	r0, #1
	bl	exit
.L64:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC25
	.size	e_malloc, .-e_malloc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
