	.file	"745026.c"
	.intel_syntax noprefix
	.text
	.globl	exit_with_response
	.type	exit_with_response, @function
exit_with_response:
.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	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	exit_with_response, .-exit_with_response
	.globl	exit_on_error
	.type	exit_on_error, @function
exit_on_error:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	exit_with_response
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	exit_on_error, .-exit_on_error
	.section	.rodata
.LC0:
	.string	"cannot create socket"
	.text
	.globl	default_socket
	.type	default_socket, @function
default_socket:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	exit_on_error
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	default_socket, .-default_socket
	.section	.rodata
.LC1:
	.string	"bind failed"
	.text
	.globl	bind_default
	.type	bind_default, @function
bind_default:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	WORD PTR -32[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rax, -32[rbp]
	mov	rcx, rax
	mov	eax, DWORD PTR -52[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]
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	exit_on_error
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	bind_default, .-bind_default
	.section	.rodata
	.align 8
.LC2:
	.string	"setsockopt(SO_REUSEADDR) failed"
.LC3:
	.string	"listen failed"
	.text
	.globl	open_default_server
	.type	open_default_server, @function
open_default_server:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	default_socket
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 8080
	mov	DWORD PTR -20[rbp], 1
	lea	rdx, -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	exit_on_error
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	bind_default
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	exit_on_error
	mov	eax, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	open_default_server, .-open_default_server
	.section	.rodata
.LC4:
	.string	"HTTP/1.1 %d %s\r\n"
	.align 8
.LC5:
	.string	"Content-Type: %s\r\nContent-Length: %zu\r\n\r\n"
.LC6:
	.string	"Location: %s\r\n"
	.text
	.globl	get_http_output
	.type	get_http_output, @function
get_http_output:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rsi, eax
	lea	rcx, 20[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR 16[rbp]
	cmp	eax, 404
	je	.L13
	cmp	eax, 404
	jg	.L17
	cmp	eax, 200
	je	.L13
	cmp	eax, 303
	je	.L15
	jmp	.L17
.L13:
	mov	rcx, QWORD PTR 536[rbp]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -4[rbp]
	cdqe
	mov	edx, DWORD PTR -4[rbp]
	movsx	rsi, edx
	mov	rdx, QWORD PTR -24[rbp]
	lea	rdi, [rsi+rdx]
	lea	rdx, 276[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC5[rip]
	mov	rsi, rax
	mov	eax, 0
	call	snprintf@PLT
	add	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR 536[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rcx, rax
	lea	rax, 800[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR 536[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -4[rbp]
	cdqe
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	lea	rdi, [rcx+rdx]
	lea	rdx, 544[rbp]
	mov	rcx, rdx
	lea	rdx, .LC6[rip]
	mov	rsi, rax
	mov	eax, 0
	call	snprintf@PLT
	add	DWORD PTR -4[rbp], eax
	jmp	.L16
.L17:
	nop
.L16:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_http_output, .-get_http_output
	.section	.rodata
.LC7:
	.string	"response failed"
	.text
	.globl	write_http_response
	.type	write_http_response, @function
write_http_response:
.LFB12:
	.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
	lea	r11, -1196032[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 4016
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -1200052[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	r12, -1200040[rbp]
	lea	rbx, -1200032[rbp]
	sub	rsp, 1180784
	mov	rax, rsp
	mov	rcx, rax
	lea	rax, 16[rbp]
	mov	edx, 1180784
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edx, 1200000
	mov	rsi, r12
	mov	rdi, rbx
	call	get_http_output
	add	rsp, 1180784
	mov	rdx, QWORD PTR -1200040[rbp]
	lea	rcx, -1200032[rbp]
	mov	eax, DWORD PTR -1200052[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	exit_on_error
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	write_http_response, .-write_http_response
	.globl	prefix
	.type	prefix, @function
prefix:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	sete	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	prefix, .-prefix
	.globl	pos_after
	.type	pos_after, @function
pos_after:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L23
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -8[rbp]
	add	rax, rdx
	jmp	.L24
.L23:
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	pos_after, .-pos_after
	.section	.rodata
.LC8:
	.string	" \r\n"
.LC9:
	.string	"\r\n\r\n"
	.align 8
.LC10:
	.string	"Content-Type: multipart/form-data; boundary="
.LC11:
	.string	"Content-Length: "
.LC12:
	.string	"\r\n"
.LC13:
	.string	"\n\r\n"
	.text
	.globl	parse_http_request
	.type	parse_http_request, @function
parse_http_request:
.LFB15:
	.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	QWORD PTR -112[rbp], rsi
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, -112[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -64[rbp], rax
	lea	rax, -112[rbp]
	mov	rdx, rax
	lea	rsi, .LC8[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -96[rbp], rax
	jmp	.L26
.L29:
	lea	rax, .LC10[rip]
	mov	QWORD PTR -88[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, -112[rbp]
	mov	rdx, rax
	lea	rsi, .LC12[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	prefix
	test	al, al
	je	.L27
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pos_after
	mov	QWORD PTR -48[rbp], rax
	jmp	.L26
.L27:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	prefix
	test	al, al
	je	.L26
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pos_after
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -40[rbp], rax
.L26:
	mov	rax, QWORD PTR -112[rbp]
	test	rax, rax
	je	.L28
	cmp	QWORD PTR -96[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -112[rbp]
	cmp	QWORD PTR -96[rbp], rax
	jnb	.L29
.L28:
	mov	rax, QWORD PTR -112[rbp]
	test	rax, rax
	je	.L30
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	pos_after
	mov	QWORD PTR -32[rbp], rax
.L30:
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -104[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	parse_http_request, .-parse_http_request
	.section	.rodata
.LC14:
	.string	"Request length: %ld\n"
	.text
	.globl	read_http_request
	.type	read_http_request, @function
read_http_request:
.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, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	DWORD PTR -92[rbp], esi
	mov	QWORD PTR -104[rbp], rdx
	mov	QWORD PTR -112[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, -1[rax]
	mov	rcx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parse_http_request
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	je	.L33
	jmp	.L34
.L35:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -112[rbp]
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -92[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	add	QWORD PTR -72[rbp], rax
.L34:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rcx
	cmp	rdx, rax
	ja	.L35
.L33:
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	mov	rax, QWORD PTR -88[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	read_http_request, .-read_http_request
	.section	.rodata
.LC15:
	.string	".html"
.LC16:
	.string	".htm"
.LC17:
	.string	".css"
.LC18:
	.string	".js"
.LC19:
	.string	".ico"
.LC20:
	.string	".jpg"
.LC21:
	.string	".jpeg"
	.text
	.globl	get_content_type
	.type	get_content_type, @function
get_content_type:
.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
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L39
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
.L39:
	mov	rax, QWORD PTR -32[rbp]
	movabs	rdx, 7887043400459380084
	mov	QWORD PTR [rax], rdx
	mov	WORD PTR 8[rax], 108
	jmp	.L41
.L40:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L42
	mov	rax, QWORD PTR -32[rbp]
	movabs	rcx, 8319101992152098164
	mov	QWORD PTR [rax], rcx
	mov	BYTE PTR 8[rax], 0
	jmp	.L47
.L42:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L43
	mov	rax, QWORD PTR -32[rbp]
	movabs	rdx, 8530215921266484596
	movabs	rcx, 32774695491433313
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	jmp	.L47
.L43:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L44
	mov	rax, QWORD PTR -32[rbp]
	movabs	rdx, 3276420841484676457
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR 8[rax], 1852793705
	mov	BYTE PTR 12[rax], 0
	jmp	.L47
.L44:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L45
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L46
.L45:
	mov	rax, QWORD PTR -32[rbp]
	movabs	rcx, 8100338992351898985
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 26469
	mov	BYTE PTR 10[rax], 0
	jmp	.L41
.L46:
	mov	rax, QWORD PTR -32[rbp]
	movabs	rdx, 7020109268283581812
	mov	QWORD PTR [rax], rdx
	mov	WORD PTR 8[rax], 28265
	mov	BYTE PTR 10[rax], 0
	jmp	.L47
.L41:
.L47:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	get_content_type, .-get_content_type
	.section	.rodata
.LC22:
	.string	"./"
.LC23:
	.string	"./upload_bg"
.LC24:
	.string	"POST"
.LC25:
	.string	"image/jpeg\r\n\r\n"
.LC26:
	.string	"bg.jpg"
.LC27:
	.string	"image open failed"
.LC28:
	.string	"open file failed"
.LC29:
	.string	"read file failed"
.LC30:
	.string	"Read bytes: %zd\n"
	.text
	.globl	get_http_response
	.type	get_http_response, @function
get_http_response:
.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, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	mov	WORD PTR [rax], 46
	mov	rdx, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -1048[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L49
	mov	rax, QWORD PTR -1048[rbp]
	movabs	rcx, 3348537804973485870
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 1819112552
	mov	BYTE PTR 12[rax], 0
.L49:
	mov	rax, QWORD PTR -1048[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jns	.L50
	mov	rax, QWORD PTR -1048[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L50
	mov	rax, QWORD PTR -1048[rbp]
	movabs	rdx, 7953186961650364206
	movabs	rcx, 7236850772550317167
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	mov	DWORD PTR 16[rax], 1836345390
	mov	WORD PTR 20[rax], 108
	mov	rax, QWORD PTR -1064[rbp]
	mov	DWORD PTR [rax], 404
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 4
	movabs	rcx, 7959390263430115150
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 100
.L50:
	mov	rax, QWORD PTR -1048[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
	mov	rax, QWORD PTR 16[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L52
	mov	rax, QWORD PTR 48[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	pos_after
	mov	QWORD PTR -1032[rbp], rax
	lea	rax, -1008[rbp]
	mov	DWORD PTR [rax], 757926413
	mov	BYTE PTR 4[rax], 0
	mov	rdx, QWORD PTR 32[rbp]
	lea	rax, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR 40[rbp]
	mov	rsi, QWORD PTR 48[rbp]
	mov	rdx, QWORD PTR -1032[rbp]
	sub	rdx, rsi
	sub	rax, rdx
	mov	rsi, rax
	lea	rdx, -1008[rbp]
	mov	rax, QWORD PTR -1032[rbp]
	mov	rdi, rax
	call	memmem@PLT
	mov	QWORD PTR -1024[rbp], rax
	mov	rax, QWORD PTR -1024[rbp]
	sub	rax, QWORD PTR -1032[rbp]
	mov	QWORD PTR -1016[rbp], rax
	mov	esi, 577
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1052[rbp], eax
	mov	eax, DWORD PTR -1052[rbp]
	lea	rsi, .LC27[rip]
	mov	edi, eax
	call	exit_on_error
	mov	rdx, QWORD PTR -1016[rbp]
	mov	rcx, QWORD PTR -1032[rbp]
	mov	eax, DWORD PTR -1052[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -1052[rbp]
	mov	edi, eax
	call	close@PLT
.L52:
	mov	rax, QWORD PTR -1064[rbp]
	mov	DWORD PTR [rax], 303
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 4
	movabs	rcx, 7307218278603384147
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 114
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 528
	movabs	rcx, 7507070005745183023
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 7105908
	jmp	.L53
.L51:
	mov	rax, QWORD PTR -1048[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1056[rbp], eax
	mov	eax, DWORD PTR -1056[rbp]
	lea	rsi, .LC28[rip]
	mov	edi, eax
	call	exit_on_error
	mov	rax, QWORD PTR -1064[rbp]
	lea	rdx, 260[rax]
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_content_type
	mov	rax, QWORD PTR -1064[rbp]
	lea	rcx, 784[rax]
	mov	eax, DWORD PTR -1056[rbp]
	mov	edx, 1180000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1040[rbp], rax
	mov	rax, QWORD PTR -1040[rbp]
	lea	rsi, .LC29[rip]
	mov	edi, eax
	call	exit_on_error
	mov	rax, QWORD PTR -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1064[rbp]
	mov	DWORD PTR [rax], 200
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, 4
	mov	WORD PTR [rax], 19279
	mov	BYTE PTR 2[rax], 0
	mov	rdx, QWORD PTR -1040[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	mov	QWORD PTR 520[rax], rdx
	mov	eax, DWORD PTR -1056[rbp]
	mov	edi, eax
	call	close@PLT
.L53:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	get_http_response, .-get_http_response
	.section	.rodata
	.align 8
.LC31:
	.string	"Method: %s\nPath: %s\nBoundary: %s\nContent length: %zu\n"
	.text
	.globl	handle_connection
	.type	handle_connection, @function
handle_connection:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	lea	r11, -2379776[rsp]
.LPSRL1:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL1
	sub	rsp, 1096
	.cfi_offset 3, -24
	mov	DWORD PTR -2380868[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -2380864[rbp]
	lea	rdx, -1200032[rbp]
	mov	esi, DWORD PTR -2380868[rbp]
	mov	ecx, 1200000
	mov	rdi, rax
	call	read_http_request
	mov	rsi, QWORD PTR -2380840[rbp]
	mov	rcx, QWORD PTR -2380848[rbp]
	mov	rdx, QWORD PTR -2380856[rbp]
	mov	rax, QWORD PTR -2380864[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2380816[rbp]
	sub	rsp, 8
	push	QWORD PTR -2380832[rbp]
	push	QWORD PTR -2380840[rbp]
	push	QWORD PTR -2380848[rbp]
	push	QWORD PTR -2380856[rbp]
	push	QWORD PTR -2380864[rbp]
	mov	rdi, rax
	call	get_http_response
	add	rsp, 48
	mov	ebx, DWORD PTR -2380868[rbp]
	sub	rsp, 1180784
	mov	rax, rsp
	mov	rcx, rax
	lea	rax, -2380816[rbp]
	mov	edx, 1180784
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edi, ebx
	call	write_http_response
	add	rsp, 1180784
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	handle_connection, .-handle_connection
	.section	.rodata
	.align 8
.LC32:
	.string	"+++++++ Waiting for new connection ++++++++"
.LC33:
	.string	"accept failed"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	open_default_server
	mov	DWORD PTR -44[rbp], eax
.L61:
	lea	rdi, .LC32[rip]
	call	puts@PLT
	mov	DWORD PTR -48[rbp], 16
	lea	rax, -32[rbp]
	mov	rcx, rax
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	lea	rsi, .LC33[rip]
	mov	edi, eax
	call	exit_on_error
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L58
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	close@PLT
	call	fork@PLT
	test	eax, eax
	jne	.L59
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	handle_connection
	jmp	.L60
.L59:
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
.L60:
	mov	edi, 0
	call	exit@PLT
.L58:
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	handle_connection
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	jmp	.L61
	.cfi_endproc
.LFE20:
	.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	"745026.c"
	.text
	.align	2
	.global	exit_with_response
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit_with_response, %function
exit_with_response:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	exit_with_response, .-exit_with_response
	.align	2
	.global	exit_on_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit_on_error, %function
exit_on_error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L4
	ldr	r0, [fp, #-12]
	bl	exit_with_response
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	exit_on_error, .-exit_on_error
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cannot create socket\000"
	.text
	.align	2
	.global	default_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	default_socket, %function
default_socket:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-8]
	ldr	r1, .L7
	ldr	r0, [fp, #-8]
	bl	exit_on_error
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	default_socket, .-default_socket
	.section	.rodata
	.align	2
.LC1:
	.ascii	"bind failed\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bind_default
	.syntax unified
	.arm
	.fpu softvfp
	.type	bind_default, %function
bind_default:
	@ 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, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	bind
	str	r0, [fp, #-28]
	ldr	r1, .L11+4
	ldr	r0, [fp, #-28]
	bl	exit_on_error
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	.LC1
	.size	bind_default, .-bind_default
	.section	.rodata
	.align	2
.LC3:
	.ascii	"setsockopt(SO_REUSEADDR) failed\000"
	.align	2
.LC4:
	.ascii	"listen failed\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	open_default_server
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_default_server, %function
open_default_server:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	default_socket
	str	r0, [fp, #-16]
	ldr	r3, .L16+4
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-20]
	sub	r3, fp, #20
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	setsockopt
	mov	r3, r0
	ldr	r1, .L16+8
	mov	r0, r3
	bl	exit_on_error
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	bind_default
	mov	r1, #10
	ldr	r0, [fp, #-16]
	bl	listen
	mov	r3, r0
	ldr	r1, .L16+12
	mov	r0, r3
	bl	exit_on_error
	ldr	r3, [fp, #-16]
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC5
	.word	8080
	.word	.LC3
	.word	.LC4
	.size	open_default_server, .-open_default_server
	.section	.rodata
	.align	2
.LC6:
	.ascii	"HTTP/1.1 %d %s\015\012\000"
	.align	2
.LC7:
	.ascii	"Content-Type: %s\015\012Content-Length: %zu\015\012"
	.ascii	"\015\012\000"
	.align	2
.LC8:
	.ascii	"Location: %s\015\012\000"
	.text
	.align	2
	.global	get_http_output
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_http_output, %function
get_http_output:
	@ args = 1180780, pretend = 8, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #8]
	ldr	r1, [fp, #-24]
	ldr	r2, [fp, #8]
	add	r3, fp, #8
	add	r3, r3, #4
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L24
	ldr	r0, [fp, #-16]
	bl	snprintf
	str	r0, [fp, #-8]
	ldr	r3, [fp, #8]
	cmp	r3, #404
	beq	.L19
	cmp	r3, #404
	bgt	.L23
	cmp	r3, #200
	beq	.L19
	ldr	r2, .L24+4
	cmp	r3, r2
	beq	.L21
	b	.L23
.L19:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r3, [fp, #524]
	add	r2, fp, #8
	add	r2, r2, #260
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L24+8
	bl	snprintf
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r2, [fp, #524]
	add	r3, fp, #8
	add	r3, r3, #776
	mov	r1, r3
	bl	memcpy
	ldr	r2, [fp, #524]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L22
.L21:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r1, r3
	add	r3, fp, #8
	add	r3, r3, #520
	ldr	r2, .L24+12
	bl	snprintf
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	b	.L22
.L23:
	nop
.L22:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
.L25:
	.align	2
.L24:
	.word	.LC6
	.word	303
	.word	.LC7
	.word	.LC8
	.size	get_http_output, .-get_http_output
	.section	.rodata
	.align	2
.LC9:
	.ascii	"response failed\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write_http_response
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_http_response, %function
write_http_response:
	@ args = 1180780, pretend = 16, frame = 1200016
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #2375680
	sub	sp, sp, #5056
	sub	sp, sp, #56
	sub	ip, fp, #1196032
	sub	ip, ip, #12
	str	r0, [ip, #-3980]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r5, .L28+4
	sub	r3, fp, #12
	add	r5, r3, r5
	ldr	r4, .L28+8
	sub	r3, fp, #12
	add	r4, r3, r4
	mov	r0, sp
	add	r3, fp, #12
	ldr	r2, .L28+12
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #8]
	ldr	r2, .L28+16
	mov	r1, r5
	mov	r0, r4
	bl	get_http_output
	sub	r3, fp, #1196032
	sub	r3, r3, #12
	ldr	r2, [r3, #-3976]
	ldr	r3, .L28+8
	sub	r1, fp, #12
	add	r3, r1, r3
	sub	r1, fp, #1196032
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-3980]
	bl	write
	mov	r3, r0
	ldr	r1, .L28+20
	mov	r0, r3
	bl	exit_on_error
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, lr}
	add	sp, sp, #16
	bx	lr
.L29:
	.align	2
.L28:
	.word	.LC10
	.word	-1200008
	.word	-1200004
	.word	1180772
	.word	1200000
	.word	.LC9
	.size	write_http_response, .-write_http_response
	.align	2
	.global	prefix
	.syntax unified
	.arm
	.fpu softvfp
	.type	prefix, %function
prefix:
	@ 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	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strncmp
	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	prefix, .-prefix
	.align	2
	.global	pos_after
	.syntax unified
	.arm
	.fpu softvfp
	.type	pos_after, %function
pos_after:
	@ 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	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strstr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L33
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	b	.L34
.L33:
	mov	r3, #0
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pos_after, .-pos_after
	.section	.rodata
	.align	2
.LC11:
	.ascii	" \015\012\000"
	.align	2
.LC12:
	.ascii	"\015\012\015\012\000"
	.align	2
.LC13:
	.ascii	"Content-Type: multipart/form-data; boundary=\000"
	.align	2
.LC14:
	.ascii	"Content-Length: \000"
	.align	2
.LC15:
	.ascii	"\015\012\000"
	.align	2
.LC16:
	.ascii	"\012\015\012\000"
	.text
	.align	2
	.global	parse_http_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_http_request, %function
parse_http_request:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-52]
	sub	r2, fp, #52
	ldr	r1, .L42
	mov	r0, r3
	bl	strtok_r
	mov	r3, r0
	str	r3, [fp, #-24]
	sub	r3, fp, #52
	mov	r2, r3
	ldr	r1, .L42
	mov	r0, #0
	bl	strtok_r
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-52]
	ldr	r1, .L42+4
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-40]
	b	.L36
.L39:
	ldr	r3, .L42+8
	str	r3, [fp, #-36]
	ldr	r3, .L42+12
	str	r3, [fp, #-32]
	sub	r3, fp, #52
	mov	r2, r3
	ldr	r1, .L42+16
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-36]
	bl	prefix
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-28]
	bl	pos_after
	mov	r3, r0
	str	r3, [fp, #-16]
	b	.L36
.L37:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	prefix
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	pos_after
	mov	r3, r0
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-12]
.L36:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bcs	.L39
.L38:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-52]
	ldr	r1, .L42+20
	mov	r0, r3
	bl	pos_after
	mov	r3, r0
	str	r3, [fp, #-8]
.L40:
	ldr	r3, [fp, #-48]
	mov	lr, r3
	sub	ip, fp, #24
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldr	r0, [fp, #-48]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	parse_http_request, .-parse_http_request
	.section	.rodata
	.align	2
.LC17:
	.ascii	"Request length: %ld\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_http_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_http_request, %function
read_http_request:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-44]
	bl	read
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-32]
	ldr	r0, .L50+4
	bl	printf
	sub	r3, fp, #28
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	parse_http_request
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L45
	b	.L46
.L47:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	add	r1, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-52]
	sub	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-44]
	bl	read
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-32]
.L46:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-48]
	add	r3, r1, r3
	cmp	r2, r3
	bhi	.L47
.L45:
	ldr	r3, [fp, #-40]
	mov	lr, r3
	sub	ip, fp, #28
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldr	r3, .L50
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	ldr	r0, [fp, #-40]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC18
	.word	.LC17
	.size	read_http_request, .-read_http_request
	.section	.rodata
	.align	2
.LC19:
	.ascii	".html\000"
	.align	2
.LC20:
	.ascii	".htm\000"
	.align	2
.LC21:
	.ascii	"text/html\000"
	.align	2
.LC22:
	.ascii	".css\000"
	.align	2
.LC23:
	.ascii	"text/css\000"
	.align	2
.LC24:
	.ascii	".js\000"
	.align	2
.LC25:
	.ascii	"text/javascript\000"
	.align	2
.LC26:
	.ascii	".ico\000"
	.align	2
.LC27:
	.ascii	"image/x-icon\000"
	.align	2
.LC28:
	.ascii	".jpg\000"
	.align	2
.LC29:
	.ascii	".jpeg\000"
	.align	2
.LC30:
	.ascii	"image/jpeg\000"
	.align	2
.LC31:
	.ascii	"text/plain\000"
	.text
	.align	2
	.global	get_content_type
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_content_type, %function
get_content_type:
	@ 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	r1, #46
	ldr	r0, [fp, #-16]
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r1, .L62
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r1, .L62+4
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
.L53:
	ldr	r3, [fp, #-20]
	ldr	r2, .L62+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #10
	mov	r2, r3
	bl	memcpy
	b	.L55
.L54:
	ldr	r1, .L62+12
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
	ldr	r3, [fp, #-20]
	ldr	r2, .L62+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #9
	mov	r2, r3
	bl	memcpy
	b	.L61
.L56:
	ldr	r1, .L62+20
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	ldr	r3, [fp, #-20]
	ldr	r2, .L62+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #16
	mov	r2, r3
	bl	memcpy
	b	.L61
.L57:
	ldr	r1, .L62+28
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-20]
	ldr	r2, .L62+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #13
	mov	r2, r3
	bl	memcpy
	b	.L61
.L58:
	ldr	r1, .L62+36
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r1, .L62+40
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
.L59:
	ldr	r3, [fp, #-20]
	ldr	r2, .L62+44
	mov	r0, r3
	mov	r1, r2
	mov	r3, #11
	mov	r2, r3
	bl	memcpy
	b	.L55
.L60:
	ldr	r3, [fp, #-20]
	ldr	r2, .L62+48
	mov	r0, r3
	mov	r1, r2
	mov	r3, #11
	mov	r2, r3
	bl	memcpy
	b	.L61
.L55:
.L61:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.size	get_content_type, .-get_content_type
	.section	.rodata
	.align	2
.LC32:
	.ascii	".\000"
	.align	2
.LC33:
	.ascii	"./\000"
	.align	2
.LC34:
	.ascii	"./index.html\000"
	.align	2
.LC35:
	.ascii	"./upload_bg\000"
	.align	2
.LC36:
	.ascii	"./page_not_found.html\000"
	.align	2
.LC37:
	.ascii	"Not Found\000"
	.align	2
.LC38:
	.ascii	"POST\000"
	.align	2
.LC39:
	.ascii	"image/jpeg\015\012\015\012\000"
	.align	2
.LC40:
	.ascii	"\015\012--\000"
	.align	2
.LC41:
	.ascii	"bg.jpg\000"
	.align	2
.LC42:
	.ascii	"image open failed\000"
	.align	2
.LC43:
	.ascii	"See Other\000"
	.align	2
.LC44:
	.ascii	"/index.html\000"
	.align	2
.LC45:
	.ascii	"open file failed\000"
	.align	2
.LC46:
	.ascii	"read file failed\000"
	.align	2
.LC47:
	.ascii	"Read bytes: %zd\012\000"
	.align	2
.LC48:
	.ascii	"OK\000"
	.align	2
.LC49:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_http_response
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_http_response, %function
get_http_response:
	@ args = 24, pretend = 16, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1040
	sub	sp, sp, #4
	str	r0, [fp, #-1048]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #12]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	ldr	r2, .L71+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #12]
	mov	r1, r3
	ldr	r0, [fp, #-1044]
	bl	strcat
	ldr	r1, .L71+8
	ldr	r0, [fp, #-1044]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	ldr	r3, [fp, #-1044]
	ldr	r2, .L71+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #13
	mov	r2, r3
	bl	memcpy
.L65:
	mov	r1, #4
	ldr	r0, [fp, #-1044]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bge	.L66
	ldr	r1, .L71+16
	ldr	r0, [fp, #-1044]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-1044]
	ldr	r2, .L71+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #22
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-1048]
	mov	r2, #404
	str	r2, [r3]
	ldr	r3, [fp, #-1048]
	add	r3, r3, #4
	ldr	r2, .L71+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #10
	mov	r2, r3
	bl	memcpy
.L66:
	ldr	r1, .L71+16
	ldr	r0, [fp, #-1044]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #8]
	ldr	r1, .L71+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #24]
	ldr	r1, .L71+32
	mov	r0, r3
	bl	pos_after
	str	r0, [fp, #-1032]
	sub	r3, fp, #1016
	ldr	r2, .L71+36
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	ldr	r2, [fp, #16]
	sub	r3, fp, #1016
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #20]
	ldr	r2, [fp, #24]
	ldr	r1, [fp, #-1032]
	sub	r2, r1, r2
	sub	r4, r3, r2
	sub	r3, fp, #1016
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #1016
	mov	r1, r4
	ldr	r0, [fp, #-1032]
	bl	memmem
	str	r0, [fp, #-1028]
	ldr	r2, [fp, #-1028]
	ldr	r3, [fp, #-1032]
	sub	r3, r2, r3
	str	r3, [fp, #-1024]
	ldr	r1, .L71+40
	ldr	r0, .L71+44
	bl	open
	str	r0, [fp, #-1020]
	ldr	r1, .L71+48
	ldr	r0, [fp, #-1020]
	bl	exit_on_error
	ldr	r2, [fp, #-1024]
	ldr	r1, [fp, #-1032]
	ldr	r0, [fp, #-1020]
	bl	write
	ldr	r0, [fp, #-1020]
	bl	close
.L68:
	ldr	r3, [fp, #-1048]
	ldr	r2, .L71+52
	str	r2, [r3]
	ldr	r3, [fp, #-1048]
	add	r3, r3, #4
	ldr	r2, .L71+56
	mov	r0, r3
	mov	r1, r2
	mov	r3, #10
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-1048]
	add	r3, r3, #520
	ldr	r2, .L71+60
	mov	r0, r3
	mov	r1, r2
	mov	r3, #12
	mov	r2, r3
	bl	memcpy
	b	.L69
.L67:
	mov	r1, #0
	ldr	r0, [fp, #-1044]
	bl	open
	str	r0, [fp, #-1040]
	ldr	r1, .L71+64
	ldr	r0, [fp, #-1040]
	bl	exit_on_error
	ldr	r3, [fp, #-1048]
	add	r3, r3, #260
	mov	r1, r3
	ldr	r0, [fp, #-1044]
	bl	get_content_type
	ldr	r3, [fp, #-1048]
	add	r3, r3, #776
	ldr	r2, .L71+68
	mov	r1, r3
	ldr	r0, [fp, #-1040]
	bl	read
	str	r0, [fp, #-1036]
	ldr	r1, .L71+72
	ldr	r0, [fp, #-1036]
	bl	exit_on_error
	ldr	r1, [fp, #-1036]
	ldr	r0, .L71+76
	bl	printf
	ldr	r3, [fp, #-1048]
	mov	r2, #200
	str	r2, [r3]
	ldr	r3, [fp, #-1048]
	add	r3, r3, #4
	ldr	r2, .L71+80
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
	ldr	r2, [fp, #-1036]
	ldr	r3, [fp, #-1048]
	str	r2, [r3, #516]
	ldr	r0, [fp, #-1040]
	bl	close
.L69:
	ldr	r0, [fp, #-1044]
	bl	free
	nop
	ldr	r3, .L71
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L70
	bl	__stack_chk_fail
.L70:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #16
	bx	lr
.L72:
	.align	2
.L71:
	.word	.LC49
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	577
	.word	.LC41
	.word	.LC42
	.word	303
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	1180000
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.size	get_http_response, .-get_http_response
	.section	.rodata
	.align	2
.LC50:
	.ascii	"Method: %s\012Path: %s\012Boundary: %s\012Content l"
	.ascii	"ength: %zu\012\000"
	.align	2
.LC51:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_connection
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_connection, %function
handle_connection:
	@ args = 0, pretend = 0, frame = 2380808
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #3555328
	sub	sp, sp, #6208
	sub	sp, sp, #40
	sub	r3, fp, #2375680
	sub	r3, r3, #12
	sub	r3, r3, #4096
	str	r0, [r3, #-1028]
	ldr	r3, .L75
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #2375680
	sub	r3, r3, #12
	sub	r3, r3, #4096
	sub	r0, r3, #1024
	ldr	r2, .L75+4
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #2375680
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r1, r3
	ldr	r3, .L75+8
	ldr	r1, [r1, #-1028]
	bl	read_http_request
	sub	r3, fp, #2375680
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r1, [r3, #-1024]
	sub	r3, fp, #2375680
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r2, [r3, #-1020]
	sub	r3, fp, #2375680
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r0, [r3, #-1016]
	sub	r3, fp, #2375680
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	r3, [r3, #-1012]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L75+12
	bl	printf
	sub	r3, fp, #2375680
	sub	r3, r3, #12
	sub	r3, r3, #4096
	ldr	ip, .L75+16
	sub	r2, fp, #12
	add	ip, r2, ip
	mov	lr, sp
	sub	r2, r3, #1012
	ldm	r2, {r0, r1}
	stm	lr, {r0, r1}
	sub	r3, r3, #1024
	ldm	r3, {r1, r2, r3}
	mov	r0, ip
	bl	get_http_response
	sub	r3, fp, #2375680
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r4, r3
	sub	r3, fp, #2375680
	sub	r3, r3, #12
	sub	r3, r3, #4096
	mov	r5, r3
	mov	r0, sp
	sub	r3, r4, #992
	ldr	r2, .L75+20
	mov	r1, r3
	bl	memcpy
	sub	r3, r4, #1004
	ldm	r3, {r1, r2, r3}
	ldr	r0, [r5, #-1028]
	bl	write_http_response
	nop
	ldr	r3, .L75
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC51
	.word	-1200004
	.word	1200000
	.word	.LC50
	.word	-2380780
	.word	1180764
	.size	handle_connection, .-handle_connection
	.section	.rodata
	.align	2
.LC52:
	.ascii	"+++++++ Waiting for new connection ++++++++\000"
	.align	2
.LC53:
	.ascii	"accept failed\000"
	.align	2
.LC54:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	open_default_server
	str	r0, [fp, #-36]
.L81:
	ldr	r0, .L83+4
	bl	puts
	mov	r3, #16
	str	r3, [fp, #-40]
	sub	r3, fp, #24
	mov	r1, r3
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r0, [fp, #-36]
	bl	accept
	str	r0, [fp, #-32]
	ldr	r1, .L83+8
	ldr	r0, [fp, #-32]
	bl	exit_on_error
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L78
	ldr	r0, [fp, #-36]
	bl	close
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	ldr	r0, [fp, #-32]
	bl	handle_connection
	b	.L80
.L79:
	ldr	r0, [fp, #-32]
	bl	close
.L80:
	mov	r0, #0
	bl	exit
.L78:
	ldr	r0, [fp, #-32]
	bl	handle_connection
	ldr	r0, [fp, #-32]
	bl	close
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	waitpid
	b	.L81
.L84:
	.align	2
.L83:
	.word	.LC54
	.word	.LC52
	.word	.LC53
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
