	.file	"909882.c"
	.intel_syntax noprefix
	.text
	.globl	sockfd
	.bss
	.align 4
	.type	sockfd, @object
	.size	sockfd, 4
sockfd:
	.zero	4
	.globl	log_file
	.align 8
	.type	log_file, @object
	.size	log_file, 8
log_file:
	.zero	8
	.globl	not_found_filename
	.section	.rodata
.LC0:
	.string	"404.html"
	.section	.data.rel.local,"aw"
	.align 8
	.type	not_found_filename, @object
	.size	not_found_filename, 8
not_found_filename:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"w"
.LC2:
	.string	"log.txt"
.LC3:
	.string	"ERROR, no port provided\n"
.LC4:
	.string	"ERROR opening socket"
.LC5:
	.string	"ERROR on binding"
.LC6:
	.string	"ERROR on accept"
	.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, 240
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, my_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR log_file[rip], rax
	cmp	DWORD PTR -228[rbp], 1
	jg	.L2
	lea	rdi, .LC3[rip]
	call	error
.L2:
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR sockfd[rip], eax
	mov	eax, DWORD PTR sockfd[rip]
	test	eax, eax
	jns	.L3
	lea	rdi, .LC4[rip]
	call	error
.L3:
	lea	rax, -192[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -240[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -208[rbp], eax
	mov	WORD PTR -192[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -208[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -190[rbp], ax
	mov	eax, DWORD PTR sockfd[rip]
	lea	rcx, -192[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L6
	lea	rdi, .LC5[rip]
	call	error
.L6:
	mov	eax, DWORD PTR sockfd[rip]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -212[rbp], 16
	mov	eax, DWORD PTR sockfd[rip]
	lea	rdx, -212[rbp]
	lea	rcx, -176[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], 0
	jns	.L5
	lea	rdi, .LC6[rip]
	call	error
.L5:
	mov	edi, 96
	call	malloc@PLT
	mov	QWORD PTR -200[rbp], rax
	mov	rdx, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR -204[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	get_request
	mov	rdx, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR -204[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	send_response
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -204[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L6
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	error
	.type	error, @function
error:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	error, .-error
	.section	.rodata
.LC7:
	.string	"server terminated by signal\n"
	.text
	.globl	my_handler
	.type	my_handler, @function
my_handler:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR sockfd[rip]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR log_file[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	my_handler, .-my_handler
	.section	.rodata
.LC8:
	.string	"ERROR reading from socket"
	.align 8
.LC9:
	.string	"Here is the message:=====\n%s\n=========================\n"
.LC10:
	.string	"GET"
.LC11:
	.string	"Host:"
.LC12:
	.string	"User-Agent:"
.LC13:
	.string	"Accept:"
.LC14:
	.string	"Accept-Language:"
.LC15:
	.string	"Accept-Encoding:"
.LC16:
	.string	"Connection:"
.LC17:
	.string	"Upgrade-Insecure-Requests:"
.LC18:
	.string	"Cache-Control:"
	.text
	.globl	get_request
	.type	get_request, @function
get_request:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	lea	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1096
	.cfi_offset 3, -24
	mov	DWORD PTR -66628[rbp], edi
	mov	QWORD PTR -66640[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -65568[rbp]
	mov	edx, 65536
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -65568[rbp]
	mov	eax, DWORD PTR -66628[rbp]
	mov	edx, 65535
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -66604[rbp], eax
	cmp	DWORD PTR -66604[rbp], 0
	jns	.L11
	lea	rdi, .LC8[rip]
	call	error
.L11:
	mov	rax, QWORD PTR log_file[rip]
	lea	rdx, -65568[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -66616[rbp], 0
	mov	eax, DWORD PTR -66616[rbp]
	mov	DWORD PTR -66620[rbp], eax
	mov	DWORD PTR -66612[rbp], 0
	jmp	.L12
.L42:
	cmp	DWORD PTR -66612[rbp], 0
	je	.L13
	cmp	DWORD PTR -66612[rbp], 1
	je	.L14
	jmp	.L26
.L13:
	mov	eax, DWORD PTR -66620[rbp]
	cdqe
	movzx	eax, BYTE PTR -65568[rbp+rax]
	cmp	al, 32
	jne	.L45
	lea	rax, -66592[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	eax, DWORD PTR -66620[rbp]
	sub	eax, DWORD PTR -66616[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -66616[rbp]
	cdqe
	lea	rcx, -65568[rbp]
	add	rcx, rax
	lea	rax, -66592[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -66592[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	mov	DWORD PTR -66608[rbp], 0
	jmp	.L18
.L17:
	lea	rax, -66592[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	mov	DWORD PTR -66608[rbp], 1
	jmp	.L18
.L19:
	lea	rax, -66592[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	DWORD PTR -66608[rbp], 2
	jmp	.L18
.L20:
	lea	rax, -66592[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	DWORD PTR -66608[rbp], 3
	jmp	.L18
.L21:
	lea	rax, -66592[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
	mov	DWORD PTR -66608[rbp], 4
	jmp	.L18
.L22:
	lea	rax, -66592[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
	mov	DWORD PTR -66608[rbp], 5
	jmp	.L18
.L23:
	lea	rax, -66592[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	DWORD PTR -66608[rbp], 6
	jmp	.L18
.L24:
	lea	rax, -66592[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
	mov	DWORD PTR -66608[rbp], 7
	jmp	.L18
.L25:
	lea	rax, -66592[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	DWORD PTR -66608[rbp], 8
.L18:
	mov	DWORD PTR -66612[rbp], 1
	mov	eax, DWORD PTR -66620[rbp]
	add	eax, 1
	mov	DWORD PTR -66616[rbp], eax
	jmp	.L45
.L14:
	mov	eax, DWORD PTR -66620[rbp]
	cdqe
	movzx	eax, BYTE PTR -65568[rbp+rax]
	cmp	al, 13
	jne	.L46
	lea	rax, -66592[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	eax, DWORD PTR -66620[rbp]
	sub	eax, DWORD PTR -66616[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -66616[rbp]
	cdqe
	lea	rcx, -65568[rbp]
	add	rcx, rax
	lea	rax, -66592[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	cmp	DWORD PTR -66608[rbp], 8
	ja	.L47
	mov	eax, DWORD PTR -66608[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L30[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L30[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L30:
	.long	.L38-.L30
	.long	.L37-.L30
	.long	.L36-.L30
	.long	.L35-.L30
	.long	.L34-.L30
	.long	.L33-.L30
	.long	.L32-.L30
	.long	.L31-.L30
	.long	.L29-.L30
	.text
.L38:
	lea	rax, -66592[rbp]
	mov	esi, 72
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -66600[rbp], rax
	mov	rax, QWORD PTR -66600[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -66640[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdx, QWORD PTR -66600[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -66592[rbp]
	mov	rax, QWORD PTR -66600[rbp]
	sub	rax, rdx
	sub	rax, 1
	mov	BYTE PTR -66592[rbp+rax], 0
	lea	rax, -66592[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	lea	rdx, -66592[rbp]
	sub	rax, rdx
	lea	rbx, 1[rax]
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jne	.L39
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -66592[rbp]
	add	rax, rdx
	movabs	rbx, 8388005400609582697
	mov	QWORD PTR [rax], rbx
	mov	WORD PTR 8[rax], 27757
	mov	BYTE PTR 10[rax], 0
.L39:
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -66640[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	WORD PTR [rax], 46
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, -66592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	jmp	.L40
.L37:
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -66640[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 32[rax]
	lea	rdx, -66592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L40
.L36:
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -66640[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 40[rax]
	lea	rdx, -66592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L40
.L35:
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -66640[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 48[rax]
	lea	rdx, -66592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L40
.L34:
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -66640[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 56[rax]
	lea	rdx, -66592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L40
.L33:
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -66640[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 64[rax]
	lea	rdx, -66592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L40
.L32:
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -66640[rbp]
	mov	QWORD PTR 72[rax], rdx
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 72[rax]
	lea	rdx, -66592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L40
.L31:
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -66640[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 80[rax]
	lea	rdx, -66592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L40
.L29:
	lea	rax, -66592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -66640[rbp]
	mov	QWORD PTR 88[rax], rdx
	mov	rax, QWORD PTR -66640[rbp]
	mov	rax, QWORD PTR 88[rax]
	lea	rdx, -66592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L40
.L47:
	nop
.L40:
	mov	DWORD PTR -66612[rbp], 0
	add	DWORD PTR -66620[rbp], 1
	mov	eax, DWORD PTR -66620[rbp]
	add	eax, 1
	mov	DWORD PTR -66616[rbp], eax
	jmp	.L46
.L45:
	nop
	jmp	.L26
.L46:
	nop
.L26:
	add	DWORD PTR -66620[rbp], 1
.L12:
	mov	eax, DWORD PTR -66620[rbp]
	cdqe
	movzx	eax, BYTE PTR -65568[rbp+rax]
	test	al, al
	je	.L41
	cmp	DWORD PTR -66620[rbp], 65535
	jle	.L42
.L41:
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_request, .-get_request
	.section	.rodata
.LC19:
	.string	"open %s file\n"
.LC20:
	.string	"File not exist\n"
.LC21:
	.string	"%d"
.LC22:
	.string	" "
.LC23:
	.string	"404 Not Found"
.LC24:
	.string	": "
.LC25:
	.string	"content-type"
.LC26:
	.string	"content-length"
.LC27:
	.string	"\r\n"
.LC28:
	.string	"ERROR writing to socket"
.LC29:
	.string	".html"
.LC30:
	.string	".css"
.LC31:
	.string	".js"
.LC32:
	.string	".gif"
.LC33:
	.string	".jpg"
.LC34:
	.string	".jpeg"
.LC35:
	.string	".jpe"
.LC36:
	.string	".jfif"
.LC37:
	.string	".mp3"
.LC38:
	.string	".pdf"
.LC39:
	.string	"200 OK"
	.text
	.globl	send_response
	.type	send_response, @function
send_response:
.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR log_file[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], -1
	jne	.L49
	mov	rax, QWORD PTR log_file[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR not_found_filename[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], -1
	jne	.L50
	mov	edi, 14
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	movabs	rcx, 2338616625289506868
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 1853189990
	mov	WORD PTR 12[rax], 100
	jmp	.L51
.L50:
	mov	eax, DWORD PTR -120[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	edx, DWORD PTR -124[rbp]
	lea	rax, -96[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -124[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -120[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L51
	lea	rdi, .LC8[rip]
	call	error
.L51:
	lea	rax, -64[rbp]
	movabs	rsi, 7887043400459380084
	movabs	rdi, 8318818562674277228
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rcx, 4048004290445145189
	mov	QWORD PTR 16[rax], rcx
	mov	BYTE PTR 24[rax], 0
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -132[rbp]
	lea	rcx, .LC22[rip]
	lea	rdx, .LC23[rip]
	mov	edi, eax
	call	write_res_header
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -132[rbp]
	lea	rcx, .LC24[rip]
	lea	rsi, .LC25[rip]
	mov	edi, eax
	call	write_res_header
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -132[rbp]
	lea	rcx, .LC24[rip]
	lea	rsi, .LC26[rip]
	mov	edi, eax
	call	write_res_header
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 2
	lea	rsi, .LC27[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L52
	lea	rdi, .LC28[rip]
	call	error
.L52:
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L53
	lea	rdi, .LC28[rip]
	call	error
.L53:
	mov	eax, -1
	jmp	.L66
.L49:
	mov	eax, DWORD PTR -120[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	edx, DWORD PTR -124[rbp]
	lea	rax, -96[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -124[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -120[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L55
	lea	rdi, .LC8[rip]
	call	error
.L55:
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, 46
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L56
	lea	rax, -64[rbp]
	movabs	rsi, 7887043400459380084
	movabs	rdi, 8318818562674277228
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rcx, 4048004290445145189
	mov	QWORD PTR 16[rax], rcx
	mov	BYTE PTR 24[rax], 0
	jmp	.L57
.L56:
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L58
	lea	rax, -64[rbp]
	movabs	rdx, 8319101992152098164
	movabs	rcx, 7310312382841167931
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	movabs	rcx, 15812516759551348
	mov	QWORD PTR 16[rax], rcx
	jmp	.L57
.L58:
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L59
	lea	rax, -64[rbp]
	movabs	rsi, 8530215921266484596
	movabs	rdi, 4284172743729181537
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rcx, 8387236816145113888
	mov	QWORD PTR 16[rax], rcx
	mov	DWORD PTR 24[rax], 1718908221
	mov	WORD PTR 28[rax], 14381
	mov	BYTE PTR 30[rax], 0
	jmp	.L57
.L59:
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L60
	lea	rax, -64[rbp]
	movabs	rcx, 7595091409156271465
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 102
	jmp	.L57
.L60:
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L61
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L61
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L61
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L62
.L61:
	lea	rax, -64[rbp]
	movabs	rcx, 8100338992351898985
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 26469
	mov	BYTE PTR 10[rax], 0
	jmp	.L57
.L62:
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L63
	lea	rax, -64[rbp]
	movabs	rcx, 8101183460265456993
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 26469
	mov	BYTE PTR 10[rax], 0
	jmp	.L57
.L63:
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L57
	lea	rax, -64[rbp]
	movabs	rdx, 8386093285582598241
	movabs	rcx, 28820880619368297
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
.L57:
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -132[rbp]
	lea	rcx, .LC22[rip]
	lea	rdx, .LC39[rip]
	mov	edi, eax
	call	write_res_header
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -132[rbp]
	lea	rcx, .LC24[rip]
	lea	rsi, .LC25[rip]
	mov	edi, eax
	call	write_res_header
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -132[rbp]
	lea	rcx, .LC24[rip]
	lea	rsi, .LC26[rip]
	mov	edi, eax
	call	write_res_header
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 2
	lea	rsi, .LC27[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L64
	lea	rdi, .LC28[rip]
	call	error
.L64:
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L65
	lea	rdi, .LC28[rip]
	call	error
.L65:
	mov	eax, 0
.L66:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L67
	call	__stack_chk_fail@PLT
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	send_response, .-send_response
	.globl	write_res_header
	.type	write_res_header, @function
write_res_header:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L69
	lea	rdi, .LC28[rip]
	call	error
.L69:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L70
	lea	rdi, .LC28[rip]
	call	error
.L70:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L71
	lea	rdi, .LC28[rip]
	call	error
.L71:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 2
	lea	rsi, .LC27[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L72
	lea	rdi, .LC28[rip]
	call	error
.L72:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	write_res_header, .-write_res_header
	.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	"909882.c"
	.text
	.comm	sockfd,4,4
	.comm	log_file,4,4
	.global	not_found_filename
	.section	.rodata
	.align	2
.LC0:
	.ascii	"404.html\000"
	.data
	.align	2
	.type	not_found_filename, %object
	.size	not_found_filename, 4
not_found_filename:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"log.txt\000"
	.align	2
.LC3:
	.ascii	"ERROR, no port provided\012\000"
	.align	2
.LC4:
	.ascii	"ERROR opening socket\000"
	.align	2
.LC5:
	.ascii	"ERROR on binding\000"
	.align	2
.LC6:
	.ascii	"ERROR on accept\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #200
	str	r0, [fp, #-200]
	str	r1, [fp, #-204]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L8+4
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	ldr	r1, .L8+8
	ldr	r0, .L8+12
	bl	fopen
	mov	r3, r0
	ldr	r2, .L8+16
	str	r3, [r2]
	ldr	r3, [fp, #-200]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L8+20
	bl	error
.L2:
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L8+24
	str	r3, [r2]
	ldr	r3, .L8+24
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L8+28
	bl	error
.L3:
	sub	r3, fp, #180
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	ldr	r3, [fp, #-204]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-192]
	mov	r3, #2
	strh	r3, [fp, #-180]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-178]	@ movhi
	ldr	r3, .L8+24
	ldr	r3, [r3]
	sub	r1, fp, #180
	mov	r2, #16
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L8+32
	bl	error
.L6:
	ldr	r3, .L8+24
	ldr	r3, [r3]
	mov	r1, #5
	mov	r0, r3
	bl	listen
	mov	r3, #16
	str	r3, [fp, #-196]
	ldr	r3, .L8+24
	ldr	r3, [r3]
	sub	r2, fp, #196
	sub	r1, fp, #164
	mov	r0, r3
	bl	accept
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L8+36
	bl	error
.L5:
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-184]
	ldr	r1, [fp, #-184]
	ldr	r0, [fp, #-188]
	bl	get_request
	ldr	r1, [fp, #-184]
	ldr	r0, [fp, #-188]
	bl	send_response
	ldr	r0, [fp, #-184]
	bl	free
	ldr	r0, [fp, #-188]
	bl	close
	b	.L6
.L9:
	.align	2
.L8:
	.word	.LC7
	.word	my_handler
	.word	.LC1
	.word	.LC2
	.word	log_file
	.word	.LC3
	.word	sockfd
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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	perror
	mov	r0, #1
	bl	exit
	.size	error, .-error
	.section	.rodata
	.align	2
.LC8:
	.ascii	"server terminated by signal\012\000"
	.text
	.align	2
	.global	my_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_handler, %function
my_handler:
	@ 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	r3, .L12
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L12+8
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L12+12
	bl	fwrite
	mov	r0, #0
	bl	exit
.L13:
	.align	2
.L12:
	.word	sockfd
	.word	log_file
	.word	stderr
	.word	.LC8
	.size	my_handler, .-my_handler
	.section	.rodata
	.align	2
.LC9:
	.ascii	"ERROR reading from socket\000"
	.align	2
.LC10:
	.ascii	"Here is the message:=====\012%s\012================"
	.ascii	"=========\012\000"
	.align	2
.LC11:
	.ascii	"GET\000"
	.align	2
.LC12:
	.ascii	"Host:\000"
	.align	2
.LC13:
	.ascii	"User-Agent:\000"
	.align	2
.LC14:
	.ascii	"Accept:\000"
	.align	2
.LC15:
	.ascii	"Accept-Language:\000"
	.align	2
.LC16:
	.ascii	"Accept-Encoding:\000"
	.align	2
.LC17:
	.ascii	"Connection:\000"
	.align	2
.LC18:
	.ascii	"Upgrade-Insecure-Requests:\000"
	.align	2
.LC19:
	.ascii	"Cache-Control:\000"
	.align	2
.LC20:
	.ascii	"index.html\000"
	.align	2
.LC21:
	.ascii	".\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_request, %function
get_request:
	@ args = 0, pretend = 0, frame = 66600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #66560
	sub	sp, sp, #44
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r0, [r3, #-1060]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r1, [r3, #-1064]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #65536
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r0, r2
	ldr	r2, .L52+4
	mov	r1, r3
	ldr	r0, [r0, #-1060]
	bl	read
	str	r0, [r4, #-1036]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1036]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L52+8
	bl	error
.L15:
	ldr	r3, .L52+12
	ldr	r0, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L52+16
	bl	fprintf
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1048]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1048]
	str	r3, [r2, #-1052]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1044]
	b	.L16
.L46:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1044]
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1044]
	cmp	r3, #1
	beq	.L18
	b	.L30
.L17:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1052]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L49
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-1048]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r2, #-1052]
	ldr	r3, [r3, #-1048]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1040]
	b	.L22
.L21:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1040]
	b	.L22
.L23:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-1040]
	b	.L22
.L24:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #3
	str	r3, [r2, #-1040]
	b	.L22
.L25:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #4
	str	r3, [r2, #-1040]
	b	.L22
.L26:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #5
	str	r3, [r2, #-1040]
	b	.L22
.L27:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #6
	str	r3, [r2, #-1040]
	b	.L22
.L28:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #7
	str	r3, [r2, #-1040]
	b	.L22
.L29:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L52+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #8
	str	r3, [r2, #-1040]
.L22:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1044]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1052]
	add	r3, r3, #1
	str	r3, [r2, #-1048]
	b	.L49
.L18:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1052]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L50
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-1048]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, r2
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r2, #-1052]
	ldr	r3, [r3, #-1048]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1040]
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L51
.L34:
	.word	.L42
	.word	.L41
	.word	.L40
	.word	.L39
	.word	.L38
	.word	.L37
	.word	.L36
	.word	.L35
	.word	.L33
.L42:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #72
	mov	r0, r3
	bl	strrchr
	str	r0, [r4, #-1032]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-1032]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	str	r2, [r3, #12]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r3, [r3, #12]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r1, [r2, #-1032]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-1032]
	sub	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #65536
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1028]
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #47
	mov	r0, r3
	bl	strrchr
	mov	r2, r0
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r4, r3
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bne	.L43
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L52+56
	mov	r0, r3
	mov	r1, r2
	mov	r3, #11
	mov	r2, r3
	bl	memcpy
.L43:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	str	r2, [r3, #4]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r3, [r3, #4]
	ldr	r2, .L52+60
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r2, [r3, #4]
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcat
	b	.L44
.L41:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	str	r2, [r3, #16]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r2, [r3, #16]
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	b	.L44
.L40:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	str	r2, [r3, #20]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r2, [r3, #20]
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	b	.L44
.L39:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	str	r2, [r3, #24]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r2, [r3, #24]
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	b	.L44
.L38:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	str	r2, [r3, #28]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r2, [r3, #28]
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	b	.L44
.L37:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	str	r2, [r3, #32]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r2, [r3, #32]
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	b	.L44
.L36:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	str	r2, [r3, #36]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r2, [r3, #36]
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	b	.L44
.L35:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	str	r2, [r3, #40]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r2, [r3, #40]
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	b	.L44
.L33:
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	str	r2, [r3, #44]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1064]
	ldr	r2, [r3, #44]
	sub	r3, fp, #66560
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	b	.L44
.L51:
	nop
.L44:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1044]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1052]
	add	r3, r3, #1
	str	r3, [r2, #-1052]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1052]
	add	r3, r3, #1
	str	r3, [r2, #-1048]
	b	.L50
.L49:
	nop
	b	.L30
.L50:
	nop
.L30:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1052]
	add	r3, r3, #1
	str	r3, [r2, #-1052]
.L16:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1052]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L45
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-1052]
	cmp	r3, #65536
	blt	.L46
.L45:
	mov	r3, #0
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC22
	.word	65535
	.word	.LC9
	.word	log_file
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	get_request, .-get_request
	.section	.rodata
	.align	2
.LC23:
	.ascii	"open %s file\012\000"
	.align	2
.LC24:
	.ascii	"File not exist\012\000"
	.align	2
.LC25:
	.ascii	"404 not found\000"
	.align	2
.LC26:
	.ascii	"%d\000"
	.align	2
.LC27:
	.ascii	"text/html; charset=utf-8\000"
	.align	2
.LC28:
	.ascii	" \000"
	.align	2
.LC29:
	.ascii	"404 Not Found\000"
	.align	2
.LC30:
	.ascii	": \000"
	.align	2
.LC31:
	.ascii	"content-type\000"
	.align	2
.LC32:
	.ascii	"content-length\000"
	.align	2
.LC33:
	.ascii	"\015\012\000"
	.align	2
.LC34:
	.ascii	"ERROR writing to socket\000"
	.align	2
.LC35:
	.ascii	".html\000"
	.align	2
.LC36:
	.ascii	".css\000"
	.align	2
.LC37:
	.ascii	"text/css; charset=utf-8\000"
	.align	2
.LC38:
	.ascii	".js\000"
	.align	2
.LC39:
	.ascii	"text/javascript; charset=utf-8\000"
	.align	2
.LC40:
	.ascii	".gif\000"
	.align	2
.LC41:
	.ascii	"image/gif\000"
	.align	2
.LC42:
	.ascii	".jpg\000"
	.align	2
.LC43:
	.ascii	".jpeg\000"
	.align	2
.LC44:
	.ascii	".jpe\000"
	.align	2
.LC45:
	.ascii	".jfif\000"
	.align	2
.LC46:
	.ascii	"image/jpeg\000"
	.align	2
.LC47:
	.ascii	".mp3\000"
	.align	2
.LC48:
	.ascii	"audio/mpeg\000"
	.align	2
.LC49:
	.ascii	".pdf\000"
	.align	2
.LC50:
	.ascii	"application/pdf\000"
	.align	2
.LC51:
	.ascii	"200 OK\000"
	.align	2
.LC52:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_response
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_response, %function
send_response:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L74+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L74+8
	bl	fprintf
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #4]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	bne	.L55
	ldr	r3, .L74+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L74+12
	bl	fwrite
	ldr	r3, .L74+16
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	bne	.L56
	mov	r0, #14
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-108]
	ldr	r2, .L74+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #14
	mov	r2, r3
	bl	memcpy
	b	.L57
.L56:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-104]
	bl	lseek
	str	r0, [fp, #-112]
	sub	r3, fp, #92
	ldr	r2, [fp, #-112]
	ldr	r1, .L74+24
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-108]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-104]
	bl	lseek
	ldr	r3, [fp, #-112]
	mov	r2, r3
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-104]
	bl	read
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bge	.L57
	ldr	r0, .L74+28
	bl	error
.L57:
	sub	r3, fp, #60
	ldr	r2, .L74+32
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strb	r2, [ip]
	ldr	r3, [fp, #-124]
	ldr	r1, [r3, #12]
	ldr	r3, .L74+36
	ldr	r2, .L74+40
	ldr	r0, [fp, #-120]
	bl	write_res_header
	sub	r2, fp, #60
	ldr	r3, .L74+44
	ldr	r1, .L74+48
	ldr	r0, [fp, #-120]
	bl	write_res_header
	sub	r2, fp, #92
	ldr	r3, .L74+44
	ldr	r1, .L74+52
	ldr	r0, [fp, #-120]
	bl	write_res_header
	mov	r2, #2
	ldr	r1, .L74+56
	ldr	r0, [fp, #-120]
	bl	write
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bge	.L58
	ldr	r0, .L74+60
	bl	error
.L58:
	ldr	r3, [fp, #-112]
	mov	r2, r3
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-120]
	bl	write
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bge	.L59
	ldr	r0, .L74+60
	bl	error
.L59:
	mvn	r3, #0
	b	.L72
.L55:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-104]
	bl	lseek
	str	r0, [fp, #-112]
	sub	r3, fp, #92
	ldr	r2, [fp, #-112]
	ldr	r1, .L74+24
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-108]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-104]
	bl	lseek
	ldr	r3, [fp, #-112]
	mov	r2, r3
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-104]
	bl	read
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bge	.L61
	ldr	r0, .L74+28
	bl	error
.L61:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #4]
	mov	r1, #46
	mov	r0, r3
	bl	strrchr
	str	r0, [fp, #-96]
	ldr	r1, .L74+64
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L62
	sub	r3, fp, #60
	ldr	r2, .L74+32
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strb	r2, [ip]
	b	.L63
.L62:
	ldr	r1, .L74+68
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L64
	sub	r3, fp, #60
	ldr	r2, .L74+72
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	b	.L63
.L64:
	ldr	r1, .L74+76
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	sub	r3, fp, #60
	ldr	r2, .L74+80
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	b	.L63
.L65:
	ldr	r1, .L74+84
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	sub	r3, fp, #60
	ldr	r2, .L74+88
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	b	.L63
.L66:
	ldr	r1, .L74+92
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	ldr	r1, .L74+96
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	ldr	r1, .L74+100
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	ldr	r1, .L74+104
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
.L67:
	sub	r3, fp, #60
	ldr	r2, .L74+108
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	b	.L63
.L68:
	ldr	r1, .L74+112
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L69
	sub	r3, fp, #60
	ldr	r2, .L74+116
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	b	.L63
.L69:
	ldr	r1, .L74+120
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	sub	r3, fp, #60
	ldr	r2, .L74+124
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
.L63:
	ldr	r3, [fp, #-124]
	ldr	r1, [r3, #12]
	ldr	r3, .L74+36
	ldr	r2, .L74+128
	ldr	r0, [fp, #-120]
	bl	write_res_header
	sub	r2, fp, #60
	ldr	r3, .L74+44
	ldr	r1, .L74+48
	ldr	r0, [fp, #-120]
	bl	write_res_header
	sub	r2, fp, #92
	ldr	r3, .L74+44
	ldr	r1, .L74+52
	ldr	r0, [fp, #-120]
	bl	write_res_header
	mov	r2, #2
	ldr	r1, .L74+56
	ldr	r0, [fp, #-120]
	bl	write
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bge	.L70
	ldr	r0, .L74+60
	bl	error
.L70:
	ldr	r3, [fp, #-112]
	mov	r2, r3
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-120]
	bl	write
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bge	.L71
	ldr	r0, .L74+60
	bl	error
.L71:
	mov	r3, #0
.L72:
	ldr	r2, .L74
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC52
	.word	log_file
	.word	.LC23
	.word	.LC24
	.word	not_found_filename
	.word	.LC25
	.word	.LC26
	.word	.LC9
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.size	send_response, .-send_response
	.align	2
	.global	write_res_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_res_header, %function
write_res_header:
	@ 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]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L77
	ldr	r0, .L82
	bl	error
.L77:
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L78
	ldr	r0, .L82
	bl	error
.L78:
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L79
	ldr	r0, .L82
	bl	error
.L79:
	mov	r2, #2
	ldr	r1, .L82+4
	ldr	r0, [fp, #-16]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L80
	ldr	r0, .L82
	bl	error
.L80:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC34
	.word	.LC33
	.size	write_res_header, .-write_res_header
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
