	.file	"93888008.c"
	.intel_syntax noprefix
	.text
	.globl	loop
	.data
	.align 4
	.type	loop, @object
	.size	loop, 4
loop:
	.long	1
	.globl	reason
	.bss
	.align 4
	.type	reason, @object
	.size	reason, 4
reason:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Usage: %s -N n -X x -M m\n"
	.align 8
.LC1:
	.string	"    -N n: Number of real numbers per line."
	.align 8
.LC2:
	.string	"    -X x: Name of the communication file."
	.align 8
.LC3:
	.string	"    -M m: Maximum number of lines in file."
.LC4:
	.string	"-N"
.LC5:
	.string	"%d"
.LC6:
	.string	"-N cannot be: %s\n"
.LC7:
	.string	"-X"
.LC8:
	.string	"-M"
.LC9:
	.string	"-M cannot be: %s\n"
.LC10:
	.string	"[OPEN]"
.LC11:
	.string	"[UNLINK]"
.LC12:
	.string	"[INIT] sigemptyset failed"
	.align 8
.LC13:
	.string	"[INIT] sigaction failed(SIGINT)"
.LC14:
	.string	"[INIT] sigaction failed"
	.align 8
.LC15:
	.string	"[INIT] sigaddset failed(SIGINT)"
	.align 8
.LC16:
	.string	"[INIT] sigaddset failed(SIGUSR1)"
	.align 8
.LC17:
	.string	"[INIT] sigaddset failed(SIGUSR2)"
.LC18:
	.string	"[INIT] SIG_BLOCK failed"
.LC19:
	.string	"[CHILD]"
