	.file	"29826770.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Socket Error: %d\n"
.LC1:
	.string	"Server Socket %d created\n"
.LC2:
	.string	"Bind Error: %d\n"
.LC3:
	.string	"Server Bind created"
	.align 8
.LC4:
	.string	"Server is waitting for connection..."
.LC5:
	.string	"Accept Error: %d\n"
	.align 8
.LC6:
	.string	"Server accepted connection from %s\n"
	.align 8
.LC7:
	.string	"Welcome to Server, you addr is %s"
.LC8:
	.string	"Recv Error: %d\n"
.LC9:
	.string	"Server received %s from %s\n"
.LC10:
	.string	"Server Sockets closed"
	.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, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -256[rbp], 2
	mov	edi, 1500
	call	htons@PLT
	mov	WORD PTR -254[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -252[rbp], eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -264[rbp], eax
	cmp	DWORD PTR -264[rbp], -1
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -264[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	lea	rcx, -256[rbp]
	mov	eax, DWORD PTR -264[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L5:
	mov	eax, DWORD PTR -264[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -268[rbp], 16
	lea	rdx, -268[rbp]
	lea	rcx, -240[rbp]
	mov	eax, DWORD PTR -264[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -260[rbp], eax
	cmp	DWORD PTR -260[rbp], -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -236[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, DWORD PTR -236[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	lea	rax, -112[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -112[rbp]
	mov	eax, DWORD PTR -260[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rsi, -224[rbp]
	mov	eax, DWORD PTR -260[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	recv@PLT
	cmp	rax, -1
	jne	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -236[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	eax, DWORD PTR -260[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -264[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"29826770.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Socket Error: %d\012\000"
	.align	2
.LC1:
	.ascii	"Server Socket %d created\012\000"
	.align	2
.LC2:
	.ascii	"Bind Error: %d\012\000"
	.align	2
.LC3:
	.ascii	"Server Bind created\000"
	.align	2
.LC4:
	.ascii	"Server is waitting for connection...\000"
	.align	2
.LC5:
	.ascii	"Accept Error: %d\012\000"
	.align	2
.LC6:
	.ascii	"Server accepted connection from %s\012\000"
	.align	2
.LC7:
	.ascii	"Welcome to Server, you addr is %s\000"
	.align	2
.LC8:
	.ascii	"Recv Error: %d\012\000"
	.align	2
.LC9:
	.ascii	"Server received %s from %s\012\000"
	.align	2
.LC10:
	.ascii	"Server Sockets closed\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #248
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #2
	strh	r3, [fp, #-240]	@ movhi
	ldr	r0, .L12+4
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-238]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-236]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-248]
	ldr	r3, [fp, #-248]
	cmn	r3, #1
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+8
	bl	printf
	b	.L3
.L2:
	ldr	r1, [fp, #-248]
	ldr	r0, .L12+12
	bl	printf
.L3:
	sub	r3, fp, #240
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-248]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+16
	bl	printf
	b	.L5
.L4:
	ldr	r0, .L12+20
	bl	puts
.L5:
	mov	r1, #5
	ldr	r0, [fp, #-248]
	bl	listen
	ldr	r0, .L12+24
	bl	puts
	mov	r3, #16
	str	r3, [fp, #-252]
	sub	r2, fp, #252
	sub	r3, fp, #224
	mov	r1, r3
	ldr	r0, [fp, #-248]
	bl	accept
	str	r0, [fp, #-244]
	ldr	r3, [fp, #-244]
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+28
	bl	printf
	b	.L7
.L6:
	ldr	r0, [fp, #-220]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
.L7:
	ldr	r0, [fp, #-220]
	bl	inet_ntoa
	mov	r2, r0
	sub	r3, fp, #108
	ldr	r1, .L12+36
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #108
	mov	r3, #0
	ldr	r0, [fp, #-244]
	bl	send
	sub	r1, fp, #208
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-244]
	bl	recv
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+40
	bl	printf
	b	.L9
.L8:
	ldr	r0, [fp, #-220]
	bl	inet_ntoa
	mov	r2, r0
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L12+44
	bl	printf
.L9:
	ldr	r0, [fp, #-244]
	bl	close
	ldr	r0, [fp, #-248]
	bl	close
	ldr	r0, .L12+48
	bl	puts
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC11
	.word	1500
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
