	.file	"46550.c"
	.intel_syntax noprefix
	.text
	.globl	outputType
	.bss
	.align 8
	.type	outputType, @object
	.size	outputType, 8
outputType:
	.zero	8
	.section	.rodata
.LC0:
	.string	"socket error"
.LC1:
	.string	"bind error"
.LC2:
	.string	"listen error"
	.align 8
.LC3:
	.string	"Waiting for a connection on port %d\n"
.LC4:
	.string	"accept error"
.LC5:
	.string	"request Type: %s \n"
.LC6:
	.string	"%s %s \n"
.LC7:
	.string	"/"
.LC8:
	.string	"GET"
	.align 8
.LC9:
	.string	"This is the root page of the server"
.LC10:
	.string	"text/html"
	.align 8
.LC11:
	.string	"HTTP/1.1 200 OK\nConnection: close\nContent-length: %ld\nContent-type: %s\n\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
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 3232
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -3236[rbp], edi
	mov	QWORD PTR -3248[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -3120[rbp], 0
	mov	QWORD PTR -3112[rbp], 0
	lea	rdx, -3104[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -3200[rbp], eax
	cmp	DWORD PTR -3200[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L27
.L2:
	mov	WORD PTR -3152[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -3148[rbp], eax
	mov	edi, 12000
	call	htons@PLT
	mov	WORD PTR -3150[rbp], ax
	lea	rcx, -3152[rbp]
	mov	eax, DWORD PTR -3200[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L27
.L4:
	mov	eax, DWORD PTR -3200[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L27
.L5:
	mov	DWORD PTR -3220[rbp], 16
	mov	esi, 12000
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdx, -3220[rbp]
	lea	rcx, -3152[rbp]
	mov	eax, DWORD PTR -3200[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -3196[rbp], eax
	cmp	DWORD PTR -3196[rbp], 0
	jns	.L6
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L27
.L6:
	lea	rcx, -3120[rbp]
	mov	eax, DWORD PTR -3196[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -3192[rbp], 0
	mov	DWORD PTR -3216[rbp], 0
	mov	BYTE PTR -3222[rbp], 0
	mov	DWORD PTR -3212[rbp], 0
	jmp	.L7
.L13:
	movzx	eax, BYTE PTR -3222[rbp]
	xor	eax, 1
	test	al, al
	je	.L8
	mov	eax, DWORD PTR -3212[rbp]
	cdqe
	movzx	eax, BYTE PTR -3120[rbp+rax]
	cmp	al, 32
	jne	.L8
	mov	eax, DWORD PTR -3216[rbp]
	cdqe
	mov	BYTE PTR -3124[rbp+rax], 0
	mov	DWORD PTR -3216[rbp], 0
	mov	BYTE PTR -3222[rbp], 1
	jmp	.L9
.L8:
	cmp	BYTE PTR -3222[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -3212[rbp]
	cdqe
	movzx	eax, BYTE PTR -3120[rbp+rax]
	cmp	al, 32
	jne	.L10
	mov	eax, DWORD PTR -3216[rbp]
	cdqe
	mov	BYTE PTR -2096[rbp+rax], 0
	mov	DWORD PTR -3216[rbp], 0
	jmp	.L11
.L10:
	movzx	eax, BYTE PTR -3222[rbp]
	xor	eax, 1
	test	al, al
	je	.L12
	mov	eax, DWORD PTR -3212[rbp]
	cdqe
	movzx	edx, BYTE PTR -3120[rbp+rax]
	mov	eax, DWORD PTR -3216[rbp]
	cdqe
	mov	BYTE PTR -3124[rbp+rax], dl
	add	DWORD PTR -3216[rbp], 1
	jmp	.L9
.L12:
	cmp	BYTE PTR -3222[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -3212[rbp]
	cdqe
	movzx	edx, BYTE PTR -3120[rbp+rax]
	mov	eax, DWORD PTR -3216[rbp]
	cdqe
	mov	BYTE PTR -2096[rbp+rax], dl
	add	DWORD PTR -3216[rbp], 1
.L9:
	add	DWORD PTR -3212[rbp], 1
.L7:
	mov	eax, DWORD PTR -3212[rbp]
	movsx	rbx, eax
	lea	rax, -3120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jbe	.L13
.L11:
	lea	rax, -3120[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -2096[rbp]
	lea	rax, -3124[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -3221[rbp], 0
	mov	DWORD PTR -3208[rbp], 0
	mov	DWORD PTR -3204[rbp], 0
	jmp	.L14
.L18:
	mov	eax, DWORD PTR -3204[rbp]
	cdqe
	movzx	eax, BYTE PTR -2096[rbp+rax]
	cmp	al, 46
	jne	.L15
	mov	BYTE PTR -3221[rbp], 1
	jmp	.L16
.L15:
	cmp	BYTE PTR -3221[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -3204[rbp]
	cdqe
	movzx	edx, BYTE PTR -2096[rbp+rax]
	mov	eax, DWORD PTR -3208[rbp]
	cdqe
	mov	BYTE PTR -1072[rbp+rax], dl
	add	DWORD PTR -3208[rbp], 1
.L17:
	mov	eax, DWORD PTR -3204[rbp]
	cdqe
	movzx	eax, BYTE PTR -2096[rbp+rax]
	test	al, al
	jne	.L16
	mov	eax, DWORD PTR -3208[rbp]
	cdqe
	mov	BYTE PTR -1072[rbp+rax], 0
	mov	BYTE PTR -3221[rbp], 0
	mov	DWORD PTR -3208[rbp], 0
.L16:
	add	DWORD PTR -3204[rbp], 1
.L14:
	mov	eax, DWORD PTR -3204[rbp]
	movsx	rbx, eax
	lea	rax, -2096[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L18
	lea	rax, -2096[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 2
	ja	.L19
	mov	BYTE PTR -1072[rbp], 0
.L19:
	lea	rax, -2096[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -3184[rbp], rax
	lea	rax, -1072[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	jbe	.L20
	lea	rax, -1072[rbp]
	mov	QWORD PTR outputType[rip], rax
	jmp	.L21
.L20:
	mov	QWORD PTR outputType[rip], 0
.L21:
	lea	rax, -3124[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
	lea	rax, -2096[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
	mov	rax, rsp
	mov	r12, rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -3176[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR outputType[rip], rax
	mov	rax, QWORD PTR -3176[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 100
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -3168[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	QWORD PTR -3264[rbp], rax
	mov	QWORD PTR -3256[rbp], 0
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L23:
	cmp	rsp, rdx
	je	.L24
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L23
.L24:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L25
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L25:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -3160[rbp], rax
	mov	rbx, QWORD PTR outputType[rip]
	mov	rax, QWORD PTR -3176[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -3160[rbp]
	mov	rcx, rbx
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -3188[rbp], eax
	mov	rax, QWORD PTR -3176[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -3188[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -3160[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -3176[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -3188[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -3176[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, [rbx+rax]
	mov	rsi, QWORD PTR -3160[rbp]
	mov	eax, DWORD PTR -3196[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	rsp, r12
	jmp	.L26
.L22:
	mov	rdx, QWORD PTR -3184[rbp]
	mov	eax, DWORD PTR -3196[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	handleFile
.L26:
	mov	eax, DWORD PTR -3196[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L5
.L27:
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC12:
	.string	"r"
	.align 8
.LC13:
	.string	"HTTP/1.1 OK\nConnection: close\nContent-length: %ld\nContent-type: %s\n\n"
.LC14:
	.string	"HTTP/1.1 200 FILE FOUND \n"
.LC15:
	.string	"404: file cannot be found"
	.align 8
.LC16:
	.string	"HTTP/1.1  NOT FOUND\nConnection: close\nContent-length: %ld\nContent-type: %s\n\n"
.LC17:
	.string	"HTTP/1.1 404 NOT FOUND \n"
	.text
	.globl	handleFile
	.type	handleFile, @function
handleFile:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 136
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -144[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jne	.L31
	mov	rax, rsp
	mov	rbx, rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rcx, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 100
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], 0
	mov	r12, rax
	mov	r13d, 0
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L32:
	cmp	rsp, rdx
	je	.L33
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L32
.L33:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L34
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L34:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	rcx, QWORD PTR outputType[rip]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -124[rbp], eax
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	rsi, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	rsp, rbx
.L31:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L40
.L30:
	mov	rax, rsp
	mov	r12, rax
	lea	rax, .LC15[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR outputType[rip], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 100
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -96[rbp], rdx
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], 0
	mov	r14, rax
	mov	r15d, 0
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L36:
	cmp	rsp, rdx
	je	.L37
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L36
.L37:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L38
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L38:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -88[rbp], rax
	mov	rbx, QWORD PTR outputType[rip]
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, rbx
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -128[rbp], eax
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -128[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -128[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, [rbx+rax]
	mov	rsi, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	rsp, r12
.L40:
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	handleFile, .-handleFile
	.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	"46550.c"
	.text
	.comm	outputType,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket error\000"
	.align	2
.LC1:
	.ascii	"bind error\000"
	.align	2
.LC2:
	.ascii	"listen error\000"
	.align	2
.LC3:
	.ascii	"Waiting for a connection on port %d\012\000"
	.align	2
.LC4:
	.ascii	"accept error\000"
	.align	2
.LC5:
	.ascii	"request Type: %s \012\000"
	.align	2
.LC6:
	.ascii	"%s %s \012\000"
	.align	2
.LC7:
	.ascii	"/\000"
	.align	2
.LC8:
	.ascii	"GET\000"
	.align	2
.LC9:
	.ascii	"This is the root page of the server\000"
	.align	2
.LC10:
	.ascii	"text/html\000"
	.align	2
.LC11:
	.ascii	"HTTP/1.1 200 OK\012Connection: close\012Content-len"
	.ascii	"gth: %ld\012Content-type: %s\012\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #3152
	sub	sp, sp, #8
	str	r0, [fp, #-3168]
	str	r1, [fp, #-3172]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-3088]
	sub	r3, fp, #3072
	sub	r3, r3, #12
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-3140]
	ldr	r3, [fp, #-3140]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L26+4
	bl	printf
	mvn	r3, #0
	b	.L24
.L2:
	sub	r3, fp, #12
	sub	r3, r3, #3088
	sub	r3, r3, #8
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-3104]
	ldr	r0, .L26+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #3088
	sub	r3, r3, #8
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #3088
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-3140]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L26+12
	bl	printf
	mvn	r3, #0
	b	.L24
.L4:
	mov	r1, #10
	ldr	r0, [fp, #-3140]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L26+16
	bl	printf
	mvn	r3, #0
	b	.L24
.L5:
	mov	r3, #16
	str	r3, [fp, #-3160]
	ldr	r1, .L26+8
	ldr	r0, .L26+20
	bl	printf
	ldr	r3, .L26+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r2, fp, #3136
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #3088
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-3140]
	bl	accept
	str	r0, [fp, #-3136]
	ldr	r3, [fp, #-3136]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L26+28
	bl	printf
	mvn	r3, #0
	b	.L24
.L6:
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-3136]
	bl	read
	mov	r3, #0
	str	r3, [fp, #-3132]
	mov	r3, #0
	str	r3, [fp, #-3156]
	mov	r3, #0
	strb	r3, [fp, #-3162]
	mov	r3, #0
	str	r3, [fp, #-3152]
	b	.L7
.L13:
	ldrb	r3, [fp, #-3162]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3152]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L8
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-3156]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-3156]
	mov	r3, #1
	strb	r3, [fp, #-3162]
	b	.L9
.L8:
	ldrb	r3, [fp, #-3162]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3152]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L10
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3156]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-3156]
	b	.L11
.L10:
	ldrb	r3, [fp, #-3162]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3152]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-3156]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-3156]
	add	r3, r3, #1
	str	r3, [fp, #-3156]
	b	.L9
.L12:
	ldrb	r3, [fp, #-3162]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3152]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3156]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-3156]
	add	r3, r3, #1
	str	r3, [fp, #-3156]
.L9:
	ldr	r3, [fp, #-3152]
	add	r3, r3, #1
	str	r3, [fp, #-3152]
.L7:
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-3152]
	cmp	r2, r3
	bcs	.L13
.L11:
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L26+32
	bl	printf
	sub	r2, fp, #2048
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L26+36
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-3161]
	mov	r3, #0
	str	r3, [fp, #-3148]
	mov	r3, #0
	str	r3, [fp, #-3144]
	b	.L14
.L18:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3144]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L15
	mov	r3, #1
	strb	r3, [fp, #-3161]
	b	.L16
.L15:
	ldrb	r3, [fp, #-3161]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3144]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3148]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-3148]
	add	r3, r3, #1
	str	r3, [fp, #-3148]
.L17:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3144]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-3148]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-3161]
	mov	r3, #0
	str	r3, [fp, #-3148]
.L16:
	ldr	r3, [fp, #-3144]
	add	r3, r3, #1
	str	r3, [fp, #-3144]
.L14:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-3144]
	cmp	r2, r3
	bhi	.L18
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #2
	bhi	.L19
	mov	r3, #0
	strb	r3, [fp, #-1040]
.L19:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L26+40
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-3128]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bls	.L20
	ldr	r2, .L26+44
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2]
	b	.L21
.L20:
	ldr	r3, .L26+44
	mov	r2, #0
	str	r2, [r3]
.L21:
	sub	r3, fp, #3072
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r1, .L26+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L26+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	mov	r3, sp
	mov	r5, r3
	ldr	r3, .L26+52
	str	r3, [fp, #-3124]
	ldr	r3, .L26+44
	ldr	r2, .L26+56
	str	r2, [r3]
	ldr	r0, [fp, #-3124]
	bl	strlen
	mov	r3, r0
	add	ip, r3, #100
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-3120]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-3116]
	ldr	r0, [fp, #-3124]
	bl	strlen
	mov	r2, r0
	ldr	r3, .L26+44
	ldr	r3, [r3]
	ldr	r1, .L26+60
	ldr	r0, [fp, #-3116]
	bl	sprintf
	str	r0, [fp, #-3112]
	ldr	r3, [fp, #-3112]
	ldr	r2, [fp, #-3116]
	add	r4, r2, r3
	ldr	r0, [fp, #-3124]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-3124]
	mov	r0, r4
	bl	memcpy
	ldr	r0, [fp, #-3124]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-3112]
	add	r2, r2, r3
	mov	r3, #0
	ldr	r1, [fp, #-3116]
	ldr	r0, [fp, #-3136]
	bl	send
	mov	sp, r5
	b	.L23
.L22:
	ldr	r1, [fp, #-3128]
	ldr	r0, [fp, #-3136]
	bl	handleFile
.L23:
	ldr	r0, [fp, #-3136]
	bl	close
	b	.L5
.L24:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC12
	.word	.LC0
	.word	12000
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stdout
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	outputType
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.section	.rodata
	.align	2
.LC13:
	.ascii	"r\000"
	.align	2
.LC14:
	.ascii	"HTTP/1.1 OK\012Connection: close\012Content-length:"
	.ascii	" %ld\012Content-type: %s\012\012\000"
	.align	2
.LC15:
	.ascii	"HTTP/1.1 200 FILE FOUND \012\000"
	.align	2
.LC16:
	.ascii	"404: file cannot be found\000"
	.align	2
.LC17:
	.ascii	"HTTP/1.1  NOT FOUND\012Connection: close\012Content"
	.ascii	"-length: %ld\012Content-type: %s\012\012\000"
	.align	2
.LC18:
	.ascii	"HTTP/1.1 404 NOT FOUND \012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handleFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	handleFile, %function
handleFile:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L34+4
	ldr	r0, [fp, #-68]
	bl	fopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L29
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-52]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	mov	r3, sp
	mov	r4, r3
	ldr	r0, [fp, #-52]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-52]
	bl	fseek
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-32]
	mov	r1, #1
	ldr	r0, [fp, #-56]
	bl	fread
	ldr	r3, [fp, #-32]
	add	ip, r3, #100
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L34+12
	ldr	r0, [fp, #-24]
	bl	sprintf
	str	r0, [fp, #-20]
	ldr	r0, .L34+16
	bl	puts
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r2, r2, r3
	mov	r3, #0
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-64]
	bl	send
	mov	sp, r4
.L30:
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-52]
	bl	fclose
	b	.L33
.L29:
	mov	r3, sp
	mov	r5, r3
	ldr	r3, .L34+20
	str	r3, [fp, #-48]
	ldr	r3, .L34+8
	ldr	r2, .L34+24
	str	r2, [r3]
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	add	ip, r3, #100
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r2, r0
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r1, .L34+28
	ldr	r0, [fp, #-40]
	bl	sprintf
	str	r0, [fp, #-36]
	ldr	r0, .L34+32
	bl	puts
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-48]
	mov	r0, r4
	bl	memcpy
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	mov	r3, #0
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-64]
	bl	send
	mov	sp, r5
.L33:
	nop
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC19
	.word	.LC13
	.word	outputType
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC10
	.word	.LC17
	.word	.LC18
	.size	handleFile, .-handleFile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
