	.file	"523849.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"semctl"
	.text
	.globl	sem_init
	.type	sem_init, @function
sem_init:
.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
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, rdx
	mov	edx, 16
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sem_init, .-sem_init
	.section	.rodata
.LC1:
	.string	"sem_release"
	.text
	.globl	sem_release
	.type	sem_release, @function
sem_release:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	WORD PTR -14[rbp], ax
	mov	WORD PTR -12[rbp], 1
	mov	WORD PTR -10[rbp], 0
	lea	rcx, -14[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	semop@PLT
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L7:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sem_release, .-sem_release
	.section	.rodata
.LC2:
	.string	"sem_reserve"
	.text
	.globl	sem_reserve
	.type	sem_reserve, @function
sem_reserve:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	WORD PTR -14[rbp], ax
	mov	WORD PTR -12[rbp], -1
	mov	WORD PTR -10[rbp], 0
	lea	rcx, -14[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	semop@PLT
	cmp	eax, -1
	jne	.L11
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L11:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sem_reserve, .-sem_reserve
	.globl	getdetlatimeofday
	.type	getdetlatimeofday, @function
getdetlatimeofday:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm3, QWORD PTR .LC3[rip]
	divsd	xmm1, xmm3
	addsd	xmm1, xmm2
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getdetlatimeofday, .-getdetlatimeofday
	.section	.rodata
.LC4:
	.string	"usage: ./shm <size> <count>"
.LC5:
	.string	"fork"
.LC6:
	.string	"parent: semget"
.LC7:
	.string	"parent: shmget"
.LC8:
	.string	"parent: shmat"
.LC9:
	.string	"child: shmdt"
.LC10:
	.string	"child: semget"
.LC11:
	.string	"child: shmget"
.LC12:
	.string	"child: shmat"
.LC14:
	.string	"%fMB/s %fmsg/s %f\n"
.LC15:
	.string	"shmdt"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
	cmp	DWORD PTR -116[rbp], 3
	je	.L15
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L32
.L15:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -108[rbp], eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	call	fork@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	jne	.L17
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L32
.L17:
	cmp	DWORD PTR -100[rbp], 0
	jne	.L18
	mov	edx, 896
	mov	esi, 2
	mov	edi, 22136
	call	semget@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -1
	jne	.L19
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L32
.L19:
	mov	eax, DWORD PTR -96[rbp]
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	call	sem_init
	mov	eax, DWORD PTR -96[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	call	sem_init
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	edx, 896
	mov	rsi, rax
	mov	edi, 4660
	call	shmget@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], -1
	jne	.L20
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L32
.L20:
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], -1
	jne	.L21
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L32
.L21:
	mov	DWORD PTR -112[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, 1
	mov	edi, eax
	call	sem_reserve
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, 0
	mov	edi, eax
	call	sem_release
	add	DWORD PTR -112[rbp], 1
.L22:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jl	.L23
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	shmdt@PLT
	cmp	eax, -1
	jne	.L24
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L32
.L18:
	mov	edi, 1
	call	sleep@PLT
	mov	edx, 0
	mov	esi, 0
	mov	edi, 22136
	call	semget@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -1
	jne	.L25
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L32
.L25:
	mov	edx, 0
	mov	esi, 0
	mov	edi, 4660
	call	shmget@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], -1
	jne	.L27
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L32
.L27:
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], -1
	jne	.L28
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L32
.L28:
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -112[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, 0
	mov	edi, eax
	call	sem_reserve
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, 1
	mov	edi, eax
	call	sem_release
	add	DWORD PTR -112[rbp], 1
.L29:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jl	.L30
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getdetlatimeofday
	movq	rax, xmm0
	mov	QWORD PTR -64[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -104[rbp]
	movapd	xmm3, xmm0
	divsd	xmm3, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	imul	eax, DWORD PTR -108[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR -64[rbp]
	movsd	xmm1, QWORD PTR .LC13[rip]
	mulsd	xmm2, xmm1
	movsd	xmm1, QWORD PTR .LC13[rip]
	mulsd	xmm1, xmm2
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	movapd	xmm2, xmm0
	movapd	xmm1, xmm3
	movq	xmm0, rax
	lea	rdi, .LC14[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, 0
	mov	edi, eax
	call	sem_reserve
	mov	rdx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	shmdt@PLT
	cmp	eax, -1
	jne	.L31
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L32
.L31:
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
.L24:
	mov	eax, 0
.L32:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1093567616
	.align 8
.LC13:
	.long	0
	.long	1083179008
	.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	"523849.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"semctl\000"
	.text
	.align	2
	.global	sem_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	sem_init, %function
sem_init:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #16
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	semctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L4
	bl	perror
	mvn	r0, #0
	bl	exit
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	sem_init, .-sem_init
	.section	.rodata
	.align	2
.LC1:
	.ascii	"sem_release\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sem_release
	.syntax unified
	.arm
	.fpu softvfp
	.type	sem_release, %function
sem_release:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	sub	r3, fp, #16
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	semop
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L10+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L9:
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC1
	.size	sem_release, .-sem_release
	.section	.rodata
	.align	2
.LC3:
	.ascii	"sem_reserve\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sem_reserve
	.syntax unified
	.arm
	.fpu softvfp
	.type	sem_reserve, %function
sem_reserve:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	mvn	r3, #0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	sub	r3, fp, #16
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	semop
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L16+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L15:
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC3
	.size	sem_reserve, .-sem_reserve
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.align	2
	.global	getdetlatimeofday
	.syntax unified
	.arm
	.fpu softvfp
	.type	getdetlatimeofday, %function
getdetlatimeofday:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L21:
	.align	2
.L20:
	.word	1093567616
	.size	getdetlatimeofday, .-getdetlatimeofday
	.section	.rodata
	.align	2
.LC5:
	.ascii	"usage: ./shm <size> <count>\000"
	.align	2
.LC6:
	.ascii	"fork\000"
	.align	2
.LC7:
	.ascii	"parent: semget\000"
	.align	2
.LC8:
	.ascii	"parent: shmget\000"
	.align	2
.LC9:
	.ascii	"parent: shmat\000"
	.align	2
.LC10:
	.ascii	"child: shmdt\000"
	.align	2
.LC11:
	.ascii	"child: semget\000"
	.align	2
.LC12:
	.ascii	"child: shmget\000"
	.align	2
.LC13:
	.ascii	"child: shmat\000"
	.global	__aeabi_dmul
	.align	2
.LC14:
	.ascii	"%fMB/s %fmsg/s %f\012\000"
	.align	2
.LC15:
	.ascii	"shmdt\000"
	.align	2
.LC16:
	.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, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #96
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-88]
	cmp	r3, #3
	beq	.L23
	ldr	r0, .L42+4
	bl	puts
	mov	r3, #1
	b	.L40
.L23:
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-92]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L42+8
	bl	perror
	mvn	r3, #0
	b	.L40
.L25:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L26
	mov	r2, #896
	mov	r1, #2
	ldr	r0, .L42+12
	bl	semget
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L27
	ldr	r0, .L42+16
	bl	perror
	mvn	r3, #0
	b	.L40
.L27:
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	sem_init
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-60]
	bl	sem_init
	ldr	r3, [fp, #-76]
	mov	r2, #896
	mov	r1, r3
	ldr	r0, .L42+20
	bl	shmget
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L42+24
	bl	perror
	mvn	r3, #0
	b	.L40
.L28:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	shmat
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L42+28
	bl	perror
	mvn	r3, #0
	b	.L40
.L29:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L30
.L31:
	mov	r1, #1
	ldr	r0, [fp, #-60]
	bl	sem_reserve
	ldr	r3, [fp, #-76]
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-68]
	bl	memcpy
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	sem_release
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L30:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L31
	ldr	r0, [fp, #-48]
	bl	shmdt
	mov	r3, r0
	cmn	r3, #1
	bne	.L32
	ldr	r0, .L42+32
	bl	perror
	mvn	r3, #0
	b	.L40
.L26:
	mov	r0, #1
	bl	sleep
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L42+12
	bl	semget
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L42+36
	bl	perror
	mvn	r3, #0
	b	.L40
.L33:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L42+20
	bl	shmget
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L35
	ldr	r0, .L42+40
	bl	perror
	mvn	r3, #0
	b	.L40
.L35:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	shmat
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L42+44
	bl	perror
	mvn	r3, #0
	b	.L40
.L36:
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L37
.L38:
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	sem_reserve
	ldr	r3, [fp, #-76]
	mov	r2, r3
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-52]
	bl	memcpy
	mov	r1, #1
	ldr	r0, [fp, #-60]
	bl	sem_release
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L37:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-72]
	cmp	r2, r3
	blt	.L38
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r2, fp, #24
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	getdetlatimeofday
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	mov	r2, #0
	ldr	r3, .L42+48
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L42+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-72]
	bl	__aeabi_i2d
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r0-r1}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L42+52
	bl	printf
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	sem_reserve
	ldr	r3, [fp, #-84]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	semctl
	ldr	r0, [fp, #-52]
	bl	shmdt
	mov	r3, r0
	cmn	r3, #1
	bne	.L39
	ldr	r0, .L42+56
	bl	perror
	mvn	r3, #0
	b	.L40
.L39:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	shmctl
.L32:
	mov	r3, #0
.L40:
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC16
	.word	.LC5
	.word	.LC6
	.word	22136
	.word	.LC7
	.word	4660
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	1083179008
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