.LC20:
	.string	"[PARENT]"
	.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, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -324[rbp], 0
	mov	DWORD PTR -320[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	cmp	DWORD PTR -340[rbp], 6
	jg	.L2
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L30
.L2:
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -316[rbp], 0
	jmp	.L4
.L14:
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 1
	jg	.L5
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	jmp	.L6
.L5:
	mov	eax, 2
.L6:
	mov	edx, DWORD PTR -316[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -352[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -324[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -324[rbp]
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L30
.L7:
	cmp	DWORD PTR -300[rbp], 1
	jg	.L9
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	jmp	.L10
.L9:
	mov	eax, 2
.L10:
	mov	edx, DWORD PTR -316[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -352[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, rax
	lea	rsi, .LC7[rip]
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -296[rbp], rax
	jmp	.L8
.L11:
	cmp	DWORD PTR -300[rbp], 1
	jg	.L12
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	jmp	.L13
.L12:
	mov	eax, 2
.L13:
	mov	edx, DWORD PTR -316[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -352[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, rax
	lea	rsi, .LC8[rip]
	mov	rdi, rcx
	call	strncmp@PLT
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -320[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -320[rbp]
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L30
.L8:
	add	DWORD PTR -316[rbp], 1
.L4:
	mov	eax, DWORD PTR -340[rbp]
	sub	eax, 1
	cmp	DWORD PTR -316[rbp], eax
	jl	.L14
	mov	rax, QWORD PTR -296[rbp]
	mov	edx, 420
	mov	esi, 194
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -312[rbp], eax
	cmp	DWORD PTR -312[rbp], -1
	jne	.L15
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L15:
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	unlink@PLT
	cmp	eax, -1
	jne	.L16
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L16:
	lea	rax, signalHandler[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 268435456
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], -1
	jne	.L17
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L17:
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], -1
	jne	.L18
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L18:
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], -1
	jne	.L19
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L19:
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 12
	call	sigaction@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], -1
	jne	.L20
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L20:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], -1
	jne	.L21
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L21:
	lea	rax, -288[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], -1
	jne	.L22
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L22:
	lea	rax, -288[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], -1
	jne	.L23
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L23:
	lea	rax, -288[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], -1
	jne	.L24
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L24:
	lea	rax, -288[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], -1
	jne	.L25
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L30
.L25:
	call	fork@PLT
	mov	DWORD PTR -304[rbp], eax
	cmp	DWORD PTR -304[rbp], -1
	je	.L32
	cmp	DWORD PTR -304[rbp], 0
	jne	.L27
	call	getppid@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -324[rbp]
	mov	ecx, DWORD PTR -312[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	consumer
	mov	eax, DWORD PTR -312[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC19[rip]
	call	teardown
	mov	eax, 0
	jmp	.L30
.L27:
	mov	esi, DWORD PTR -320[rbp]
	mov	eax, DWORD PTR -324[rbp]
	mov	ecx, DWORD PTR -304[rbp]
	mov	edx, DWORD PTR -312[rbp]
	mov	edi, eax
	call	producer
	mov	eax, DWORD PTR -312[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC20[rip]
	call	teardown
	nop
.L29:
	mov	edi, 0
	call	wait@PLT
	mov	DWORD PTR -304[rbp], eax
	cmp	DWORD PTR -304[rbp], -1
	jne	.L29
	mov	eax, 0
	jmp	.L30
.L32:
	nop
	mov	eax, 0
.L30:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC21:
	.string	"w"
.LC22:
	.string	"producer.log"
.LC23:
	.string	"[PARENT] Logfile"
.LC24:
	.string	"sigfillset failed"
.LC25:
	.string	"sigfillset failed.\n"
.LC26:
	.string	"sigdelset failed(SIGINT)"
.LC27:
	.string	"sigdelset failed(SIGINT).\n"
.LC28:
	.string	"sigdelset failed(SIGUSR1)"
.LC29:
	.string	"sigdelset failed(SIGUSR1).\n"
.LC30:
	.string	"sigdelset failed(SIGUSR2)"
.LC31:
	.string	"sigdelset failed(SIGUSR2).\n"
.LC32:
	.string	"[PARENT] sigemptyset failed"
	.align 8
.LC33:
	.string	"[PARENT] sigaddset failed(SIGINT)"
	.align 8
.LC34:
	.string	"[PARENT] sigaddset failed(SIGUSR2)"
.LC35:
	.string	"Blocking signals.\n"
.LC36:
	.string	"SIG_BLOCK failed"
.LC37:
	.string	"SIG_BLOCK failed.\n"
.LC38:
	.string	"Waiting for lock.\n"
.LC39:
	.string	"F_SETLCKW failed"
.LC40:
	.string	"F_SETLCKW failed.\n"
.LC41:
	.string	"Lock acquired.\n"
.LC42:
	.string	"Seek failed"
.LC43:
	.string	"Seek failed.\n"
.LC44:
	.string	"File is filled.\n"
.LC45:
	.string	"Releasing lock.\n"
.LC46:
	.string	"Lock released.\n"
	.align 8
.LC47:
	.string	"Suspending execution till: SIGINT | SIGUSR1 | SIGUSR2\n"
.LC48:
	.string	"sigsuspend failed"
.LC49:
	.string	"sigsuspend failed.\n"
.LC50:
	.string	"SIGUSR1"
.LC51:
	.string	"SIGUSR2"
.LC52:
	.string	"SIGINT"
.LC53:
	.string	"Signal: %s\n"
	.align 8
.LC54:
	.string	"I'm producing a random sequence for line %3lu:"
.LC56:
	.string	" %6.2f"
.LC57:
	.string	"[PARENT] write failed"
.LC58:
	.string	"Unblocking signals.\n"
.LC59:
	.string	"SIG_UNBLOCK failed"
.LC60:
	.string	"SIG_UNBLOCK failed.\n"
	.text
	.globl	producer
	.type	producer, @function
producer:
.LFB7:
	.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, 392
	.cfi_offset 3, -24
	mov	DWORD PTR -372[rbp], edi
	mov	DWORD PTR -376[rbp], esi
	mov	DWORD PTR -380[rbp], edx
	mov	DWORD PTR -384[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -328[rbp], 0
	lea	rsi, .LC21[rip]
	lea	rdi, .LC22[rip]
	call	fopen@PLT
	mov	QWORD PTR -336[rbp], rax
	mov	rax, QWORD PTR -336[rbp]
	test	rax, rax
	jne	.L34
	lea	rdi, .LC23[rip]
	call	perror@PLT
	lea	rdi, .LC20[rip]
	call	teardown
	mov	ebx, 0
	jmp	.L35
.L34:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -348[rbp]
	mov	edx, eax
	lea	rsi, .LC24[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L36
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L36:
	lea	rax, -288[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigdelset@PLT
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -348[rbp]
	mov	edx, eax
	lea	rsi, .LC26[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L37
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L37:
	lea	rax, -288[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigdelset@PLT
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -348[rbp]
	mov	edx, eax
	lea	rsi, .LC28[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L38
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L38:
	lea	rax, -288[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	sigdelset@PLT
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -348[rbp]
	mov	edx, eax
	lea	rsi, .LC30[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L39
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC31[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L39:
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -348[rbp], eax
	cmp	DWORD PTR -348[rbp], -1
	jne	.L40
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC32[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L40:
	lea	rax, -160[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -348[rbp], eax
	cmp	DWORD PTR -348[rbp], -1
	jne	.L41
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L41:
	lea	rax, -160[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -348[rbp], eax
	cmp	DWORD PTR -348[rbp], -1
	jne	.L42
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L42:
	lea	rax, -320[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -356[rbp], 1
	jmp	.L43
.L62:
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC35[rip]
	call	fwrite@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -348[rbp]
	mov	edx, eax
	lea	rsi, .LC36[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L44
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC37[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L44:
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC38[rip]
	call	fwrite@PLT
	mov	WORD PTR -320[rbp], 1
	lea	rdx, -320[rbp]
	mov	eax, DWORD PTR -380[rbp]
	mov	esi, 7
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -348[rbp]
	mov	edx, eax
	lea	rsi, .LC39[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L45
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L45:
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC41[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -380[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -328[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, eax
	lea	rsi, .LC42[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L46
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC43[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L46:
	mov	eax, DWORD PTR -372[rbp]
	imul	eax, DWORD PTR -376[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -328[rbp]
	cmp	rdx, rax
	jne	.L47
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC44[rip]
	call	fwrite@PLT
	mov	DWORD PTR -356[rbp], 0
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC45[rip]
	call	fwrite@PLT
	mov	WORD PTR -320[rbp], 2
	lea	rdx, -320[rbp]
	mov	eax, DWORD PTR -380[rbp]
	mov	esi, 7
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -348[rbp]
	mov	edx, eax
	lea	rsi, .LC39[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L48
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L48:
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC46[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC47[rip]
	call	fwrite@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
	mov	DWORD PTR -348[rbp], eax
	cmp	DWORD PTR -348[rbp], -1
	je	.L49
	mov	eax, -1
	jmp	.L50
.L49:
	mov	eax, 0
.L50:
	mov	edx, eax
	lea	rsi, .LC48[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L51
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC49[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L51:
	mov	eax, DWORD PTR reason[rip]
	cmp	eax, 1
	je	.L52
	mov	eax, DWORD PTR reason[rip]
	cmp	eax, 3
	jne	.L53
	lea	rax, .LC50[rip]
	jmp	.L55
.L53:
	lea	rax, .LC51[rip]
	jmp	.L55
.L52:
	lea	rax, .LC52[rip]
.L55:
	mov	rcx, QWORD PTR -336[rbp]
	mov	rdx, rax
	lea	rsi, .LC53[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L56
.L47:
	mov	eax, DWORD PTR -372[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -328[rbp]
	cqo
	idiv	rbx
	shr	rax, 3
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -336[rbp]
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -372[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -328[rbp]
	cqo
	idiv	rbx
	shr	rax, 3
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -352[rbp], 0
	jmp	.L57
.L59:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movsd	QWORD PTR -392[rbp], xmm2
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	movsd	xmm1, QWORD PTR .LC55[rip]
	divsd	xmm0, xmm1
	addsd	xmm0, QWORD PTR -392[rbp]
	movsd	QWORD PTR -344[rbp], xmm0
	mov	rdx, QWORD PTR -344[rbp]
	mov	rax, QWORD PTR -336[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC56[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rdx, QWORD PTR -344[rbp]
	mov	rax, QWORD PTR stdout[rip]
	movq	xmm0, rdx
	lea	rsi, .LC56[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	lea	rcx, -344[rbp]
	mov	eax, DWORD PTR -380[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	writeAll
	movzx	eax, al
	mov	DWORD PTR -348[rbp], eax
	cmp	DWORD PTR -348[rbp], 0
	je	.L58
	lea	rdi, .LC57[rip]
	call	perror@PLT
	mov	ebx, 0
	jmp	.L35
.L58:
	add	DWORD PTR -352[rbp], 1
.L57:
	mov	eax, DWORD PTR -352[rbp]
	cmp	eax, DWORD PTR -372[rbp]
	jl	.L59
	mov	rax, QWORD PTR -336[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -384[rbp]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
.L56:
	cmp	DWORD PTR -356[rbp], 0
	je	.L60
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC45[rip]
	call	fwrite@PLT
	mov	WORD PTR -320[rbp], 2
	lea	rdx, -320[rbp]
	mov	eax, DWORD PTR -380[rbp]
	mov	esi, 7
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -348[rbp]
	mov	edx, eax
	lea	rsi, .LC39[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L61
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L61:
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC46[rip]
	call	fwrite@PLT
.L60:
	mov	DWORD PTR -356[rbp], 1
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC58[rip]
	call	fwrite@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigprocmask@PLT
	mov	DWORD PTR -348[rbp], eax
	mov	eax, DWORD PTR -348[rbp]
	mov	edx, eax
	lea	rsi, .LC59[rip]
	lea	rdi, .LC20[rip]
	call	systemCallFailed
	test	al, al
	je	.L43
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC60[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L35
.L43:
	mov	eax, DWORD PTR loop[rip]
	test	eax, eax
	jne	.L62
	mov	ebx, 1
.L35:
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	cleanFP
	cmp	ebx, 1
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	producer, .-producer
	.section	.rodata
.LC61:
	.string	"consumer.log"
.LC62:
	.string	"sigdelset failed(SIGINT)\n"
.LC63:
	.string	"sigdelset failed(SIGUSR1)\n"
.LC64:
	.string	"sigdelset failed(SIGUSR2)\n"
.LC65:
	.string	"[CHILD] sigemptyset failed"
	.align 8
.LC66:
	.string	"[CHILD] sigaddset failed(SIGINT)"
	.align 8
.LC67:
	.string	"[CHILD] sigaddset failed(SIGUSR2)"
.LC68:
	.string	"File is empty.\n"
.LC69:
	.string	"The dft of line %3lu:\n"
.LC70:
	.string	"[CHILD] readall failed"
.LC71:
	.string	"Readall failed.\n"
	.align 8
.LC72:
	.string	"    DFT(%6.2f) = %6.2f + i * %6.2f\n"
	.text
	.globl	consumer
	.type	consumer, @function
consumer:
.LFB8:
	.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, 392
	.cfi_offset 3, -24
	mov	DWORD PTR -388[rbp], edi
	mov	DWORD PTR -392[rbp], esi
	mov	DWORD PTR -396[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -328[rbp], 0
	mov	eax, DWORD PTR -388[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -360[rbp], rax
	lea	rsi, .LC21[rip]
	lea	rdi, .LC61[rip]
	call	fopen@PLT
	mov	QWORD PTR -336[rbp], rax
	mov	rax, QWORD PTR -336[rbp]
	test	rax, rax
	jne	.L67
	lea	rdi, .LC10[rip]
	call	perror@PLT
	lea	rdi, .LC19[rip]
	call	teardown
	mov	ebx, 0
	jmp	.L68
.L67:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	lea	rsi, .LC24[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L69
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L69:
	lea	rax, -288[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigdelset@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	lea	rsi, .LC26[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L70
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC62[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L70:
	lea	rax, -288[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigdelset@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	lea	rsi, .LC28[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L71
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC63[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L71:
	lea	rax, -288[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	sigdelset@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	lea	rsi, .LC30[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L72
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC64[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L72:
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -364[rbp], eax
	cmp	DWORD PTR -364[rbp], -1
	jne	.L73
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC65[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L73:
	lea	rax, -160[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -364[rbp], eax
	cmp	DWORD PTR -364[rbp], -1
	jne	.L74
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC66[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L74:
	lea	rax, -160[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -364[rbp], eax
	cmp	DWORD PTR -364[rbp], -1
	jne	.L75
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC67[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L75:
	lea	rax, -320[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -372[rbp], 1
	jmp	.L76
.L96:
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC35[rip]
	call	fwrite@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	lea	rsi, .LC36[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L77
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC37[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L77:
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC38[rip]
	call	fwrite@PLT
	mov	WORD PTR -320[rbp], 1
	lea	rdx, -320[rbp]
	mov	eax, DWORD PTR -392[rbp]
	mov	esi, 7
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	lea	rsi, .LC39[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L78
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L78:
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC41[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -392[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -328[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, eax
	lea	rsi, .LC42[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L79
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC43[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L79:
	cmp	QWORD PTR -328[rbp], 0
	jne	.L80
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC68[rip]
	call	fwrite@PLT
	mov	DWORD PTR -372[rbp], 0
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC45[rip]
	call	fwrite@PLT
	mov	WORD PTR -320[rbp], 2
	lea	rdx, -320[rbp]
	mov	eax, DWORD PTR -392[rbp]
	mov	esi, 7
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	lea	rsi, .LC39[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L81
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L81:
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC46[rip]
	call	fwrite@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
	mov	DWORD PTR -364[rbp], eax
	cmp	DWORD PTR -364[rbp], -1
	je	.L82
	mov	eax, -1
	jmp	.L83
.L82:
	mov	eax, 0
.L83:
	mov	edx, eax
	lea	rsi, .LC48[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L84
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC49[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L84:
	mov	eax, DWORD PTR reason[rip]
	cmp	eax, 1
	je	.L85
	mov	eax, DWORD PTR reason[rip]
	cmp	eax, 3
	jne	.L86
	lea	rax, .LC50[rip]
	jmp	.L88
.L86:
	lea	rax, .LC51[rip]
	jmp	.L88
.L85:
	lea	rax, .LC52[rip]
.L88:
	mov	rcx, QWORD PTR -336[rbp]
	mov	rdx, rax
	lea	rsi, .LC53[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L89
.L80:
	mov	eax, DWORD PTR -388[rbp]
	neg	eax
	cdqe
	sal	rax, 3
	mov	rcx, rax
	mov	eax, DWORD PTR -392[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -328[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, eax
	lea	rsi, .LC42[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L90
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC43[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L90:
	mov	eax, DWORD PTR -388[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -328[rbp]
	cqo
	idiv	rbx
	shr	rax, 3
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -336[rbp]
	lea	rsi, .LC69[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -388[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -328[rbp]
	cqo
	idiv	rbx
	shr	rax, 3
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC69[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -388[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rcx, QWORD PTR -360[rbp]
	mov	eax, DWORD PTR -392[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	readAll
	movzx	eax, al
	mov	DWORD PTR -364[rbp], eax
	cmp	DWORD PTR -364[rbp], 0
	je	.L91
	lea	rdi, .LC70[rip]
	call	perror@PLT
	lea	rdi, .LC19[rip]
	call	teardown
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC71[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L91:
	mov	DWORD PTR -368[rbp], 0
	jmp	.L92
.L93:
	mov	eax, DWORD PTR -368[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -388[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -360[rbp]
	lea	rdi, -344[rbp]
	lea	rcx, -352[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	dft
	movsd	xmm1, QWORD PTR -344[rbp]
	movsd	xmm0, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR -360[rbp]
	mov	eax, DWORD PTR -368[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -336[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	lea	rsi, .LC72[rip]
	mov	rdi, rax
	mov	eax, 3
	call	fprintf@PLT
	movsd	xmm1, QWORD PTR -344[rbp]
	movsd	xmm0, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR -360[rbp]
	mov	eax, DWORD PTR -368[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	lea	rsi, .LC72[rip]
	mov	rdi, rax
	mov	eax, 3
	call	fprintf@PLT
	add	DWORD PTR -368[rbp], 1
.L92:
	mov	eax, DWORD PTR -368[rbp]
	cmp	eax, DWORD PTR -388[rbp]
	jl	.L93
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR -328[rbp]
	mov	eax, DWORD PTR -392[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ftruncate@PLT
	mov	eax, DWORD PTR -396[rbp]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
.L89:
	cmp	DWORD PTR -372[rbp], 0
	je	.L94
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC45[rip]
	call	fwrite@PLT
	mov	WORD PTR -320[rbp], 2
	lea	rdx, -320[rbp]
	mov	eax, DWORD PTR -392[rbp]
	mov	esi, 7
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	lea	rsi, .LC39[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L95
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC40[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L95:
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC46[rip]
	call	fwrite@PLT
.L94:
	mov	DWORD PTR -372[rbp], 1
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC58[rip]
	call	fwrite@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigprocmask@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	lea	rsi, .LC59[rip]
	lea	rdi, .LC19[rip]
	call	systemCallFailed
	test	al, al
	je	.L76
	mov	rax, QWORD PTR -336[rbp]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC60[rip]
	call	fwrite@PLT
	mov	ebx, 0
	jmp	.L68
.L76:
	mov	eax, DWORD PTR loop[rip]
	test	eax, eax
	jne	.L96
	mov	ebx, 1
.L68:
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	cleanFP
	cmp	ebx, 1
	je	.L103
	mov	ebx, 0
	jmp	.L99
.L103:
	mov	ebx, 1
.L99:
	lea	rax, -360[rbp]
	mov	rdi, rax
	call	cleanDouble
	cmp	ebx, 1
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	consumer, .-consumer
	.globl	signalHandler
	.type	signalHandler, @function
signalHandler:
.LFB9:
	.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
	cmp	DWORD PTR -4[rbp], 12
	je	.L105
	cmp	DWORD PTR -4[rbp], 12
	jg	.L111
	cmp	DWORD PTR -4[rbp], 2
	je	.L107
	cmp	DWORD PTR -4[rbp], 10
	je	.L108
	jmp	.L111
.L107:
	mov	DWORD PTR loop[rip], 0
	mov	DWORD PTR reason[rip], 1
	jmp	.L106
.L108:
	mov	eax, DWORD PTR reason[rip]
	cmp	eax, 2
	jle	.L112
	mov	DWORD PTR reason[rip], 3
	jmp	.L112
.L105:
	mov	DWORD PTR loop[rip], 0
	mov	eax, DWORD PTR reason[rip]
	cmp	eax, 1
	jle	.L113
	mov	DWORD PTR reason[rip], 2
	jmp	.L113
.L112:
	nop
	jmp	.L111
.L113:
	nop
.L106:
.L111:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	signalHandler, .-signalHandler
	.section	.rodata
.LC73:
	.string	"sigemptyset failed"
.LC74:
	.string	"sigaction failed"
	.text
	.globl	teardown
	.type	teardown, @function
teardown:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -160[rbp], 1
	mov	DWORD PTR -24[rbp], 268435456
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], -1
	jne	.L115
	lea	rdi, .LC73[rip]
	call	perror@PLT
	mov	esi, 2
	mov	edi, 0
	call	kill@PLT
	jmp	.L114
.L115:
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 12
	call	sigaction@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], -1
	jne	.L117
	lea	rdi, .LC74[rip]
	call	perror@PLT
	mov	esi, 2
	mov	edi, 0
	call	kill@PLT
	jmp	.L114
.L117:
	mov	esi, 12
	mov	edi, 0
	call	kill@PLT
.L114:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L119
	call	__stack_chk_fail@PLT
.L119:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	teardown, .-teardown
	.globl	systemCallFailed
	.type	systemCallFailed, @function
systemCallFailed:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	cmp	DWORD PTR -20[rbp], -1
	jne	.L121
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	teardown
	mov	eax, 1
	jmp	.L122
.L121:
	mov	eax, 0
.L122:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	systemCallFailed, .-systemCallFailed
	.globl	readAll
	.type	readAll, @function
readAll:
.LFB12:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -8[rbp], 0
.L126:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jg	.L124
	mov	eax, 1
	jmp	.L125
.L124:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jne	.L126
	mov	eax, 0
.L125:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	readAll, .-readAll
	.globl	writeAll
	.type	writeAll, @function
writeAll:
.LFB13:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -8[rbp], 0
.L130:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jg	.L128
	mov	eax, 1
	jmp	.L129
.L128:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jne	.L130
	mov	eax, 0
.L129:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	writeAll, .-writeAll
	.globl	dft
	.type	dft, @function
dft:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	rax, QWORD PTR -48[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L132
.L141:
	mov	rax, QWORD PTR -48[rbp]
	movsd	xmm2, QWORD PTR [rax]
	movsd	QWORD PTR -64[rbp], xmm2
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm3, QWORD PTR [rax]
	movsd	QWORD PTR -72[rbp], xmm3
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, QWORD PTR -40[rbp]
	add	rax, rax
	test	rax, rax
	js	.L133
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L134
.L133:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L134:
	movsd	xmm1, QWORD PTR .LC76[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	js	.L135
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L136
.L135:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L136:
	divsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	cos@PLT
	mulsd	xmm0, QWORD PTR -72[rbp]
	addsd	xmm0, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -48[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -56[rbp]
	movsd	xmm6, QWORD PTR [rax]
	movsd	QWORD PTR -64[rbp], xmm6
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm7, QWORD PTR [rax]
	movsd	QWORD PTR -72[rbp], xmm7
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, QWORD PTR -40[rbp]
	add	rax, rax
	test	rax, rax
	js	.L137
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L138
.L137:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L138:
	movsd	xmm1, QWORD PTR .LC76[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	js	.L139
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L140
.L139:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L140:
	divsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	sin@PLT
	movsd	xmm1, QWORD PTR -72[rbp]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	subsd	xmm0, xmm1
	mov	rax, QWORD PTR -56[rbp]
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L132:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	ja	.L141
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	dft, .-dft
	.globl	cleanFP
	.type	cleanFP, @function
cleanFP:
.LFB15:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	cleanFP, .-cleanFP
	.globl	cleanDouble
	.type	cleanDouble, @function
cleanDouble:
.LFB16:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	cleanDouble, .-cleanDouble
	.section	.rodata
	.align 8
.LC55:
	.long	0
	.long	1079574528
	.align 8
.LC76:
	.long	1413754136
	.long	1074340347
	.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	"93888008.c"
	.text
	.global	loop
	.data
	.align	2
	.type	loop, %object
	.size	loop, 4
loop:
	.word	1
	.global	reason
	.bss
	.align	2
	.type	reason, %object
	.size	reason, 4
reason:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s -N n -X x -M m\012\000"
	.align	2
.LC1:
	.ascii	"    -N n: Number of real numbers per line.\000"
	.align	2
.LC2:
	.ascii	"    -X x: Name of the communication file.\000"
	.align	2
.LC3:
	.ascii	"    -M m: Maximum number of lines in file.\000"
	.align	2
.LC4:
	.ascii	"-N\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"-N cannot be: %s\012\000"
	.align	2
.LC7:
	.ascii	"-X\000"
	.align	2
.LC8:
	.ascii	"-M\000"
	.align	2
.LC9:
	.ascii	"-M cannot be: %s\012\000"
	.align	2
.LC10:
	.ascii	"[OPEN]\000"
	.align	2
.LC11:
	.ascii	"[UNLINK]\000"
	.align	2
.LC12:
	.ascii	"[INIT] sigemptyset failed\000"
	.align	2
.LC13:
	.ascii	"[INIT] sigaction failed(SIGINT)\000"
	.align	2
.LC14:
	.ascii	"[INIT] sigaction failed\000"
	.align	2
.LC15:
	.ascii	"[INIT] sigaddset failed(SIGINT)\000"
	.align	2
.LC16:
	.ascii	"[INIT] sigaddset failed(SIGUSR1)\000"
	.align	2
.LC17:
	.ascii	"[INIT] sigaddset failed(SIGUSR2)\000"
	.align	2
.LC18:
	.ascii	"[INIT] SIG_BLOCK failed\000"
	.align	2
.LC19:
	.ascii	"[CHILD]\000"
	.align	2
.LC20:
	.ascii	"[PARENT]\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #316
	str	r0, [fp, #-320]
	str	r1, [fp, #-324]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-316]
	mov	r3, #0
	str	r3, [fp, #-312]
	mov	r3, #0
	str	r3, [fp, #-308]
	ldr	r3, [fp, #-320]
	cmp	r3, #6
	bgt	.L2
	ldr	r3, [fp, #-324]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+4
	bl	printf
	ldr	r0, .L33+8
	bl	puts
	ldr	r0, .L33+12
	bl	puts
	ldr	r0, .L33+16
	bl	puts
	mov	r3, #1
	b	.L30
.L2:
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-304]
	b	.L4
.L14:
	ldr	r3, [fp, #-304]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-304]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-288]
	cmp	r3, #1
	bgt	.L5
	ldr	r3, [fp, #-288]
	b	.L6
.L5:
	mov	r3, #2
.L6:
	mov	r2, r3
	ldr	r1, .L33+20
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #316
	ldr	r1, .L33+24
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+28
	bl	printf
	mov	r3, #1
	b	.L30
.L7:
	ldr	r3, [fp, #-304]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-288]
	cmp	r3, #1
	bgt	.L9
	ldr	r3, [fp, #-288]
	b	.L10
.L9:
	mov	r3, #2
.L10:
	mov	r2, r3
	ldr	r1, .L33+32
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-308]
	b	.L8
.L11:
	ldr	r3, [fp, #-304]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-288]
	cmp	r3, #1
	bgt	.L12
	ldr	r3, [fp, #-288]
	b	.L13
.L12:
	mov	r3, #2
.L13:
	mov	r2, r3
	ldr	r1, .L33+36
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #312
	ldr	r1, .L33+24
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33+40
	bl	printf
	mov	r3, #1
	b	.L30
.L8:
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	str	r3, [fp, #-304]
.L4:
	ldr	r3, [fp, #-320]
	sub	r3, r3, #1
	ldr	r2, [fp, #-304]
	cmp	r2, r3
	blt	.L14
	mov	r2, #420
	mov	r1, #194
	ldr	r0, [fp, #-308]
	bl	open
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L33+44
	bl	perror
	mov	r3, #1
	b	.L30
.L15:
	ldr	r0, [fp, #-308]
	bl	unlink
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L33+48
	bl	perror
	mov	r3, #1
	b	.L30
.L16:
	ldr	r3, .L33+52
	str	r3, [fp, #-156]
	mov	r3, #268435456
	str	r3, [fp, #-24]
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmn	r3, #1
	bne	.L17
	ldr	r0, .L33+56
	bl	perror
	mov	r3, #1
	b	.L30
.L17:
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L33+60
	bl	perror
	mov	r3, #1
	b	.L30
.L18:
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L33+64
	bl	perror
	mov	r3, #1
	b	.L30
.L19:
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #12
	bl	sigaction
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L33+64
	bl	perror
	mov	r3, #1
	b	.L30
.L20:
	sub	r3, fp, #284
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L33+56
	bl	perror
	mov	r3, #1
	b	.L30
.L21:
	sub	r3, fp, #284
	mov	r1, #2
	mov	r0, r3
	bl	sigaddset
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L33+68
	bl	perror
	mov	r3, #1
	b	.L30
.L22:
	sub	r3, fp, #284
	mov	r1, #10
	mov	r0, r3
	bl	sigaddset
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L33+72
	bl	perror
	mov	r3, #1
	b	.L30
.L23:
	sub	r3, fp, #284
	mov	r1, #12
	mov	r0, r3
	bl	sigaddset
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L33+76
	bl	perror
	mov	r3, #1
	b	.L30
.L24:
	sub	r3, fp, #284
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L33+80
	bl	perror
	mov	r3, #1
	b	.L30
.L25:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmn	r3, #1
	beq	.L32
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bne	.L27
	ldr	r4, [fp, #-316]
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-300]
	mov	r0, r4
	bl	consumer
	ldr	r0, [fp, #-300]
	bl	close
	ldr	r0, .L33+84
	bl	teardown
	mov	r3, #0
	b	.L30
.L27:
	ldr	r0, [fp, #-316]
	ldr	r1, [fp, #-312]
	ldr	r3, [fp, #-292]
	ldr	r2, [fp, #-300]
	bl	producer
	ldr	r0, [fp, #-300]
	bl	close
	ldr	r0, .L33+88
	bl	teardown
	nop
.L29:
	mov	r0, #0
	bl	wait
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmn	r3, #1
	bne	.L29
	mov	r3, #0
	b	.L30
.L32:
	nop
	mov	r3, #0
.L30:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC21
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	signalHandler
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.section	.rodata
	.align	2
.LC22:
	.ascii	"w\000"
	.align	2
.LC23:
	.ascii	"producer.log\000"
	.align	2
.LC24:
	.ascii	"[PARENT] Logfile\000"
	.align	2
.LC25:
	.ascii	"sigfillset failed\000"
	.align	2
.LC26:
	.ascii	"sigfillset failed.\012\000"
	.align	2
.LC27:
	.ascii	"sigdelset failed(SIGINT)\000"
	.align	2
.LC28:
	.ascii	"sigdelset failed(SIGINT).\012\000"
	.align	2
.LC29:
	.ascii	"sigdelset failed(SIGUSR1)\000"
	.align	2
.LC30:
	.ascii	"sigdelset failed(SIGUSR1).\012\000"
	.align	2
.LC31:
	.ascii	"sigdelset failed(SIGUSR2)\000"
	.align	2
.LC32:
	.ascii	"sigdelset failed(SIGUSR2).\012\000"
	.align	2
.LC33:
	.ascii	"[PARENT] sigemptyset failed\000"
	.align	2
.LC34:
	.ascii	"[PARENT] sigaddset failed(SIGINT)\000"
	.align	2
.LC35:
	.ascii	"[PARENT] sigaddset failed(SIGUSR2)\000"
	.align	2
.LC36:
	.ascii	"Blocking signals.\012\000"
	.align	2
.LC37:
	.ascii	"SIG_BLOCK failed\000"
	.align	2
.LC38:
	.ascii	"SIG_BLOCK failed.\012\000"
	.align	2
.LC39:
	.ascii	"Waiting for lock.\012\000"
	.align	2
.LC40:
	.ascii	"F_SETLCKW failed\000"
	.align	2
.LC41:
	.ascii	"F_SETLCKW failed.\012\000"
	.align	2
.LC42:
	.ascii	"Lock acquired.\012\000"
	.align	2
.LC43:
	.ascii	"Seek failed\000"
	.align	2
.LC44:
	.ascii	"Seek failed.\012\000"
	.align	2
.LC45:
	.ascii	"File is filled.\012\000"
	.align	2
.LC46:
	.ascii	"Releasing lock.\012\000"
	.align	2
.LC47:
	.ascii	"Lock released.\012\000"
	.align	2
.LC48:
	.ascii	"Suspending execution till: SIGINT | SIGUSR1 | SIGUS"
	.ascii	"R2\012\000"
	.align	2
.LC49:
	.ascii	"sigsuspend failed\000"
	.align	2
.LC50:
	.ascii	"sigsuspend failed.\012\000"
	.align	2
.LC51:
	.ascii	"SIGUSR1\000"
	.align	2
.LC52:
	.ascii	"SIGUSR2\000"
	.align	2
.LC53:
	.ascii	"SIGINT\000"
	.align	2
.LC54:
	.ascii	"Signal: %s\012\000"
	.global	__aeabi_idiv
	.align	2
.LC55:
	.ascii	"I'm producing a random sequence for line %3lu:\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
.LC56:
	.ascii	" %6.2f\000"
	.align	2
.LC57:
	.ascii	"[PARENT] write failed\000"
	.align	2
.LC58:
	.ascii	"Unblocking signals.\012\000"
	.align	2
.LC59:
	.ascii	"SIG_UNBLOCK failed\000"
	.align	2
.LC60:
	.ascii	"SIG_UNBLOCK failed.\012\000"
	.align	2
.LC61:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	producer
	.syntax unified
	.arm
	.fpu softvfp
	.type	producer, %function
producer:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #328
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	str	r2, [fp, #-336]
	str	r3, [fp, #-340]
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-308]
	ldr	r1, .L68+4
	ldr	r0, .L68+8
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L68+12
	bl	perror
	ldr	r0, .L68+16
	bl	teardown
	mov	r4, #0
	b	.L37
.L36:
	sub	r3, fp, #272
	mov	r0, r3
	bl	sigfillset
	str	r0, [fp, #-304]
	ldr	r2, [fp, #-304]
	ldr	r1, .L68+20
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-320]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L68+24
	bl	fwrite
	mov	r4, #0
	b	.L37
.L38:
	sub	r3, fp, #272
	mov	r1, #2
	mov	r0, r3
	bl	sigdelset
	str	r0, [fp, #-304]
	ldr	r2, [fp, #-304]
	ldr	r1, .L68+28
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-320]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L68+32
	bl	fwrite
	mov	r4, #0
	b	.L37
.L39:
	sub	r3, fp, #272
	mov	r1, #10
	mov	r0, r3
	bl	sigdelset
	str	r0, [fp, #-304]
	ldr	r2, [fp, #-304]
	ldr	r1, .L68+36
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-320]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L68+40
	bl	fwrite
	mov	r4, #0
	b	.L37
.L40:
	sub	r3, fp, #272
	mov	r1, #12
	mov	r0, r3
	bl	sigdelset
	str	r0, [fp, #-304]
	ldr	r2, [fp, #-304]
	ldr	r1, .L68+44
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-320]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L68+48
	bl	fwrite
	mov	r4, #0
	b	.L37
.L41:
	sub	r3, fp, #144
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmn	r3, #1
	bne	.L42
	ldr	r3, [fp, #-320]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L68+52
	bl	fwrite
	mov	r4, #0
	b	.L37
.L42:
	sub	r3, fp, #144
	mov	r1, #2
	mov	r0, r3
	bl	sigaddset
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmn	r3, #1
	bne	.L43
	ldr	r3, [fp, #-320]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L68+56
	bl	fwrite
	mov	r4, #0
	b	.L37
.L43:
	sub	r3, fp, #144
	mov	r1, #12
	mov	r0, r3
	bl	sigaddset
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmn	r3, #1
	bne	.L44
	ldr	r3, [fp, #-320]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L68+60
	bl	fwrite
	mov	r4, #0
	b	.L37
.L44:
	sub	r3, fp, #288
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-316]
	b	.L45
.L64:
	ldr	r3, [fp, #-320]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L68+64
	bl	fwrite
	sub	r3, fp, #144
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	str	r0, [fp, #-304]
	ldr	r2, [fp, #-304]
	ldr	r1, .L68+68
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-320]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L68+72
	bl	fwrite
	mov	r4, #0
	b	.L37
.L46:
	ldr	r3, [fp, #-320]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L68+76
	bl	fwrite
	sub	r3, fp, #12
	sub	r3, r3, #276
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #288
	mov	r2, r3
	mov	r1, #7
	ldr	r0, [fp, #-336]
	bl	fcntl
	str	r0, [fp, #-304]
	ldr	r2, [fp, #-304]
	ldr	r1, .L68+80
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-320]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L68+84
	bl	fwrite
	mov	r4, #0
	b	.L37
.L47:
	ldr	r3, [fp, #-320]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L68+88
	bl	fwrite
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-336]
	bl	lseek
	str	r0, [fp, #-308]
	ldr	r2, [fp, #-308]
	ldr	r1, .L68+92
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-320]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L68+96
	bl	fwrite
	mov	r4, #0
	b	.L37
.L48:
	ldr	r3, [fp, #-328]
	ldr	r2, [fp, #-332]
	mul	r3, r2, r3
	lsl	r2, r3, #3
	ldr	r3, [fp, #-308]
	cmp	r2, r3
	bne	.L49
	ldr	r3, [fp, #-320]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L68+100
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-316]
	ldr	r3, [fp, #-320]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L68+104
	bl	fwrite
	sub	r3, fp, #12
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #288
	mov	r2, r3
	mov	r1, #7
	ldr	r0, [fp, #-336]
	bl	fcntl
	str	r0, [fp, #-304]
	ldr	r2, [fp, #-304]
	ldr	r1, .L68+80
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-320]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L68+84
	bl	fwrite
	mov	r4, #0
	b	.L37
.L50:
	ldr	r3, [fp, #-320]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L68+108
	bl	fwrite
	ldr	r3, [fp, #-320]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L68+112
	bl	fwrite
	sub	r3, fp, #272
	mov	r0, r3
	bl	sigsuspend
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmn	r3, #1
	beq	.L51
	mvn	r3, #0
	b	.L52
.L51:
	mov	r3, #0
.L52:
	mov	r2, r3
	ldr	r1, .L68+116
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-320]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L68+120
	bl	fwrite
	mov	r4, #0
	b	.L37
.L53:
	ldr	r0, [fp, #-320]
	ldr	r3, .L68+124
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L54
	ldr	r3, .L68+124
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L55
	ldr	r3, .L68+128
	b	.L57
.L55:
	ldr	r3, .L68+132
	b	.L57
.L54:
	ldr	r3, .L68+136
.L57:
	mov	r2, r3
	ldr	r1, .L68+140
	bl	fprintf
	b	.L58
.L49:
	ldr	r4, [fp, #-320]
	ldr	r1, [fp, #-328]
	ldr	r0, [fp, #-308]
	bl	__aeabi_idiv
	mov	r3, r0
	lsr	r3, r3, #3
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L68+144
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L68+148
	ldr	r4, [r3]
	ldr	r1, [fp, #-328]
	ldr	r0, [fp, #-308]
	bl	__aeabi_idiv
	mov	r3, r0
	lsr	r3, r3, #3
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L68+144
	mov	r0, r4
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L59
.L61:
	bl	rand
	mov	r1, r0
	ldr	r3, .L68+152
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	add	r3, r2, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	bl	rand
	mov	r1, r0
	ldr	r3, .L68+152
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	mov	r0, r2
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L68+156
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-300]
	str	r3, [fp, #-296]
	ldr	r0, [fp, #-320]
	sub	r3, fp, #300
	ldmia	r3, {r2-r3}
	ldr	r1, .L68+160
	bl	fprintf
	ldr	r3, .L68+148
	ldr	r0, [r3]
	sub	r3, fp, #300
	ldmia	r3, {r2-r3}
	ldr	r1, .L68+160
	bl	fprintf
	sub	r3, fp, #300
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-336]
	bl	writeAll
	mov	r3, r0
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	beq	.L60
	ldr	r0, .L68+164
	bl	perror
	mov	r4, #0
	b	.L37
.L60:
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L59:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-328]
	cmp	r2, r3
	blt	.L61
	ldr	r3, [fp, #-320]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L68+148
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L68+148
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r1, #10
	ldr	r0, [fp, #-340]
	bl	kill
.L58:
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-320]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L68+104
	bl	fwrite
	sub	r3, fp, #12
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #288
	mov	r2, r3
	mov	r1, #7
	ldr	r0, [fp, #-336]
	bl	fcntl
	str	r0, [fp, #-304]
	ldr	r2, [fp, #-304]
	ldr	r1, .L68+80
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-320]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L68+84
	bl	fwrite
	mov	r4, #0
	b	.L37
.L63:
	ldr	r3, [fp, #-320]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L68+108
	bl	fwrite
.L62:
	mov	r3, #1
	str	r3, [fp, #-316]
	ldr	r3, [fp, #-320]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L68+168
	bl	fwrite
	sub	r3, fp, #144
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigprocmask
	str	r0, [fp, #-304]
	ldr	r2, [fp, #-304]
	ldr	r1, .L68+172
	ldr	r0, .L68+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-320]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L68+176
	bl	fwrite
	mov	r4, #0
	b	.L37
.L45:
	ldr	r3, .L68+180
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L64
	mov	r4, #1
.L37:
	sub	r3, fp, #320
	mov	r0, r3
	bl	cleanFP
	cmp	r4, #1
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC61
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC20
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	reason
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	stdout
	.word	1374389535
	.word	1079574528
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	loop
	.size	producer, .-producer
	.section	.rodata
	.align	2
.LC62:
	.ascii	"consumer.log\000"
	.align	2
.LC63:
	.ascii	"sigdelset failed(SIGINT)\012\000"
	.align	2
.LC64:
	.ascii	"sigdelset failed(SIGUSR1)\012\000"
	.align	2
.LC65:
	.ascii	"sigdelset failed(SIGUSR2)\012\000"
	.align	2
.LC66:
	.ascii	"[CHILD] sigemptyset failed\000"
	.align	2
.LC67:
	.ascii	"[CHILD] sigaddset failed(SIGINT)\000"
	.align	2
.LC68:
	.ascii	"[CHILD] sigaddset failed(SIGUSR2)\000"
	.align	2
.LC69:
	.ascii	"File is empty.\012\000"
	.align	2
.LC70:
	.ascii	"The dft of line %3lu:\012\000"
	.align	2
.LC71:
	.ascii	"[CHILD] readall failed\000"
	.align	2
.LC72:
	.ascii	"Readall failed.\012\000"
	.align	2
.LC73:
	.ascii	"    DFT(%6.2f) = %6.2f + i * %6.2f\012\000"
	.align	2
.LC74:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	consumer
	.syntax unified
	.arm
	.fpu softvfp
	.type	consumer, %function
consumer:
	@ args = 0, pretend = 0, frame = 336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #352
	str	r0, [fp, #-336]
	str	r1, [fp, #-340]
	str	r2, [fp, #-344]
	ldr	r3, .L108
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-316]
	ldr	r3, [fp, #-336]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-332]
	ldr	r1, .L108+4
	ldr	r0, .L108+8
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-328]
	ldr	r3, [fp, #-328]
	cmp	r3, #0
	bne	.L71
	ldr	r0, .L108+12
	bl	perror
	ldr	r0, .L108+16
	bl	teardown
	mov	r4, #0
	b	.L72
.L71:
	sub	r3, fp, #272
	mov	r0, r3
	bl	sigfillset
	str	r0, [fp, #-312]
	ldr	r2, [fp, #-312]
	ldr	r1, .L108+20
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r3, [fp, #-328]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L108+24
	bl	fwrite
	mov	r4, #0
	b	.L72
.L73:
	sub	r3, fp, #272
	mov	r1, #2
	mov	r0, r3
	bl	sigdelset
	str	r0, [fp, #-312]
	ldr	r2, [fp, #-312]
	ldr	r1, .L108+28
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L74
	ldr	r3, [fp, #-328]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L108+32
	bl	fwrite
	mov	r4, #0
	b	.L72
.L74:
	sub	r3, fp, #272
	mov	r1, #10
	mov	r0, r3
	bl	sigdelset
	str	r0, [fp, #-312]
	ldr	r2, [fp, #-312]
	ldr	r1, .L108+36
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-328]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L108+40
	bl	fwrite
	mov	r4, #0
	b	.L72
.L75:
	sub	r3, fp, #272
	mov	r1, #12
	mov	r0, r3
	bl	sigdelset
	str	r0, [fp, #-312]
	ldr	r2, [fp, #-312]
	ldr	r1, .L108+44
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L76
	ldr	r3, [fp, #-328]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L108+48
	bl	fwrite
	mov	r4, #0
	b	.L72
.L76:
	sub	r3, fp, #144
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmn	r3, #1
	bne	.L77
	ldr	r3, [fp, #-328]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L108+52
	bl	fwrite
	mov	r4, #0
	b	.L72
.L77:
	sub	r3, fp, #144
	mov	r1, #2
	mov	r0, r3
	bl	sigaddset
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmn	r3, #1
	bne	.L78
	ldr	r3, [fp, #-328]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L108+56
	bl	fwrite
	mov	r4, #0
	b	.L72
.L78:
	sub	r3, fp, #144
	mov	r1, #12
	mov	r0, r3
	bl	sigaddset
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmn	r3, #1
	bne	.L79
	ldr	r3, [fp, #-328]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L108+60
	bl	fwrite
	mov	r4, #0
	b	.L72
.L79:
	sub	r3, fp, #288
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-324]
	b	.L80
.L100:
	ldr	r3, [fp, #-328]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L108+64
	bl	fwrite
	sub	r3, fp, #144
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	str	r0, [fp, #-312]
	ldr	r2, [fp, #-312]
	ldr	r1, .L108+68
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-328]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L108+72
	bl	fwrite
	mov	r4, #0
	b	.L72
.L81:
	ldr	r3, [fp, #-328]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L108+76
	bl	fwrite
	sub	r3, fp, #12
	sub	r3, r3, #276
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #288
	mov	r2, r3
	mov	r1, #7
	ldr	r0, [fp, #-340]
	bl	fcntl
	str	r0, [fp, #-312]
	ldr	r2, [fp, #-312]
	ldr	r1, .L108+80
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-328]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L108+84
	bl	fwrite
	mov	r4, #0
	b	.L72
.L82:
	ldr	r3, [fp, #-328]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L108+88
	bl	fwrite
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-340]
	bl	lseek
	str	r0, [fp, #-316]
	ldr	r2, [fp, #-316]
	ldr	r1, .L108+92
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L83
	ldr	r3, [fp, #-328]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L108+96
	bl	fwrite
	mov	r4, #0
	b	.L72
.L83:
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	bne	.L84
	ldr	r3, [fp, #-328]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L108+100
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-324]
	ldr	r3, [fp, #-328]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L108+104
	bl	fwrite
	sub	r3, fp, #12
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #288
	mov	r2, r3
	mov	r1, #7
	ldr	r0, [fp, #-340]
	bl	fcntl
	str	r0, [fp, #-312]
	ldr	r2, [fp, #-312]
	ldr	r1, .L108+80
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L85
	ldr	r3, [fp, #-328]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L108+84
	bl	fwrite
	mov	r4, #0
	b	.L72
.L85:
	ldr	r3, [fp, #-328]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L108+108
	bl	fwrite
	sub	r3, fp, #272
	mov	r0, r3
	bl	sigsuspend
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmn	r3, #1
	beq	.L86
	mvn	r3, #0
	b	.L87
.L86:
	mov	r3, #0
.L87:
	mov	r2, r3
	ldr	r1, .L108+112
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-328]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L108+116
	bl	fwrite
	mov	r4, #0
	b	.L72
.L88:
	ldr	r0, [fp, #-328]
	ldr	r3, .L108+120
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L89
	ldr	r3, .L108+120
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L90
	ldr	r3, .L108+124
	b	.L92
.L90:
	ldr	r3, .L108+128
	b	.L92
.L89:
	ldr	r3, .L108+132
.L92:
	mov	r2, r3
	ldr	r1, .L108+136
	bl	fprintf
	b	.L93
.L84:
	ldr	r2, [fp, #-336]
	mov	r3, r2
	lsl	r3, r3, #29
	sub	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-340]
	bl	lseek
	str	r0, [fp, #-316]
	ldr	r2, [fp, #-316]
	ldr	r1, .L108+92
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L94
	ldr	r3, [fp, #-328]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L108+96
	bl	fwrite
	mov	r4, #0
	b	.L72
.L94:
	ldr	r4, [fp, #-328]
	ldr	r1, [fp, #-336]
	ldr	r0, [fp, #-316]
	bl	__aeabi_idiv
	mov	r3, r0
	lsr	r3, r3, #3
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L108+140
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L108+144
	ldr	r4, [r3]
	ldr	r1, [fp, #-336]
	ldr	r0, [fp, #-316]
	bl	__aeabi_idiv
	mov	r3, r0
	lsr	r3, r3, #3
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L108+140
	mov	r0, r4
	bl	fprintf
	ldr	r1, [fp, #-332]
	ldr	r3, [fp, #-336]
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r0, [fp, #-340]
	bl	readAll
	mov	r3, r0
	str	r3, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	beq	.L95
	ldr	r0, .L108+148
	bl	perror
	ldr	r0, .L108+16
	bl	teardown
	ldr	r3, [fp, #-328]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L108+152
	bl	fwrite
	mov	r4, #0
	b	.L72
.L95:
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L96
.L97:
	ldr	r0, [fp, #-332]
	ldr	r1, [fp, #-336]
	ldr	r2, [fp, #-320]
	sub	ip, fp, #308
	sub	r3, fp, #300
	str	r3, [sp]
	mov	r3, ip
	bl	dft
	ldr	ip, [fp, #-328]
	ldr	r2, [fp, #-332]
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	sub	r3, fp, #308
	ldmia	r3, {r2-r3}
	sub	r1, fp, #300
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r1, .L108+156
	mov	r0, ip
	bl	fprintf
	ldr	r3, .L108+144
	ldr	ip, [r3]
	ldr	r2, [fp, #-332]
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	sub	r3, fp, #308
	ldmia	r3, {r2-r3}
	sub	r1, fp, #300
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r1, .L108+156
	mov	r0, ip
	bl	fprintf
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L96:
	ldr	r2, [fp, #-320]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L97
	ldr	r3, .L108+144
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r1, [fp, #-316]
	ldr	r0, [fp, #-340]
	bl	ftruncate
	mov	r1, #10
	ldr	r0, [fp, #-344]
	bl	kill
.L93:
	ldr	r3, [fp, #-324]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-328]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L108+104
	bl	fwrite
	sub	r3, fp, #12
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #288
	mov	r2, r3
	mov	r1, #7
	ldr	r0, [fp, #-340]
	bl	fcntl
	str	r0, [fp, #-312]
	ldr	r2, [fp, #-312]
	ldr	r1, .L108+80
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L99
	ldr	r3, [fp, #-328]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L108+84
	bl	fwrite
	mov	r4, #0
	b	.L72
.L99:
	ldr	r3, [fp, #-328]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L108+108
	bl	fwrite
.L98:
	mov	r3, #1
	str	r3, [fp, #-324]
	ldr	r3, [fp, #-328]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L108+160
	bl	fwrite
	sub	r3, fp, #144
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigprocmask
	str	r0, [fp, #-312]
	ldr	r2, [fp, #-312]
	ldr	r1, .L108+164
	ldr	r0, .L108+16
	bl	systemCallFailed
	mov	r3, r0
	cmp	r3, #0
	beq	.L80
	ldr	r3, [fp, #-328]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L108+168
	bl	fwrite
	mov	r4, #0
	b	.L72
.L80:
	ldr	r3, .L108+172
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L100
	mov	r4, #1
.L72:
	sub	r3, fp, #328
	mov	r0, r3
	bl	cleanFP
	cmp	r4, #1
	beq	.L107
	mov	r4, #0
	b	.L103
.L107:
	mov	r4, #1
.L103:
	sub	r3, fp, #332
	mov	r0, r3
	bl	cleanDouble
	cmp	r4, #1
	ldr	r3, .L108
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L106
	bl	__stack_chk_fail
.L106:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L109:
	.align	2
.L108:
	.word	.LC74
	.word	.LC22
	.word	.LC62
	.word	.LC10
	.word	.LC19
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC63
	.word	.LC29
	.word	.LC64
	.word	.LC31
	.word	.LC65
	.word	.LC66
	.word	.LC67
	.word	.LC68
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC69
	.word	.LC46
	.word	.LC47
	.word	.LC49
	.word	.LC50
	.word	reason
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC70
	.word	stdout
	.word	.LC71
	.word	.LC72
	.word	.LC73
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	loop
	.size	consumer, .-consumer
	.align	2
	.global	signalHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signalHandler, %function
signalHandler:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #12
	beq	.L111
	ldr	r3, [fp, #-8]
	cmp	r3, #12
	bgt	.L117
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L113
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L114
	b	.L117
.L113:
	ldr	r3, .L120
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L120+4
	mov	r2, #1
	str	r2, [r3]
	b	.L112
.L114:
	ldr	r3, .L120+4
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L118
	ldr	r3, .L120+4
	mov	r2, #3
	str	r2, [r3]
	b	.L118
.L111:
	ldr	r3, .L120
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L120+4
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L119
	ldr	r3, .L120+4
	mov	r2, #2
	str	r2, [r3]
	b	.L119
.L118:
	nop
	b	.L117
.L119:
	nop
.L112:
.L117:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L121:
	.align	2
.L120:
	.word	loop
	.word	reason
	.size	signalHandler, .-signalHandler
	.section	.rodata
	.align	2
.LC75:
	.ascii	"sigemptyset failed\000"
	.align	2
.LC76:
	.ascii	"sigaction failed\000"
	.align	2
.LC77:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	teardown
	.syntax unified
	.arm
	.fpu softvfp
	.type	teardown, %function
teardown:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-160]
	ldr	r3, .L128
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-148]
	mov	r3, #268435456
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmn	r3, #1
	bne	.L123
	ldr	r0, .L128+4
	bl	perror
	mov	r1, #2
	mov	r0, #0
	bl	kill
	b	.L122
.L123:
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #12
	bl	sigaction
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmn	r3, #1
	bne	.L125
	ldr	r0, .L128+8
	bl	perror
	mov	r1, #2
	mov	r0, #0
	bl	kill
	b	.L122
.L125:
	mov	r1, #12
	mov	r0, #0
	bl	kill
.L122:
	ldr	r3, .L128
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L127
	bl	__stack_chk_fail
.L127:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L129:
	.align	2
.L128:
	.word	.LC77
	.word	.LC75
	.word	.LC76
	.size	teardown, .-teardown
	.align	2
	.global	systemCallFailed
	.syntax unified
	.arm
	.fpu softvfp
	.type	systemCallFailed, %function
systemCallFailed:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L131
	ldr	r0, [fp, #-12]
	bl	perror
	ldr	r0, [fp, #-8]
	bl	teardown
	mov	r3, #1
	b	.L132
.L131:
	mov	r3, #0
.L132:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	systemCallFailed, .-systemCallFailed
	.align	2
	.global	readAll
	.syntax unified
	.arm
	.fpu softvfp
	.type	readAll, %function
readAll:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
.L136:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r1, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L134
	mov	r3, #1
	b	.L135
.L134:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L136
	mov	r3, #0
.L135:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	readAll, .-readAll
	.align	2
	.global	writeAll
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeAll, %function
writeAll:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
.L140:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r1, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L138
	mov	r3, #1
	b	.L139
.L138:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L140
	mov	r3, #0
.L139:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	writeAll, .-writeAll
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.align	2
	.global	dft
	.syntax unified
	.arm
	.fpu softvfp
	.type	dft, %function
dft:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #24
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r1, [fp, #-52]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, [fp, #4]
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L142
.L143:
	ldr	r3, [fp, #-52]
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r6-r7}
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_ui2d
	ldr	r2, .L144
	ldr	r3, .L144+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	ldr	r0, [fp, #-44]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-52]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #4]
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r6-r7}
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_ui2d
	ldr	r2, .L144
	ldr	r3, .L144+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	ldr	r0, [fp, #-44]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #4]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L142:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bhi	.L143
	nop
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L145:
	.align	2
.L144:
	.word	1413754136
	.word	1074340347
	.size	dft, .-dft
	.align	2
	.global	cleanFP
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanFP, %function
cleanFP:
	@ 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	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cleanFP, .-cleanFP
	.align	2
	.global	cleanDouble
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanDouble, %function
cleanDouble:
	@ 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	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cleanDouble, .-cleanDouble
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
