	.file	"665094.c"
	.intel_syntax noprefix
	.text
	.globl	file_exists
	.type	file_exists, @function
file_exists:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	file_exists, .-file_exists
	.section	.rodata
.LC0:
	.string	"method: %s\n"
.LC1:
	.string	"url: %s\n"
.LC2:
	.string	"ver: %s\n"
.LC3:
	.string	"headers: %d \n"
.LC4:
	.string	"%s : %s\n"
	.text
	.globl	print_parse_request_result
	.type	print_parse_request_result, @function
print_parse_request_result:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	shr	rax, 4
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L4:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L7
	jmp	.L9
.L8:
	nop
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_parse_request_result, .-print_parse_request_result
	.section	.rodata
.LC5:
	.string	"HTTP/1.1 400 Bad Request\r\n"
.LC6:
	.string	"Content-Type: text/html\r\n"
.LC7:
	.string	"Content-Length: %lu\r\n"
.LC8:
	.string	"Connection: close\r\n"
	.text
	.globl	bad_request
	.type	bad_request, @function
bad_request:
.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, 1200
	mov	DWORD PTR -1188[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 724303750490253372
	movabs	rdx, 8375638007853967420
	mov	QWORD PTR -1184[rbp], rax
	mov	QWORD PTR -1176[rbp], rdx
	movabs	rax, 3472332755296875625
	movabs	rdx, 8171027398010159648
	mov	QWORD PTR -1168[rbp], rax
	mov	QWORD PTR -1160[rbp], rdx
	movabs	rax, 7598750407979132277
	movabs	rdx, 7307142331200007284
	mov	QWORD PTR -1152[rbp], rax
	mov	QWORD PTR -1144[rbp], rdx
	movabs	rax, 8026043499797177441
	movabs	rdx, 7813573174190176612
	mov	QWORD PTR -1136[rbp], rax
	mov	QWORD PTR -1128[rbp], rdx
	movabs	rax, 8388350641839108719
	movabs	rdx, 7305749034394591845
	mov	QWORD PTR -1120[rbp], rax
	mov	QWORD PTR -1112[rbp], rdx
	movabs	rax, 3560161744341267566
	movabs	rdx, 7233135182548579390
	mov	QWORD PTR -1104[rbp], rax
	mov	QWORD PTR -1096[rbp], rdx
	movabs	rax, 8391162085809410592
	movabs	rdx, 7146997371474816828
	mov	QWORD PTR -1088[rbp], rax
	mov	QWORD PTR -1080[rbp], rdx
	movabs	rax, 724303776125840997
	movabs	rdx, 954333643321519932
	mov	QWORD PTR -1072[rbp], rax
	mov	QWORD PTR -1064[rbp], rdx
	movabs	rax, 4498090474567842826
	mov	QWORD PTR -1056[rbp], rax
	mov	BYTE PTR -1048[rbp], 0
	lea	rax, -1040[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1040[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1184[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1040[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1040[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1040[rbp]
	mov	WORD PTR [rax], 2573
	mov	BYTE PTR 2[rax], 0
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rdx, -1184[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1184[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -1188[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bad_request, .-bad_request
	.section	.rodata
.LC9:
	.string	"HTTP/1.1 404 Not Found\r\n"
	.text
	.globl	not_found
	.type	not_found, @function
not_found:
.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, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1048[rbp], 0
	mov	edi, 1000
	call	malloc@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	movabs	rsi, 724303750490253372
	movabs	rdi, 8375638007853967420
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rsi, 3760563131448587369
	movabs	rdi, 8020383606376056352
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rdi
	movabs	rdx, 8319401308486705268
	movabs	rcx, 4496119050240536380
	mov	QWORD PTR 32[rax], rdx
	mov	QWORD PTR 40[rax], rcx
	movabs	rsi, 4341017460307668796
	movabs	rdi, 7162801623971164002
	mov	QWORD PTR 48[rax], rsi
	mov	QWORD PTR 56[rax], rdi
	movabs	rdx, 7527522949481327727
	movabs	rcx, 4326284952558990441
	mov	QWORD PTR 64[rax], rdx
	mov	QWORD PTR 72[rax], rcx
	movabs	rsi, 4341032870902392163
	movabs	rdi, 7358939172762956136
	mov	QWORD PTR 80[rax], rsi
	mov	QWORD PTR 88[rax], rdi
	mov	DWORD PTR 96[rax], 543517801
	mov	WORD PTR 100[rax], 58
	mov	rdx, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	movabs	rdx, 7309940833929207867
	movabs	rcx, 8316213871440655729
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	movabs	rsi, 7599935561254530592
	movabs	rdi, 4481477656297305203
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rdi
	movabs	rdx, 8243122710467784508
	movabs	rcx, 7237111081217953086
	mov	QWORD PTR 32[rax], rdx
	mov	QWORD PTR 40[rax], rcx
	movabs	rcx, 8388006240890732153
	mov	QWORD PTR 48[rax], rcx
	mov	DWORD PTR 56[rax], 4090989
	lea	rax, -1040[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1040[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1040[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1040[rbp]
	mov	WORD PTR [rax], 2573
	mov	BYTE PTR 2[rax], 0
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	rdx, QWORD PTR -1048[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -1060[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -1048[rbp], 0
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	not_found, .-not_found
	.globl	success_header
	.type	success_header, @function
success_header:
.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, 1056
	mov	DWORD PTR -1044[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1040[rbp]
	movabs	rdx, 3543824036068086856
	movabs	rcx, 957946345412375072
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	mov	WORD PTR 16[rax], 10
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1040[rbp]
	movabs	rsi, 2322294337967383891
	movabs	rdi, 7524216872467656552
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rcx, 3543822936893846644
	mov	QWORD PTR 16[rax], rcx
	mov	DWORD PTR 24[rax], 168636462
	mov	BYTE PTR 28[rax], 0
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1040[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -1040[rbp]
	mov	WORD PTR [rax], 2573
	mov	BYTE PTR 2[rax], 0
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	success_header, .-success_header
	.section	.rodata
.LC10:
	.string	"r"
	.text
	.globl	send_file
	.type	send_file, @function
send_file:
.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, 2064
	mov	DWORD PTR -2052[rbp], edi
	mov	QWORD PTR -2064[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2040[rbp], 0
	mov	rax, QWORD PTR -2064[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2040[rbp], rax
	cmp	QWORD PTR -2040[rbp], 0
	jne	.L17
	mov	rdx, QWORD PTR -2064[rbp]
	mov	eax, DWORD PTR -2052[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	not_found
	jmp	.L18
.L17:
	mov	rdx, QWORD PTR -2040[rbp]
	lea	rax, -2032[rbp]
	mov	esi, 2014
	mov	rdi, rax
	call	fgets@PLT
	jmp	.L19
.L20:
	lea	rax, -2032[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -2032[rbp]
	mov	eax, DWORD PTR -2052[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	rdx, QWORD PTR -2040[rbp]
	lea	rax, -2032[rbp]
	mov	esi, 2014
	mov	rdi, rax
	call	fgets@PLT
.L19:
	mov	rax, QWORD PTR -2040[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L20
.L18:
	mov	rax, QWORD PTR -2040[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	send_file, .-send_file
	.section	.rodata
.LC11:
	.string	"/"
	.text
	.globl	process_get
	.type	process_get, @function
process_get:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	movabs	rsi, 7236837303634457704
	movabs	rdi, 30519644216260709
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1819112552
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L24:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 46
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movabs	rdx, 7507346039015429423
	movabs	rcx, 5777954921519804271
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	movabs	rsi, 3419204512356396914
	movabs	rdi, 7669474380059273555
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rdi
	movabs	rcx, 7308041804475294565
	mov	QWORD PTR 32[rax], rcx
	mov	DWORD PTR 40[rax], 1886680168
	mov	WORD PTR 44[rax], 12132
	mov	BYTE PTR 46[rax], 0
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	file_exists
	test	eax, eax
	je	.L25
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	success_header
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	send_file
	jmp	.L27
.L25:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	not_found
.L27:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	process_get, .-process_get
	.globl	parse_start_line
	.type	parse_start_line, @function
parse_start_line:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 96
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jle	.L29
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 90
	jle	.L32
.L29:
	mov	eax, -1
	jmp	.L31
.L36:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L33
	add	DWORD PTR -60[rbp], 1
	jmp	.L34
.L33:
	cmp	DWORD PTR -64[rbp], 0
	jne	.L35
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -64[rbp], 1
	jmp	.L34
.L35:
	cmp	DWORD PTR -64[rbp], 1
	jne	.L34
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -60[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -96[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -64[rbp], 2
.L34:
	add	QWORD PTR -56[rbp], 1
	add	DWORD PTR -68[rbp], 1
.L32:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L36
	cmp	DWORD PTR -64[rbp], 0
	jne	.L37
	mov	eax, -1
	jmp	.L31
.L37:
	cmp	DWORD PTR -64[rbp], 1
	jne	.L38
	cmp	DWORD PTR -60[rbp], 0
	je	.L39
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -60[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -96[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	DWORD PTR -60[rbp], 0
	jmp	.L38
.L39:
	mov	eax, -1
	jmp	.L31
.L38:
	cmp	DWORD PTR -60[rbp], 0
	jne	.L40
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 1
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -32[rbp]
	movabs	rbx, 3543824036068086856
	mov	QWORD PTR [rax], rbx
	mov	BYTE PTR 8[rax], 0
	jmp	.L41
.L40:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 1
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -60[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	r12, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, r12
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -96[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
.L41:
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 2
.L31:
	add	rsp, 96
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	parse_start_line, .-parse_start_line
	.globl	parse_header
	.type	parse_header, @function
parse_header:
.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, 96
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	BYTE PTR -57[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L51:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L43
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L45
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L43
	jmp	.L45
.L46:
	add	QWORD PTR -40[rbp], 1
	add	DWORD PTR -56[rbp], 1
	add	DWORD PTR -52[rbp], 1
.L45:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L46
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L48
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	ecx, DWORD PTR -52[rbp]
	movsx	rcx, ecx
	sub	rax, rcx
	mov	rsi, rax
	mov	rax, QWORD PTR -80[rbp]
	lea	rcx, [rsi+rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	DWORD PTR -52[rbp], 0
	add	QWORD PTR -40[rbp], 1
	add	DWORD PTR -56[rbp], 1
	jmp	.L48
.L49:
	add	QWORD PTR -40[rbp], 1
	add	DWORD PTR -56[rbp], 1
	add	DWORD PTR -48[rbp], 1
.L48:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L49
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L50
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	ecx, DWORD PTR -48[rbp]
	movsx	rcx, ecx
	sub	rax, rcx
	mov	rsi, rax
	mov	rax, QWORD PTR -80[rbp]
	lea	rcx, [rsi+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	DWORD PTR -48[rbp], 0
	add	DWORD PTR -56[rbp], 1
	add	QWORD PTR -40[rbp], 1
.L50:
	add	DWORD PTR -56[rbp], 1
	add	QWORD PTR -40[rbp], 1
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rdx], rax
	add	DWORD PTR -44[rbp], 1
	jmp	.L51
.L43:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -8[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 2
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	parse_header, .-parse_header
	.globl	parse_request
	.type	parse_request, @function
parse_request:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	parse_start_line
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L54
	mov	eax, -1
	jmp	.L55
.L54:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	parse_header
	mov	DWORD PTR -4[rbp], eax
	mov	eax, 1
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	parse_request, .-parse_request
	.section	.rodata
.LC12:
	.string	"client socket fd: %d\n"
.LC13:
	.string	"empty url or method"
.LC14:
	.string	"POST"
	.text
	.globl	handle_request
	.type	handle_request, @function
handle_request:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2688
	mov	QWORD PTR -2680[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2680[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -2660[rbp], eax
	mov	rax, QWORD PTR -2680[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -2680[rbp], 0
	mov	eax, DWORD PTR -2660[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -2656[rbp], 0
	mov	DWORD PTR -2652[rbp], 0
	mov	DWORD PTR -2664[rbp], 0
	mov	QWORD PTR -2648[rbp], 0
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR -2648[rbp], rax
	mov	rax, QWORD PTR -2648[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -2664[rbp], 0
	jmp	.L57
.L58:
	mov	eax, DWORD PTR -2664[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 2640
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -2664[rbp], 1
.L57:
	cmp	DWORD PTR -2664[rbp], 99
	jle	.L58
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -2660[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -2652[rbp], eax
	cmp	DWORD PTR -2652[rbp], 0
	jle	.L67
	lea	rcx, -2640[rbp]
	mov	rdx, QWORD PTR -2648[rbp]
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -2660[rbp]
	mov	edi, eax
	call	parse_request
	mov	DWORD PTR -2656[rbp], eax
	cmp	DWORD PTR -2656[rbp], -1
	jne	.L61
	mov	eax, DWORD PTR -2660[rbp]
	mov	edi, eax
	call	bad_request
	jmp	.L56
.L61:
	mov	rax, QWORD PTR -2648[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L62
	mov	rax, QWORD PTR -2648[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L63
.L62:
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L63:
	mov	rax, QWORD PTR -2648[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	je	.L64
	mov	rdx, QWORD PTR -2648[rbp]
	mov	eax, DWORD PTR -2660[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	process_get
.L64:
	mov	rax, QWORD PTR -2648[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -2648[rbp], 0
	mov	eax, DWORD PTR -2660[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L56
.L67:
	nop
.L56:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	handle_request, .-handle_request
	.section	.rodata
.LC15:
	.string	"socket"
.LC16:
	.string	"setsockopt"
.LC17:
	.string	"bind"
.LC18:
	.string	"listen"
	.align 8
.LC19:
	.string	"http server running on port %d\n"
	.text
	.globl	startup
	.type	startup, @function
startup:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], -1
	mov	WORD PTR -42[rbp], 9001
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L69
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L69:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	edi, 9001
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -40[rbp], 1
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L70
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L70:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L71
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L71:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L72
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L72:
	movzx	eax, WORD PTR -42[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L74
	call	__stack_chk_fail@PLT
.L74:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	startup, .-startup
	.section	.rodata
.LC20:
	.string	"epoll create"
.LC21:
	.string	"epoll ctl"
.LC22:
	.string	"accept"
.LC23:
	.string	"new connection[%s:%d]\n"
.LC24:
	.string	"client fd: %d\n"
.LC25:
	.string	"thread create"
.LC26:
	.string	"EPOLLOUT"
	.text
	.globl	main
	.type	main, @function
main:
.LFB18:
	.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, 1144
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1136[rbp], -1
	mov	DWORD PTR -1132[rbp], 0
	mov	DWORD PTR -1144[rbp], 16
	mov	DWORD PTR -1128[rbp], 0
	mov	eax, 0
	call	startup
	mov	DWORD PTR -1136[rbp], eax
	mov	edi, 1000
	call	epoll_create@PLT
	mov	DWORD PTR -1128[rbp], eax
	cmp	DWORD PTR -1128[rbp], 0
	jns	.L76
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L76:
	mov	DWORD PTR -1084[rbp], 1
	mov	eax, DWORD PTR -1136[rbp]
	mov	DWORD PTR -1080[rbp], eax
	lea	rcx, -1084[rbp]
	mov	edx, DWORD PTR -1136[rbp]
	mov	eax, DWORD PTR -1128[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	test	eax, eax
	jns	.L77
	lea	rdi, .LC21[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L77:
	mov	edi, 12000
	call	malloc@PLT
	mov	QWORD PTR -1104[rbp], rax
	mov	DWORD PTR -1124[rbp], 0
.L85:
	mov	rsi, QWORD PTR -1104[rbp]
	mov	eax, DWORD PTR -1128[rbp]
	mov	ecx, -1
	mov	edx, 1000
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -1120[rbp], eax
	mov	DWORD PTR -1140[rbp], 0
	mov	DWORD PTR -1140[rbp], 0
	jmp	.L78
.L84:
	mov	eax, DWORD PTR -1140[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -1136[rbp], eax
	jne	.L79
	lea	rdx, -1144[rbp]
	lea	rcx, -1072[rbp]
	mov	eax, DWORD PTR -1136[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1116[rbp], eax
	cmp	DWORD PTR -1116[rbp], 0
	jns	.L80
	lea	rdi, .LC22[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L80:
	movzx	eax, WORD PTR -1070[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	lea	rax, -1056[rbp]
	lea	rdx, -1072[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 20
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1116[rbp]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1084[rbp], -2147483647
	mov	eax, DWORD PTR -1116[rbp]
	mov	DWORD PTR -1080[rbp], eax
	lea	rcx, -1084[rbp]
	mov	edx, DWORD PTR -1116[rbp]
	mov	eax, DWORD PTR -1128[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	jmp	.L81
.L79:
	mov	eax, DWORD PTR -1140[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	je	.L82
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -1096[rbp], rax
	mov	eax, DWORD PTR -1140[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -1096[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -1096[rbp]
	lea	rax, -1112[rbp]
	mov	rcx, rdx
	lea	rdx, handle_request[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -1124[rbp], eax
	cmp	DWORD PTR -1124[rbp], 0
	je	.L83
	lea	rdi, .LC25[rip]
	call	perror@PLT
.L83:
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	jmp	.L81
.L82:
	mov	eax, DWORD PTR -1140[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 4
	test	eax, eax
	je	.L81
	lea	rdi, .LC26[rip]
	call	puts@PLT
.L81:
	add	DWORD PTR -1140[rbp], 1
.L78:
	mov	eax, DWORD PTR -1140[rbp]
	cmp	eax, DWORD PTR -1120[rbp]
	jl	.L84
	jmp	.L85
	.cfi_endproc
.LFE18:
	.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	"665094.c"
	.text
	.align	2
	.global	file_exists
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_exists, %function
file_exists:
	@ 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]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	file_exists, .-file_exists
	.section	.rodata
	.align	2
.LC0:
	.ascii	"method: %s\012\000"
	.align	2
.LC1:
	.ascii	"url: %s\012\000"
	.align	2
.LC2:
	.ascii	"ver: %s\012\000"
	.align	2
.LC3:
	.ascii	"headers: %d \012\000"
	.align	2
.LC4:
	.ascii	"%s : %s\012\000"
	.text
	.align	2
	.global	print_parse_request_result
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_parse_request_result, %function
print_parse_request_result:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L10+4
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L10+8
	bl	printf
	ldr	r3, [fp, #-24]
	lsr	r3, r3, #3
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L10+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L4
.L7:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L10+16
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L7
	b	.L9
.L8:
	nop
.L9:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	print_parse_request_result, .-print_parse_request_result
	.section	.rodata
	.align	2
.LC6:
	.ascii	"HTTP/1.1 400 Bad Request\015\012\000"
	.align	2
.LC7:
	.ascii	"Content-Type: text/html\015\012\000"
	.align	2
.LC8:
	.ascii	"Content-Length: %lu\015\012\000"
	.align	2
.LC9:
	.ascii	"Connection: close\015\012\000"
	.align	2
.LC10:
	.ascii	"\015\012\000"
	.align	2
.LC5:
	.ascii	"<html>\015\012<head><title>400 Bad Request</title><"
	.ascii	"/head>\015\012<body bgcolor=\"white\">\015\012<cent"
	.ascii	"er><h1>400 Bad Request</h1></center>\015\012</body>"
	.ascii	"\015\012</html>\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bad_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	bad_request, %function
bad_request:
	@ args = 0, pretend = 0, frame = 1176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1168
	sub	sp, sp, #8
	str	r0, [fp, #-1176]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L14+4
	sub	r3, fp, #1168
	sub	r3, r3, #4
	mov	r1, r2
	mov	r2, #137
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L14+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1176]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L14+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1176]
	bl	send
	sub	r3, fp, #1168
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L14+16
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1176]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L14+20
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1176]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L14+24
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1176]
	bl	send
	sub	r2, fp, #1168
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1168
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1176]
	bl	send
	ldr	r0, [fp, #-1176]
	bl	close
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC11
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	bad_request, .-bad_request
	.section	.rodata
	.align	2
.LC12:
	.ascii	"<html>\015\012<head><title>404 File Not Exists</tit"
	.ascii	"le></head><body bgcolor=\"white\">\015\012<center><"
	.ascii	"h1>404 file :\000"
	.align	2
.LC13:
	.ascii	"; you request is not exists</h1></center>\015\012</"
	.ascii	"body>\015\012</html>\000"
	.align	2
.LC14:
	.ascii	"HTTP/1.1 404 Not Found\015\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	not_found
	.syntax unified
	.arm
	.fpu softvfp
	.type	not_found, %function
not_found:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	str	r1, [fp, #-1044]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1036]
	mov	r0, #1000
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	ldr	r2, .L18+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #102
	mov	r2, r3
	bl	memcpy
	ldr	r1, [fp, #-1044]
	ldr	r0, [fp, #-1036]
	bl	strcat
	ldr	r0, [fp, #-1036]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1036]
	add	r3, r3, r2
	ldr	r2, .L18+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #60
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L18+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1040]
	bl	send
	ldr	r0, [fp, #-1036]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L18+16
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1040]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L18+20
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1040]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L18+24
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1040]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1036]
	mov	r0, r3
	bl	strcpy
	ldr	r0, [fp, #-1036]
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1040]
	bl	send
	ldr	r0, [fp, #-1040]
	bl	close
	ldr	r0, [fp, #-1036]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-1036]
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC15
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	not_found, .-not_found
	.section	.rodata
	.align	2
.LC16:
	.ascii	"HTTP/1.1 200 OK\015\012\000"
	.align	2
.LC17:
	.ascii	"Server: hoohackhttpd/0.1.0\015\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	success_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	success_header, %function
success_header:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L22+4
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strh	r3, [ip]	@ movhi
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1040]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L22+8
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1040]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L22+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1040]
	bl	send
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L22+16
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-1040]
	bl	send
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC18
	.word	.LC16
	.word	.LC17
	.word	.LC7
	.word	.LC10
	.size	success_header, .-success_header
	.section	.rodata
	.align	2
.LC19:
	.ascii	"r\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_file, %function
send_file:
	@ args = 0, pretend = 0, frame = 2032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2032
	str	r0, [fp, #-2032]
	str	r1, [fp, #-2036]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2028]
	ldr	r1, .L30+4
	ldr	r0, [fp, #-2036]
	bl	fopen
	str	r0, [fp, #-2028]
	ldr	r3, [fp, #-2028]
	cmp	r3, #0
	bne	.L25
	ldr	r1, [fp, #-2036]
	ldr	r0, [fp, #-2032]
	bl	not_found
	b	.L26
.L25:
	sub	r3, fp, #2016
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2028]
	ldr	r1, .L30+8
	mov	r0, r3
	bl	fgets
	b	.L27
.L28:
	sub	r3, fp, #2016
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #2016
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-2032]
	bl	send
	sub	r3, fp, #2016
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2028]
	ldr	r1, .L30+8
	mov	r0, r3
	bl	fgets
.L27:
	ldr	r0, [fp, #-2028]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
.L26:
	ldr	r0, [fp, #-2028]
	bl	fclose
	nop
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC20
	.word	.LC19
	.word	2014
	.size	send_file, .-send_file
	.section	.rodata
	.align	2
.LC21:
	.ascii	"/\000"
	.align	2
.LC22:
	.ascii	"html/index.html\000"
	.align	2
.LC23:
	.ascii	"html\000"
	.align	2
.LC24:
	.ascii	"/Users/hoohack/Projects/SideProject/Makehttpd/\000"
	.text
	.align	2
	.global	process_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_get, %function
process_get:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r1, .L38
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L38+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #16
	mov	r2, r3
	bl	memcpy
	b	.L34
.L33:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L38+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	strcat
.L34:
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #46
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L38+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #47
	mov	r2, r3
	bl	memcpy
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strcat
	ldr	r0, [fp, #-8]
	bl	file_exists
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r0, [fp, #-16]
	bl	success_header
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	send_file
	b	.L37
.L35:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	not_found
.L37:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	process_get, .-process_get
	.section	.rodata
	.align	2
.LC25:
	.ascii	"HTTP/1.1\000"
	.text
	.align	2
	.global	parse_start_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_start_line, %function
parse_start_line:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L41
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bls	.L44
.L41:
	mvn	r3, #0
	b	.L43
.L48:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L45
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L46
.L45:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L47
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r2, #4
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	memset
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-32]
	bl	strncpy
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L46
.L47:
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L46
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r2, #4
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	memset
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	strncpy
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #2
	str	r3, [fp, #-36]
.L46:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L44:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L48
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L49
	mvn	r3, #0
	b	.L43
.L49:
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L50
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	memset
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	strncpy
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L50
.L51:
	mvn	r3, #0
	b	.L43
.L50:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L52
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	memset
	ldr	r3, [fp, #-24]
	ldr	r2, .L54
	mov	r0, r3
	mov	r1, r2
	mov	r3, #9
	mov	r2, r3
	bl	memcpy
	b	.L53
.L52:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	memset
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strncpy
.L53:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #8]
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r0, [fp, #-24]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
.L43:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC25
	.size	parse_start_line, .-parse_start_line
	.align	2
	.global	parse_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_header, %function
parse_header:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	strb	r3, [fp, #-41]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r2, #8
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
.L65:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L59
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L57
	b	.L59
.L60:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L59:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L60
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L62
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r2, #4
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	memset
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strncpy
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L62
.L63:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L62:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L63
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L64
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r2, #4
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	memset
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	strncpy
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L64:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L65
.L57:
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parse_header, .-parse_header
	.align	2
	.global	parse_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_request, %function
parse_request:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	parse_start_line
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L68
	mvn	r3, #0
	b	.L69
.L68:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	parse_header
	str	r0, [fp, #-8]
	mov	r3, #1
.L69:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parse_request, .-parse_request
	.section	.rodata
	.align	2
.LC26:
	.ascii	"client socket fd: %d\012\000"
	.align	2
.LC27:
	.ascii	"empty url or method\000"
	.align	2
.LC28:
	.ascii	"POST\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_request, %function
handle_request:
	@ args = 0, pretend = 0, frame = 1856
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1856
	str	r0, [fp, #-1856]
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1856]
	ldr	r3, [r3]
	str	r3, [fp, #-1848]
	ldr	r0, [fp, #-1856]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-1856]
	ldr	r1, [fp, #-1848]
	ldr	r0, .L82+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-1844]
	mov	r3, #0
	str	r3, [fp, #-1840]
	mov	r3, #0
	str	r3, [fp, #-1852]
	mov	r3, #0
	str	r3, [fp, #-1836]
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1836]
	mov	r2, #24
	mov	r1, #0
	ldr	r0, [fp, #-1836]
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1852]
	b	.L71
.L72:
	ldr	r3, [fp, #-1852]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1828]
	ldr	r3, [fp, #-1852]
	add	r3, r3, #1
	str	r3, [fp, #-1852]
.L71:
	ldr	r3, [fp, #-1852]
	cmp	r3, #99
	ble	.L72
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1848]
	bl	recv
	str	r0, [fp, #-1840]
	ldr	r3, [fp, #-1840]
	cmp	r3, #0
	ble	.L81
	sub	r3, fp, #1824
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	ldr	r2, [fp, #-1836]
	ldr	r0, [fp, #-1848]
	bl	parse_request
	str	r0, [fp, #-1844]
	ldr	r3, [fp, #-1844]
	cmn	r3, #1
	bne	.L75
	ldr	r0, [fp, #-1848]
	bl	bad_request
	b	.L70
.L75:
	ldr	r3, [fp, #-1836]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L76
	ldr	r3, [fp, #-1836]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L77
.L76:
	ldr	r0, .L82+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L77:
	ldr	r3, [fp, #-1836]
	ldr	r3, [r3]
	ldr	r1, .L82+12
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L78
	ldr	r1, [fp, #-1836]
	ldr	r0, [fp, #-1848]
	bl	process_get
.L78:
	ldr	r0, [fp, #-1836]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-1836]
	ldr	r0, [fp, #-1848]
	bl	close
	b	.L70
.L81:
	nop
.L70:
	ldr	r3, .L82
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC29
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.size	handle_request, .-handle_request
	.section	.rodata
	.align	2
.LC30:
	.ascii	"socket\000"
	.align	2
.LC31:
	.ascii	"setsockopt\000"
	.align	2
.LC32:
	.ascii	"bind\000"
	.align	2
.LC33:
	.ascii	"listen\000"
	.align	2
.LC34:
	.ascii	"http server running on port %d\012\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	startup
	.syntax unified
	.arm
	.fpu softvfp
	.type	startup, %function
startup:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L91
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L91+4
	strh	r3, [fp, #-34]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L85
	ldr	r0, .L91+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L85:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L91+4
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L86
	ldr	r0, .L91+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L86:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L87
	ldr	r0, .L91+16
	bl	perror
	mvn	r0, #0
	bl	exit
.L87:
	mov	r1, #5
	ldr	r0, [fp, #-28]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L88
	ldr	r0, .L91+20
	bl	perror
	mvn	r0, #0
	bl	exit
.L88:
	ldrh	r3, [fp, #-34]
	mov	r1, r3
	ldr	r0, .L91+24
	bl	printf
	ldr	r3, [fp, #-28]
	ldr	r2, .L91
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L90
	bl	__stack_chk_fail
.L90:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC35
	.word	9001
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.size	startup, .-startup
	.section	.rodata
	.align	2
.LC36:
	.ascii	"epoll create\000"
	.align	2
.LC37:
	.ascii	"epoll ctl\000"
	.align	2
.LC38:
	.ascii	"accept\000"
	.align	2
.LC39:
	.ascii	"new connection[%s:%d]\012\000"
	.align	2
.LC40:
	.ascii	"client fd: %d\012\000"
	.align	2
.LC41:
	.ascii	"thread create\000"
	.align	2
.LC42:
	.ascii	"EPOLLOUT\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1104
	sub	sp, sp, #12
	ldr	r3, .L105
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-1108]
	mov	r3, #0
	str	r3, [fp, #-1104]
	mov	r3, #16
	str	r3, [fp, #-1120]
	mov	r3, #0
	str	r3, [fp, #-1100]
	bl	startup
	str	r0, [fp, #-1108]
	mov	r0, #1000
	bl	epoll_create
	str	r0, [fp, #-1100]
	ldr	r3, [fp, #-1100]
	cmp	r3, #0
	bge	.L94
	ldr	r0, .L105+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L94:
	mov	r3, #1
	str	r3, [fp, #-1076]
	ldr	r3, [fp, #-1108]
	str	r3, [fp, #-1068]
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1108]
	mov	r1, #1
	ldr	r0, [fp, #-1100]
	bl	epoll_ctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L95
	ldr	r0, .L105+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L95:
	mov	r0, #16000
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1096]
	mov	r3, #0
	str	r3, [fp, #-1092]
.L103:
	mvn	r3, #0
	mov	r2, #1000
	ldr	r1, [fp, #-1096]
	ldr	r0, [fp, #-1100]
	bl	epoll_wait
	str	r0, [fp, #-1088]
	mov	r3, #0
	str	r3, [fp, #-1112]
	mov	r3, #0
	str	r3, [fp, #-1112]
	b	.L96
.L102:
	ldr	r3, [fp, #-1112]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1096]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-1108]
	cmp	r2, r3
	bne	.L97
	sub	r2, fp, #1104
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1108]
	bl	accept
	str	r0, [fp, #-1080]
	ldr	r3, [fp, #-1080]
	cmp	r3, #0
	bge	.L98
	ldr	r0, .L105+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L98:
	sub	r2, fp, #1024
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, #4
	mov	r3, #20
	mov	r0, #2
	bl	inet_ntop
	mov	r4, r0
	sub	r3, fp, #12
	sub	r3, r3, #1040
	sub	r3, r3, #4
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L105+16
	bl	printf
	ldr	r1, [fp, #-1080]
	ldr	r0, .L105+20
	bl	printf
	mov	r3, #-2147483647
	str	r3, [fp, #-1076]
	ldr	r3, [fp, #-1080]
	str	r3, [fp, #-1068]
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1080]
	mov	r1, #1
	ldr	r0, [fp, #-1100]
	bl	epoll_ctl
	b	.L99
.L97:
	ldr	r3, [fp, #-1112]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1096]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L100
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1084]
	ldr	r3, [fp, #-1112]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1096]
	add	r3, r2, r3
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-1084]
	str	r2, [r3]
	sub	r0, fp, #1104
	sub	r0, r0, #12
	ldr	r3, [fp, #-1084]
	ldr	r2, .L105+24
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-1092]
	ldr	r3, [fp, #-1092]
	cmp	r3, #0
	beq	.L101
	ldr	r0, .L105+28
	bl	perror
.L101:
	ldr	r3, [fp, #-1116]
	mov	r0, r3
	bl	pthread_detach
	b	.L99
.L100:
	ldr	r3, [fp, #-1112]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1096]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L99
	ldr	r0, .L105+32
	bl	puts
.L99:
	ldr	r3, [fp, #-1112]
	add	r3, r3, #1
	str	r3, [fp, #-1112]
.L96:
	ldr	r2, [fp, #-1112]
	ldr	r3, [fp, #-1088]
	cmp	r2, r3
	blt	.L102
	b	.L103
.L106:
	.align	2
.L105:
	.word	.LC43
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	handle_request
	.word	.LC41
	.word	.LC42
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
