	.file	"141439.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"HTTP/1.0"
.LC1:
	.string	"HTTP/1.1"
.LC2:
	.string	"%s 400 BAD REQUEST\r\n\r\n"
.LC3:
	.string	"%s"
.LC4:
	.string	"send"
.LC5:
	.string	"index.html"
.LC6:
	.string	"GET"
.LC7:
	.string	"%s 404 NOT FOUND\r\n\r\n"
	.align 8
.LC8:
	.string	"%s 200 OK\r\nContent-Length: %d\r\n\r\n%s"
.LC9:
	.string	"data: %s"
.LC10:
	.string	"sendall"
	.align 8
.LC11:
	.string	"We only sent %d bytes because of the error!\n"
.LC12:
	.string	"POST"
.LC13:
	.string	"%s 200 OK\r\n\r\n"
.LC14:
	.string	"readfail\n"
.LC15:
	.string	"disconnected"
.LC16:
	.string	"%s 501 NOT IMPLEMENTED\r\n\r\n"
	.text
	.globl	processRequest
	.type	processRequest, @function
processRequest:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -16384[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 400
	mov	QWORD PTR -16776[rbp], rdi
	mov	DWORD PTR -16780[rbp], esi
	mov	DWORD PTR -16784[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16752[rbp], 0
	mov	DWORD PTR -16748[rbp], 0
	mov	DWORD PTR -16744[rbp], -1
	jmp	.L2
.L13:
	mov	eax, DWORD PTR -16752[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16776[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L4
	add	DWORD PTR -16752[rbp], 1
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -16752[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16776[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -16748[rbp]
	cdqe
	mov	BYTE PTR -16734[rbp+rax], dl
	add	DWORD PTR -16752[rbp], 1
	add	DWORD PTR -16748[rbp], 1
.L4:
	mov	eax, DWORD PTR -16752[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16776[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	isspace@PLT
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -16752[rbp]
	cmp	eax, 3
	jbe	.L6
.L5:
	add	DWORD PTR -16752[rbp], 1
	mov	eax, DWORD PTR -16748[rbp]
	cdqe
	mov	BYTE PTR -16734[rbp+rax], 0
	mov	DWORD PTR -16748[rbp], 0
	add	DWORD PTR -16752[rbp], 1
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -16752[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16776[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -16748[rbp]
	cdqe
	mov	BYTE PTR -16720[rbp+rax], dl
	add	DWORD PTR -16752[rbp], 1
	add	DWORD PTR -16748[rbp], 1
.L7:
	mov	eax, DWORD PTR -16752[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16776[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	isspace@PLT
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -16752[rbp]
	cmp	eax, 510
	jbe	.L9
.L8:
	add	DWORD PTR -16752[rbp], 1
	mov	eax, DWORD PTR -16748[rbp]
	cdqe
	mov	BYTE PTR -16720[rbp+rax], 0
	mov	DWORD PTR -16748[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -16752[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16776[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -16748[rbp]
	cdqe
	mov	BYTE PTR -16729[rbp+rax], dl
	add	DWORD PTR -16752[rbp], 1
	add	DWORD PTR -16748[rbp], 1
.L10:
	mov	eax, DWORD PTR -16752[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16776[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	isspace@PLT
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR -16748[rbp]
	cdqe
	mov	BYTE PTR -16729[rbp+rax], 0
	jmp	.L12
.L2:
	mov	eax, DWORD PTR -16752[rbp]
	cmp	eax, 6
	ja	.L12
	mov	eax, DWORD PTR -16752[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16776[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L13
.L12:
	lea	rax, -16729[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L14
	mov	DWORD PTR -16744[rbp], 0
	jmp	.L15
.L14:
	lea	rax, -16729[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L16
	mov	DWORD PTR -16744[rbp], 1
	jmp	.L15
.L16:
	lea	rdx, -16729[rbp]
	lea	rax, -8112[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -8112[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -8112[rbp]
	mov	eax, DWORD PTR -16780[rbp]
	mov	ecx, 0
	mov	edx, 8096
	mov	edi, eax
	call	send@PLT
	cmp	rax, -1
	jne	.L15
	lea	rdi, .LC4[rip]
	call	perror@PLT
.L15:
	movzx	eax, BYTE PTR -16720[rbp]
	movzx	eax, al
	test	eax, eax
	jne	.L18
	lea	rax, -16720[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L18:
	lea	rax, -16734[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L19
	lea	rdx, -16208[rbp]
	lea	rax, -16720[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	readFile
	mov	DWORD PTR -16756[rbp], eax
	mov	eax, DWORD PTR -16756[rbp]
	cmp	eax, -1
	jne	.L20
	lea	rdx, -16729[rbp]
	lea	rax, -8112[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -8112[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -8112[rbp]
	mov	eax, DWORD PTR -16780[rbp]
	mov	ecx, 0
	mov	edx, 8096
	mov	edi, eax
	call	send@PLT
	cmp	rax, -1
	jne	.L21
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L21
.L20:
	mov	ecx, DWORD PTR -16756[rbp]
	lea	rsi, -16208[rbp]
	lea	rdx, -16729[rbp]
	lea	rax, -8112[rbp]
	mov	r8, rsi
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -16208[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -8112[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -16756[rbp]
	lea	rcx, -8112[rbp]
	mov	eax, DWORD PTR -16780[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	sendall
	cmp	eax, -1
	jne	.L21
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -16756[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	cmp	DWORD PTR -16744[rbp], 0
	jne	.L32
	mov	eax, DWORD PTR -16780[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L19:
	lea	rax, -16734[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L24
	lea	rdx, -16729[rbp]
	lea	rax, -16208[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -16208[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -16208[rbp]
	mov	eax, DWORD PTR -16780[rbp]
	mov	ecx, 0
	mov	edx, 8096
	mov	edi, eax
	call	send@PLT
	cmp	rax, -1
	jne	.L25
	lea	rdi, .LC4[rip]
	call	perror@PLT
.L25:
	lea	rsi, -8112[rbp]
	mov	eax, DWORD PTR -16780[rbp]
	mov	ecx, 0
	mov	edx, 8095
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -16740[rbp], eax
	cmp	DWORD PTR -16740[rbp], -1
	jne	.L26
	lea	rdi, .LC14[rip]
	call	perror@PLT
	jmp	.L27
.L26:
	cmp	DWORD PTR -16740[rbp], 0
	jne	.L27
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -16780[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L27:
	cmp	DWORD PTR -16744[rbp], 0
	jne	.L32
	mov	eax, DWORD PTR -16780[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L24:
	lea	rdx, -16729[rbp]
	lea	rax, -8112[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -8112[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -8112[rbp]
	mov	eax, DWORD PTR -16780[rbp]
	mov	ecx, 0
	mov	edx, 8096
	mov	edi, eax
	call	send@PLT
	cmp	rax, -1
	jne	.L29
	lea	rdi, .LC4[rip]
	call	perror@PLT
.L29:
	cmp	DWORD PTR -16744[rbp], 0
	jne	.L32
	mov	eax, DWORD PTR -16780[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L32:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	processRequest, .-processRequest
	.section	.rodata
.LC17:
	.string	"rb"
	.text
	.globl	readFile
	.type	readFile, @function
readFile:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	cmp	QWORD PTR -8[rbp], 0
	jne	.L36
	mov	eax, -1
	jmp	.L35
.L37:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	rdx, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L37
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readFile, .-readFile
	.globl	sendall
	.type	sendall, @function
sendall:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L39
.L42:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L46
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	DWORD PTR -8[rbp], eax
.L39:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L42
	jmp	.L41
.L46:
	nop
.L41:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	cmp	DWORD PTR -4[rbp], -1
	jne	.L43
	mov	eax, -1
	jmp	.L45
.L43:
	mov	eax, 0
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sendall, .-sendall
	.globl	sigchld_handler
	.type	sigchld_handler, @function
sigchld_handler:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	nop
.L48:
	mov	edx, 1
	mov	esi, 0
	mov	edi, -1
	call	waitpid@PLT
	test	eax, eax
	jg	.L48
	call	__errno_location@PLT
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sigchld_handler, .-sigchld_handler
	.globl	error_die
	.type	error_die, @function
error_die:
.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, 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
.LFE10:
	.size	error_die, .-error_die
	.section	.rodata
.LC18:
	.string	"8080"
.LC19:
	.string	"getaddrinfo: %s\n"
.LC20:
	.string	"server: socket"
.LC21:
	.string	"setsockopt"
.LC22:
	.string	"server: bind"
.LC23:
	.string	"server: failed to bind\n"
.LC24:
	.string	"listen"
	.text
	.globl	init_server
	.type	init_server, @function
init_server:
.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -92[rbp], 1
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -64[rbp], 1
	lea	rdx, -80[rbp]
	lea	rax, -64[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC18[rip]
	mov	edi, 0
	call	getaddrinfo@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L51
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L62
.L51:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L53
.L59:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L54
	lea	rdi, .LC20[rip]
	call	perror@PLT
	jmp	.L55
.L54:
	lea	rdx, -92[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L56
	lea	rdi, .LC21[rip]
	call	error_die
.L56:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L64
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC22[rip]
	call	perror@PLT
	nop
.L55:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -72[rbp], rax
.L53:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L59
	jmp	.L58
.L64:
	nop
.L58:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	cmp	QWORD PTR -72[rbp], 0
	jne	.L60
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L60:
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L61
	lea	rdi, .LC24[rip]
	call	error_die
.L61:
	mov	eax, DWORD PTR -88[rbp]
.L62:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	init_server, .-init_server
	.section	.rodata
.LC25:
	.string	"sigaction"
	.align 8
.LC26:
	.string	"server: waiting for connections..."
.LC27:
	.string	"accept"
.LC28:
	.string	"socket error"
.LC29:
	.string	"timeout"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 384
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	init_server
	mov	DWORD PTR -8568[rbp], eax
	lea	rax, sigchld_handler[rip]
	mov	QWORD PTR -8272[rbp], rax
	lea	rax, -8272[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -8136[rbp], 268435456
	lea	rax, -8272[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L66
	lea	rdi, .LC25[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L66:
	lea	rdi, .LC26[rip]
	call	puts@PLT
.L77:
	mov	DWORD PTR -8572[rbp], 128
	lea	rdx, -8572[rbp]
	lea	rcx, -8528[rbp]
	mov	eax, DWORD PTR -8568[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -8564[rbp], eax
	cmp	DWORD PTR -8564[rbp], -1
	jne	.L67
	lea	rdi, .LC27[rip]
	call	perror@PLT
	jmp	.L68
.L67:
	call	fork@PLT
	test	eax, eax
	jne	.L69
	mov	eax, DWORD PTR -8568[rbp]
	mov	edi, eax
	call	close@PLT
.L76:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -8400[rbp]
	mov	rdi, rdx
#APP
# 340 "the_stack_data/141439.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -8560[rbp], edx
	mov	DWORD PTR -8556[rbp], eax
	mov	eax, DWORD PTR -8564[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -8400[rbp+rax*8]
	mov	eax, DWORD PTR -8564[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -8400[rbp+rax*8], rdx
	mov	QWORD PTR -8544[rbp], 3
	mov	QWORD PTR -8536[rbp], 0
	mov	eax, DWORD PTR -8564[rbp]
	lea	edi, 1[rax]
	lea	rdx, -8544[rbp]
	lea	rax, -8400[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -8552[rbp], eax
	cmp	DWORD PTR -8552[rbp], -1
	jne	.L70
	lea	rdi, .LC28[rip]
	call	perror@PLT
	jmp	.L76
.L70:
	cmp	DWORD PTR -8552[rbp], 0
	jne	.L72
	lea	rdi, .LC29[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8564[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L72:
	lea	rsi, -8112[rbp]
	mov	eax, DWORD PTR -8564[rbp]
	mov	ecx, 0
	mov	edx, 8095
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -8548[rbp], eax
	cmp	DWORD PTR -8548[rbp], -1
	jne	.L73
	lea	rdi, .LC14[rip]
	call	perror@PLT
	jmp	.L76
.L73:
	cmp	DWORD PTR -8548[rbp], 0
	jne	.L75
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8564[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L75:
	lea	rax, -8112[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -8548[rbp]
	mov	ecx, DWORD PTR -8564[rbp]
	lea	rax, -8112[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	processRequest
	jmp	.L76
.L69:
	mov	eax, DWORD PTR -8564[rbp]
	mov	edi, eax
	call	close@PLT
.L68:
	jmp	.L77
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.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	"141439.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"HTTP/1.0\000"
	.align	2
.LC1:
	.ascii	"HTTP/1.1\000"
	.align	2
.LC2:
	.ascii	"%s 400 BAD REQUEST\015\012\015\012\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"send\000"
	.align	2
.LC5:
	.ascii	"index.html\000"
	.align	2
.LC6:
	.ascii	"GET\000"
	.align	2
.LC7:
	.ascii	"%s 404 NOT FOUND\015\012\015\012\000"
	.align	2
.LC8:
	.ascii	"%s 200 OK\015\012Content-Length: %d\015\012\015\012"
	.ascii	"%s\000"
	.align	2
.LC9:
	.ascii	"data: %s\000"
	.align	2
.LC10:
	.ascii	"sendall\000"
	.align	2
.LC11:
	.ascii	"We only sent %d bytes because of the error!\012\000"
	.align	2
.LC12:
	.ascii	"POST\000"
	.align	2
.LC13:
	.ascii	"%s 200 OK\015\012\015\012\000"
	.align	2
.LC14:
	.ascii	"readfail\012\000"
	.align	2
.LC15:
	.ascii	"disconnected\000"
	.align	2
.LC16:
	.ascii	"%s 501 NOT IMPLEMENTED\015\012\015\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	processRequest
	.syntax unified
	.arm
	.fpu softvfp
	.type	processRequest, %function
processRequest:
	@ args = 0, pretend = 0, frame = 16768
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16640
	sub	sp, sp, #140
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r0, [r3, #-372]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r1, [r3, #-376]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r2, [r3, #-380]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-360]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-356]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-352]
	b	.L2
.L13:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-372]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L4
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	add	r3, r3, #1
	str	r3, [r2, #-360]
	b	.L2
.L6:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-372]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	add	r3, r1, r3
	sub	r3, r3, #344
	strb	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	add	r3, r3, #1
	str	r3, [r2, #-360]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	add	r3, r3, #1
	str	r3, [r2, #-356]
.L4:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-372]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	isspace
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	cmp	r3, #3
	bls	.L6
.L5:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	add	r3, r3, #1
	str	r3, [r2, #-360]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	add	r3, r2, r3
	sub	r3, r3, #344
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-356]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	add	r3, r3, #1
	str	r3, [r2, #-360]
	b	.L7
.L9:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-372]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	add	r3, r1, r3
	sub	r3, r3, #324
	strb	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	add	r3, r3, #1
	str	r3, [r2, #-360]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	add	r3, r3, #1
	str	r3, [r2, #-356]
.L7:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-372]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	isspace
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	ldr	r2, .L33+4
	cmp	r3, r2
	bls	.L9
.L8:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	add	r3, r3, #1
	str	r3, [r2, #-360]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	add	r3, r2, r3
	sub	r3, r3, #324
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-356]
	b	.L10
.L11:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-372]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	add	r3, r1, r3
	sub	r3, r3, #336
	strb	r2, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	add	r3, r3, #1
	str	r3, [r2, #-360]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	add	r3, r3, #1
	str	r3, [r2, #-356]
.L10:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-372]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	isspace
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	add	r3, r2, r3
	sub	r3, r3, #336
	mov	r2, #0
	strb	r2, [r3]
	b	.L12
.L2:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	cmp	r3, #2
	bhi	.L12
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-372]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L13
.L12:
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #80
	ldr	r1, .L33+8
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-352]
	b	.L15
.L14:
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #80
	ldr	r1, .L33+12
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-352]
	b	.L15
.L16:
	sub	r2, fp, #16640
	sub	r2, r2, #12
	sub	r2, r2, #80
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	ldr	r1, .L33+16
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, r3
	ldr	r0, .L33+20
	bl	printf
	sub	r1, fp, #8064
	sub	r1, r1, #12
	sub	r1, r1, #36
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r2, .L33+24
	ldr	r0, [r0, #-376]
	bl	send
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L33+28
	bl	perror
.L15:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrb	r3, [r3, #-324]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #68
	ldr	r1, .L33+32
	mov	r0, r3
	bl	sprintf
.L18:
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #88
	ldr	r1, .L33+36
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	sub	r2, fp, #16192
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #68
	mov	r1, r2
	mov	r0, r3
	bl	readFile
	mov	r3, r0
	sub	r2, fp, #16384
	sub	r2, r2, #12
	str	r3, [r2, #-364]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-364]
	cmn	r3, #1
	bne	.L20
	sub	r2, fp, #16640
	sub	r2, r2, #12
	sub	r2, r2, #80
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	ldr	r1, .L33+40
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, r3
	ldr	r0, .L33+20
	bl	printf
	sub	r1, fp, #8064
	sub	r1, r1, #12
	sub	r1, r1, #36
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r2, .L33+24
	ldr	r0, [r0, #-376]
	bl	send
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L33+28
	bl	perror
	b	.L21
.L20:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r1, [r3, #-364]
	sub	r2, fp, #16640
	sub	r2, r2, #12
	sub	r2, r2, #80
	sub	r0, fp, #8064
	sub	r0, r0, #12
	sub	r0, r0, #36
	sub	r3, fp, #16192
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L33+44
	bl	sprintf
	sub	r3, fp, #16192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L33+48
	bl	printf
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, r3
	ldr	r0, .L33+20
	bl	printf
	sub	r2, fp, #16640
	sub	r2, r2, #12
	sub	r2, r2, #108
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r1, fp, #16384
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-376]
	bl	sendall
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L33+52
	bl	perror
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-364]
	mov	r1, r3
	ldr	r0, .L33+56
	bl	printf
.L21:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-352]
	cmp	r3, #0
	bne	.L32
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r0, [r3, #-376]
	bl	close
	mov	r0, #0
	bl	exit
.L19:
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #88
	ldr	r1, .L33+60
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	sub	r2, fp, #16640
	sub	r2, r2, #12
	sub	r2, r2, #80
	sub	r3, fp, #16192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L33+64
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #16192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L33+20
	bl	printf
	sub	r1, fp, #16192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r2, .L33+24
	ldr	r0, [r0, #-376]
	bl	send
	mov	r3, r0
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L33+28
	bl	perror
.L25:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8064
	sub	r1, r1, #12
	sub	r1, r1, #36
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r2, .L33+68
	ldr	r0, [r0, #-376]
	bl	recv
	str	r0, [r4, #-348]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	cmn	r3, #1
	bne	.L26
	ldr	r0, .L33+72
	bl	perror
	b	.L27
.L26:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	cmp	r3, #0
	bne	.L27
	ldr	r0, .L33+76
	bl	perror
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r0, [r3, #-376]
	bl	close
	mov	r0, #0
	bl	exit
.L27:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-352]
	cmp	r3, #0
	bne	.L32
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r0, [r3, #-376]
	bl	close
	mov	r0, #0
	bl	exit
.L24:
	sub	r2, fp, #16640
	sub	r2, r2, #12
	sub	r2, r2, #80
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	ldr	r1, .L33+80
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, r3
	ldr	r0, .L33+20
	bl	printf
	sub	r1, fp, #8064
	sub	r1, r1, #12
	sub	r1, r1, #36
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r2, .L33+24
	ldr	r0, [r0, #-376]
	bl	send
	mov	r3, r0
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L33+28
	bl	perror
.L29:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-352]
	cmp	r3, #0
	bne	.L32
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r0, [r3, #-376]
	bl	close
	mov	r0, #0
	bl	exit
.L32:
	nop
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC17
	.word	510
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	8096
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	8095
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	processRequest, .-processRequest
	.section	.rodata
	.align	2
.LC18:
	.ascii	"rb\000"
	.text
	.align	2
	.global	readFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	readFile, %function
readFile:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r1, .L40
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L38
	mvn	r3, #0
	b	.L37
.L39:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
.L38:
	ldr	r0, [fp, #-12]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L39
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC18
	.size	readFile, .-readFile
	.align	2
	.global	sendall
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendall, %function
sendall:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L43
.L46:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	add	r1, r2, r3
	ldr	r2, [fp, #-12]
	mov	r3, #0
	ldr	r0, [fp, #-24]
	bl	send
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L50
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
.L43:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L46
	b	.L45
.L50:
	nop
.L45:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L47
	mvn	r3, #0
	b	.L49
.L47:
	mov	r3, #0
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sendall, .-sendall
	.align	2
	.global	sigchld_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigchld_handler, %function
sigchld_handler:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	nop
.L52:
	mov	r2, #1
	mov	r1, #0
	mvn	r0, #0
	bl	waitpid
	mov	r3, r0
	cmp	r3, #0
	bgt	.L52
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sigchld_handler, .-sigchld_handler
	.align	2
	.global	error_die
	.syntax unified
	.arm
	.fpu softvfp
	.type	error_die, %function
error_die:
	@ 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_die, .-error_die
	.section	.rodata
	.align	2
.LC19:
	.ascii	"8080\000"
	.align	2
.LC20:
	.ascii	"getaddrinfo: %s\012\000"
	.align	2
.LC21:
	.ascii	"server: socket\000"
	.align	2
.LC22:
	.ascii	"setsockopt\000"
	.align	2
.LC23:
	.ascii	"server: bind\000"
	.align	2
.LC24:
	.ascii	"server: failed to bind\012\000"
	.align	2
.LC25:
	.ascii	"listen\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init_server
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_server, %function
init_server:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-64]
	sub	r3, fp, #48
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-48]
	sub	r3, fp, #68
	sub	r2, fp, #48
	ldr	r1, .L69+4
	mov	r0, #0
	bl	getaddrinfo
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L69+8
	ldr	r4, [r3]
	ldr	r0, [fp, #-52]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L69+12
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L66
.L55:
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-60]
	b	.L57
.L63:
	ldr	r3, [fp, #-60]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-60]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L58
	ldr	r0, .L69+16
	bl	perror
	b	.L59
.L58:
	sub	r3, fp, #64
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-56]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L60
	ldr	r0, .L69+20
	bl	error_die
.L60:
	ldr	r3, [fp, #-60]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-56]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L68
	ldr	r0, [fp, #-56]
	bl	close
	ldr	r0, .L69+24
	bl	perror
	nop
.L59:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-60]
.L57:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L63
	b	.L62
.L68:
	nop
.L62:
	ldr	r3, [fp, #-68]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L64
	ldr	r3, .L69+8
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L69+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L64:
	mov	r1, #10
	ldr	r0, [fp, #-56]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L65
	ldr	r0, .L69+32
	bl	error_die
.L65:
	ldr	r3, [fp, #-56]
.L66:
	ldr	r2, .L69
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC26
	.word	.LC19
	.word	stderr
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	init_server, .-init_server
	.section	.rodata
	.align	2
.LC27:
	.ascii	"sigaction\000"
	.align	2
.LC28:
	.ascii	"server: waiting for connections...\000"
	.align	2
.LC29:
	.ascii	"accept\000"
	.align	2
.LC30:
	.ascii	"socket error\000"
	.align	2
.LC31:
	.ascii	"timeout\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8512
	sub	sp, sp, #36
	ldr	r3, .L87
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	bl	init_server
	str	r0, [r4, #-332]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L87+4
	str	r3, [r2, #-48]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #48
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #268435456
	str	r3, [r2, #84]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L72
	ldr	r0, .L87+8
	bl	perror
	mov	r0, #1
	bl	exit
.L72:
	ldr	r0, .L87+12
	bl	puts
.L85:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #128
	str	r3, [r2, #-340]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #8512
	sub	r2, r2, #12
	sub	r2, r2, #20
	sub	r3, fp, #8448
	sub	r3, r3, #12
	sub	r3, r3, #48
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-332]
	bl	accept
	str	r0, [r4, #-328]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	cmn	r3, #1
	bne	.L73
	ldr	r0, .L87+16
	bl	perror
	b	.L74
.L73:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-332]
	bl	close
.L84:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8320
	sub	r3, r3, #12
	sub	r3, r3, #48
	str	r3, [r2, #-324]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-336]
	b	.L76
.L77:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-336]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	add	r3, r3, #1
	str	r3, [r2, #-336]
.L76:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	cmp	r3, #31
	bls	.L77
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-176]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-176]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #3
	str	r3, [r2, #-312]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-308]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	add	r0, r3, #1
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8320
	sub	r1, r1, #12
	sub	r1, r1, #48
	sub	r3, fp, #8448
	sub	r3, r3, #12
	sub	r3, r3, #56
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [r4, #-320]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	cmn	r3, #1
	bne	.L78
	ldr	r0, .L87+20
	bl	perror
	b	.L84
.L78:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	cmp	r3, #0
	bne	.L80
	ldr	r0, .L87+24
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-328]
	bl	close
	mov	r0, #0
	bl	exit
.L80:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8064
	sub	r1, r1, #12
	sub	r1, r1, #36
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r2, .L87+28
	ldr	r0, [r0, #-328]
	bl	recv
	str	r0, [r4, #-316]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmn	r3, #1
	bne	.L81
	ldr	r0, .L87+32
	bl	perror
	b	.L84
.L81:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, #0
	bne	.L83
	ldr	r0, .L87+36
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-328]
	bl	close
	mov	r0, #0
	bl	exit
.L83:
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, r3
	ldr	r0, .L87+40
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	ldr	r2, [r2, #-316]
	ldr	r1, [r1, #-328]
	mov	r0, r3
	bl	processRequest
	b	.L84
.L75:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-328]
	bl	close
.L74:
	b	.L85
.L88:
	.align	2
.L87:
	.word	.LC32
	.word	sigchld_handler
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	8095
	.word	.LC14
	.word	.LC15
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
