	.file	"117327226.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Create the socket"
	.text
	.globl	SocketCreate
	.type	SocketCreate, @function
SocketCreate:
.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, 16
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	WORD PTR -2[rbp], ax
	movzx	eax, WORD PTR -2[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	SocketCreate, .-SocketCreate
	.section	.rodata
.LC1:
	.string	"127.0.0.1"
	.text
	.globl	SocketConnect
	.type	SocketConnect, @function
SocketConnect:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], -1
	mov	DWORD PTR -36[rbp], 90190
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rdi, .LC1[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -36[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	SocketConnect, .-SocketConnect
	.section	.rodata
.LC2:
	.string	"Time Out"
	.text
	.globl	SocketSend
	.type	SocketSend, @function
SocketSend:
.LFB8:
	.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	eax, edx
	mov	WORD PTR -56[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], -1
	mov	QWORD PTR -32[rbp], 20
	mov	QWORD PTR -24[rbp], 0
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8d, 16
	mov	rcx, rdx
	mov	edx, 21
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L7:
	movsx	rdx, WORD PTR -56[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	SocketSend, .-SocketSend
	.section	.rodata
.LC3:
	.string	"Response %s\n"
	.text
	.globl	SocketReceive
	.type	SocketReceive, @function
SocketReceive:
.LFB9:
	.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	eax, edx
	mov	WORD PTR -56[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], -1
	mov	QWORD PTR -32[rbp], 20
	mov	QWORD PTR -24[rbp], 0
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8d, 16
	mov	rcx, rdx
	mov	edx, 20
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L12
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L14
.L12:
	movsx	rdx, WORD PTR -56[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
.L14:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	SocketReceive, .-SocketReceive
	.section	.rodata
.LC4:
	.string	"Could not create socket"
.LC5:
	.string	"Socket is created"
.LC6:
	.string	"connect failed.\n"
	.align 8
.LC7:
	.string	"Sucessfully conected with server"
.LC8:
	.string	"Enter the Message: "
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 368
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	DWORD PTR -224[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	call	SocketCreate
	cwde
	mov	DWORD PTR -344[rbp], eax
	cmp	DWORD PTR -344[rbp], -1
	jne	.L17
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L20
.L17:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -344[rbp]
	mov	edi, eax
	call	SocketConnect
	test	eax, eax
	jns	.L19
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L20
.L19:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -320[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	lea	rax, -320[rbp]
	mov	rdi, rax
	call	strlen@PLT
	movsx	edx, ax
	lea	rcx, -320[rbp]
	mov	eax, DWORD PTR -344[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	SocketSend
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -344[rbp]
	mov	edx, 200
	mov	rsi, rcx
	mov	edi, eax
	call	SocketReceive
	mov	DWORD PTR -340[rbp], eax
	mov	eax, DWORD PTR -344[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -344[rbp]
	mov	esi, 0
	mov	edi, eax
	call	shutdown@PLT
	mov	eax, DWORD PTR -344[rbp]
	mov	esi, 1
	mov	edi, eax
	call	shutdown@PLT
	mov	eax, DWORD PTR -344[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	mov	eax, 0
.L20:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"117327226.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Create the socket\000"
	.text
	.align	2
	.global	SocketCreate
	.syntax unified
	.arm
	.fpu softvfp
	.type	SocketCreate, %function
SocketCreate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L3
	bl	puts
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrsh	r3, [fp, #-6]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	SocketCreate, .-SocketCreate
	.section	.rodata
	.align	2
.LC1:
	.ascii	"127.0.0.1\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SocketConnect
	.syntax unified
	.arm
	.fpu softvfp
	.type	SocketConnect, %function
SocketConnect:
	@ 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]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L8+4
	str	r3, [fp, #-28]
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	ldr	r0, .L8+8
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	connect
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	90190
	.word	.LC1
	.size	SocketConnect, .-SocketConnect
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Time Out\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SocketSend
	.syntax unified
	.arm
	.fpu softvfp
	.type	SocketSend, %function
SocketSend:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, r2
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #20
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L15+4
	bl	puts
	mvn	r3, #0
	b	.L13
.L11:
	ldrsh	r2, [fp, #-30]
	mov	r3, #0
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	send
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
.L13:
	ldr	r2, .L15
	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}
.L16:
	.align	2
.L15:
	.word	.LC4
	.word	.LC3
	.size	SocketSend, .-SocketSend
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Response %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SocketReceive
	.syntax unified
	.arm
	.fpu softvfp
	.type	SocketReceive, %function
SocketReceive:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, r2
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #20
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L22+4
	bl	puts
	mvn	r3, #0
	b	.L20
.L18:
	ldrsh	r2, [fp, #-30]
	mov	r3, #0
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	recv
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-28]
	ldr	r0, .L22+8
	bl	printf
	ldr	r3, [fp, #-20]
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC6
	.word	.LC3
	.word	.LC5
	.size	SocketReceive, .-SocketReceive
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Could not create socket\000"
	.align	2
.LC8:
	.ascii	"Socket is created\000"
	.align	2
.LC9:
	.ascii	"connect failed.\012\000"
	.align	2
.LC10:
	.ascii	"Sucessfully conected with server\000"
	.align	2
.LC11:
	.ascii	"Enter the Message: \000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #336
	str	r0, [fp, #-336]
	str	r1, [fp, #-340]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-308]
	sub	r3, fp, #304
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-208]
	sub	r3, fp, #204
	mov	r2, #196
	mov	r1, #0
	mov	r0, r3
	bl	memset
	bl	SocketCreate
	mov	r3, r0
	str	r3, [fp, #-332]
	ldr	r3, [fp, #-332]
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L30+4
	bl	puts
	mov	r3, #1
	b	.L28
.L25:
	ldr	r0, .L30+8
	bl	puts
	ldr	r0, [fp, #-332]
	bl	SocketConnect
	mov	r3, r0
	cmp	r3, #0
	bge	.L27
	ldr	r0, .L30+12
	bl	perror
	mov	r3, #1
	b	.L28
.L27:
	ldr	r0, .L30+16
	bl	puts
	ldr	r0, .L30+20
	bl	printf
	sub	r3, fp, #308
	mov	r0, r3
	bl	gets
	sub	r3, fp, #308
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r2, r3, #16
	sub	r3, fp, #308
	mov	r1, r3
	ldr	r0, [fp, #-332]
	bl	SocketSend
	sub	r3, fp, #208
	mov	r2, #200
	mov	r1, r3
	ldr	r0, [fp, #-332]
	bl	SocketReceive
	str	r0, [fp, #-328]
	ldr	r0, [fp, #-332]
	bl	close
	mov	r1, #0
	ldr	r0, [fp, #-332]
	bl	shutdown
	mov	r1, #1
	ldr	r0, [fp, #-332]
	bl	shutdown
	mov	r1, #2
	ldr	r0, [fp, #-332]
	bl	shutdown
	mov	r3, #0
.L28:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC12
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
