	.file	"extr_21339.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Usage: %s port\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Fake web server starting......"
	.section	.rodata.str1.1
.LC2:
	.string	"socket"
.LC3:
	.string	"bind"
.LC4:
	.string	"listen"
.LC5:
	.string	"Listening on port %i/tcp\n"
.LC6:
	.string	"accept"
.LC7:
	.string	"connection from: %s\n"
.LC8:
	.string	"\nData from Browser:"
.LC9:
	.string	"sending: \n%s\n"
.LC10:
	.string	"Terminating."
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 224
	.cfi_def_cfa_offset 256
	movdqa	xmm0, XMMWORD PTR .LC11[rip]
	mov	rdi, QWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 216[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 96[rsp], 709372744
	movabs	rax, 950294956607825774
	movaps	XMMWORD PTR 112[rsp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC12[rip]
	mov	QWORD PTR 192[rsp], rax
	movaps	XMMWORD PTR 128[rsp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC13[rip]
	mov	DWORD PTR 200[rsp], 658698
	movaps	XMMWORD PTR 144[rsp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC14[rip]
	mov	BYTE PTR 100[rsp], 0
	movaps	XMMWORD PTR 160[rsp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC15[rip]
	movaps	XMMWORD PTR 176[rsp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC16[rip]
	movaps	XMMWORD PTR 32[rsp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC17[rip]
	movaps	XMMWORD PTR 48[rsp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC18[rip]
	movaps	XMMWORD PTR 64[rsp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC19[rip]
	movaps	XMMWORD PTR 80[rsp], xmm0
	test	rdi, rdi
	je	.L11
	call	atoi@PLT
	mov	r12d, eax
.L3:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	edi, DWORD PTR AF_INET[rip]
	mov	edx, 6
	call	socket@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L12
.L4:
	mov	eax, DWORD PTR AF_INET[rip]
	movzx	r12d, r12w
	mov	edi, r12d
	mov	DWORD PTR 28[rsp], eax
	call	htons@PLT
	mov	edi, DWORD PTR INADDR_ANY[rip]
	mov	DWORD PTR 24[rsp], eax
	call	htonl@PLT
	lea	rsi, 20[rsp]
	mov	edx, 4
	mov	edi, ebp
	mov	DWORD PTR 20[rsp], eax
	call	bind@PLT
	test	eax, eax
	js	.L13
.L5:
	mov	esi, 5
	mov	edi, ebp
	call	listen@PLT
	test	eax, eax
	js	.L14
.L6:
	mov	esi, r12d
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	printf@PLT
	lea	rdx, 4[rsp]
	lea	rsi, 8[rsp]
	mov	edi, ebp
	call	accept@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L15
.L7:
	mov	esi, 1
	mov	edi, 24
	call	calloc@PLT
	mov	edi, DWORD PTR 8[rsp]
	mov	r12, rax
	call	inet_ntoa@PLT
	mov	edx, 24
	mov	rdi, r12
	mov	esi, eax
	call	strncpy@PLT
	mov	rsi, r12
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR BUFFERSIZE[rip]
	mov	esi, 1
	call	calloc@PLT
	mov	edx, DWORD PTR BUFFERSIZE[rip]
	xor	ecx, ecx
	mov	edi, r13d
	mov	rsi, rax
	mov	r12, rax
	call	recv@PLT
	lea	rdi, .LC8[rip]
	cdqe
	mov	BYTE PTR [r12+rax], 0
	call	puts@PLT
	mov	rdi, r12
	call	puts@PLT
	mov	edi, DWORD PTR BUFFERSIZE[rip]
	mov	esi, 1
	call	calloc@PLT
	lea	rsi, 112[rsp]
	mov	r12, rax
	mov	rdi, rax
	call	strcat@PLT
	lea	rsi, 32[rsp]
	mov	rdi, r12
	call	strcat@PLT
	mov	rsi, r12
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rdi, r12
	call	strlen@PLT
	mov	rsi, r12
	mov	edi, r13d
	mov	edx, eax
	call	write@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, r13d
	call	close@PLT
	mov	edi, ebp
	call	close@PLT
	mov	rax, QWORD PTR 216[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 224
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	mov	rsi, QWORD PTR [rsi]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L3
.L15:
	lea	rdi, .LC6[rip]
	call	perror@PLT
	or	edi, -1
	call	exit@PLT
	jmp	.L7
.L14:
	lea	rdi, .LC4[rip]
	call	perror@PLT
	or	edi, -1
	call	exit@PLT
	jmp	.L6
.L13:
	lea	rdi, .LC3[rip]
	call	perror@PLT
	or	edi, -1
	call	exit@PLT
	jmp	.L5
.L12:
	lea	rdi, .LC2[rip]
	call	perror@PLT
	or	edi, -1
	call	exit@PLT
	jmp	.L4
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	SOCK_STREAM,4,4
	.comm	INADDR_ANY,4,4
	.comm	BUFFERSIZE,4,4
	.comm	AF_INET,4,4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC11:
	.quad	3471766442030158920
	.quad	957946345412375072
	.align 16
.LC12:
	.quad	8386658456067588874
	.quad	8028901225765171049
	.align 16
.LC13:
	.quad	8389765489559954803
	.quad	7309475597669133925
	.align 16
.LC14:
	.quad	7163375912487034938
	.quad	7593684073062167649
	.align 16
.LC15:
	.quad	8017262814638006638
	.quad	7299259074152330350
	.align 16
.LC16:
	.quad	4701799037061248344
	.quad	3843921583151536976
	.align 16
.LC17:
	.quad	4846778274796283956
	.quad	4702682997218686761
	.align 16
.LC18:
	.quad	4702969953376218450
	.quad	6217593455639348306
	.align 16
.LC19:
	.quad	6000294632189416009
	.quad	2603438253546024276
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_21339.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC2:
	.ascii	"Usage: %s port\012\000"
	.align	2
.LC3:
	.ascii	"Fake web server starting......\000"
	.align	2
.LC4:
	.ascii	"socket\000"
	.align	2
.LC5:
	.ascii	"bind\000"
	.align	2
.LC6:
	.ascii	"listen\000"
	.align	2
.LC7:
	.ascii	"Listening on port %i/tcp\012\000"
	.align	2
.LC8:
	.ascii	"accept\000"
	.align	2
.LC9:
	.ascii	"connection from: %s\012\000"
	.align	2
.LC10:
	.ascii	"\012Data from Browser:\000"
	.align	2
.LC11:
	.ascii	"sending: \012%s\012\000"
	.align	2
.LC12:
	.ascii	"Terminating.\000"
	.align	2
.LC0:
	.ascii	"HTTP/1.0 200 OK\015\012Connection: close\015\012Con"
	.ascii	"tent-Type: application/binary\015\012Content-Length"
	.ascii	": 0\015\012\015\012\000"
	.align	2
.LC1:
	.ascii	"X5O!P%@AP[4\\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIR"
	.ascii	"US-TEST-FILE!$H+H*\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC13:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 200
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, #0
	sub	sp, sp, #200
	ldr	r3, .L17
	mov	r2, #92
	ldr	r1, .L17+4
	add	r0, sp, #104
	ldr	r3, [r3]
	str	r3, [sp, #196]
	mov	r3,#0
	bl	memcpy
	mov	r2, #69
	ldr	r1, .L17+8
	add	r0, sp, #32
	bl	memcpy
	ldr	r0, [r4, #4]
	cmp	r0, r5
	beq	.L11
	bl	atoi
	mov	r5, r0
.L3:
	ldr	r0, .L17+12
	bl	puts
	ldr	r6, .L17+16
	ldr	r3, .L17+20
	mov	r2, #6
	ldr	r0, [r6]
	ldr	r1, [r3]
	bl	socket
	subs	r4, r0, #0
	blt	.L12
.L4:
	ldr	r3, [r6]
	mov	r0, r5
	str	r3, [sp, #28]
	bl	htons
	ldr	r3, .L17+24
	str	r0, [sp, #24]
	ldr	r0, [r3]
	bl	htonl
	mov	r3, r0
	mov	r2, #4
	mov	r0, r4
	add	r1, sp, #20
	str	r3, [sp, #20]
	bl	bind
	cmp	r0, #0
	blt	.L13
.L5:
	mov	r1, #5
	mov	r0, r4
	bl	listen
	cmp	r0, #0
	blt	.L14
.L6:
	mov	r1, r5
	ldr	r0, .L17+28
	bl	printf
	mov	r0, r4
	add	r2, sp, #4
	add	r1, sp, #8
	bl	accept
	subs	r5, r0, #0
	blt	.L15
.L7:
	mov	r1, #1
	mov	r0, #24
	bl	calloc
	mov	r6, r0
	ldr	r0, [sp, #8]
	bl	inet_ntoa
	ldr	r7, .L17+32
	mov	r2, #24
	mov	r1, r0
	mov	r0, r6
	bl	strncpy
	mov	r1, r6
	ldr	r0, .L17+36
	bl	printf
	ldr	r8, [r7]
	mov	r1, #1
	mov	r0, r8
	bl	calloc
	mov	r2, r8
	mov	r1, r0
	mov	r6, r0
	mov	r3, #0
	mov	r0, r5
	bl	recv
	mov	r8, #0
	mov	r3, r0
	ldr	r0, .L17+40
	strb	r8, [r6, r3]
	bl	puts
	mov	r0, r6
	bl	puts
	mov	r1, #1
	ldr	r0, [r7]
	bl	calloc
	mov	r6, r0
	add	r1, sp, #104
	bl	strcat
	add	r1, sp, #32
	mov	r0, r6
	bl	strcat
	mov	r1, r6
	ldr	r0, .L17+44
	bl	printf
	mov	r0, r6
	bl	strlen
	mov	r1, r6
	mov	r2, r0
	mov	r0, r5
	bl	write
	ldr	r0, .L17+48
	bl	puts
	mov	r0, r5
	bl	close
	mov	r0, r4
	bl	close
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #196]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r8
	add	sp, sp, #200
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r1, [r4]
	ldr	r0, .L17+52
	bl	printf
	mov	r0, #1
	bl	exit
	b	.L3
.L15:
	ldr	r0, .L17+56
	bl	perror
	mvn	r0, #0
	bl	exit
	b	.L7
.L14:
	ldr	r0, .L17+60
	bl	perror
	mvn	r0, #0
	bl	exit
	b	.L6
.L13:
	ldr	r0, .L17+64
	bl	perror
	mvn	r0, #0
	bl	exit
	b	.L5
.L12:
	ldr	r0, .L17+68
	bl	perror
	mvn	r0, #0
	bl	exit
	b	.L4
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	AF_INET
	.word	SOCK_STREAM
	.word	INADDR_ANY
	.word	.LC7
	.word	BUFFERSIZE
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC2
	.word	.LC8
	.word	.LC6
	.word	.LC5
	.word	.LC4
	.size	main, .-main
	.comm	SOCK_STREAM,4,4
	.comm	INADDR_ANY,4,4
	.comm	BUFFERSIZE,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
