	.file	"417790.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"USAGE: client IP-address port"
.LC1:
	.string	"socket failed"
.LC2:
	.string	"connect failed"
.LC3:
	.string	"lenght is %d \n"
.LC4:
	.string	">>> %s\n"
.LC5:
	.string	"send failed"
.LC6:
	.string	"recv failed"
.LC7:
	.string	"%s \n"
.LC8:
	.string	"."
	.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, 464
	mov	DWORD PTR -452[rbp], edi
	mov	QWORD PTR -464[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -432[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	cmp	DWORD PTR -452[rbp], 3
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -464[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -428[rbp], eax
	mov	rax, QWORD PTR -464[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -430[rbp], ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -440[rbp], eax
	cmp	DWORD PTR -440[rbp], 0
	jns	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	WORD PTR -432[rbp], 2
	lea	rcx, -432[rbp]
	mov	eax, DWORD PTR -440[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -416[rbp]
	mov	edx, 200
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -416[rbp]
	mov	esi, 70
	mov	rdi, rax
	call	fgets@PLT
	jmp	.L5
.L12:
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -416[rbp+rax], 0
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -416[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -416[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 2573
	mov	BYTE PTR 2[rax], 0
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -416[rbp]
	mov	eax, DWORD PTR -440[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], 0
	jns	.L6
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	DWORD PTR -444[rbp], 0
.L11:
	lea	rdx, -208[rbp]
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -440[rbp]
	mov	ecx, 0
	mov	edx, 1
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], 0
	jg	.L7
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	movzx	eax, BYTE PTR -208[rbp+rax]
	cmp	al, 10
	jne	.L8
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	BYTE PTR -208[rbp+rax], 0
	jmp	.L15
.L8:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	movzx	eax, BYTE PTR -208[rbp+rax]
	cmp	al, 13
	je	.L11
	add	DWORD PTR -444[rbp], 1
	jmp	.L11
.L15:
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -416[rbp]
	mov	edx, 200
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -416[rbp]
	mov	esi, 70
	mov	rdi, rax
	call	fgets@PLT
.L5:
	movzx	eax, BYTE PTR -416[rbp]
	movzx	edx, BYTE PTR .LC8[rip]
	movzx	eax, al
	movzx	edx, dl
	sub	eax, edx
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR -440[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	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	"417790.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"USAGE: client IP-address port\000"
	.align	2
.LC1:
	.ascii	"socket failed\000"
	.align	2
.LC2:
	.ascii	"connect failed\000"
	.align	2
.LC3:
	.ascii	"lenght is %d \012\000"
	.align	2
.LC4:
	.ascii	">>> %s\012\000"
	.align	2
.LC5:
	.ascii	"\015\012\000"
	.align	2
.LC6:
	.ascii	"send failed\000"
	.align	2
.LC7:
	.ascii	"recv failed\000"
	.align	2
.LC8:
	.ascii	"%s \012\000"
	.align	2
.LC9:
	.ascii	".\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #440
	str	r0, [fp, #-440]
	str	r1, [fp, #-444]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #424
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-440]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L16+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-444]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-420]
	ldr	r3, [fp, #-444]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #420
	strh	r2, [r3, #2]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-432]
	ldr	r3, [fp, #-432]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L16+8
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #4
	sub	r3, r3, #420
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #424
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-432]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L16+12
	bl	puts
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #408
	mov	r2, #200
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L16+16
	ldr	r2, [r3]
	sub	r3, fp, #408
	mov	r1, #70
	mov	r0, r3
	bl	fgets
	b	.L5
.L12:
	sub	r3, fp, #408
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-404]
	sub	r3, fp, #408
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L16+20
	bl	printf
	sub	r3, fp, #408
	mov	r1, r3
	ldr	r0, .L16+24
	bl	printf
	sub	r3, fp, #408
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #408
	add	r3, r3, r2
	ldr	r2, .L16+28
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #408
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #408
	mov	r3, #0
	ldr	r0, [fp, #-432]
	bl	send
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L16+32
	bl	puts
	mov	r0, #1
	bl	exit
.L6:
	mov	r3, #0
	str	r3, [fp, #-436]
.L11:
	sub	r2, fp, #208
	ldr	r3, [fp, #-436]
	add	r1, r2, r3
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-432]
	bl	recv
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bgt	.L7
	ldr	r0, .L16+36
	bl	puts
	mov	r0, #1
	bl	exit
.L7:
	sub	r2, fp, #208
	ldr	r3, [fp, #-436]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L8
	sub	r2, fp, #208
	ldr	r3, [fp, #-436]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L15
.L8:
	sub	r2, fp, #208
	ldr	r3, [fp, #-436]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L11
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-436]
	b	.L11
.L15:
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L16+40
	bl	printf
	sub	r3, fp, #408
	mov	r2, #200
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L16+16
	ldr	r2, [r3]
	sub	r3, fp, #408
	mov	r1, #70
	mov	r0, r3
	bl	fgets
.L5:
	ldrb	r2, [fp, #-408]	@ zero_extendqisi2
	ldr	r3, .L16+44
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L12
	ldr	r0, [fp, #-432]
	bl	close
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stdin
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
