	.file	"193893500.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"127.0.0.1"
.LC1:
	.string	"bind error"
.LC2:
	.string	"Server listen %s:%d\n"
	.align 8
.LC3:
	.string	"Ready for accept client's connection ..."
	.align 8
.LC4:
	.string	"Get a client's connection, %s:%d , sfd=%d , cfd=%d\n"
.LC5:
	.string	"Hello client,I'm server."
	.align 8
.LC6:
	.string	"There is an error when read data from client, n=%d .\n"
.LC7:
	.string	" - client [%d]: %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, 1144
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1144[rbp], eax
	lea	rax, -1120[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -1120[rbp], 2
	mov	edi, 6666
	call	htons@PLT
	mov	WORD PTR -1118[rbp], ax
	lea	rdi, .LC0[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -1116[rbp], eax
	lea	rcx, -1120[rbp]
	mov	eax, DWORD PTR -1144[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -1140[rbp], eax
	cmp	DWORD PTR -1140[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L7
.L2:
	mov	eax, DWORD PTR -1144[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	lea	rax, -1088[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -1088[rbp]
	lea	rdx, -1120[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	movzx	eax, WORD PTR -1118[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	edx, ax
	lea	rax, -1088[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1148[rbp], 16
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdx, -1148[rbp]
	lea	rcx, -1104[rbp]
	mov	eax, DWORD PTR -1144[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1136[rbp], eax
	lea	rax, -1072[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	movzx	eax, WORD PTR -1102[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	lea	rax, -1072[rbp]
	lea	rdx, -1104[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	rsi, rax
	mov	edx, DWORD PTR -1136[rbp]
	mov	eax, DWORD PTR -1144[rbp]
	mov	r8d, edx
	mov	ecx, eax
	mov	edx, ebx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC5[rip]
	mov	QWORD PTR -1128[rbp], rax
.L6:
	lea	rax, -1056[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1136[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1132[rbp], eax
	cmp	DWORD PTR -1132[rbp], 0
	jg	.L4
	mov	eax, DWORD PTR -1132[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	eax, DWORD PTR -1144[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -1136[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L7
.L4:
	lea	rdx, -1056[rbp]
	mov	eax, DWORD PTR -1132[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -1128[rbp]
	mov	eax, DWORD PTR -1136[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L6
.L7:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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	"193893500.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"127.0.0.1\000"
	.align	2
.LC1:
	.ascii	"bind error\000"
	.align	2
.LC2:
	.ascii	"Server listen %s:%d\012\000"
	.align	2
.LC3:
	.ascii	"Ready for accept client's connection ...\000"
	.align	2
.LC4:
	.ascii	"Get a client's connection, %s:%d , sfd=%d , cfd=%d\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"Hello client,I'm server.\000"
	.align	2
.LC6:
	.ascii	"There is an error when read data from client, n=%d "
	.ascii	".\012\000"
	.align	2
.LC7:
	.ascii	" - client [%d]: %s\012\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 = 1120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1120
	sub	sp, sp, #12
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1124]
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #12
	sub	r3, r3, #1088
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L9+4
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1088
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, .L9+8
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-1100]
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1124]
	bl	bind
	str	r0, [fp, #-1120]
	ldr	r3, [fp, #-1120]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L9+12
	bl	perror
	mvn	r3, #0
	b	.L7
.L2:
	mov	r1, #5
	ldr	r0, [fp, #-1124]
	bl	listen
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #1056
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, #4
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	sub	r3, fp, #12
	sub	r3, r3, #1088
	sub	r3, r3, #4
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L9+16
	bl	printf
	mov	r3, #16
	str	r3, [fp, #-1128]
	ldr	r0, .L9+20
	bl	puts
	sub	r2, fp, #1104
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #1072
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1124]
	bl	accept
	str	r0, [fp, #-1116]
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #1040
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #1072
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r1, r3, #4
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	mov	r4, r0
	sub	r3, fp, #12
	sub	r3, r3, #1072
	sub	r3, r3, #4
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1116]
	str	r3, [sp]
	ldr	r3, [fp, #-1124]
	mov	r1, r4
	ldr	r0, .L9+24
	bl	printf
	ldr	r3, .L9+28
	str	r3, [fp, #-1112]
.L6:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1116]
	bl	read
	str	r0, [fp, #-1108]
	ldr	r3, [fp, #-1108]
	cmp	r3, #0
	bgt	.L4
	ldr	r1, [fp, #-1108]
	ldr	r0, .L9+32
	bl	printf
	nop
	ldr	r0, [fp, #-1124]
	bl	close
	ldr	r0, [fp, #-1116]
	bl	close
	mov	r3, #0
	b	.L7
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1108]
	ldr	r0, .L9+36
	bl	printf
	ldr	r0, [fp, #-1112]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-1112]
	ldr	r0, [fp, #-1116]
	bl	write
	b	.L6
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC8
	.word	6666
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
