	.file	"70450580.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter the string :"
.LC1:
	.string	"From Server : %s"
.LC2:
	.string	"exit"
.LC3:
	.string	"Client Exit..."
	.text
	.globl	func
	.type	func, @function
func:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L5:
	lea	rax, -96[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 48[rax], 0
	mov	QWORD PTR 56[rax], 0
	mov	QWORD PTR 64[rax], 0
	mov	QWORD PTR 72[rax], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -100[rbp], 0
	nop
.L2:
	call	getchar@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -100[rbp], edx
	movsx	rdx, eax
	mov	BYTE PTR -96[rbp+rdx], cl
	cdqe
	movzx	eax, BYTE PTR -96[rbp+rax]
	cmp	al, 10
	jne	.L2
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 80
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rax, -96[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 48[rax], 0
	mov	QWORD PTR 56[rax], 0
	mov	QWORD PTR 64[rax], 0
	mov	QWORD PTR 72[rax], 0
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 80
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	edx, 4
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	func, .-func
	.section	.rodata
.LC4:
	.string	"socket creation failed..."
.LC5:
	.string	"127.0.0.1"
	.align 8
.LC6:
	.string	"connection with the server failed..."
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L10
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L10:
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	lea	rdi, .LC5[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 18080
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	je	.L11
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	func
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"70450580.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the string :\000"
	.align	2
.LC1:
	.ascii	"From Server : %s\000"
	.align	2
.LC2:
	.ascii	"exit\000"
	.align	2
.LC3:
	.ascii	"Client Exit...\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	func
	.syntax unified
	.arm
	.fpu softvfp
	.type	func, %function
func:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L5:
	sub	r3, fp, #88
	mov	r0, r3
	mov	r3, #80
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r0, .L9+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-92]
	nop
.L2:
	bl	getchar
	mov	r1, r0
	ldr	r3, [fp, #-92]
	add	r2, r3, #1
	str	r2, [fp, #-92]
	and	r1, r1, #255
	sub	r2, fp, #4
	add	r2, r2, r3
	strb	r1, [r2, #-84]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-84]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L2
	sub	r3, fp, #88
	mov	r2, #80
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	write
	sub	r3, fp, #88
	mov	r0, r3
	mov	r3, #80
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #88
	mov	r2, #80
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	read
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
	sub	r3, fp, #88
	mov	r2, #4
	ldr	r1, .L9+12
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L9+16
	bl	puts
	nop
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	func, .-func
	.section	.rodata
	.align	2
.LC5:
	.ascii	"socket creation failed...\000"
	.align	2
.LC6:
	.ascii	"127.0.0.1\000"
	.align	2
.LC7:
	.ascii	"connection with the server failed...\000"
	.align	2
.LC8:
	.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
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L16+4
	bl	puts
	mov	r0, #0
	bl	exit
.L12:
	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]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L16+8
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, .L16+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	connect
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L16+16
	bl	puts
	mov	r0, #0
	bl	exit
.L13:
	ldr	r0, [fp, #-28]
	bl	func
	ldr	r0, [fp, #-28]
	bl	close
	mov	r3, #0
	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	.LC8
	.word	.LC5
	.word	.LC6
	.word	18080
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
