	.file	"773435.c"
	.intel_syntax noprefix
	.text
	.globl	m_str
	.section	.rodata
	.align 8
.LC0:
	.string	"The quick brown fox jumped over the lazy dog."
	.section	.data.rel.local,"aw"
	.align 8
	.type	m_str, @object
	.size	m_str, 8
m_str:
	.quad	.LC0
	.globl	sender_shmid
	.data
	.align 4
	.type	sender_shmid, @object
	.size	sender_shmid, 4
sender_shmid:
	.long	-1
	.globl	child_pid
	.bss
	.align 4
	.type	child_pid, @object
	.size	child_pid, 4
child_pid:
	.zero	4
	.globl	shmkey
	.align 4
	.type	shmkey, @object
	.size	shmkey, 4
shmkey:
	.zero	4
	.globl	keyname
	.data
	.align 16
	.type	keyname, @object
	.size	keyname, 21
keyname:
	.string	"/tmp/msgtestXXXXXXXX"
	.globl	verbose
	.bss
	.align 4
	.type	verbose, @object
	.size	verbose, 4
verbose:
	.zero	4
	.globl	pgsize
	.align 8
	.type	pgsize, @object
	.size	pgsize, 8
pgsize:
	.zero	8
	.section	.rodata
.LC1:
	.string	"mkstemp"
.LC2:
	.string	"Usage: shmtest [-v]\n"
.LC3:
	.string	"v"
.LC4:
	.string	"sigaction SIGSYS"
.LC5:
	.string	"sigaction SIGCHLD"
.LC6:
	.string	"atexit"
.LC7:
	.string	"shmget"
.LC8:
	.string	"shmctl IPC_STAT"
.LC9:
	.string	"shmctl IPC_SET"
.LC10:
	.string	"IPC_SET of mode didn't hold"
.LC11:
	.string	"sender: shmat"
.LC12:
	.string	"fork"
	.align 8
