	.file	"97011687.c"
	.intel_syntax noprefix
	.text
	.globl	shspace
	.bss
	.align 8
	.type	shspace, @object
	.size	shspace, 8
shspace:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Receiver: value = %d\n"
	.text
	.globl	receiver
	.type	receiver, @function
receiver:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
.L2:
	mov	rax, QWORD PTR shspace[rip]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR shspace[rip]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	receiver, .-receiver
	.section	.rodata
	.align 8
.LC1:
	.string	"Sender: prepare to send value 100"
	.text
	.globl	sender
	.type	sender, @function
sender:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR shspace[rip]
	mov	DWORD PTR 4[rax], 100
	mov	rax, QWORD PTR shspace[rip]
	mov	DWORD PTR [rax], 1
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	sender, .-sender
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -12[rbp], 1920
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	esi, 8
	mov	edi, 0
	call	shmget@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 8192
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR shspace[rip], rax
	mov	rax, QWORD PTR shspace[rip]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR shspace[rip]
	mov	DWORD PTR [rax], 0
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L5
	mov	eax, 0
	call	receiver
.L5:
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L6
	mov	eax, 0
	call	sender
.L6:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"97011687.c"
	.text
	.comm	shspace,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Receiver: value = %d\012\000"
	.text
	.align	2
	.global	receiver
	.syntax unified
	.arm
	.fpu softvfp
	.type	receiver, %function
receiver:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	nop
.L2:
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L3+4
	bl	printf
	mov	r0, #0
	bl	exit
.L4:
	.align	2
.L3:
	.word	shspace
	.word	.LC0
	.size	receiver, .-receiver
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Sender: prepare to send value 100\000"
	.text
	.align	2
	.global	sender
	.syntax unified
	.arm
	.fpu softvfp
	.type	sender, %function
sender:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L6
	bl	puts
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, #100
	str	r2, [r3, #4]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3]
	mov	r0, #0
	bl	exit
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	shspace
	.size	sender, .-sender
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #1920
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	mov	r1, #8
	mov	r0, #0
	bl	shmget
	str	r0, [fp, #-12]
	mov	r2, #8192
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	shmat
	mov	r3, r0
	ldr	r2, .L12
	str	r3, [r2]
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	bl	receiver
.L9:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	bl	sender
.L10:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	shspace
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
