	.file	"319729.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage:%s <IP><Port><Bytes><Period(msec)>\n"
.LC1:
	.string	"Invalid IP Address.\n"
.LC2:
	.string	"invalid port number.\n"
.LC3:
	.string	"socket() failed."
.LC4:
	.string	"connect() failed."
.LC5:
	.string	"connect to %s\n"
.LC6:
	.string	"send() failed."
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	DWORD PTR -8276[rbp], edi
	mov	QWORD PTR -8288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -8208[rbp], 0
	mov	QWORD PTR -8200[rbp], 0
	lea	rdx, -8192[rbp]
	mov	eax, 0
	mov	ecx, 510
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -4112[rbp], 0
	mov	QWORD PTR -4104[rbp], 0
	lea	rdx, -4096[rbp]
	mov	eax, 0
	mov	ecx, 510
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -8252[rbp], 0
	mov	DWORD PTR -8248[rbp], 0
	cmp	DWORD PTR -8276[rbp], 5
	je	.L2
	mov	rax, QWORD PTR -8288[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L13
.L2:
	mov	rax, QWORD PTR -8288[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -8252[rbp], eax
	mov	rax, QWORD PTR -8288[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -8248[rbp], eax
	lea	rax, -8224[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -8224[rbp], 2
	mov	rax, QWORD PTR -8288[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -8224[rbp]
	add	rdx, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	inet_aton@PLT
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L13
.L4:
	mov	rax, QWORD PTR -8288[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	WORD PTR -8258[rbp], ax
	cmp	WORD PTR -8258[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L13
.L5:
	movzx	eax, WORD PTR -8258[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -8222[rbp], ax
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8244[rbp], eax
	cmp	DWORD PTR -8244[rbp], 0
	jns	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L6:
	lea	rcx, -8224[rbp]
	mov	eax, DWORD PTR -8244[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L7:
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -8240[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -8240[rbp]
	mov	edi, eax
	call	srand@PLT
.L12:
	mov	DWORD PTR -8256[rbp], 0
	jmp	.L8
.L9:
	call	rand@PLT
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -8256[rbp]
	cdqe
	mov	BYTE PTR -8208[rbp+rax], dl
	add	DWORD PTR -8256[rbp], 1
.L8:
	mov	eax, DWORD PTR -8256[rbp]
	cmp	eax, DWORD PTR -8252[rbp]
	jl	.L9
	mov	eax, DWORD PTR -8252[rbp]
	movsx	rdx, eax
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8244[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L10
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L10:
	lea	rsi, -4112[rbp]
	mov	eax, DWORD PTR -8244[rbp]
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recv@PLT
	test	rax, rax
	jns	.L11
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L11:
	mov	eax, DWORD PTR -8248[rbp]
	imul	eax, eax, 1000
	mov	edi, eax
	call	usleep@PLT
	jmp	.L12
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"319729.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage:%s <IP><Port><Bytes><Period(msec)>\012\000"
	.align	2
.LC1:
	.ascii	"Invalid IP Address.\012\000"
	.align	2
.LC2:
	.ascii	"invalid port number.\012\000"
	.align	2
.LC3:
	.ascii	"socket() failed.\000"
	.align	2
.LC4:
	.ascii	"connect() failed.\000"
	.align	2
.LC5:
	.ascii	"connect to %s\012\000"
	.align	2
.LC6:
	.ascii	"send() failed.\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #60
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-52]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-56]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4]
	mov	r0, r2
	ldr	r3, .L15+4
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4]
	mov	r0, r2
	ldr	r3, .L15+4
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-36]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	cmp	r3, #5
	beq	.L2
	ldr	r3, .L15+8
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+12
	bl	fprintf
	mov	r3, #1
	b	.L13
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-36]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-20]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #20
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	inet_aton
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L15+16
	bl	fwrite
	mov	r3, #1
	b	.L13
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	strh	r3, [r2, #-46]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrh	r3, [r3, #-46]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L15+20
	bl	fwrite
	mov	r3, #1
	b	.L13
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrh	r3, [r3, #-46]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	strh	r2, [r3, #-18]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L15+24
	bl	perror
	mov	r3, #1
	b	.L13
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-32]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L15+28
	bl	perror
	mov	r3, #1
	b	.L13
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+32
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	mov	r0, r3
	bl	srand
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	b	.L8
.L9:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	and	r2, r3, #255
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r1, r3
	sub	r3, r3, #4
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r3, #1
	str	r3, [r2, #-44]
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r3, [r3, #-40]
	cmp	r2, r3
	blt	.L9
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-40]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-32]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L15+36
	bl	perror
	mov	r3, #1
	b	.L13
.L10:
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #4096
	ldr	r0, [r0, #-32]
	bl	recv
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L15+36
	bl	perror
	mov	r3, #1
	b	.L13
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-36]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	usleep
	b	.L12
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	4092
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
