	.file	"977229.c"
	.intel_syntax noprefix
	.text
	.globl	getNormalProbNum
	.type	getNormalProbNum, @function
getNormalProbNum:
.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, 48
	movss	DWORD PTR -36[rbp], xmm0
	movss	DWORD PTR -40[rbp], xmm1
.L2:
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	addsd	xmm0, xmm0
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC1[rip]
	subsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -16[rbp], xmm0
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	addsd	xmm0, xmm0
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC1[rip]
	subsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	movss	xmm0, DWORD PTR -16[rbp]
	movaps	xmm1, xmm0
	mulss	xmm1, xmm0
	movss	xmm0, DWORD PTR -12[rbp]
	mulss	xmm0, xmm0
	addss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	movss	xmm0, DWORD PTR -8[rbp]
	movss	xmm1, DWORD PTR .LC2[rip]
	comiss	xmm0, xmm1
	jnb	.L2
	pxor	xmm0, xmm0
	ucomiss	xmm0, DWORD PTR -8[rbp]
	jp	.L9
	pxor	xmm0, xmm0
	ucomiss	xmm0, DWORD PTR -8[rbp]
	je	.L2
.L9:
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -8[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	log@PLT
	movsd	xmm1, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -8[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	sqrt@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -16[rbp]
	movaps	xmm1, xmm0
	mulss	xmm1, DWORD PTR -4[rbp]
	movss	xmm0, DWORD PTR .LC5[rip]
	addss	xmm0, xmm1
	mulss	xmm0, DWORD PTR -40[rbp]
	cvtss2sd	xmm0, xmm0
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -20[rbp], xmm0
	movss	xmm0, DWORD PTR -20[rbp]
	comiss	xmm0, DWORD PTR -40[rbp]
	jbe	.L12
	movss	xmm0, DWORD PTR -40[rbp]
	movss	DWORD PTR -20[rbp], xmm0
	jmp	.L6
.L12:
	movss	xmm0, DWORD PTR -36[rbp]
	comiss	xmm0, DWORD PTR -20[rbp]
	jbe	.L6
	movss	xmm0, DWORD PTR -36[rbp]
	movss	DWORD PTR -20[rbp], xmm0
.L6:
	movss	xmm0, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getNormalProbNum, .-getNormalProbNum
	.globl	normalProbabilty
	.type	normalProbabilty, @function
normalProbabilty:
.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
	movss	DWORD PTR -20[rbp], xmm0
	movss	DWORD PTR -24[rbp], xmm1
	mov	DWORD PTR -28[rbp], edi
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -8[rbp], 1
	jmp	.L14
.L15:
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC7[rip]
	divss	xmm0, xmm1
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	add	DWORD PTR -8[rbp], 1
.L14:
	cmp	DWORD PTR -8[rbp], 1000
	jle	.L15
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm1, xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	movss	xmm2, DWORD PTR .LC9[rip]
	subss	xmm0, xmm2
	cvtss2sd	xmm0, xmm0
	mulsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -20[rbp]
	addsd	xmm0, xmm1
	movq	xmm1, QWORD PTR .LC10[rip]
	andpd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -28[rbp]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	normalProbabilty, .-normalProbabilty
	.globl	getNumberOfChildren
	.type	getNumberOfChildren, @function
getNumberOfChildren:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	movss	DWORD PTR -36[rbp], xmm0
	mov	DWORD PTR -8[rbp], 0
	movss	xmm0, DWORD PTR .LC11[rip]
	comiss	xmm0, DWORD PTR -36[rbp]
	jbe	.L25
	mov	DWORD PTR -4[rbp], 2
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -4[rbp]
	movaps	xmm1, xmm0
	pxor	xmm0, xmm0
	call	getNormalProbNum
	movss	DWORD PTR -40[rbp], xmm0
	mov	edi, 1
	movss	xmm1, DWORD PTR .LC2[rip]
	pxor	xmm0, xmm0
	call	normalProbabilty
	mulss	xmm0, DWORD PTR -40[rbp]
	cvttss2si	eax, xmm0
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 2
	jmp	.L20
.L25:
	movss	xmm0, DWORD PTR .LC12[rip]
	comiss	xmm0, DWORD PTR -36[rbp]
	jbe	.L20
	mov	DWORD PTR -4[rbp], 1
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -4[rbp]
	movaps	xmm1, xmm0
	pxor	xmm0, xmm0
	call	getNormalProbNum
	movss	DWORD PTR -40[rbp], xmm0
	mov	edi, 1
	movss	xmm1, DWORD PTR .LC2[rip]
	pxor	xmm0, xmm0
	call	normalProbabilty
	mulss	xmm0, DWORD PTR -40[rbp]
	cvttss2si	eax, xmm0
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 1
.L20:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getNumberOfChildren, .-getNumberOfChildren
	.section	.rodata
.LC13:
	.string	"Unable to create pipe"
.LC14:
	.string	"Fork Failed\n"
	.align 8
.LC15:
	.string	"\nHi I'm Mr Meeseeks! Look at Meeeee. (%d, %d, %d, %d)"
	.align 8
.LC16:
	.string	"\nChild Process - Reading from pipe - Job is %s"
	.align 8
.LC17:
	.string	"\nParent Process - Writing to pipe - Job is %s"
	.text
	.globl	createFork
	.type	createFork, @function
createFork:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	QWORD PTR -64[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 0
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L27
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L32
.L27:
	call	fork@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	jns	.L29
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	jmp	.L30
.L29:
	cmp	DWORD PTR -48[rbp], 0
	jne	.L31
	call	getppid@PLT
	mov	ebx, eax
	call	getpid@PLT
	mov	esi, eax
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8d, edx
	mov	ecx, eax
	mov	edx, ebx
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	lea	rcx, -40[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	lea	rcx, -64[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L30:
	mov	eax, DWORD PTR -48[rbp]
.L32:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	createFork, .-createFork
	.globl	taskCompleted
	.type	taskCompleted, @function
taskCompleted:
.LFB10:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	taskCompleted, .-taskCompleted
	.section	.rodata
.LC18:
	.string	"/dev/null"
.LC19:
	.string	"shmget\n"
.LC20:
	.string	"pSem"
	.align 8
.LC21:
	.string	"What do you want your Mr. Meeseeks for?"
	.align 8
.LC22:
	.string	"** Welcome to the Mr. Meeseeks Box **"
.LC23:
	.string	"%s\n%s\n"
.LC24:
	.string	" (Press enter for random)"
	.align 8
.LC25:
	.string	"What's the difficulty of the task?"
.LC26:
	.string	"\n%s%s\n"
.LC28:
	.string	"Task's difficulty is: %f.\n"
	.align 8
.LC29:
	.string	"-----------------------------------------------------------------------"
	.align 8
.LC32:
	.string	"Mr. Meeseeks(%d) newvalue of *p=%f.\n"
	.align 8
.LC34:
	.string	"\nAll Mr. Meeseeks created by %d have died.\n"
.LC35:
	.string	"The task was completed :)"
	.align 8
.LC36:
	.string	"The task couldn't be completed :("
.LC37:
	.string	"%s (%f%c)\n"
.LC38:
	.string	"Execution time: %f\n"
.LC39:
	.string	"\nMr. Meeseeks %d died :)\n"
	.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
	push	rbx
	sub	rsp, 600
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -596[rbp], 0
	mov	DWORD PTR -592[rbp], 0
	call	getpid@PLT
	mov	DWORD PTR -580[rbp], eax
	call	getppid@PLT
	mov	DWORD PTR -576[rbp], eax
	mov	DWORD PTR -584[rbp], 0
	mov	DWORD PTR -572[rbp], 1
	mov	esi, 5
	lea	rdi, .LC18[rip]
	call	ftok@PLT
	mov	DWORD PTR -568[rbp], eax
	mov	eax, DWORD PTR -568[rbp]
	mov	edx, 932
	mov	esi, 4
	mov	edi, eax
	call	shmget@PLT
	mov	DWORD PTR -564[rbp], eax
	cmp	DWORD PTR -564[rbp], 0
	jns	.L36
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	mov	eax, DWORD PTR -572[rbp]
	mov	ecx, eax
	mov	edx, 420
	mov	esi, 192
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -520[rbp], rax
	lea	rdi, .LC20[rip]
	call	sem_unlink@PLT
	mov	eax, DWORD PTR -564[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -512[rbp], rax
	mov	rax, QWORD PTR -512[rbp]
	pxor	xmm0, xmm0
	movss	DWORD PTR [rax], xmm0
	lea	rdx, .LC21[rip]
	lea	rsi, .LC22[rip]
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -304[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	lea	rdx, .LC24[rip]
	lea	rsi, .LC25[rip]
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -192[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	movzx	eax, BYTE PTR -192[rbp]
	cmp	al, 10
	je	.L37
	lea	rax, -192[rbp]
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -588[rbp], xmm0
	jmp	.L38
.L37:
	movss	xmm1, DWORD PTR .LC27[rip]
	pxor	xmm0, xmm0
	call	getNormalProbNum
	movd	eax, xmm0
	mov	DWORD PTR -588[rbp], eax
.L38:
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -588[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC28[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rax, -552[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -552[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -504[rbp], rax
	mov	ecx, DWORD PTR -592[rbp]
	mov	eax, DWORD PTR -596[rbp]
	lea	rdx, -304[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	createFork
	mov	DWORD PTR -584[rbp], eax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -544[rbp], rax
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -496[rbp], rcx
	mov	QWORD PTR -488[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -480[rbp], rcx
	mov	QWORD PTR -472[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -464[rbp], rcx
	mov	QWORD PTR -456[rbp], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -448[rbp], rax
	jmp	.L39
.L50:
	movss	xmm1, DWORD PTR .LC30[rip]
	movss	xmm0, DWORD PTR .LC31[rip]
	call	getNormalProbNum
	movd	eax, xmm0
	mov	DWORD PTR -560[rbp], eax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -536[rbp], rax
	lea	rax, -536[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -432[rbp], rcx
	mov	QWORD PTR -424[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -416[rbp], rcx
	mov	QWORD PTR -408[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -400[rbp], rcx
	mov	QWORD PTR -392[rbp], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -384[rbp], rax
	jmp	.L40
.L43:
	mov	rax, QWORD PTR -520[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	edi, 0
	call	sleep@PLT
	mov	edi, 1
	movss	xmm1, DWORD PTR .LC2[rip]
	pxor	xmm0, xmm0
	call	normalProbabilty
	movd	eax, xmm0
	movd	xmm1, eax
	mulss	xmm1, DWORD PTR -588[rbp]
	mov	rax, QWORD PTR -512[rbp]
	movss	xmm0, DWORD PTR [rax]
	addss	xmm0, xmm1
	mov	rax, QWORD PTR -512[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -512[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rbx, xmm3
	call	getpid@PLT
	movq	xmm0, rbx
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -520[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -544[rbp], rax
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -496[rbp], rcx
	mov	QWORD PTR -488[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -480[rbp], rcx
	mov	QWORD PTR -472[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -464[rbp], rcx
	mov	QWORD PTR -456[rbp], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -448[rbp], rax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -528[rbp], rax
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -368[rbp], rcx
	mov	QWORD PTR -360[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -352[rbp], rcx
	mov	QWORD PTR -344[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -336[rbp], rcx
	mov	QWORD PTR -328[rbp], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -320[rbp], rax
.L40:
	mov	rax, QWORD PTR -512[rbp]
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR .LC27[rip]
	comiss	xmm0, xmm1
	jbe	.L41
	mov	rdx, QWORD PTR -536[rbp]
	mov	rax, QWORD PTR -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	difftime@PLT
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -560[rbp]
	comisd	xmm1, xmm0
	ja	.L43
.L41:
	mov	rax, QWORD PTR -512[rbp]
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR .LC27[rip]
	comiss	xmm0, xmm1
	ja	.L63
	jmp	.L48
.L63:
	cmp	DWORD PTR -584[rbp], 0
	jne	.L39
	mov	ecx, DWORD PTR -588[rbp]
	lea	rdx, -592[rbp]
	lea	rax, -596[rbp]
	movd	xmm0, ecx
	mov	rsi, rdx
	mov	rdi, rax
	call	getNumberOfChildren
	mov	DWORD PTR -556[rbp], eax
	mov	eax, DWORD PTR -596[rbp]
	add	eax, 1
	mov	DWORD PTR -596[rbp], eax
	mov	DWORD PTR -592[rbp], 0
	jmp	.L46
.L47:
	mov	ecx, DWORD PTR -592[rbp]
	mov	eax, DWORD PTR -596[rbp]
	lea	rdx, -304[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	createFork
	mov	DWORD PTR -584[rbp], eax
	mov	eax, DWORD PTR -592[rbp]
	add	eax, 1
	mov	DWORD PTR -592[rbp], eax
.L46:
	mov	eax, DWORD PTR -592[rbp]
	cmp	DWORD PTR -556[rbp], eax
	jg	.L47
.L39:
	mov	rax, QWORD PTR -512[rbp]
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR .LC27[rip]
	comiss	xmm0, xmm1
	jbe	.L48
	mov	rdx, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR -544[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	difftime@PLT
	movsd	xmm1, QWORD PTR .LC33[rip]
	comisd	xmm1, xmm0
	ja	.L50
.L48:
	cmp	DWORD PTR -584[rbp], 0
	je	.L51
	jmp	.L52
.L54:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 10
	je	.L67
.L52:
	mov	edx, 0
	mov	esi, 0
	mov	edi, -1
	call	waitpid@PLT
	mov	DWORD PTR -584[rbp], eax
	cmp	DWORD PTR -584[rbp], 0
	jne	.L54
	jmp	.L53
.L67:
	nop
.L53:
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	call	getpid@PLT
	cmp	DWORD PTR -580[rbp], eax
	jne	.L55
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -544[rbp], rax
	lea	rax, -544[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -496[rbp], rcx
	mov	QWORD PTR -488[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -480[rbp], rcx
	mov	QWORD PTR -472[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -464[rbp], rcx
	mov	QWORD PTR -456[rbp], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -448[rbp], rax
	mov	rax, QWORD PTR -512[rbp]
	movss	xmm0, DWORD PTR [rax]
	comiss	xmm0, DWORD PTR .LC27[rip]
	jb	.L66
	lea	rdi, .LC35[rip]
	call	puts@PLT
	jmp	.L58
.L66:
	mov	rax, QWORD PTR -512[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rax, xmm4
	mov	edx, 37
	movq	xmm0, rax
	lea	rsi, .LC36[rip]
	lea	rdi, .LC37[rip]
	mov	eax, 1
	call	printf@PLT
.L58:
	mov	rdx, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR -544[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	difftime@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC38[rip]
	mov	eax, 1
	call	printf@PLT
.L55:
	mov	rax, QWORD PTR -512[rbp]
	mov	rdi, rax
	call	shmdt@PLT
	mov	eax, DWORD PTR -564[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	mov	rax, QWORD PTR -520[rbp]
	mov	rdi, rax
	call	sem_destroy@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	call	getpid@PLT
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	jmp	.L59
.L51:
	mov	rax, QWORD PTR -512[rbp]
	mov	rdi, rax
	call	shmdt@PLT
	mov	eax, DWORD PTR -564[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	mov	rax, QWORD PTR -520[rbp]
	mov	rdi, rax
	call	sem_destroy@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	call	getpid@PLT
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
.L59:
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1105199104
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 4
.LC2:
	.long	1065353216
	.align 8
.LC4:
	.long	0
	.long	-1073741824
	.align 4
.LC5:
	.long	1077936128
	.align 8
.LC6:
	.long	-1717986918
	.long	1075288473
	.align 4
.LC7:
	.long	1325400064
	.align 8
.LC8:
	.long	-261757043
	.long	1069288219
	.align 4
.LC9:
	.long	1140457472
	.align 16
.LC10:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 4
.LC11:
	.long	1110704128
	.align 4
.LC12:
	.long	1118437376
	.align 4
.LC27:
	.long	1120403456
	.align 4
.LC30:
	.long	1084227584
	.align 4
.LC31:
	.long	1056964608
	.align 8
.LC33:
	.long	0
	.long	1079410688
	.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	"977229.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.global	__aeabi_d2f
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.global	__aeabi_fcmpge
	.global	__aeabi_fcmpeq
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmplt
	.align	2
	.global	getNormalProbNum
	.syntax unified
	.arm
	.fpu softvfp
	.type	getNormalProbNum, %function
getNormalProbNum:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]	@ float
	str	r1, [fp, #-44]	@ float
.L2:
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11+4
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11+4
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r1, [fp, #-28]	@ float
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	mov	r1, #1065353216
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r1, #0
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, #0
	mov	r3, #-1073741824
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r1, [fp, #-16]	@ float
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L11+8
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r1, [fp, #-44]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L11+12
	ldr	r3, .L11+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r1, [fp, #-44]	@ float
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-44]	@ float
	str	r3, [fp, #-32]	@ float
	b	.L5
.L10:
	ldr	r1, [fp, #-40]	@ float
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-40]	@ float
	str	r3, [fp, #-32]	@ float
.L5:
	ldr	r3, [fp, #-32]	@ float
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L12:
	.align	2
.L11:
	.word	1105199104
	.word	1072693248
	.word	1077936128
	.word	-1717986918
	.word	1075288473
	.size	getNormalProbNum, .-getNormalProbNum
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fsub
	.align	2
	.global	normalProbabilty
	.syntax unified
	.arm
	.fpu softvfp
	.type	normalProbabilty, %function
normalProbabilty:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	str	r0, [fp, #-32]	@ float
	str	r1, [fp, #-36]	@ float
	str	r2, [fp, #-40]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L14
.L15:
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, #1325400064
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L14:
	ldr	r3, [fp, #-28]
	cmp	r3, #1000
	ble	.L15
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L17
	ldr	r3, .L17+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r1, .L17+8
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	bic	r5, r3, #-2147483648
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L18:
	.align	2
.L17:
	.word	-261757043
	.word	1069288219
	.word	1140457472
	.size	normalProbabilty, .-normalProbabilty
	.global	__aeabi_f2iz
	.align	2
	.global	getNumberOfChildren
	.syntax unified
	.arm
	.fpu softvfp
	.type	getNumberOfChildren, %function
getNumberOfChildren:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]	@ float
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, .L28
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	mov	r3, #2
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, #0
	bl	getNormalProbNum
	mov	r4, r0
	mov	r2, #1
	mov	r1, #1065353216
	mov	r0, #0
	bl	normalProbabilty
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r2, #2
	str	r2, [r3]
	b	.L22
.L27:
	ldr	r1, .L28+4
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, #0
	bl	getNormalProbNum
	mov	r4, r0
	mov	r2, #1
	mov	r1, #1065353216
	mov	r0, #0
	bl	normalProbabilty
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r2, #1
	str	r2, [r3]
.L22:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L29:
	.align	2
.L28:
	.word	1110704128
	.word	1118437376
	.size	getNumberOfChildren, .-getNumberOfChildren
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Unable to create pipe\000"
	.align	2
.LC1:
	.ascii	"Fork Failed\012\000"
	.align	2
.LC2:
	.ascii	"\012Hi I'm Mr Meeseeks! Look at Meeeee. (%d, %d, %d"
	.ascii	", %d)\000"
	.align	2
.LC3:
	.ascii	"\012Child Process - Reading from pipe - Job is %s\000"
	.align	2
.LC4:
	.ascii	"\012Parent Process - Writing to pipe - Job is %s\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createFork
	.syntax unified
	.arm
	.fpu softvfp
	.type	createFork, %function
createFork:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	sub	r3, fp, #24
	mov	r0, r3
	bl	pipe
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L31
	ldr	r0, .L38+4
	bl	puts
	ldr	r3, [fp, #-32]
	b	.L36
.L31:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L33
	ldr	r3, .L38+8
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L38+12
	bl	fwrite
	b	.L34
.L33:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L35
	bl	getpid
	mov	r4, r0
	bl	getppid
	mov	r2, r0
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	mov	r1, r4
	ldr	r0, .L38+16
	bl	printf
	ldr	r3, [fp, #-24]
	sub	r1, fp, #36
	mov	r2, #4
	mov	r0, r3
	bl	read
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L38+20
	bl	printf
	b	.L34
.L35:
	ldr	r3, [fp, #-48]
	mov	r1, r3
	ldr	r0, .L38+24
	bl	printf
	ldr	r3, [fp, #-20]
	sub	r1, fp, #48
	mov	r2, #4
	mov	r0, r3
	bl	write
.L34:
	ldr	r3, [fp, #-32]
.L36:
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC5
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	createFork, .-createFork
	.align	2
	.global	taskCompleted
	.syntax unified
	.arm
	.fpu softvfp
	.type	taskCompleted, %function
taskCompleted:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	taskCompleted, .-taskCompleted
	.section	.rodata
	.align	2
.LC6:
	.ascii	"/dev/null\000"
	.align	2
.LC7:
	.ascii	"shmget\012\000"
	.align	2
.LC8:
	.ascii	"pSem\000"
	.align	2
.LC9:
	.ascii	"What do you want your Mr. Meeseeks for?\000"
	.align	2
.LC10:
	.ascii	"** Welcome to the Mr. Meeseeks Box **\000"
	.align	2
.LC11:
	.ascii	"%s\012%s\012\000"
	.align	2
.LC12:
	.ascii	" (Press enter for random)\000"
	.align	2
.LC13:
	.ascii	"What's the difficulty of the task?\000"
	.align	2
.LC14:
	.ascii	"\012%s%s\012\000"
	.align	2
.LC15:
	.ascii	"Task's difficulty is: %f.\012\000"
	.align	2
.LC16:
	.ascii	"---------------------------------------------------"
	.ascii	"--------------------\000"
	.align	2
.LC17:
	.ascii	"Mr. Meeseeks(%d) newvalue of *p=%f.\012\000"
	.global	__aeabi_dcmplt
	.align	2
.LC18:
	.ascii	"\012All Mr. Meeseeks created by %d have died.\012\000"
	.align	2
.LC19:
	.ascii	"The task was completed :)\000"
	.align	2
.LC20:
	.ascii	"The task couldn't be completed :(\000"
	.align	2
.LC21:
	.ascii	"%s (%f%c)\012\000"
	.align	2
.LC22:
	.ascii	"Execution time: %f\012\000"
	.align	2
.LC23:
	.ascii	"\012Mr. Meeseeks %d died :)\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 472
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #480
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-480]
	mov	r3, #0
	str	r3, [fp, #-476]
	bl	getpid
	str	r0, [fp, #-448]
	bl	getppid
	str	r0, [fp, #-444]
	mov	r3, #0
	str	r3, [fp, #-452]
	mov	r3, #1
	str	r3, [fp, #-440]
	mov	r1, #5
	ldr	r0, .L74+4
	bl	ftok
	str	r0, [fp, #-436]
	mov	r2, #932
	mov	r1, #4
	ldr	r0, [fp, #-436]
	bl	shmget
	str	r0, [fp, #-432]
	ldr	r3, [fp, #-432]
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L74+8
	bl	perror
	mov	r0, #1
	bl	exit
.L42:
	ldr	r3, [fp, #-440]
	mov	r2, #420
	mov	r1, #192
	ldr	r0, .L74+12
	bl	sem_open
	str	r0, [fp, #-428]
	ldr	r0, .L74+12
	bl	sem_unlink
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-432]
	bl	shmat
	str	r0, [fp, #-424]
	ldr	r3, [fp, #-424]
	mov	r2, #0
	str	r2, [r3]	@ float
	ldr	r2, .L74+16
	ldr	r1, .L74+20
	ldr	r0, .L74+24
	bl	printf
	ldr	r3, .L74+28
	ldr	r2, [r3]
	sub	r3, fp, #276
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	ldr	r2, .L74+32
	ldr	r1, .L74+36
	ldr	r0, .L74+40
	bl	printf
	ldr	r3, .L74+28
	ldr	r2, [r3]
	sub	r3, fp, #176
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	ldrb	r3, [fp, #-176]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L43
	sub	r3, fp, #176
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-456]	@ float
	b	.L44
.L43:
	ldr	r1, .L74+44
	mov	r0, #0
	bl	getNormalProbNum
	str	r0, [fp, #-456]	@ float
.L44:
	ldr	r0, [fp, #-456]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L74+48
	bl	printf
	ldr	r0, .L74+52
	bl	puts
	sub	r3, fp, #472
	mov	r0, r3
	bl	time
	sub	r3, fp, #472
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-420]
	ldr	r3, [fp, #-480]
	ldr	r1, [fp, #-476]
	sub	r2, fp, #276
	mov	r0, r3
	bl	createFork
	str	r0, [fp, #-452]
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-468]
	sub	r3, fp, #468
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	ip, fp, #408
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	b	.L45
.L56:
	ldr	r1, .L74+56
	mov	r0, #1056964608
	bl	getNormalProbNum
	str	r0, [fp, #-416]	@ float
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-464]
	sub	r3, fp, #464
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	ip, fp, #364
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	b	.L46
.L49:
	ldr	r0, [fp, #-428]
	bl	sem_wait
	mov	r0, #0
	bl	sleep
	mov	r2, #1
	mov	r1, #1065353216
	mov	r0, #0
	bl	normalProbabilty
	mov	r3, r0
	ldr	r1, [fp, #-456]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-424]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-424]
	str	r2, [r3]	@ float
	bl	getpid
	mov	r4, r0
	ldr	r3, [fp, #-424]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L74+60
	bl	printf
	ldr	r0, [fp, #-428]
	bl	sem_post
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-468]
	sub	r3, fp, #468
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	ip, fp, #408
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-460]
	sub	r3, fp, #460
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	ip, fp, #320
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
.L46:
	ldr	r3, [fp, #-424]
	ldr	r3, [r3]	@ float
	ldr	r1, .L74+44
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-460]
	ldr	r2, [fp, #-464]
	mov	r1, r2
	mov	r0, r3
	bl	difftime
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-416]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
.L47:
	ldr	r3, [fp, #-424]
	ldr	r3, [r3]	@ float
	ldr	r1, .L74+44
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L69
	b	.L54
.L69:
	ldr	r3, [fp, #-452]
	cmp	r3, #0
	bne	.L45
	sub	r1, fp, #476
	sub	r3, fp, #480
	ldr	r2, [fp, #-456]	@ float
	mov	r0, r3
	bl	getNumberOfChildren
	str	r0, [fp, #-412]
	ldr	r3, [fp, #-480]
	add	r3, r3, #1
	str	r3, [fp, #-480]
	mov	r3, #0
	str	r3, [fp, #-476]
	b	.L52
.L53:
	ldr	r3, [fp, #-480]
	ldr	r1, [fp, #-476]
	sub	r2, fp, #276
	mov	r0, r3
	bl	createFork
	str	r0, [fp, #-452]
	ldr	r3, [fp, #-476]
	add	r3, r3, #1
	str	r3, [fp, #-476]
.L52:
	ldr	r3, [fp, #-476]
	ldr	r2, [fp, #-412]
	cmp	r2, r3
	bgt	.L53
.L45:
	ldr	r3, [fp, #-424]
	ldr	r3, [r3]	@ float
	ldr	r1, .L74+44
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-468]
	ldr	r2, [fp, #-472]
	mov	r1, r2
	mov	r0, r3
	bl	difftime
	mov	r2, #0
	ldr	r3, .L74+64
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
.L54:
	ldr	r3, [fp, #-452]
	cmp	r3, #0
	beq	.L57
	b	.L58
.L60:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #10
	beq	.L73
.L58:
	mov	r2, #0
	mov	r1, #0
	mvn	r0, #0
	bl	waitpid
	str	r0, [fp, #-452]
	ldr	r3, [fp, #-452]
	cmp	r3, #0
	bne	.L60
	b	.L59
.L73:
	nop
.L59:
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L74+68
	bl	printf
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-448]
	cmp	r3, r2
	bne	.L61
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-468]
	sub	r3, fp, #468
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	ip, fp, #408
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-424]
	ldr	r3, [r3]	@ float
	ldr	r1, .L74+44
	mov	r0, r3
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	ldr	r0, .L74+72
	bl	puts
	b	.L64
.L72:
	ldr	r3, [fp, #-424]
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, #37
	str	r1, [sp]
	ldr	r1, .L74+76
	ldr	r0, .L74+80
	bl	printf
.L64:
	ldr	r3, [fp, #-468]
	ldr	r2, [fp, #-472]
	mov	r1, r2
	mov	r0, r3
	bl	difftime
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L74+84
	bl	printf
.L61:
	ldr	r0, [fp, #-424]
	bl	shmdt
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-432]
	bl	shmctl
	ldr	r0, [fp, #-428]
	bl	sem_destroy
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L74+88
	bl	printf
	bl	getpid
	mov	r3, r0
	mov	r1, #9
	mov	r0, r3
	bl	kill
	b	.L65
.L57:
	ldr	r0, [fp, #-424]
	bl	shmdt
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-432]
	bl	shmctl
	ldr	r0, [fp, #-428]
	bl	sem_destroy
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L74+88
	bl	printf
	bl	getpid
	mov	r3, r0
	mov	r1, #9
	mov	r0, r3
	bl	kill
.L65:
	mov	r3, #0
	ldr	r2, .L74
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC24
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	stdin
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	1120403456
	.word	.LC15
	.word	.LC16
	.word	1084227584
	.word	.LC17
	.word	1079410688
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
