	.file	"54824485.c"
	.intel_syntax noprefix
	.text
	.globl	itoa
	.type	itoa, @function
itoa:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 1
	jmp	.L2
.L3:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
.L2:
	cmp	DWORD PTR -4[rbp], 9
	jg	.L3
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	lea	ecx, 48[rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	DWORD PTR -20[rbp], edx
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
.L4:
	cmp	DWORD PTR -8[rbp], 0
	jg	.L5
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	itoa, .-itoa
	.globl	get_cur_time
	.type	get_cur_time, @function
get_cur_time:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 2
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 20
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 40
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	itoa
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 58
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	itoa
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 58
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	itoa
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 41
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_cur_time, .-get_cur_time
	.section	.rodata
	.align 8
.LC0:
	.string	"Create Share Memory Error:%s\n\007"
	.text
	.globl	shm_create
	.type	shm_create, @function
shm_create:
.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, 16
	mov	edx, 384
	mov	esi, 1024
	mov	edi, 0
	call	shmget@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	shm_create, .-shm_create
	.section	.rodata
.LC1:
	.string	"bind"
.LC2:
	.string	"bind success!"
	.text
	.globl	bindPort
	.type	bindPort, @function
bindPort:
.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	eax, edi
	mov	WORD PTR -52[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	WORD PTR -32[rbp], 2
	movzx	eax, WORD PTR -52[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	DWORD PTR -28[rbp], 0
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	bindPort, .-bindPort
	.section	.rodata
.LC3:
	.string	"a+"
.LC4:
	.string	"chat_log"
.LC5:
	.string	"\346\226\207\344\273\266\344\270\215\350\203\275\346\211\223\345\274\200\357\274\201"
.LC6:
	.string	"%s\n"
	.text
	.globl	write_in_file
	.type	write_in_file, @function
write_in_file:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L16
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	write_in_file, .-write_in_file
	.section	.rodata
.LC7:
	.string	"listen"
.LC8:
	.string	"listening......"
.LC9:
	.string	"accept"
.LC10:
	.string	"accept from: %s\n"
	.align 8
.LC11:
	.string	"|---------Welcome to the chat room!----------|"
.LC12:
	.string	"recv1"
.LC13:
	.string	"\346\216\245\346\224\266\347\232\204\357\274\232%s\n"
.LC14:
	.string	"send"
.LC15:
	.string	"fork"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	shm_create
	mov	DWORD PTR -96[rbp], eax
	mov	edi, 255
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	edi, 5500
	call	bindPort
	mov	DWORD PTR -92[rbp], eax
.L27:
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L18
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -92[rbp]
	lea	rdx, -100[rbp]
	lea	rcx, -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L19
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	ecx, 0
	mov	edx, 46
	lea	rsi, .LC11[rip]
	mov	edi, eax
	call	send@PLT
	mov	edi, 255
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	call	fork@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jne	.L27
	call	fork@PLT
	mov	DWORD PTR -80[rbp], eax
.L26:
	cmp	DWORD PTR -80[rbp], 0
	jle	.L21
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 255
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	ecx, 0
	mov	edx, 255
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jne	.L22
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 9
	call	raise@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	eax, DWORD PTR -96[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	get_cur_time
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	write_in_file
	jmp	.L26
.L21:
	cmp	DWORD PTR -80[rbp], 0
	jne	.L24
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR -96[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L26
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	get_cur_time
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	cmp	rax, -1
	jne	.L25
	lea	rdi, .LC14[rip]
	call	perror@PLT
.L25:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L26
.L24:
	lea	rdi, .LC15[rip]
	call	perror@PLT
	jmp	.L26
	.cfi_endproc
.LFE11:
	.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	"54824485.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
	.global	itoa
	.syntax unified
	.arm
	.fpu softvfp
	.type	itoa, %function
itoa:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, .L6
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bgt	.L3
	b	.L4
.L5:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	__aeabi_idiv
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	str	r1, [fp, #-20]
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r2, .L6
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L5
	ldr	r3, [fp, #-20]
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	1717986919
	.size	itoa, .-itoa
	.section	.rodata
	.align	2
.LC0:
	.ascii	"(\000"
	.align	2
.LC1:
	.ascii	":\000"
	.align	2
.LC2:
	.ascii	")\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_cur_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cur_time, %function
get_cur_time:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #2
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	memset
	mov	r2, #20
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	memset
	sub	r3, fp, #20
	mov	r0, r3
	bl	time
	sub	r3, fp, #20
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, .L10+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	itoa
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	strcat
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, .L10+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	itoa
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	strcat
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, .L10+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	itoa
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	strcat
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, .L10+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r0, [fp, #-16]
	bl	free
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	get_cur_time, .-get_cur_time
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Create Share Memory Error:%s\012\007\000"
	.text
	.align	2
	.global	shm_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	shm_create, %function
shm_create:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	mov	r2, #384
	mov	r1, #1024
	mov	r0, #0
	bl	shmget
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L13
	ldr	r3, .L15
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L15+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	stderr
	.word	.LC4
	.size	shm_create, .-shm_create
	.section	.rodata
	.align	2
.LC5:
	.ascii	"bind\000"
	.align	2
.LC6:
	.ascii	"bind success!\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bindPort
	.syntax unified
	.arm
	.fpu softvfp
	.type	bindPort, %function
bindPort:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldrh	r3, [fp, #-30]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L21+4
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	ldr	r0, .L21+8
	bl	puts
	ldr	r3, [fp, #-28]
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.size	bindPort, .-bindPort
	.section	.rodata
	.align	2
.LC8:
	.ascii	"a+\000"
	.align	2
.LC9:
	.ascii	"chat_log\000"
	.align	2
.LC10:
	.ascii	"\346\226\207\344\273\266\344\270\215\350\203\275\346"
	.ascii	"\211\223\345\274\200\357\274\201\000"
	.align	2
.LC11:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	write_in_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_in_file, %function
write_in_file:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L25
	ldr	r0, .L25+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L25+8
	bl	puts
	mov	r0, #1
	bl	exit
.L24:
	ldr	r2, [fp, #-16]
	ldr	r1, .L25+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	write_in_file, .-write_in_file
	.section	.rodata
	.align	2
.LC12:
	.ascii	"listen\000"
	.align	2
.LC13:
	.ascii	"listening......\000"
	.align	2
.LC14:
	.ascii	"accept\000"
	.align	2
.LC15:
	.ascii	"accept from: %s\012\000"
	.align	2
.LC16:
	.ascii	"|---------Welcome to the chat room!----------|\000"
	.align	2
.LC17:
	.ascii	"recv1\000"
	.align	2
.LC18:
	.ascii	"\346\216\245\346\224\266\347\232\204\357\274\232%s\012"
	.ascii	"\000"
	.align	2
.LC19:
	.ascii	"send\000"
	.align	2
.LC20:
	.ascii	"fork\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	shm_create
	str	r0, [fp, #-76]
	mov	r0, #255
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-72]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r0, .L39+4
	bl	bindPort
	mov	r3, r0
	str	r3, [fp, #-64]
.L37:
	ldr	r3, [fp, #-64]
	mov	r1, #10
	mov	r0, r3
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L39+8
	bl	perror
	mov	r0, #1
	bl	exit
.L28:
	ldr	r0, .L39+12
	bl	puts
	ldr	r3, [fp, #-64]
	sub	r2, fp, #80
	sub	r1, fp, #32
	mov	r0, r3
	bl	accept
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L39+16
	bl	perror
	mov	r0, #1
	bl	exit
.L29:
	ldr	r0, [fp, #-28]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L39+20
	bl	printf
	ldr	r0, [fp, #-60]
	mov	r3, #0
	mov	r2, #46
	ldr	r1, .L39+24
	bl	send
	mov	r0, #255
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L37
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-48]
.L36:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L31
	mov	r2, #255
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	memset
	ldr	r0, [fp, #-60]
	mov	r3, #0
	mov	r2, #255
	ldr	r1, [fp, #-56]
	bl	recv
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L32
	ldr	r0, .L39+28
	bl	perror
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	close
	mov	r0, #9
	bl	raise
	mov	r0, #1
	bl	exit
.L32:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-76]
	bl	shmat
	str	r0, [fp, #-36]
	mov	r2, #1024
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	memset
	mov	r2, #1024
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-36]
	bl	strncpy
	ldr	r0, [fp, #-68]
	bl	get_cur_time
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-56]
	bl	strcat
	ldr	r1, [fp, #-56]
	ldr	r0, .L39+32
	bl	printf
	ldr	r0, [fp, #-56]
	bl	write_in_file
	b	.L36
.L31:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L34
	mov	r0, #1
	bl	sleep
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-76]
	bl	shmat
	str	r0, [fp, #-44]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-72]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-72]
	bl	strcpy
	ldr	r0, [fp, #-68]
	bl	get_cur_time
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-44]
	bl	strcat
	ldr	r4, [fp, #-60]
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	ldr	r1, [fp, #-44]
	mov	r0, r4
	bl	send
	mov	r3, r0
	cmn	r3, #1
	bne	.L35
	ldr	r0, .L39+36
	bl	perror
.L35:
	mov	r2, #1024
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	memset
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-44]
	bl	strcpy
	b	.L36
.L34:
	ldr	r0, .L39+40
	bl	perror
	b	.L36
.L40:
	.align	2
.L39:
	.word	.LC21
	.word	5500
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
