	.file	"1003993.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"127.0.0.1"
.LC1:
	.string	"\n Error : Connect 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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -96[rbp], 100
	cmp	DWORD PTR -132[rbp], 2
	jne	.L2
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	imul	rax, rax, 1000
	mov	QWORD PTR -96[rbp], rax
.L2:
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 10000000
	mov	rax, QWORD PTR -96[rbp]
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	mov	rax, rdx
	shr	rax, 4
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	imul	rcx, rax, 1000000
	mov	rax, rcx
	shr	rax, 9
	movabs	rdx, 19342813113834067
	mul	rdx
	mov	rax, rdx
	shr	rax, 11
	imul	rdx, rax, 1000000000
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 250000000
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	lea	rdi, .LC0[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 2288
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	WORD PTR -32[rbp], 2
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -116[rbp], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	DWORD PTR -120[rbp], 0
	jmp	.L5
.L9:
	mov	rdx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L6
	mov	rdx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 13
.L6:
	mov	rdx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -116[rbp]
	mov	r9d, 16
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 1
	mov	edi, eax
	call	sendto@PLT
	mov	rdx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L7
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	nanosleep@PLT
	jmp	.L8
.L7:
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	nanosleep@PLT
.L8:
	add	DWORD PTR -120[rbp], 1
.L5:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	cmp	QWORD PTR -88[rbp], rax
	jg	.L9
.L4:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -104[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jg	.L10
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	nanosleep@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"1003993.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"127.0.0.1\000"
	.align	2
.LC1:
	.ascii	"\012 Error : Connect Failed \000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #100
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	bne	.L2
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	str	r3, [fp, #-64]
.L2:
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, .L12+4
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-64]
	ldr	r2, .L12+8
	umull	r1, r3, r2, r3
	lsr	r3, r3, #6
	str	r3, [fp, #-40]
	ldr	r1, [fp, #-64]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r2, r3
	lsr	r3, r2, #9
	ldr	r1, .L12+12
	umull	r0, r3, r1, r3
	lsr	r3, r3, #7
	ldr	r1, .L12+16
	mul	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L12+20
	str	r3, [fp, #-28]
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	ldr	r0, .L12+24
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r0, #2288
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-52]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L12+28
	bl	puts
	mov	r0, #1
	bl	exit
.L10:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L5
.L9:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L6
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r2, #13
	strb	r2, [r3]
.L6:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-60]
	add	r1, r2, r3
	mov	r3, #16
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-52]
	bl	sendto
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L7
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	nanosleep
	b	.L8
.L7:
	sub	r3, fp, #48
	mov	r1, #0
	mov	r0, r3
	bl	nanosleep
.L8:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L5:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L9
.L4:
	ldr	r3, .L12+32
	ldr	r2, [r3]
	sub	r1, fp, #68
	sub	r3, fp, #72
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bgt	.L10
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	nanosleep
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-52]
	bl	close
	mov	r0, #0
	bl	exit
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	10000000
	.word	274877907
	.word	281475
	.word	1000000000
	.word	250000000
	.word	.LC0
	.word	.LC1
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
