	.file	"748594.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"[SInfo]\tReceive share memory %d created.\n"
	.align 8
.LC1:
	.string	"[S-rcv]\tMessage received %ld: %s\n"
	.align 8
.LC2:
	.string	"[SInfo]\tAll received, server exit."
.LC3:
	.string	"[Parent]\tAll end."
	.align 8
.LC4:
	.string	"[CInfo]\tSend share memory %d created.\n"
.LC5:
	.string	"this is message %ld"
.LC6:
	.string	"[C-snd]\tMessage sent %ld: %s\n"
	.align 8
.LC7:
	.string	"[CInfo]\tAll sent, client exit."
	.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, 32
	call	fork@PLT
	test	eax, eax
	je	.L2
	mov	edx, 1023
	mov	esi, 1032
	mov	edi, 75
	call	shmget@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 10
	jne	.L3
	jmp	.L4
.L3:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, -1
	je	.L6
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 1
	jle	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], -1
.L6:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L4
.L18:
	nop
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	shmdt@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L9
.L2:
	mov	edx, 1023
	mov	esi, 1032
	mov	edi, 75
	call	shmget@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 10
	jmp	.L10
.L14:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, 8[rdx]
	mov	rdx, rax
	lea	rsi, .LC5[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, -1
	je	.L19
	mov	edi, 1
	call	sleep@PLT
	jmp	.L13
.L19:
	nop
	sub	DWORD PTR -28[rbp], 1
.L10:
	cmp	DWORD PTR -28[rbp], 0
	jg	.L14
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	shmdt@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L9:
	mov	eax, 0
	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	"748594.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[SInfo]\011Receive share memory %d created.\012\000"
	.align	2
.LC1:
	.ascii	"[S-rcv]\011Message received %ld: %s\012\000"
	.align	2
.LC2:
	.ascii	"[SInfo]\011All received, server exit.\000"
	.align	2
.LC3:
	.ascii	"[Parent]\011All end.\000"
	.align	2
.LC4:
	.ascii	"[CInfo]\011Send share memory %d created.\012\000"
	.align	2
.LC5:
	.ascii	"this is message %ld\000"
	.align	2
.LC6:
	.ascii	"[C-snd]\011Message sent %ld: %s\012\000"
	.align	2
.LC7:
	.ascii	"[CInfo]\011All sent, client exit.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r2, .L20
	ldr	r1, .L20+4
	mov	r0, #75
	bl	shmget
	str	r0, [fp, #-12]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	shmat
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L20+8
	bl	printf
.L5:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L3
	b	.L4
.L3:
	mov	r0, #1
	bl	sleep
	b	.L5
.L4:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L6
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L20+12
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L18
	ldr	r3, [fp, #-8]
	mvn	r2, #0
	str	r2, [r3]
.L6:
	mov	r0, #1
	bl	sleep
	b	.L4
.L18:
	nop
	ldr	r3, [fp, #-8]
	mvn	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	shmdt
	ldr	r0, .L20+16
	bl	puts
	mov	r0, #0
	bl	wait
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	shmctl
	ldr	r0, .L20+20
	bl	puts
	b	.L9
.L2:
	ldr	r2, .L20
	ldr	r1, .L20+4
	mov	r0, #75
	bl	shmget
	str	r0, [fp, #-20]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	shmat
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L20+24
	bl	printf
	mov	r3, #10
	str	r3, [fp, #-24]
	b	.L10
.L14:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r0, r3, #4
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L20+28
	bl	sprintf
	ldr	r3, [fp, #-16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L20+32
	bl	printf
.L13:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L19
	mov	r0, #1
	bl	sleep
	b	.L13
.L19:
	nop
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L14
	ldr	r0, [fp, #-16]
	bl	shmdt
	ldr	r0, .L20+36
	bl	puts
.L9:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	1023
	.word	1028
	.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
