	.file	"56095.c"
	.intel_syntax noprefix
	.text
	.globl	extensions
	.section	.rodata
.LC0:
	.string	"gif"
.LC1:
	.string	"image/gif"
.LC2:
	.string	"jpg"
.LC3:
	.string	"image/jpg"
.LC4:
	.string	"jpeg"
.LC5:
	.string	"image/jpeg"
.LC6:
	.string	"png"
.LC7:
	.string	"image/png"
.LC8:
	.string	"ico"
.LC9:
	.string	"image/ico"
.LC10:
	.string	"zip"
.LC11:
	.string	"image/zip"
.LC12:
	.string	"gz"
.LC13:
	.string	"image/gz"
.LC14:
	.string	"tar"
.LC15:
	.string	"image/tar"
.LC16:
	.string	"htm"
.LC17:
	.string	"text/html"
.LC18:
	.string	"html"
	.section	.data.rel.local,"aw"
	.align 32
	.type	extensions, @object
	.size	extensions, 176
extensions:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC10
	.quad	.LC11
	.quad	.LC12
	.quad	.LC13
	.quad	.LC14
	.quad	.LC15
	.quad	.LC16
	.quad	.LC17
	.quad	.LC18
	.quad	.LC17
	.quad	0
	.quad	0
	.text
	.type	nweb_write, @function
nweb_write:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -16[rbp], 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jle	.L2
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -16[rbp], rax
.L2:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L3
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nweb_write, .-nweb_write
	.section	.rodata
	.align 8
.LC19:
	.string	"ERROR: %s:%s Errno=%d exiting pid=%d"
	.align 8
.LC20:
	.ascii	"HTTP/1.1 403 Fo"
	.string	"rbidden\nContent-Length: 185\nConnection: close\nContent-Type: text/html\n\n<html><head>\n<title>403 Forbidden</title>\n</head><body>\n<h1>Forbidden</h1>\nThe requested URL, file type or operation is not allowed on this simple static file webserver.\n</body></html>\n"
.LC21:
	.string	"FORBIDDEN: %s:%s"
	.align 8
.LC22:
	.string	"HTTP/1.1 404 Not Found\nContent-Length: 136\nConnection: close\nContent-Type: text/html\n\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\nThe requested URL was not found on this server.\n</body></html>\n"
.LC23:
	.string	"NOT FOUND: %s:%s"
.LC24:
	.string	" INFO: %s:%s:%d"
.LC25:
	.string	"nweb.log"
.LC26:
	.string	"\n"
	.text
	.type	logger, @function
