	.file	"620429.c"
	.intel_syntax noprefix
	.text
	.globl	clients
	.bss
	.align 32
	.type	clients, @object
	.size	clients, 248
clients:
	.zero	248
	.globl	contentBuffer
	.align 32
	.type	contentBuffer, @object
	.size	contentBuffer, 70000
contentBuffer:
	.zero	70000
	.globl	responseBuffer
	.align 32
	.type	responseBuffer, @object
	.size	responseBuffer, 80000
responseBuffer:
	.zero	80000
	.section	.rodata
	.align 8
.LC0:
	.string	"stage 1 program by (ma995) listening on port (%d)\n"
.LC1:
	.string	"usage: %s port\n"
.LC2:
	.string	"CONNECTED: fd=%2d\n"
.LC3:
	.string	"REJECTED: reached max 32 fds"
.LC4:
	.string	"CLOSED:    fd=%2d\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	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	WORD PTR -66[rbp], 1337
	cmp	DWORD PTR -84[rbp], 2
	jne	.L2
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	WORD PTR -66[rbp], ax
	movzx	eax, WORD PTR -66[rbp]
	mov	edi, eax
	call	initServer
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	movzx	eax, WORD PTR -66[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	cmp	DWORD PTR -52[rbp], 0
	js	.L4
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -64[rbp], 0
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L6
	add	DWORD PTR -64[rbp], 1
	jmp	.L5
.L6:
	mov	esi, 65576
	mov	edi, 1
	call	calloc@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	rbx, QWORD PTR [rdx+rax]
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR 65560[rbx], rax
	mov	DWORD PTR -60[rbp], 1
	jmp	.L7
.L5:
	cmp	DWORD PTR -64[rbp], 30
	jle	.L8
.L7:
	cmp	DWORD PTR -60[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L9:
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L4:
	mov	DWORD PTR -64[rbp], 0
	jmp	.L10
.L14:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L16
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	handleClient
	test	al, al
	je	.L12
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR 65568[rax]
	test	rax, rax
	je	.L13
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR 65568[rax]
	mov	rdi, rax
	call	freeHttpReqHeader
.L13:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, clients[rip]
	mov	QWORD PTR [rdx+rax], 0
	jmp	.L12
.L16:
	nop
.L12:
	add	DWORD PTR -64[rbp], 1
.L10:
	cmp	DWORD PTR -64[rbp], 30
	jle	.L14
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 100000000
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	nanosleep@PLT
	jmp	.L3
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"%s%s\n"
	.text
	.globl	tryOrDie
	.type	tryOrDie, @function
tryOrDie:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 0
	je	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	tryOrDie, .-tryOrDie
	.section	.rodata
.LC6:
	.string	"Failed to create socket: "
.LC7:
	.string	"Failed to bind socket: "
.LC8:
	.string	"Failed to listen: "
	.text
	.globl	initServer
	.type	initServer, @function
initServer:
.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, 64
	mov	eax, edi
	mov	WORD PTR -52[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	shr	eax, 31
	movzx	eax, al
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	tryOrDie
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	movzx	eax, WORD PTR -52[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	shr	eax, 31
	movzx	eax, al
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	tryOrDie
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	shr	eax, 31
	movzx	eax, al
	lea	rsi, .LC8[rip]
	mov	edi, eax
	call	tryOrDie
	mov	eax, DWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	initServer, .-initServer
	.section	.rodata
.LC10:
	.string	"Content-Length"
.LC11:
	.string	"REQUEST:   fd=%2d    %s\n"
	.align 8
.LC12:
	.string	"<!doctype html><html><body><pre>%s</pre><pre style='color: red; margin: 1em;'>HOSTIP = %s (%s)\nPORT   = %s\nPATH   = %s</pre></body></html>"
	.align 8
.LC13:
	.string	"HTTP/1.1 200 OK\r\nContent-Length: %d\r\nConnection: keep-alive\r\nContent-Type: text/html; charset=UTF-8\r\n\r\n%s"
.LC14:
	.string	"failed to resolve IP"
.LC15:
	.string	"Connection"
.LC16:
	.string	"HTTP/1.1"
.LC17:
	.string	"keep-alive"
	.text
	.globl	handleClient
	.type	handleClient, @function
handleClient:
.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
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 65544[rax]
	mov	eax, 65536
	sub	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65544[rax]
	lea	rsi, [rcx+rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jg	.L24
	mov	rax, QWORD PTR -104[rbp]
	mov	rbx, QWORD PTR 65560[rax]
	mov	edi, 0
	call	time@PLT
	mov	rsi, rbx
	mov	rdi, rax
	call	difftime@PLT
	movq	rax, xmm0
	movq	xmm1, rax
	comisd	xmm1, QWORD PTR .LC9[rip]
	seta	al
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 65544[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 65544[rax], rdx
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65544[rax]
	mov	rdx, QWORD PTR -104[rbp]
	mov	BYTE PTR 4[rdx+rax], 0
	mov	edi, 0
	call	time@PLT
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR 65560[rdx], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65544[rax]
	cmp	rax, 65535
	jle	.L26
	mov	eax, 1
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	test	rax, rax
	jne	.L27
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	jmp	.L28
.L31:
	mov	rax, QWORD PTR -104[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	iscrlf
	test	al, al
	je	.L29
	mov	rax, QWORD PTR -104[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 2
	add	rax, rdx
	mov	rdi, rax
	call	iscrlf
	test	al, al
	je	.L29
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 4
	mov	QWORD PTR -80[rbp], rax
	jmp	.L30
.L29:
	add	QWORD PTR -72[rbp], 1
.L28:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65544[rax]
	cmp	rdx, rax
	jb	.L31
.L30:
	cmp	QWORD PTR -80[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 4
	mov	rdi, rax
	call	doParse
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR 65568[rdx], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	test	rax, rax
	je	.L32
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	getField
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L33
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	atoi@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 65552[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	atoi@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 65552[rax], rdx
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65552[rax]
	cmp	rax, 65535
	jle	.L40
	mov	eax, 1
	jmp	.L25
.L33:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 65544[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 65552[rax], rdx
	jmp	.L40
.L32:
	cmp	QWORD PTR -80[rbp], 0
	je	.L27
	mov	eax, 1
	jmp	.L25
.L40:
	nop
.L27:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65552[rax]
	test	rax, rax
	je	.L35
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 65544[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65552[rax]
	cmp	rdx, rax
	jl	.L35
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	doLookup
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC13[rip]
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L36
	lea	rax, .LC14[rip]
	mov	QWORD PTR -64[rbp], rax
.L36:
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	mov	rcx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	mov	r8, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, 4[rax]
	mov	rdi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9, r8
	mov	r8, rdi
	mov	rcx, rdx
	mov	rdx, rsi
	mov	rsi, rax
	lea	rdi, contentBuffer[rip]
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rdi, contentBuffer[rip]
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, contentBuffer[rip]
	mov	rsi, rax
	lea	rdi, responseBuffer[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, responseBuffer[rip]
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, 0
	lea	rsi, responseBuffer[rip]
	mov	edi, eax
	call	send@PLT
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 4
	mov	edx, 65536
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 65552[rax], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR 65552[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 65544[rax], rdx
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	getField
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	mov	rax, QWORD PTR 16[rax]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	je	.L37
	cmp	QWORD PTR -24[rbp], 0
	je	.L38
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L38
.L37:
	mov	eax, 1
	jmp	.L39
.L38:
	mov	eax, 0
.L39:
	mov	BYTE PTR -81[rbp], al
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 65568[rax]
	mov	rdi, rax
	call	freeHttpReqHeader
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 65568[rax], 0
	cmp	BYTE PTR -81[rbp], 0
	sete	al
	jmp	.L25
.L35:
	mov	eax, 0
.L25:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	handleClient, .-handleClient
	.globl	getField
	.type	getField, @function
getField:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L42
.L45:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L43
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L44
.L43:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L42:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L45
	mov	eax, 0
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	getField, .-getField
	.globl	iscrlf
	.type	iscrlf, @function
iscrlf:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L47
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L47
	mov	eax, 1
	jmp	.L48
.L47:
	mov	eax, 0
.L48:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	iscrlf, .-iscrlf
	.section	.rodata
.LC18:
	.string	"()<>@,;:\\\"/[]?={} \t"
	.text
	.globl	readToken
	.type	readToken, @function
readToken:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L51
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L51:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 31
	jle	.L52
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC18[rip]
	call	strchr@PLT
	test	rax, rax
	je	.L53
.L52:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rbp], rax
	je	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	sub	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	jmp	.L56
.L54:
	mov	eax, 0
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	readToken, .-readToken
	.globl	readText
	.type	readText, @function
readText:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L58
.L60:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L58:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jle	.L59
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 127
	jne	.L60
.L59:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rbp], rax
	je	.L61
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	sub	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	jmp	.L63
.L61:
	mov	eax, 0
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	readText, .-readText
	.section	.rodata
	.align 8
.LC19:
	.string	"Request-Line is not properly formatted [RFC2616:5.1]\n"
.LC20:
	.string	"http://"
.LC21:
	.string	"-."
.LC22:
	.string	"80"
	.text
	.globl	parseRequestLine
	.type	parseRequestLine, @function
parseRequestLine:
.LFB14:
	.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
	lea	rax, .LC19[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	readText
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L65
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rdx], rcx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L66
.L65:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L67
.L66:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	readText
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L68
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rdx], rcx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L69
.L68:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L67
.L69:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	readText
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L70
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	iscrlf
	test	al, al
	jne	.L71
.L70:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L67
.L71:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, 7
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L73
	add	QWORD PTR -24[rbp], 7
	add	QWORD PTR -16[rbp], 7
	jmp	.L73
.L74:
	add	QWORD PTR -24[rbp], 1
.L73:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8
	test	eax, eax
	jne	.L74
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC21[rip]
	call	strchr@PLT
	test	rax, rax
	jne	.L74
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L75
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L76
.L77:
	add	QWORD PTR -24[rbp], 1
.L76:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L77
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 32[rax], rdx
	jmp	.L78
.L75:
	lea	rdi, .LC22[rip]
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 32[rax], rdx
.L78:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	eax, 0
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	parseRequestLine, .-parseRequestLine
	.globl	skipws
	.type	skipws, @function
skipws:
.LFB15:
	.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	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	iscrlf
	test	al, al
	je	.L80
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L81
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	jne	.L80
.L81:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L82
.L80:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L83
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	jne	.L86
.L83:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L82:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	skipws
	jmp	.L79
.L86:
	nop
.L79:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	skipws, .-skipws
	.globl	parseFieldValue
	.type	parseFieldValue, @function
parseFieldValue:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
.L94:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	skipws
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	readText
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L96
	cmp	QWORD PTR -40[rbp], 0
	je	.L89
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	ebx, 1[rax]
	jmp	.L90
.L89:
	mov	ebx, 0
.L90:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, ebx
	add	eax, 1
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	rsi, rax
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L91
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
.L91:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L94
.L96:
	nop
	mov	rax, QWORD PTR -40[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	parseFieldValue, .-parseFieldValue
	.section	.rodata
	.align 8
.LC23:
	.string	"Field is not properly formatted [RFC2616:4.2]\n"
	.text
	.globl	parseField
	.type	parseField, @function
parseField:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rax, .LC23[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	esi, 24
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	readToken
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L98
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rcx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	je	.L99
.L98:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L100
.L99:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	parseFieldValue
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L101
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	iscrlf
	test	al, al
	jne	.L102
.L101:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L100
.L102:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
.L100:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	parseField, .-parseField
	.globl	parseAllFields
	.type	parseAllFields, @function
parseAllFields:
.LFB18:
	.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 -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L104
.L107:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L105
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L104
.L105:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L104:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	iscrlf
	test	al, al
	jne	.L106
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	parseField
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L107
.L106:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	parseAllFields, .-parseAllFields
	.globl	doParse
	.type	doParse, @function
doParse:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	esi, 56
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parseRequestLine
	test	al, al
	je	.L110
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	freeHttpReqHeader
	mov	eax, 0
	jmp	.L111
.L110:
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	parseAllFields
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	iscrlf
	test	al, al
	jne	.L112
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	freeHttpReqHeader
	mov	eax, 0
	jmp	.L111
.L112:
	mov	rax, QWORD PTR -8[rbp]
.L111:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	doParse, .-doParse
	.globl	freeHttpReqHeader
	.type	freeHttpReqHeader, @function
freeHttpReqHeader:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L114
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
.L114:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L115
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
.L115:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L116
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
.L116:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L117
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	free@PLT
.L117:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L118
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	free@PLT
.L118:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L120
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	free@PLT
	jmp	.L120
.L121:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], rdx
.L120:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L121
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	freeHttpReqHeader, .-freeHttpReqHeader
	.globl	doLookup
	.type	doLookup, @function
doLookup:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -32[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	test	eax, eax
	jne	.L123
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L124
.L128:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	js	.L131
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	js	.L126
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L129
.L131:
	nop
.L126:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -24[rbp], rax
.L124:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L128
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
.L123:
	mov	eax, 0
.L129:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L130
	call	__stack_chk_fail@PLT
.L130:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	doLookup, .-doLookup
	.section	.rodata
	.align 8
.LC9:
	.long	0
	.long	1077805056
	.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	"620429.c"
	.text
	.comm	clients,124,4
	.comm	contentBuffer,70000,4
	.comm	responseBuffer,80000,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"stage 1 program by (ma995) listening on port (%d)\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"usage: %s port\012\000"
	.align	2
.LC2:
	.ascii	"CONNECTED: fd=%2d\012\000"
	.align	2
.LC3:
	.ascii	"REJECTED: reached max 32 fds\000"
	.align	2
.LC4:
	.ascii	"CLOSED:    fd=%2d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L17+4
	strh	r3, [fp, #-42]	@ movhi
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	bne	.L2
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	strh	r3, [fp, #-42]	@ movhi
	ldrh	r3, [fp, #-42]
	mov	r0, r3
	bl	initServer
	str	r0, [fp, #-32]
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-32]
	bl	fcntl
	ldrh	r3, [fp, #-42]
	mov	r1, r3
	ldr	r0, .L17+8
	bl	printf
	b	.L3
.L2:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	accept
	str	r0, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	blt	.L4
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-28]
	bl	fcntl
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L5
.L8:
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L5
.L6:
	ldr	r1, .L17+20
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	ldr	r4, [r2, r3, lsl #2]
	mov	r0, #0
	bl	time
	mov	r3, r0
	add	r2, r4, #65536
	str	r3, [r2, #12]
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L7
.L5:
	ldr	r3, [fp, #-40]
	cmp	r3, #30
	ble	.L8
.L7:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L9
	ldr	r1, [fp, #-28]
	ldr	r0, .L17+24
	bl	printf
	b	.L4
.L9:
	ldr	r0, [fp, #-28]
	bl	close
	ldr	r0, .L17+28
	bl	puts
.L4:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L10
.L14:
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L16
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	handleClient
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+32
	bl	printf
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L13
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	freeHttpReqHeader
.L13:
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r2, .L17+16
	ldr	r3, [fp, #-40]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	b	.L12
.L16:
	nop
.L12:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L10:
	ldr	r3, [fp, #-40]
	cmp	r3, #30
	ble	.L14
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L17+36
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	nanosleep
	b	.L3
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	1337
	.word	.LC0
	.word	.LC1
	.word	clients
	.word	65556
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	100000000
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%s%s\012\000"
	.text
	.align	2
	.global	tryOrDie
	.syntax unified
	.arm
	.fpu softvfp
	.type	tryOrDie, %function
tryOrDie:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L21
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L22
	bl	printf
	mov	r0, #1
	bl	exit
.L21:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC6
	.size	tryOrDie, .-tryOrDie
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Failed to create socket: \000"
	.align	2
.LC8:
	.ascii	"Failed to bind socket: \000"
	.align	2
.LC9:
	.ascii	"Failed to listen: \000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	initServer
	.syntax unified
	.arm
	.fpu softvfp
	.type	initServer, %function
initServer:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	mov	r3, r0
	strh	r3, [fp, #-38]	@ movhi
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	lsr	r3, r3, #31
	and	r3, r3, #255
	ldr	r1, .L27+4
	mov	r0, r3
	bl	tryOrDie
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldrh	r3, [fp, #-38]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	bind
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	lsr	r3, r3, #31
	and	r3, r3, #255
	ldr	r1, .L27+8
	mov	r0, r3
	bl	tryOrDie
	mov	r1, #10
	ldr	r0, [fp, #-32]
	bl	listen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	lsr	r3, r3, #31
	and	r3, r3, #255
	ldr	r1, .L27+12
	mov	r0, r3
	bl	tryOrDie
	ldr	r3, [fp, #-32]
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC10
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	initServer, .-initServer
	.global	__aeabi_dcmpgt
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Content-Length\000"
	.align	2
.LC12:
	.ascii	"REQUEST:   fd=%2d    %s\012\000"
	.align	2
.LC13:
	.ascii	"<!doctype html><html><body><pre>%s</pre><pre style="
	.ascii	"'color: red; margin: 1em;'>HOSTIP = %s (%s)\012PORT"
	.ascii	"   = %s\012PATH   = %s</pre></body></html>\000"
	.align	2
.LC14:
	.ascii	"HTTP/1.1 200 OK\015\012Content-Length: %d\015\012Co"
	.ascii	"nnection: keep-alive\015\012Content-Type: text/html"
	.ascii	"; charset=UTF-8\015\012\015\012%s\000"
	.align	2
.LC15:
	.ascii	"failed to resolve IP\000"
	.align	2
.LC16:
	.ascii	"Connection\000"
	.align	2
.LC17:
	.ascii	"HTTP/1.1\000"
	.align	2
.LC18:
	.ascii	"keep-alive\000"
	.text
	.align	2
	.global	handleClient
	.syntax unified
	.arm
	.fpu softvfp
	.type	handleClient, %function
handleClient:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	ldr	r0, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #4
	ldr	r2, [fp, #-56]
	add	r2, r2, #65536
	ldr	r2, [r2, #4]
	add	r1, r3, r2
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #4]
	rsb	r3, r3, #65536
	mov	r2, r3
	mov	r3, #0
	bl	recv
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L30
	mov	r0, #0
	bl	time
	mov	r2, r0
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #12]
	mov	r1, r3
	mov	r0, r2
	bl	difftime
	mov	r3, #1
	mov	r4, r3
	mov	r2, #0
	ldr	r3, .L48
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	mov	r3, #0
	mov	r4, r3
.L31:
	and	r3, r4, #255
	b	.L32
.L30:
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-56]
	add	r2, r2, #65536
	str	r3, [r2, #4]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
	mov	r0, #0
	bl	time
	mov	r2, r0
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	str	r2, [r3, #12]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #4]
	cmp	r3, #65536
	blt	.L33
	mov	r3, #1
	b	.L32
.L33:
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bne	.L34
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L35
.L38:
	ldr	r3, [fp, #-56]
	add	r2, r3, #4
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r0, r3
	bl	iscrlf
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-56]
	add	r2, r3, #4
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	add	r3, r2, r3
	mov	r0, r3
	bl	iscrlf
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-40]
	add	r3, r3, #4
	str	r3, [fp, #-44]
	b	.L37
.L36:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L35:
	ldr	r3, [fp, #-40]
	add	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r2, r2, #65536
	ldr	r2, [r2, #4]
	cmp	r3, r2
	bcc	.L38
.L37:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-56]
	add	r3, r3, #4
	mov	r0, r3
	bl	doParse
	mov	r2, r0
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	str	r2, [r3, #16]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	ldr	r1, .L48+4
	mov	r0, r3
	bl	getField
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	str	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	str	r2, [r3, #8]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #8]
	cmp	r3, #65536
	blt	.L47
	mov	r3, #1
	b	.L32
.L40:
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-56]
	add	r2, r2, #65536
	str	r3, [r2, #8]
	b	.L47
.L39:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L34
	mov	r3, #1
	b	.L32
.L47:
	nop
.L34:
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #8]
	cmp	r2, r3
	blt	.L42
	ldr	r3, [fp, #-56]
	ldr	r1, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L48+8
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	ldr	r3, [r3, #16]
	mov	r1, r3
	mov	r0, r2
	bl	doLookup
	str	r0, [fp, #-36]
	ldr	r3, .L48+12
	str	r3, [fp, #-24]
	ldr	r3, .L48+16
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L43
	ldr	r3, .L48+20
	str	r3, [fp, #-36]
.L43:
	ldr	r3, [fp, #-56]
	add	r1, r3, #4
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-56]
	add	r2, r2, #65536
	ldr	r2, [r2, #16]
	ldr	r2, [r2, #20]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, [fp, #-24]
	ldr	r0, .L48+24
	bl	sprintf
	ldr	r0, .L48+24
	bl	strlen
	mov	r2, r0
	ldr	r3, .L48+24
	ldr	r1, [fp, #-20]
	ldr	r0, .L48+28
	bl	sprintf
	ldr	r3, [fp, #-56]
	ldr	r4, [r3]
	ldr	r0, .L48+28
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	ldr	r1, .L48+28
	mov	r0, r4
	bl	send
	ldr	r3, [fp, #-56]
	add	r3, r3, #4
	mov	r2, #65536
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #8]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-56]
	add	r2, r2, #65536
	str	r3, [r2, #4]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	ldr	r1, .L48+32
	mov	r0, r3
	bl	getField
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	ldr	r3, [r3, #8]
	ldr	r1, .L48+36
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r1, .L48+40
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
.L44:
	mov	r3, #1
	b	.L46
.L45:
	mov	r3, #0
.L46:
	strb	r3, [fp, #-45]
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	freeHttpReqHeader
	ldr	r3, [fp, #-56]
	add	r3, r3, #65536
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #16]
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L32
.L42:
	mov	r3, #0
.L32:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L49:
	.align	2
.L48:
	.word	1077805056
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	contentBuffer
	.word	responseBuffer
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	handleClient, .-handleClient
	.align	2
	.global	getField
	.syntax unified
	.arm
	.fpu softvfp
	.type	getField, %function
getField:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	b	.L51
.L54:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-8]
	b	.L53
.L52:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L51:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L54
	mov	r3, #0
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getField, .-getField
	.align	2
	.global	iscrlf
	.syntax unified
	.arm
	.fpu softvfp
	.type	iscrlf, %function
iscrlf:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L56
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L56
	mov	r3, #1
	b	.L57
.L56:
	mov	r3, #0
.L57:
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	iscrlf, .-iscrlf
	.section	.rodata
	.align	2
.LC19:
	.ascii	"()<>@,;:\\\"/[]?={} \011\000"
	.text
	.align	2
	.global	readToken
	.syntax unified
	.arm
	.fpu softvfp
	.type	readToken, %function
readToken:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L60
.L62:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L60:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #31
	bls	.L61
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	blt	.L61
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L66
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L62
.L61:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L63
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strndup
	mov	r3, r0
	b	.L65
.L63:
	mov	r3, #0
.L65:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC19
	.size	readToken, .-readToken
	.align	2
	.global	readText
	.syntax unified
	.arm
	.fpu softvfp
	.type	readText, %function
readText:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L69
.L71:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L69:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bls	.L70
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #126
	bls	.L71
.L70:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L72
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strndup
	mov	r3, r0
	b	.L74
.L72:
	mov	r3, #0
.L74:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	readText, .-readText
	.section	.rodata
	.align	2
.LC20:
	.ascii	"Request-Line is not properly formatted [RFC2616:5.1"
	.ascii	"]\012\000"
	.align	2
.LC21:
	.ascii	"http://\000"
	.align	2
.LC22:
	.ascii	"-.\000"
	.align	2
.LC23:
	.ascii	"80\000"
	.text
	.align	2
	.global	parseRequestLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseRequestLine, %function
parseRequestLine:
	@ 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	r3, .L90
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	readText
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L76
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r2, [fp, #-24]
	str	r1, [r2]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L77
.L76:
	ldr	r0, [fp, #-8]
	bl	printf
	mov	r3, #1
	b	.L78
.L77:
	ldr	r0, [fp, #-24]
	bl	readText
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L79
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r2, [fp, #-24]
	str	r1, [r2]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L80
.L79:
	ldr	r0, [fp, #-8]
	bl	printf
	mov	r3, #1
	b	.L78
.L80:
	ldr	r0, [fp, #-24]
	bl	readText
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	iscrlf
	mov	r3, r0
	cmp	r3, #0
	bne	.L82
.L81:
	ldr	r0, [fp, #-8]
	bl	printf
	mov	r3, #1
	b	.L78
.L82:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r2, r3, #2
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	mov	r2, #7
	ldr	r1, .L90+4
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L84
	ldr	r3, [fp, #-16]
	add	r3, r3, #7
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #7
	str	r3, [fp, #-12]
	b	.L84
.L85:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L84:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L85
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L90+8
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L85
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	strndup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L86
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L87
.L88:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L87:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L88
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	strndup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3, #16]
	b	.L89
.L86:
	ldr	r0, .L90+12
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3, #16]
.L89:
	ldr	r0, [fp, #-16]
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3, #20]
	mov	r3, #0
.L78:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	parseRequestLine, .-parseRequestLine
	.align	2
	.global	skipws
	.syntax unified
	.arm
	.fpu softvfp
	.type	skipws, %function
skipws:
	@ 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, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	iscrlf
	mov	r3, r0
	cmp	r3, #0
	beq	.L93
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L94
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L93
.L94:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	b	.L95
.L93:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L96
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L99
.L96:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L95:
	ldr	r0, [fp, #-8]
	bl	skipws
	b	.L92
.L99:
	nop
.L92:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	skipws, .-skipws
	.section	.rodata
	.align	2
.LC24:
	.ascii	" \000"
	.text
	.align	2
	.global	parseFieldValue
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseFieldValue, %function
parseFieldValue:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
.L107:
	ldr	r0, [fp, #-32]
	bl	skipws
	ldr	r0, [fp, #-32]
	bl	readText
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L109
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L102
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r4, r3, #1
	b	.L103
.L102:
	mov	r4, #0
.L103:
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r1, r3
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L104
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	strcat
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, .L110
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r0, [fp, #-28]
	bl	free
.L104:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	strcat
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	free
	b	.L107
.L109:
	nop
	ldr	r3, [fp, #-28]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L111:
	.align	2
.L110:
	.word	.LC24
	.size	parseFieldValue, .-parseFieldValue
	.section	.rodata
	.align	2
.LC25:
	.ascii	"Field is not properly formatted [RFC2616:4.2]\012\000"
	.text
	.align	2
	.global	parseField
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseField, %function
parseField:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L118
	str	r3, [fp, #-12]
	mov	r1, #12
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	readToken
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L113
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r2, [fp, #-16]
	str	r1, [r2]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	beq	.L114
.L113:
	ldr	r0, [fp, #-12]
	bl	printf
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	b	.L115
.L114:
	ldr	r0, [fp, #-16]
	bl	parseFieldValue
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L116
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	iscrlf
	mov	r3, r0
	cmp	r3, #0
	bne	.L117
.L116:
	ldr	r0, [fp, #-12]
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	b	.L115
.L117:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #2
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
.L115:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L119:
	.align	2
.L118:
	.word	.LC25
	.size	parseField, .-parseField
	.align	2
	.global	parseAllFields
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseAllFields, %function
parseAllFields:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L121
.L124:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L122
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L121
.L122:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L121:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	iscrlf
	mov	r3, r0
	cmp	r3, #0
	bne	.L123
	ldr	r0, [fp, #-24]
	bl	parseField
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L124
.L123:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parseAllFields, .-parseAllFields
	.align	2
	.global	doParse
	.syntax unified
	.arm
	.fpu softvfp
	.type	doParse, %function
doParse:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	mov	r1, #28
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	sub	r3, fp, #16
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	parseRequestLine
	mov	r3, r0
	cmp	r3, #0
	beq	.L127
	ldr	r0, [fp, #-8]
	bl	freeHttpReqHeader
	mov	r3, #0
	b	.L128
.L127:
	sub	r3, fp, #16
	mov	r0, r3
	bl	parseAllFields
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	iscrlf
	mov	r3, r0
	cmp	r3, #0
	bne	.L129
	ldr	r0, [fp, #-8]
	bl	freeHttpReqHeader
	mov	r3, #0
	b	.L128
.L129:
	ldr	r3, [fp, #-8]
.L128:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	doParse, .-doParse
	.align	2
	.global	freeHttpReqHeader
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeHttpReqHeader, %function
freeHttpReqHeader:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L131
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L131:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L132
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
.L132:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L133
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
.L133:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L134
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	free
.L134:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L135
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	free
.L135:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L137
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	free
	b	.L137
.L138:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #24]
.L137:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L138
	ldr	r0, [fp, #-16]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	freeHttpReqHeader, .-freeHttpReqHeader
	.section	.rodata
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	doLookup
	.syntax unified
	.arm
	.fpu softvfp
	.type	doLookup, %function
doLookup:
	@ 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, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L149
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #0
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	bne	.L140
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	b	.L141
.L145:
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L148
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	blt	.L143
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #20]
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	close
	ldr	r3, [fp, #-12]
	b	.L146
.L148:
	nop
.L143:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-20]
.L141:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L145
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	freeaddrinfo
.L140:
	mov	r3, #0
.L146:
	ldr	r2, .L149
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L147
	bl	__stack_chk_fail
.L147:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L150:
	.align	2
.L149:
	.word	.LC26
	.size	doLookup, .-doLookup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
