	.file	"845719.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Could Not Create Socket. Error!!!!!"
.LC1:
	.string	"Socket Created"
.LC2:
	.string	"127.0.0.1"
.LC3:
	.string	"Enter Message: "
.LC4:
	.string	"Send Failed. Error!!!!"
.LC5:
	.string	"Receive Failed. Error!!!!!"
.LC6:
	.string	"Server Message: %s\n"
	.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
	push	rbx
	sub	rsp, 4056
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4056[rbp], 16
	lea	rax, -4032[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -2032[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -4052[rbp], eax
	cmp	DWORD PTR -4052[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L6
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	WORD PTR -4048[rbp], 2
	mov	edi, 2000
	call	htons@PLT
	mov	WORD PTR -4046[rbp], ax
	lea	rdi, .LC2[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -4044[rbp], eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2032[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	mov	eax, DWORD PTR -4056[rbp]
	mov	ebx, eax
	lea	rax, -2032[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -4048[rbp]
	lea	rsi, -2032[rbp]
	mov	eax, DWORD PTR -4052[rbp]
	mov	r9d, ebx
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	test	rax, rax
	jns	.L4
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L6
.L4:
	lea	rcx, -4056[rbp]
	lea	rdx, -4048[rbp]
	lea	rsi, -4032[rbp]
	mov	eax, DWORD PTR -4052[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2000
	mov	edi, eax
	call	recvfrom@PLT
	test	rax, rax
	jns	.L5
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L6
.L5:
	lea	rax, -4032[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4032[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -2032[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -4052[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, 0
.L6:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	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	"845719.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Could Not Create Socket. Error!!!!!\000"
	.align	2
.LC1:
	.ascii	"Socket Created\000"
	.align	2
.LC2:
	.ascii	"127.0.0.1\000"
	.align	2
.LC3:
	.ascii	"Enter Message: \000"
	.align	2
.LC4:
	.ascii	"Send Failed. Error!!!!\000"
	.align	2
.LC5:
	.ascii	"Receive Failed. Error!!!!!\000"
	.align	2
.LC6:
	.ascii	"Server Message: %s\012\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 = 4032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4032
	sub	sp, sp, #8
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-4032]
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-4028]
	ldr	r3, [fp, #-4028]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L8+4
	bl	puts
	mvn	r3, #0
	b	.L6
.L2:
	ldr	r0, .L8+8
	bl	puts
	sub	r3, fp, #4
	sub	r3, r3, #4016
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #2000
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #4016
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, .L8+12
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-4020]
	ldr	r0, .L8+16
	bl	printf
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	gets
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-4032]
	sub	r1, fp, #2000
	sub	r1, r1, #4
	sub	r1, r1, #4
	str	r3, [sp, #4]
	sub	r3, fp, #4016
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [fp, #-4028]
	bl	sendto
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L8+20
	bl	puts
	mvn	r3, #0
	b	.L6
.L4:
	sub	r1, fp, #4000
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #4016
	sub	r3, r3, #4
	sub	r3, r3, #12
	str	r3, [sp, #4]
	sub	r3, fp, #4016
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2000
	ldr	r0, [fp, #-4028]
	bl	recvfrom
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L8+24
	bl	puts
	mvn	r3, #0
	b	.L6
.L5:
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L8+28
	bl	printf
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #2000
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-4028]
	bl	close
	mov	r3, #0
.L6:
	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	.LC7
	.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