logger:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3976
	.cfi_offset 3, -24
	mov	DWORD PTR -16244[rbp], edi
	mov	QWORD PTR -16256[rbp], rsi
	mov	QWORD PTR -16264[rbp], rdx
	mov	DWORD PTR -16248[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -16244[rbp], 404
	je	.L6
	cmp	DWORD PTR -16244[rbp], 404
	jg	.L7
	cmp	DWORD PTR -16244[rbp], 403
	je	.L8
	cmp	DWORD PTR -16244[rbp], 403
	jg	.L7
	cmp	DWORD PTR -16244[rbp], 42
	je	.L9
	cmp	DWORD PTR -16244[rbp], 44
	je	.L10
	jmp	.L7
.L9:
	call	getpid@PLT
	mov	ebx, eax
	call	__errno_location@PLT
	mov	esi, DWORD PTR [rax]
	mov	rcx, QWORD PTR -16264[rbp]
	mov	rdx, QWORD PTR -16256[rbp]
	lea	rax, -16224[rbp]
	mov	r9d, ebx
	mov	r8d, esi
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -16248[rbp]
	mov	edx, 271
	lea	rsi, .LC20[rip]
	mov	edi, eax
	call	nweb_write
	mov	rcx, QWORD PTR -16264[rbp]
	mov	rdx, QWORD PTR -16256[rbp]
	lea	rax, -16224[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -16248[rbp]
	mov	edx, 224
	lea	rsi, .LC22[rip]
	mov	edi, eax
	call	nweb_write
	mov	rcx, QWORD PTR -16264[rbp]
	mov	rdx, QWORD PTR -16256[rbp]
	lea	rax, -16224[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L7
.L10:
	mov	esi, DWORD PTR -16248[rbp]
	mov	rcx, QWORD PTR -16264[rbp]
	mov	rdx, QWORD PTR -16256[rbp]
	lea	rax, -16224[rbp]
	mov	r8d, esi
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	nop
.L7:
	mov	edx, 420
	mov	esi, 1089
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -16228[rbp], eax
	cmp	DWORD PTR -16228[rbp], 0
	js	.L11
	lea	rax, -16224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -16224[rbp]
	mov	eax, DWORD PTR -16228[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	nweb_write
	mov	eax, DWORD PTR -16228[rbp]
	mov	edx, 1
	lea	rsi, .LC26[rip]
	mov	edi, eax
	call	nweb_write
	mov	eax, DWORD PTR -16228[rbp]
	mov	edi, eax
	call	close@PLT
.L11:
	cmp	DWORD PTR -16244[rbp], 42
	je	.L12
	cmp	DWORD PTR -16244[rbp], 404
	je	.L12
	cmp	DWORD PTR -16244[rbp], 403
	jne	.L15
.L12:
	mov	edi, 3
	call	exit@PLT
.L15:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	logger, .-logger
	.section	.rodata
.LC27:
	.string	""
	.align 8
.LC28:
	.string	"failed to read browser request"
.LC29:
	.string	"request"
.LC30:
	.string	"GET "
.LC31:
	.string	"get "
	.align 8
.LC32:
	.string	"Only simple GET operation supported"
	.align 8
.LC33:
	.string	"Parent directory (..) path names not supported"
.LC34:
	.string	"GET /"
	.string	""
.LC35:
	.string	"get /"
	.string	""
	.align 8
.LC36:
	.string	"file extension type not supported"
.LC37:
	.string	"failed to open file"
.LC38:
	.string	"SEND"
	.align 8
.LC39:
	.string	"HTTP/1.1 200 OK\nServer: nweb/%d.0\nContent-Length: %ld\nConnection: close\nContent-Type: %s\n\n"
.LC40:
	.string	"Header"
	.text
	.type	web, @function
web:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4080
	mov	DWORD PTR -8164[rbp], edi
	mov	DWORD PTR -8168[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -8112[rbp]
	mov	eax, DWORD PTR -8164[rbp]
	mov	edx, 8096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8128[rbp], rax
	cmp	QWORD PTR -8128[rbp], 0
	je	.L17
	cmp	QWORD PTR -8128[rbp], -1
	jne	.L18
.L17:
	mov	eax, DWORD PTR -8164[rbp]
	mov	ecx, eax
	lea	rdx, .LC27[rip]
	lea	rsi, .LC28[rip]
	mov	edi, 403
	call	logger
.L18:
	cmp	QWORD PTR -8128[rbp], 0
	jle	.L19
	cmp	QWORD PTR -8128[rbp], 8095
	jg	.L19
	lea	rdx, -8112[rbp]
	mov	rax, QWORD PTR -8128[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L20
.L19:
	mov	BYTE PTR -8112[rbp], 0
.L20:
	mov	QWORD PTR -8144[rbp], 0
	jmp	.L21
.L24:
	lea	rdx, -8112[rbp]
	mov	rax, QWORD PTR -8144[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	je	.L22
	lea	rdx, -8112[rbp]
	mov	rax, QWORD PTR -8144[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L23
.L22:
	lea	rdx, -8112[rbp]
	mov	rax, QWORD PTR -8144[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 42
.L23:
	add	QWORD PTR -8144[rbp], 1
.L21:
	mov	rax, QWORD PTR -8144[rbp]
	cmp	rax, QWORD PTR -8128[rbp]
	jl	.L24
	mov	edx, DWORD PTR -8168[rbp]
	lea	rax, -8112[rbp]
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC29[rip]
	mov	edi, 44
	call	logger
	lea	rax, -8112[rbp]
	mov	edx, 4
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L25
	lea	rax, -8112[rbp]
	mov	edx, 4
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L25
	mov	edx, DWORD PTR -8164[rbp]
	lea	rax, -8112[rbp]
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC32[rip]
	mov	edi, 403
	call	logger
.L25:
	mov	QWORD PTR -8144[rbp], 4
	jmp	.L26
.L29:
	lea	rdx, -8112[rbp]
	mov	rax, QWORD PTR -8144[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L27
	lea	rdx, -8112[rbp]
	mov	rax, QWORD PTR -8144[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L28
.L27:
	add	QWORD PTR -8144[rbp], 1
.L26:
	cmp	QWORD PTR -8144[rbp], 8095
	jle	.L29
.L28:
	mov	DWORD PTR -8156[rbp], 0
	jmp	.L30
.L32:
	mov	eax, DWORD PTR -8156[rbp]
	cdqe
	movzx	eax, BYTE PTR -8112[rbp+rax]
	cmp	al, 46
	jne	.L31
	mov	eax, DWORD PTR -8156[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR -8112[rbp+rax]
	cmp	al, 46
	jne	.L31
	mov	edx, DWORD PTR -8164[rbp]
	lea	rax, -8112[rbp]
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC33[rip]
	mov	edi, 403
	call	logger
.L31:
	add	DWORD PTR -8156[rbp], 1
.L30:
	mov	eax, DWORD PTR -8156[rbp]
	cdqe
	mov	rdx, QWORD PTR -8144[rbp]
	sub	rdx, 1
	cmp	rax, rdx
	jl	.L32
	lea	rax, -8112[rbp]
	mov	rdx, rax
	lea	rax, .LC34[rip]
	mov	ecx, 6
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	je	.L33
	lea	rax, -8112[rbp]
	mov	rdx, rax
	lea	rax, .LC35[rip]
	mov	ecx, 6
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	jne	.L34
.L33:
	lea	rax, -8112[rbp]
	movabs	rsi, 7236837302357738823
	movabs	rdi, 30519644216260709
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
.L34:
	lea	rax, -8112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8152[rbp], eax
	mov	QWORD PTR -8136[rbp], 0
	mov	QWORD PTR -8144[rbp], 0
	jmp	.L35
.L38:
	mov	rax, QWORD PTR -8144[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, extensions[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8120[rbp], rax
	mov	rdx, QWORD PTR -8120[rbp]
	mov	rax, QWORD PTR -8144[rbp]
	sal	rax, 4
	mov	rcx, rax
	lea	rax, extensions[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	ecx, DWORD PTR -8152[rbp]
	movsx	rcx, ecx
	sub	rcx, QWORD PTR -8120[rbp]
	lea	rsi, -8112[rbp]
	add	rcx, rsi
	mov	rsi, rax
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -8144[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, extensions[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8136[rbp], rax
	jmp	.L37
.L36:
	add	QWORD PTR -8144[rbp], 1
.L35:
	mov	rax, QWORD PTR -8144[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, extensions[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L38
.L37:
	cmp	QWORD PTR -8136[rbp], 0
	jne	.L39
	mov	edx, DWORD PTR -8164[rbp]
	lea	rax, -8112[rbp]
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC36[rip]
	mov	edi, 403
	call	logger
.L39:
	lea	rax, -8112[rbp]
	add	rax, 5
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8148[rbp], eax
	cmp	DWORD PTR -8148[rbp], -1
	jne	.L40
	mov	eax, DWORD PTR -8164[rbp]
	lea	rdx, -8112[rbp]
	add	rdx, 5
	mov	ecx, eax
	lea	rsi, .LC37[rip]
	mov	edi, 404
	call	logger
.L40:
	mov	eax, DWORD PTR -8168[rbp]
	lea	rdx, -8112[rbp]
	add	rdx, 5
	mov	ecx, eax
	lea	rsi, .LC38[rip]
	mov	edi, 44
	call	logger
	mov	eax, DWORD PTR -8148[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -8120[rbp], rax
	mov	eax, DWORD PTR -8148[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	rcx, QWORD PTR -8136[rbp]
	mov	rdx, QWORD PTR -8120[rbp]
	lea	rax, -8112[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 23
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edx, DWORD PTR -8168[rbp]
	lea	rax, -8112[rbp]
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC40[rip]
	mov	edi, 44
	call	logger
	lea	rax, -8112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -8112[rbp]
	mov	eax, DWORD PTR -8164[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	nweb_write
	jmp	.L41
.L42:
	mov	rdx, QWORD PTR -8128[rbp]
	lea	rcx, -8112[rbp]
	mov	eax, DWORD PTR -8164[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	nweb_write
.L41:
	lea	rcx, -8112[rbp]
	mov	eax, DWORD PTR -8148[rbp]
	mov	edx, 8096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8128[rbp], rax
	cmp	QWORD PTR -8128[rbp], 0
	jg	.L42
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR -8164[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	web, .-web
	.section	.rodata
.LC41:
	.string	"-?"
	.align 8
.LC42:
	.ascii	"hint: nweb Port-Number Top-Directory\t\tversion %d\n\n\tnweb"
	.ascii	" is a small "
	.string	"and very safe mini web server\n\tnweb only servers out file/web pages with extensions named below\n\t and only from the named directory or its sub-directories.\n\tThere is no fancy features = safe and secure.\n\n\tExample: nweb 8181 /home/nwebdir &\n\n\tOnly Supports:"
.LC43:
	.string	" %s"
	.align 8
.LC44:
	.string	"\n\tNot Supported: URLs including \"..\", Java, Javascript, CGI\n\tNot Supported: directories / /etc /bin /lib /tmp /usr /dev /sbin \n\tNo warranty given or implied\n\tNigel Griffiths nag@uk.ibm.com"
.LC45:
	.string	"/"
.LC46:
	.string	"/etc"
.LC47:
	.string	"/bin"
.LC48:
	.string	"/lib"
.LC49:
	.string	"/tmp"
.LC50:
	.string	"/usr"
.LC51:
	.string	"/dev"
.LC52:
	.string	"/sbin"
	.align 8
.LC53:
	.string	"ERROR: Bad top directory %s, see nweb -?\n"
	.align 8
.LC54:
	.string	"ERROR: Can't Change to directory %s\n"
.LC55:
	.string	"nweb starting"
.LC56:
	.string	"socket"
.LC57:
	.string	"system call"
	.align 8
.LC58:
	.string	"Invalid port number (try 1->60000)"
.LC59:
	.string	"bind"
.LC60:
	.string	"listen"
.LC61:
	.string	"accept"
.LC62:
	.string	"fork"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 2
	jle	.L45
	cmp	DWORD PTR -52[rbp], 3
	jg	.L45
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L46
.L45:
	mov	esi, 23
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, extensions[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L47:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, extensions[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L48
	lea	rdi, .LC44[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L46:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC45[rip]
	mov	ecx, 2
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC46[rip]
	mov	ecx, 5
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC47[rip]
	mov	ecx, 5
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC48[rip]
	mov	ecx, 5
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC49[rip]
	mov	ecx, 5
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC50[rip]
	mov	ecx, 5
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC51[rip]
	mov	ecx, 5
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rax, .LC52[rip]
	mov	ecx, 6
	mov	rsi, rdx
	mov	rdi, rax
	repz cmpsb
	seta	al
	setb	dl
	sub	eax, edx
	movsx	eax, al
	test	eax, eax
	jne	.L50
.L49:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	exit@PLT
.L50:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	cmp	eax, -1
	jne	.L51
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC54[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 4
	call	exit@PLT
.L51:
	call	fork@PLT
	test	eax, eax
	je	.L52
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L66
	jmp	.L67
.L52:
	mov	esi, 1
	mov	edi, 17
	call	signal@PLT
	mov	esi, 1
	mov	edi, 1
	call	signal@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L54
.L55:
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -32[rbp], 1
.L54:
	cmp	DWORD PTR -32[rbp], 31
	jle	.L55
	call	setpgrp@PLT
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC55[rip]
	mov	edi, 44
	call	logger
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L56
	mov	ecx, 0
	lea	rdx, .LC56[rip]
	lea	rsi, .LC57[rip]
	mov	edi, 42
	call	logger
.L56:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	js	.L57
	cmp	DWORD PTR -20[rbp], 60000
	jle	.L58
.L57:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	ecx, 0
	mov	rdx, rax
	lea	rsi, .LC58[rip]
	mov	edi, 42
	call	logger
.L58:
	mov	WORD PTR serv_addr.1[rip], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR serv_addr.1[rip+4], eax
	mov	eax, DWORD PTR -20[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR serv_addr.1[rip+2], ax
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 16
	lea	rsi, serv_addr.1[rip]
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L59
	mov	ecx, 0
	lea	rdx, .LC59[rip]
	lea	rsi, .LC57[rip]
	mov	edi, 42
	call	logger
.L59:
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 64
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L60
	mov	ecx, 0
	lea	rdx, .LC60[rip]
	lea	rsi, .LC57[rip]
	mov	edi, 42
	call	logger
.L60:
	mov	DWORD PTR -28[rbp], 1
.L65:
	mov	DWORD PTR -36[rbp], 16
	lea	rdx, -36[rbp]
	mov	eax, DWORD PTR -24[rbp]
	lea	rsi, cli_addr.0[rip]
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jns	.L61
	mov	ecx, 0
	lea	rdx, .LC61[rip]
	lea	rsi, .LC57[rip]
	mov	edi, 42
	call	logger
.L61:
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L62
	mov	ecx, 0
	lea	rdx, .LC62[rip]
	lea	rsi, .LC57[rip]
	mov	edi, 42
	call	logger
	jmp	.L63
.L62:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L64
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	web
	jmp	.L63
.L64:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
.L63:
	add	DWORD PTR -28[rbp], 1
	jmp	.L65
.L67:
	call	__stack_chk_fail@PLT
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.local	serv_addr.1
	.comm	serv_addr.1,16,16
	.local	cli_addr.0
	.comm	cli_addr.0,16,16
	.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	"56095.c"
	.text
	.global	extensions
	.section	.rodata
	.align	2
.LC0:
	.ascii	"gif\000"
	.align	2
.LC1:
	.ascii	"image/gif\000"
	.align	2
.LC2:
	.ascii	"jpg\000"
	.align	2
.LC3:
	.ascii	"image/jpg\000"
	.align	2
.LC4:
	.ascii	"jpeg\000"
	.align	2
.LC5:
	.ascii	"image/jpeg\000"
	.align	2
.LC6:
	.ascii	"png\000"
	.align	2
.LC7:
	.ascii	"image/png\000"
	.align	2
.LC8:
	.ascii	"ico\000"
	.align	2
.LC9:
	.ascii	"image/ico\000"
	.align	2
.LC10:
	.ascii	"zip\000"
	.align	2
.LC11:
	.ascii	"image/zip\000"
	.align	2
.LC12:
	.ascii	"gz\000"
	.align	2
.LC13:
	.ascii	"image/gz\000"
	.align	2
.LC14:
	.ascii	"tar\000"
	.align	2
.LC15:
	.ascii	"image/tar\000"
	.align	2
.LC16:
	.ascii	"htm\000"
	.align	2
.LC17:
	.ascii	"text/html\000"
	.align	2
.LC18:
	.ascii	"html\000"
	.data
	.align	2
	.type	extensions, %object
	.size	extensions, 88
extensions:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC17
	.word	0
	.word	0
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nweb_write, %function
nweb_write:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r1, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	nweb_write, .-nweb_write
	.section	.rodata
	.align	2
.LC19:
	.ascii	"ERROR: %s:%s Errno=%d exiting pid=%d\000"
	.align	2
.LC20:
	.ascii	"HTTP/1.1 403 Forbidden\012Content-Length: 185\012Co"
	.ascii	"nnection: close\012Content-Type: text/html\012\012<"
	.ascii	"html><head>\012<title>403 Forbidden</title>\012</he"
	.ascii	"ad><body>\012<h1>Forbidden</h1>\012The requested UR"
	.ascii	"L, file type or operation is not allowed on this si"
	.ascii	"mple static file webserver.\012</body></html>\012\000"
	.align	2
.LC21:
	.ascii	"FORBIDDEN: %s:%s\000"
	.align	2
.LC22:
	.ascii	"HTTP/1.1 404 Not Found\012Content-Length: 136\012Co"
	.ascii	"nnection: close\012Content-Type: text/html\012\012<"
	.ascii	"html><head>\012<title>404 Not Found</title>\012</he"
	.ascii	"ad><body>\012<h1>Not Found</h1>\012The requested UR"
	.ascii	"L was not found on this server.\012</body></html>\012"
	.ascii	"\000"
	.align	2
.LC23:
	.ascii	"NOT FOUND: %s:%s\000"
	.align	2
.LC24:
	.ascii	" INFO: %s:%s:%d\000"
	.align	2
.LC25:
	.ascii	"nweb.log\000"
	.align	2
.LC26:
	.ascii	"\012\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	logger, %function
logger:
	@ args = 0, pretend = 0, frame = 16216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16192
	sub	sp, sp, #36
	sub	ip, fp, #12288
	sub	ip, ip, #12
	str	r0, [ip, #-3916]
	sub	r0, fp, #12288
	sub	r0, r0, #12
	str	r1, [r0, #-3920]
	sub	r1, fp, #12288
	sub	r1, r1, #12
	str	r2, [r1, #-3924]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	str	r3, [r2, #-3928]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	cmp	r3, #404
	beq	.L6
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	cmp	r3, #404
	bgt	.L7
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	ldr	r2, .L16+4
	cmp	r3, r2
	beq	.L8
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	cmp	r3, #404
	bge	.L7
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	cmp	r3, #42
	beq	.L9
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	cmp	r3, #44
	beq	.L10
	b	.L7
.L9:
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r0, fp, #16192
	sub	r0, r0, #12
	sub	r0, r0, #4
	str	r3, [sp, #4]
	str	r4, [sp]
	ldr	r3, [r1, #-3924]
	ldr	r2, [r2, #-3920]
	ldr	r1, .L16+8
	bl	sprintf
	b	.L7
.L8:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r2, .L16+12
	ldr	r1, .L16+16
	ldr	r0, [r3, #-3928]
	bl	nweb_write
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r0, fp, #16192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-3924]
	ldr	r2, [r2, #-3920]
	ldr	r1, .L16+20
	bl	sprintf
	b	.L7
.L6:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, #224
	ldr	r1, .L16+24
	ldr	r0, [r3, #-3928]
	bl	nweb_write
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r0, fp, #16192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-3924]
	ldr	r2, [r2, #-3920]
	ldr	r1, .L16+28
	bl	sprintf
	b	.L7
.L10:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r0, fp, #16192
	sub	r0, r0, #12
	sub	r0, r0, #4
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3928]
	str	r3, [sp]
	ldr	r3, [r1, #-3924]
	ldr	r2, [r2, #-3920]
	ldr	r1, .L16+32
	bl	sprintf
	nop
.L7:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #420
	ldr	r1, .L16+36
	ldr	r0, .L16+40
	bl	open
	str	r0, [r4, #-3912]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3912]
	cmp	r3, #0
	blt	.L11
	sub	r3, fp, #16192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #16192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #12288
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-3912]
	bl	nweb_write
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, #1
	ldr	r1, .L16+44
	ldr	r0, [r3, #-3912]
	bl	nweb_write
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-3912]
	bl	close
.L11:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	cmp	r3, #42
	beq	.L12
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	cmp	r3, #404
	beq	.L12
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	ldr	r2, .L16+4
	cmp	r3, r2
	bne	.L15
.L12:
	mov	r0, #3
	bl	exit
.L15:
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC27
	.word	403
	.word	.LC19
	.word	271
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	1089
	.word	.LC25
	.word	.LC26
	.size	logger, .-logger
	.section	.rodata
	.align	2
.LC28:
	.ascii	"\000"
	.align	2
.LC29:
	.ascii	"failed to read browser request\000"
	.align	2
.LC30:
	.ascii	"request\000"
	.align	2
.LC31:
	.ascii	"GET \000"
	.align	2
.LC32:
	.ascii	"get \000"
	.align	2
.LC33:
	.ascii	"Only simple GET operation supported\000"
	.align	2
.LC34:
	.ascii	"Parent directory (..) path names not supported\000"
	.align	2
.LC35:
	.ascii	"GET /\000\000"
	.align	2
.LC36:
	.ascii	"get /\000\000"
	.align	2
.LC37:
	.ascii	"GET /index.html\000"
	.align	2
.LC38:
	.ascii	"file extension type not supported\000"
	.align	2
.LC39:
	.ascii	"failed to open file\000"
	.align	2
.LC40:
	.ascii	"SEND\000"
	.align	2
.LC41:
	.ascii	"HTTP/1.1 200 OK\012Server: nweb/%d.0\012Content-Len"
	.ascii	"gth: %ld\012Connection: close\012Content-Type: %s\012"
	.ascii	"\012\000"
	.align	2
.LC42:
	.ascii	"Header\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	web, %function
web:
	@ args = 0, pretend = 0, frame = 8144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8128
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-4044]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-4048]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	ldr	r2, .L46+4
	mov	r1, r3
	ldr	r0, [r0, #-4044]
	bl	read
	str	r0, [r4, #-4024]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4024]
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4024]
	cmn	r3, #1
	bne	.L20
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4044]
	ldr	r2, .L46+8
	ldr	r1, .L46+12
	ldr	r0, .L46+16
	bl	logger
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4024]
	cmp	r3, #0
	ble	.L21
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4024]
	ldr	r2, .L46+20
	cmp	r3, r2
	bgt	.L21
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4024]
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	mov	r2, #0
	strb	r2, [r3]
	b	.L22
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-4008]
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4032]
	b	.L23
.L26:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L24
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L25
.L24:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	mov	r2, #42
	strb	r2, [r3]
.L25:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	add	r3, r3, #1
	str	r3, [r2, #-4032]
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-4032]
	ldr	r3, [r3, #-4024]
	cmp	r2, r3
	blt	.L26
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #8064
	sub	r2, r2, #12
	sub	r2, r2, #40
	ldr	r3, [r3, #-4048]
	ldr	r1, .L46+24
	mov	r0, #44
	bl	logger
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	mov	r2, #4
	ldr	r1, .L46+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	mov	r2, #4
	ldr	r1, .L46+32
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #8064
	sub	r2, r2, #12
	sub	r2, r2, #40
	ldr	r3, [r3, #-4044]
	ldr	r1, .L46+36
	ldr	r0, .L46+16
	bl	logger
.L27:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #4
	str	r3, [r2, #-4032]
	b	.L28
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L29
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	mov	r2, #0
	strb	r2, [r3]
	b	.L30
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	add	r3, r3, #1
	str	r3, [r2, #-4032]
.L28:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	ldr	r2, .L46+20
	cmp	r3, r2
	ble	.L31
.L30:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4036]
	b	.L32
.L34:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4036]
	add	r3, r2, r3
	sub	r3, r3, #4000
	sub	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L33
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4036]
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4008]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L33
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #8064
	sub	r2, r2, #12
	sub	r2, r2, #40
	ldr	r3, [r3, #-4044]
	ldr	r1, .L46+40
	ldr	r0, .L46+16
	bl	logger
.L33:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4036]
	add	r3, r3, #1
	str	r3, [r2, #-4036]
.L32:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-4036]
	cmp	r2, r3
	blt	.L34
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	ldr	r1, .L46+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	ldr	r1, .L46+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
.L35:
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	ldr	r2, .L46+52
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
.L36:
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-4020]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4028]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4032]
	b	.L37
.L40:
	ldr	r2, .L46+56
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	ldr	r3, [r2, r3, lsl #3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-4016]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-4020]
	ldr	r3, [r3, #-4016]
	sub	r2, r2, r3
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	add	r0, r3, r2
	ldr	r2, .L46+56
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	ldr	r3, [r2, r3, lsl #3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-4016]
	mov	r1, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r2, .L46+56
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [r1, #-4028]
	b	.L39
.L38:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	add	r3, r3, #1
	str	r3, [r2, #-4032]
.L37:
	ldr	r2, .L46+56
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	ldr	r3, [r2, r3, lsl #3]
	cmp	r3, #0
	bne	.L40
.L39:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4028]
	cmp	r3, #0
	bne	.L41
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #8064
	sub	r2, r2, #12
	sub	r2, r2, #40
	ldr	r3, [r3, #-4044]
	ldr	r1, .L46+60
	ldr	r0, .L46+16
	bl	logger
.L41:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	add	r3, r3, #5
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [r4, #-4012]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4012]
	cmn	r3, #1
	bne	.L42
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	add	r2, r3, #5
	ldr	r3, [r1, #-4044]
	ldr	r1, .L46+64
	mov	r0, #404
	bl	logger
.L42:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	add	r2, r3, #5
	ldr	r3, [r1, #-4048]
	ldr	r1, .L46+68
	mov	r0, #44
	bl	logger
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-4012]
	bl	lseek
	str	r0, [r4, #-4016]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-4012]
	bl	lseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r0, fp, #8064
	sub	r0, r0, #12
	sub	r0, r0, #40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4028]
	str	r3, [sp]
	ldr	r3, [r2, #-4016]
	mov	r2, #23
	ldr	r1, .L46+72
	bl	sprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #8064
	sub	r2, r2, #12
	sub	r2, r2, #40
	ldr	r3, [r3, #-4048]
	ldr	r1, .L46+76
	mov	r0, #44
	bl	logger
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-4044]
	bl	nweb_write
	b	.L43
.L44:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-4024]
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-4044]
	bl	nweb_write
.L43:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #40
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	ldr	r2, .L46+4
	mov	r1, r3
	ldr	r0, [r0, #-4012]
	bl	read
	str	r0, [r4, #-4024]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4024]
	cmp	r3, #0
	bgt	.L44
	mov	r0, #1
	bl	sleep
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-4044]
	bl	close
	mov	r0, #1
	bl	exit
.L47:
	.align	2
.L46:
	.word	.LC43
	.word	8096
	.word	.LC28
	.word	.LC29
	.word	403
	.word	8095
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	extensions
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.size	web, .-web
	.section	.rodata
	.align	2
.LC44:
	.ascii	"-?\000"
	.align	2
.LC45:
	.ascii	"hint: nweb Port-Number Top-Directory\011\011version"
	.ascii	" %d\012\012\011nweb is a small and very safe mini w"
	.ascii	"eb server\012\011nweb only servers out file/web pag"
	.ascii	"es with extensions named below\012\011 and only fro"
	.ascii	"m the named directory or its sub-directories.\012\011"
	.ascii	"There is no fancy features = safe and secure.\012\012"
	.ascii	"\011Example: nweb 8181 /home/nwebdir &\012\012\011O"
	.ascii	"nly Supports:\000"
	.align	2
.LC46:
	.ascii	" %s\000"
	.align	2
.LC47:
	.ascii	"\012\011Not Supported: URLs including \"..\", Java,"
	.ascii	" Javascript, CGI\012\011Not Supported: directories "
	.ascii	"/ /etc /bin /lib /tmp /usr /dev /sbin \012\011No wa"
	.ascii	"rranty given or implied\012\011Nigel Griffiths nag@"
	.ascii	"uk.ibm.com\000"
	.align	2
.LC48:
	.ascii	"/\000"
	.align	2
.LC49:
	.ascii	"/etc\000"
	.align	2
.LC50:
	.ascii	"/bin\000"
	.align	2
.LC51:
	.ascii	"/lib\000"
	.align	2
.LC52:
	.ascii	"/tmp\000"
	.align	2
.LC53:
	.ascii	"/usr\000"
	.align	2
.LC54:
	.ascii	"/dev\000"
	.align	2
.LC55:
	.ascii	"/sbin\000"
	.align	2
.LC56:
	.ascii	"ERROR: Bad top directory %s, see nweb -?\012\000"
	.align	2
.LC57:
	.ascii	"ERROR: Can't Change to directory %s\012\000"
	.align	2
.LC58:
	.ascii	"nweb starting\000"
	.align	2
.LC59:
	.ascii	"socket\000"
	.align	2
.LC60:
	.ascii	"system call\000"
	.align	2
.LC61:
	.ascii	"Invalid port number (try 1->60000)\000"
	.align	2
.LC62:
	.ascii	"bind\000"
	.align	2
.LC63:
	.ascii	"listen\000"
	.align	2
.LC64:
	.ascii	"accept\000"
	.align	2
.LC65:
	.ascii	"fork\000"
	.align	2
.LC66:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L72
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	ble	.L49
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	bgt	.L49
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L72+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
.L49:
	mov	r1, #23
	ldr	r0, .L72+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L51
.L52:
	ldr	r2, .L72+12
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #3]
	mov	r1, r3
	ldr	r0, .L72+16
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L51:
	ldr	r2, .L72+12
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #3]
	cmp	r3, #0
	bne	.L52
	ldr	r0, .L72+20
	bl	puts
	mov	r0, #0
	bl	exit
.L50:
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L72+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L72+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L72+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L72+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L72+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L72+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L72+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L72+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
.L53:
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L72+56
	bl	printf
	mov	r0, #3
	bl	exit
.L54:
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L55
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L72+60
	bl	printf
	mov	r0, #4
	bl	exit
.L55:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	mov	r3, #0
	ldr	r2, .L72
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L70
	b	.L71
.L56:
	mov	r1, #1
	mov	r0, #17
	bl	signal
	mov	r1, #1
	mov	r0, #1
	bl	signal
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L58
.L59:
	ldr	r0, [fp, #-40]
	bl	close
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L58:
	ldr	r3, [fp, #-40]
	cmp	r3, #31
	ble	.L59
	bl	setpgrp
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	mov	r2, r4
	ldr	r1, .L72+64
	mov	r0, #44
	bl	logger
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L60
	mov	r3, #0
	ldr	r2, .L72+68
	ldr	r1, .L72+72
	mov	r0, #42
	bl	logger
.L60:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	blt	.L61
	ldr	r3, [fp, #-28]
	ldr	r2, .L72+76
	cmp	r3, r2
	ble	.L62
.L61:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r2, [r3]
	mov	r3, #0
	ldr	r1, .L72+80
	mov	r0, #42
	bl	logger
.L62:
	ldr	r3, .L72+84
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	ldr	r2, .L72+84
	str	r3, [r2, #4]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L72+84
	strh	r2, [r3, #2]	@ movhi
	mov	r2, #16
	ldr	r1, .L72+84
	ldr	r0, [fp, #-32]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L63
	mov	r3, #0
	ldr	r2, .L72+88
	ldr	r1, .L72+72
	mov	r0, #42
	bl	logger
.L63:
	mov	r1, #64
	ldr	r0, [fp, #-32]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L64
	mov	r3, #0
	ldr	r2, .L72+92
	ldr	r1, .L72+72
	mov	r0, #42
	bl	logger
.L64:
	mov	r3, #1
	str	r3, [fp, #-36]
.L69:
	mov	r3, #16
	str	r3, [fp, #-44]
	sub	r3, fp, #44
	mov	r2, r3
	ldr	r1, .L72+96
	ldr	r0, [fp, #-32]
	bl	accept
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L65
	mov	r3, #0
	ldr	r2, .L72+100
	ldr	r1, .L72+72
	mov	r0, #42
	bl	logger
.L65:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L66
	mov	r3, #0
	ldr	r2, .L72+104
	ldr	r1, .L72+72
	mov	r0, #42
	bl	logger
	b	.L67
.L66:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L68
	ldr	r0, [fp, #-32]
	bl	close
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-24]
	bl	web
	b	.L67
.L68:
	ldr	r0, [fp, #-24]
	bl	close
.L67:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L69
.L71:
	bl	__stack_chk_fail
.L70:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L73:
	.align	2
.L72:
	.word	.LC66
	.word	.LC44
	.word	.LC45
	.word	extensions
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	60000
	.word	.LC61
	.word	serv_addr.6742
	.word	.LC62
	.word	.LC63
	.word	cli_addr.6741
	.word	.LC64
	.word	.LC65
	.size	main, .-main
	.local	serv_addr.6742
	.comm	serv_addr.6742,16,4
	.local	cli_addr.6741
	.comm	cli_addr.6741,16,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