.LC13:
	.string	"sender: received unexpected signal"
	.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, 432
	mov	DWORD PTR -420[rbp], edi
	mov	QWORD PTR -432[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, keyname[rip]
	call	mkstemp@PLT
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	jns	.L2
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L2:
	mov	eax, DWORD PTR -416[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L3
.L5:
	cmp	DWORD PTR -412[rbp], 118
	jne	.L4
	mov	DWORD PTR verbose[rip], 1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rcx, QWORD PTR -432[rbp]
	mov	eax, DWORD PTR -420[rbp]
	lea	rdx, .LC3[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -412[rbp], eax
	cmp	DWORD PTR -412[rbp], -1
	jne	.L5
	lea	rax, sigsys_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 31
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L6
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L6:
	lea	rax, sigchld_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L7
	lea	rsi, .LC5[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L7:
	mov	edi, 30
	call	sysconf@PLT
	mov	QWORD PTR pgsize[rip], rax
	mov	rax, QWORD PTR -432[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 4160
	mov	rdi, rax
	call	ftok@PLT
	mov	DWORD PTR shmkey[rip], eax
	call	getpid@PLT
	mov	DWORD PTR child_pid[rip], eax
	lea	rdi, cleanup[rip]
	call	atexit@PLT
	cmp	eax, -1
	jne	.L8
	lea	rsi, .LC6[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L8:
	mov	rcx, QWORD PTR pgsize[rip]
	mov	eax, DWORD PTR shmkey[rip]
	mov	edx, 928
	mov	rsi, rcx
	mov	edi, eax
	call	shmget@PLT
	mov	DWORD PTR sender_shmid[rip], eax
	mov	eax, DWORD PTR sender_shmid[rip]
	cmp	eax, -1
	jne	.L9
	lea	rsi, .LC7[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L9:
	mov	eax, DWORD PTR sender_shmid[rip]
	lea	rdx, -400[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shmctl@PLT
	cmp	eax, -1
	jne	.L10
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L10:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L11
	lea	rax, -400[rbp]
	mov	esi, 416
	mov	rdi, rax
	call	print_shmid_ds
.L11:
	mov	eax, DWORD PTR -380[rbp]
	and	eax, -512
	or	eax, 384
	mov	DWORD PTR -380[rbp], eax
	mov	eax, DWORD PTR sender_shmid[rip]
	lea	rdx, -400[rbp]
	mov	esi, 1
	mov	edi, eax
	call	shmctl@PLT
	cmp	eax, -1
	jne	.L12
	lea	rsi, .LC9[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L12:
	lea	rax, -400[rbp]
	mov	edx, 112
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR sender_shmid[rip]
	lea	rdx, -400[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shmctl@PLT
	cmp	eax, -1
	jne	.L13
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L13:
	mov	eax, DWORD PTR -380[rbp]
	and	eax, 511
	cmp	eax, 384
	je	.L14
	lea	rsi, .LC10[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L14:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L15
	lea	rax, -400[rbp]
	mov	esi, 384
	mov	rdi, rax
	call	print_shmid_ds
.L15:
	mov	eax, DWORD PTR sender_shmid[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -408[rbp], rax
	cmp	QWORD PTR -408[rbp], -1
	jne	.L16
	lea	rsi, .LC11[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L16:
	mov	rdx, QWORD PTR pgsize[rip]
	mov	rcx, QWORD PTR m_str[rip]
	mov	rax, QWORD PTR -408[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	strlcpy@PLT
	call	fork@PLT
	mov	DWORD PTR child_pid[rip], eax
	mov	eax, DWORD PTR child_pid[rip]
	cmp	eax, -1
	je	.L17
	test	eax, eax
	je	.L18
	jmp	.L20
.L17:
	lea	rsi, .LC12[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L18:
	call	receiver
	nop
.L20:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
	lea	rsi, .LC13[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC14:
	.string	"System V Shared Memory support is not present in the kernel"
	.text
	.globl	sigsys_handler
	.type	sigsys_handler, @function
sigsys_handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rsi, .LC14[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
	.cfi_endproc
.LFE7:
	.size	sigsys_handler, .-sigsys_handler
	.section	.rodata
.LC15:
	.string	"waitpid"
.LC16:
	.string	"receiver exited abnormally"
	.align 8
.LC17:
	.string	"receiver exited with status %d"
	.text
	.globl	sigchld_handler
	.type	sigchld_handler, @function
sigchld_handler:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR child_pid[rip]
	lea	rcx, -132[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	edx, DWORD PTR child_pid[rip]
	cmp	eax, edx
	je	.L24
	lea	rsi, .LC15[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L24:
	mov	eax, DWORD PTR -132[rbp]
	and	eax, 127
	test	eax, eax
	je	.L25
	lea	rsi, .LC16[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L25:
	mov	eax, DWORD PTR -132[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	je	.L26
	mov	eax, DWORD PTR -132[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	edx, eax
	lea	rsi, .LC17[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L26:
	mov	eax, DWORD PTR sender_shmid[rip]
	lea	rdx, -128[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shmctl@PLT
	cmp	eax, -1
	jne	.L27
	lea	rsi, .LC8[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L27:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L28
	lea	rax, -128[rbp]
	mov	esi, 384
	mov	rdi, rax
	call	print_shmid_ds
.L28:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	sigchld_handler, .-sigchld_handler
	.section	.rodata
.LC18:
	.string	"shmctl IPC_RMID"
	.text
	.globl	cleanup
	.type	cleanup, @function
cleanup:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR child_pid[rip]
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR sender_shmid[rip]
	cmp	eax, -1
	je	.L31
	mov	eax, DWORD PTR sender_shmid[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	cmp	eax, -1
	jne	.L31
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	warn@PLT
.L31:
	lea	rdi, keyname[rip]
	call	remove@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cleanup, .-cleanup
	.section	.rodata
	.align 8
.LC19:
	.string	"PERM: uid %u, gid %u, cuid %u, cgid %u, mode 0%o\n"
	.align 8
.LC20:
	.string	"segsz %lu, lpid %d, cpid %d, nattch %u\n"
.LC21:
	.string	"atime: %s"
.LC22:
	.string	"dtime: %s"
.LC23:
	.string	"ctime: %s"
.LC24:
	.string	"uid mismatch"
.LC25:
	.string	"gid mismatch"
.LC26:
	.string	"mode mismatch"
	.text
	.globl	print_shmid_ds
	.type	print_shmid_ds, @function
print_shmid_ds:
.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
	mov	DWORD PTR -28[rbp], esi
	call	geteuid@PLT
	mov	DWORD PTR -8[rbp], eax
	call	getegid@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	and	eax, 511
	mov	edi, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 80[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 84[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 56
	mov	rdi, rax
	call	ctime@PLT
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 64
	mov	rdi, rax
	call	ctime@PLT
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 72
	mov	rdi, rax
	call	ctime@PLT
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -8[rbp], eax
	jne	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -8[rbp], eax
	je	.L34
.L33:
	lea	rsi, .LC24[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L34:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -4[rbp], eax
	je	.L36
.L35:
	lea	rsi, .LC25[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L36:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	and	eax, 511
	cmp	DWORD PTR -28[rbp], eax
	je	.L38
	lea	rsi, .LC26[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L38:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	print_shmid_ds, .-print_shmid_ds
	.section	.rodata
.LC27:
	.string	"receiver: shmget"
.LC28:
	.string	"receiver: shmat"
.LC29:
	.string	"receiver: data isn't correct"
	.text
	.globl	receiver
	.type	receiver, @function
receiver:
.LFB11:
	.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	rcx, QWORD PTR pgsize[rip]
	mov	eax, DWORD PTR shmkey[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	shmget@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L40
	lea	rsi, .LC27[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L40:
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L41
	lea	rsi, .LC28[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L41:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L42
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
.L42:
	mov	rdx, QWORD PTR m_str[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L43
	lea	rsi, .LC29[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L43:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	receiver, .-receiver
	.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	"773435.c"
	.text
	.global	m_str
	.section	.rodata
	.align	2
.LC0:
	.ascii	"The quick brown fox jumped over the lazy dog.\000"
	.data
	.align	2
	.type	m_str, %object
	.size	m_str, 4
m_str:
	.word	.LC0
	.global	sender_shmid
	.align	2
	.type	sender_shmid, %object
	.size	sender_shmid, 4
sender_shmid:
	.word	-1
	.comm	child_pid,4,4
	.comm	shmkey,4,4
	.global	keyname
	.align	2
	.type	keyname, %object
	.size	keyname, 21
keyname:
	.ascii	"/tmp/msgtestXXXXXXXX\000"
	.comm	verbose,4,4
	.comm	pgsize,4,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"mkstemp\000"
	.align	2
.LC2:
	.ascii	"Usage: shmtest [-v]\012\000"
	.align	2
.LC3:
	.ascii	"v\000"
	.align	2
.LC4:
	.ascii	"sigaction SIGSYS\000"
	.align	2
.LC5:
	.ascii	"sigaction SIGCHLD\000"
	.align	2
.LC6:
	.ascii	"atexit\000"
	.align	2
.LC7:
	.ascii	"shmget\000"
	.align	2
.LC8:
	.ascii	"shmctl IPC_STAT\000"
	.align	2
.LC9:
	.ascii	"shmctl IPC_SET\000"
	.align	2
.LC10:
	.ascii	"IPC_SET of mode didn't hold\000"
	.align	2
.LC11:
	.ascii	"sender: shmat\000"
	.align	2
.LC12:
	.ascii	"fork\000"
	.align	2
.LC13:
	.ascii	"sender: received unexpected signal\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #376
	str	r0, [fp, #-376]
	str	r1, [fp, #-380]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L22+4
	bl	mkstemp
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bge	.L2
	ldr	r1, .L22+8
	mov	r0, #1
	bl	err
.L2:
	ldr	r0, [fp, #-372]
	bl	close
	b	.L3
.L5:
	ldr	r3, [fp, #-368]
	cmp	r3, #118
	bne	.L4
	ldr	r3, .L22+12
	mov	r2, #1
	str	r2, [r3]
	b	.L3
.L4:
	ldr	r3, .L22+16
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L22+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	ldr	r2, .L22+24
	ldr	r1, [fp, #-380]
	ldr	r0, [fp, #-376]
	bl	getopt
	str	r0, [fp, #-368]
	ldr	r3, [fp, #-368]
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L22+28
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #31
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r1, .L22+32
	mov	r0, #1
	bl	err
.L6:
	ldr	r3, .L22+36
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r1, .L22+40
	mov	r0, #1
	bl	err
.L7:
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L22+44
	str	r2, [r3]
	ldr	r3, [fp, #-380]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #4160
	mov	r0, r3
	bl	ftok
	mov	r3, r0
	ldr	r2, .L22+48
	str	r3, [r2]
	bl	getpid
	mov	r3, r0
	ldr	r2, .L22+52
	str	r3, [r2]
	ldr	r0, .L22+56
	bl	atexit
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r1, .L22+60
	mov	r0, #1
	bl	err
.L8:
	ldr	r3, .L22+48
	ldr	r3, [r3]
	ldr	r2, .L22+44
	ldr	r1, [r2]
	mov	r2, #928
	mov	r0, r3
	bl	shmget
	mov	r3, r0
	ldr	r2, .L22+64
	str	r3, [r2]
	ldr	r3, .L22+64
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L9
	ldr	r1, .L22+68
	mov	r0, #1
	bl	err
.L9:
	ldr	r3, .L22+64
	ldr	r3, [r3]
	sub	r2, fp, #360
	mov	r1, #2
	mov	r0, r3
	bl	shmctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r1, .L22+72
	mov	r0, #1
	bl	err
.L10:
	ldr	r3, .L22+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #360
	mov	r1, #416
	mov	r0, r3
	bl	print_shmid_ds
.L11:
	ldr	r3, [fp, #-340]
	bic	r3, r3, #508
	bic	r3, r3, #3
	orr	r3, r3, #384
	str	r3, [fp, #-340]
	ldr	r3, .L22+64
	ldr	r3, [r3]
	sub	r2, fp, #360
	mov	r1, #1
	mov	r0, r3
	bl	shmctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r1, .L22+76
	mov	r0, #1
	bl	err
.L12:
	sub	r3, fp, #360
	mov	r2, #84
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L22+64
	ldr	r3, [r3]
	sub	r2, fp, #360
	mov	r1, #2
	mov	r0, r3
	bl	shmctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r1, .L22+72
	mov	r0, #1
	bl	err
.L13:
	ldr	r3, [fp, #-340]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	cmp	r3, #384
	beq	.L14
	ldr	r1, .L22+80
	mov	r0, #1
	bl	err
.L14:
	ldr	r3, .L22+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #360
	mov	r1, #384
	mov	r0, r3
	bl	print_shmid_ds
.L15:
	ldr	r3, .L22+64
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	shmat
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmn	r3, #1
	bne	.L16
	ldr	r1, .L22+84
	mov	r0, #1
	bl	err
.L16:
	ldr	r3, .L22+88
	ldr	r3, [r3]
	ldr	r2, .L22+44
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-364]
	bl	strlcpy
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L22+52
	str	r2, [r3]
	ldr	r3, .L22+52
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L17
	cmp	r3, #0
	beq	.L18
	b	.L20
.L17:
	ldr	r1, .L22+92
	mov	r0, #1
	bl	err
.L18:
	bl	receiver
	nop
.L20:
	sub	r3, fp, #276
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #276
	mov	r0, r3
	bl	sigsuspend
	ldr	r1, .L22+96
	mov	r0, #1
	bl	errx
.L23:
	.align	2
.L22:
	.word	.LC14
	.word	keyname
	.word	.LC1
	.word	verbose
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	sigsys_handler
	.word	.LC4
	.word	sigchld_handler
	.word	.LC5
	.word	pgsize
	.word	shmkey
	.word	child_pid
	.word	cleanup
	.word	.LC6
	.word	sender_shmid
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	m_str
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.section	.rodata
	.align	2
.LC15:
	.ascii	"System V Shared Memory support is not present in th"
	.ascii	"e kernel\000"
	.text
	.align	2
	.global	sigsys_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigsys_handler, %function
sigsys_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, .L25
	mov	r0, #1
	bl	errx
.L26:
	.align	2
.L25:
	.word	.LC15
	.size	sigsys_handler, .-sigsys_handler
	.section	.rodata
	.align	2
.LC16:
	.ascii	"waitpid\000"
	.align	2
.LC17:
	.ascii	"receiver exited abnormally\000"
	.align	2
.LC18:
	.ascii	"receiver exited with status %d\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sigchld_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigchld_handler, %function
sigchld_handler:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L34+4
	ldr	r3, [r3]
	sub	r1, fp, #96
	mov	r2, #0
	mov	r0, r3
	bl	waitpid
	mov	r2, r0
	ldr	r3, .L34+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L28
	ldr	r1, .L34+8
	mov	r0, #1
	bl	err
.L28:
	ldr	r3, [fp, #-96]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L29
	ldr	r1, .L34+12
	mov	r0, #1
	bl	errx
.L29:
	ldr	r3, [fp, #-96]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-96]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, .L34+16
	mov	r0, #1
	bl	errx
.L30:
	ldr	r3, .L34+20
	ldr	r3, [r3]
	sub	r2, fp, #92
	mov	r1, #2
	mov	r0, r3
	bl	shmctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L31
	ldr	r1, .L34+24
	mov	r0, #1
	bl	err
.L31:
	ldr	r3, .L34+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L32
	sub	r3, fp, #92
	mov	r1, #384
	mov	r0, r3
	bl	print_shmid_ds
.L32:
	mov	r0, #0
	bl	exit
.L35:
	.align	2
.L34:
	.word	.LC19
	.word	child_pid
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	sender_shmid
	.word	.LC8
	.word	verbose
	.size	sigchld_handler, .-sigchld_handler
	.section	.rodata
	.align	2
.LC20:
	.ascii	"shmctl IPC_RMID\000"
	.text
	.align	2
	.global	cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup, %function
cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L38
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L37
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	shmctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L37
	ldr	r0, .L38+8
	bl	warn
.L37:
	ldr	r0, .L38+12
	bl	remove
	nop
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	child_pid
	.word	sender_shmid
	.word	.LC20
	.word	keyname
	.size	cleanup, .-cleanup
	.section	.rodata
	.align	2
.LC21:
	.ascii	"PERM: uid %u, gid %u, cuid %u, cgid %u, mode 0%o\012"
	.ascii	"\000"
	.align	2
.LC22:
	.ascii	"segsz %lu, lpid %d, cpid %d, nattch %u\012\000"
	.align	2
.LC23:
	.ascii	"atime: %s\000"
	.align	2
.LC24:
	.ascii	"dtime: %s\000"
	.align	2
.LC25:
	.ascii	"ctime: %s\000"
	.align	2
.LC26:
	.ascii	"uid mismatch\000"
	.align	2
.LC27:
	.ascii	"gid mismatch\000"
	.align	2
.LC28:
	.ascii	"mode mismatch\000"
	.text
	.align	2
	.global	print_shmid_ds
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_shmid_ds, %function
print_shmid_ds:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	bl	geteuid
	str	r0, [fp, #-12]
	bl	getegid
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	ip, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L47
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #36]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #68]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #64]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #72]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L47+4
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #40
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L47+8
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L47+12
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #56
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L47+16
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L41
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L42
.L41:
	ldr	r1, .L47+20
	mov	r0, #1
	bl	errx
.L42:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L43
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L44
.L43:
	ldr	r1, .L47+24
	mov	r0, #1
	bl	errx
.L44:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L46
	ldr	r1, .L47+28
	mov	r0, #1
	bl	errx
.L46:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.size	print_shmid_ds, .-print_shmid_ds
	.section	.rodata
	.align	2
.LC29:
	.ascii	"receiver: shmget\000"
	.align	2
.LC30:
	.ascii	"receiver: shmat\000"
	.align	2
.LC31:
	.ascii	"receiver: data isn't correct\000"
	.text
	.align	2
	.global	receiver
	.syntax unified
	.arm
	.fpu softvfp
	.type	receiver, %function
receiver:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L54
	ldr	r3, [r3]
	ldr	r2, .L54+4
	ldr	r1, [r2]
	mov	r2, #0
	mov	r0, r3
	bl	shmget
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L50
	ldr	r1, .L54+8
	mov	r0, #1
	bl	err
.L50:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	shmat
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L51
	ldr	r1, .L54+12
	mov	r0, #1
	bl	err
.L51:
	ldr	r3, .L54+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L52
	ldr	r0, [fp, #-8]
	bl	puts
.L52:
	ldr	r3, .L54+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r1, .L54+24
	mov	r0, #1
	bl	err
.L53:
	mov	r0, #0
	bl	exit
.L55:
	.align	2
.L54:
	.word	shmkey
	.word	pgsize
	.word	.LC29
	.word	.LC30
	.word	verbose
	.word	m_str
	.word	.LC31
	.size	receiver, .-receiver
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
