	.file	"124566.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"CREATE SOCKET ERROR"
.LC1:
	.string	"BIND SOCKET ERROR"
.LC2:
	.string	"LISTEN ERROR"
.LC3:
	.string	"ACCEPTATION ERROR"
.LC4:
	.string	"THIS IS SERVER\357\274\232D"
.LC5:
	.string	"\nRECEIVE DATA ERROR!"
.LC6:
	.string	"\nMESSAGE FROM CILENT: %s"
.LC7:
	.string	"\nSERVER('q OR Q' TO QUIT): "
.LC8:
	.string	"\n..."
.LC9:
	.string	"!@serverDisconnect"
.LC10:
	.string	"\nOH! QUIT ERROR!"
	.align 8
.LC11:
	.string	"\nProgram by Ming Zhang, obey MIT LICENSE:D\nBye~\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
	sub	rsp, 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -308[rbp], 0
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	DWORD PTR -312[rbp], 16
	mov	rax, QWORD PTR -296[rbp]
	mov	WORD PTR [rax], 2
	mov	edi, 3500
	call	htons@PLT
	mov	rdx, QWORD PTR -296[rbp]
	mov	WORD PTR 2[rdx], ax
	mov	edi, 0
	call	htonl@PLT
	mov	rdx, QWORD PTR -296[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -304[rbp], eax
	cmp	DWORD PTR -304[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L20
.L2:
	mov	rcx, QWORD PTR -296[rbp]
	mov	eax, DWORD PTR -304[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L20
.L4:
	mov	eax, DWORD PTR -304[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L20
.L5:
	lea	rdx, -312[rbp]
	mov	rcx, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -304[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 0
	jns	.L6
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L19:
	cmp	DWORD PTR -308[rbp], 0
	jne	.L7
	lea	rax, -112[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	rsi, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 113
	je	.L8
	mov	rax, QWORD PTR -272[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 81
	jne	.L9
.L8:
	movabs	rax, 8389754659302228001
	movabs	rdx, 7308900669957826884
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], rdx
	mov	WORD PTR -240[rbp], 29795
	mov	BYTE PTR -238[rbp], 0
	lea	rax, -256[rbp]
	mov	QWORD PTR -272[rbp], rax
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rsi, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -300[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -304[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L10
.L9:
	cmp	QWORD PTR -264[rbp], 0
	jns	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L12
	mov	QWORD PTR -264[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -304[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L20
.L11:
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -308[rbp], 1
	jmp	.L19
.L7:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -224[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	QWORD PTR -280[rbp], rax
	lea	rax, -224[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	rdx, QWORD PTR -280[rbp]
	mov	rsi, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	QWORD PTR -264[rbp], rax
	cmp	QWORD PTR -264[rbp], 0
	jns	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L15
	mov	QWORD PTR -264[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -304[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L20
.L14:
	mov	rax, QWORD PTR -272[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 113
	je	.L16
	mov	rax, QWORD PTR -272[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 81
	jne	.L17
.L16:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -112[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	rsi, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	recv@PLT
	lea	rax, -112[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR -300[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -304[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L10
.L18:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	mov	DWORD PTR -308[rbp], 0
	jmp	.L19
.L10:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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	"124566.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"CREATE SOCKET ERROR\000"
	.align	2
.LC1:
	.ascii	"BIND SOCKET ERROR\000"
	.align	2
.LC2:
	.ascii	"LISTEN ERROR\000"
	.align	2
.LC3:
	.ascii	"ACCEPTATION ERROR\000"
	.align	2
.LC4:
	.ascii	"THIS IS SERVER\357\274\232D\000"
	.align	2
.LC6:
	.ascii	"\012RECEIVE DATA ERROR!\000"
	.align	2
.LC7:
	.ascii	"\012MESSAGE FROM CILENT: %s\000"
	.align	2
.LC8:
	.ascii	"\012SERVER('q OR Q' TO QUIT): \000"
	.align	2
.LC9:
	.ascii	"\012...\000"
	.align	2
.LC10:
	.ascii	"!@serverDisconnect\000"
	.align	2
.LC11:
	.ascii	"\012OH! QUIT ERROR!\000"
	.align	2
.LC12:
	.ascii	"\012Program by Ming Zhang, obey MIT LICENSE:D\012By"
	.ascii	"e~\012\000"
	.align	2
.LC5:
	.ascii	"!@clientDisconnect\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-260]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-256]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-252]
	mov	r3, #16
	str	r3, [fp, #-264]
	ldr	r3, [fp, #-256]
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L22+4
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-256]
	strh	r2, [r3, #2]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r2, r0
	ldr	r3, [fp, #-256]
	str	r2, [r3, #4]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-248]
	ldr	r3, [fp, #-248]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L22+8
	bl	puts
	mov	r3, #0
	b	.L20
.L2:
	mov	r2, #16
	ldr	r1, [fp, #-256]
	ldr	r0, [fp, #-248]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L22+12
	bl	puts
	mov	r3, #0
	b	.L20
.L4:
	mov	r1, #5
	ldr	r0, [fp, #-248]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L22+16
	bl	puts
	mov	r3, #0
	b	.L20
.L5:
	sub	r3, fp, #264
	mov	r2, r3
	ldr	r1, [fp, #-252]
	ldr	r0, [fp, #-248]
	bl	accept
	str	r0, [fp, #-244]
	ldr	r3, [fp, #-244]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L22+20
	bl	puts
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, .L22+24
	bl	puts
.L19:
	ldr	r3, [fp, #-260]
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #108
	str	r3, [fp, #-236]
	mov	r3, #0
	mov	r2, #100
	ldr	r1, [fp, #-236]
	ldr	r0, [fp, #-244]
	bl	recv
	str	r0, [fp, #-232]
	ldr	r3, [fp, #-236]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L8
	ldr	r3, [fp, #-236]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #81
	bne	.L9
.L8:
	ldr	r3, .L22+28
	sub	ip, fp, #228
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	sub	r3, fp, #228
	str	r3, [fp, #-236]
	sub	r3, fp, #228
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	mov	r3, #0
	ldr	r1, [fp, #-236]
	ldr	r0, [fp, #-244]
	bl	send
	ldr	r0, [fp, #-244]
	bl	close
	ldr	r0, [fp, #-248]
	bl	close
	b	.L10
.L9:
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bge	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L12
	mov	r3, #0
	str	r3, [fp, #-232]
	b	.L11
.L12:
	ldr	r0, [fp, #-248]
	bl	close
	ldr	r0, .L22+32
	bl	printf
	mov	r3, #0
	b	.L20
.L11:
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L22+36
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-260]
	b	.L19
.L7:
	ldr	r0, .L22+40
	bl	printf
	ldr	r3, .L22+44
	ldr	r2, [r3]
	sub	r3, fp, #208
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-240]
	sub	r3, fp, #208
	str	r3, [fp, #-236]
	mov	r3, #0
	ldr	r2, [fp, #-240]
	ldr	r1, [fp, #-236]
	ldr	r0, [fp, #-244]
	bl	send
	str	r0, [fp, #-232]
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bge	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L15
	mov	r3, #0
	str	r3, [fp, #-232]
	b	.L14
.L15:
	ldr	r0, [fp, #-248]
	bl	close
	mov	r3, #0
	b	.L20
.L14:
	ldr	r3, [fp, #-236]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L16
	ldr	r3, [fp, #-236]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #81
	bne	.L17
.L16:
	ldr	r0, .L22+48
	bl	puts
	sub	r3, fp, #108
	str	r3, [fp, #-236]
	mov	r3, #0
	mov	r2, #100
	ldr	r1, [fp, #-236]
	ldr	r0, [fp, #-244]
	bl	recv
	sub	r3, fp, #108
	ldr	r1, .L22+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, [fp, #-244]
	bl	close
	ldr	r0, [fp, #-248]
	bl	close
	b	.L10
.L18:
	ldr	r0, .L22+56
	bl	printf
.L17:
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L19
.L10:
	ldr	r0, .L22+60
	bl	puts
	mov	r3, #0
.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	.LC13
	.word	3500
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stdin
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
