	.file	"111077243.c"
	.intel_syntax noprefix
	.text
	.local	fd_pipe
	.comm	fd_pipe,8,8
	.data
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.long	-1
	.local	sig_int
	.comm	sig_int,1,1
	.text
	.globl	fft
	.type	fft, @function
fft:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	QWORD PTR -72[rbp], rdx
	cmp	DWORD PTR -60[rbp], 1
	jle	.L8
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -40[rbp]
	add	eax, eax
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -40[rbp], 1
.L3:
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -40[rbp], eax
	jl	.L4
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fft
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fft
	mov	DWORD PTR -36[rbp], 0
	jmp	.L5
.L6:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -36[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -60[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	cos@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -8[rbp], xmm0
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -36[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -60[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	sin@PLT
	cvtsd2ss	xmm0, xmm0
	movss	xmm1, DWORD PTR .LC1[rip]
	xorps	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm1, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, xmm1
	movss	xmm2, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR 4[rax]
	mulss	xmm1, xmm2
	subss	xmm0, xmm1
	movss	DWORD PTR -16[rbp], xmm0
	movss	xmm1, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR 4[rax]
	mulss	xmm1, xmm0
	movss	xmm2, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, xmm2
	addss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR 4[rax]
	movss	xmm0, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	addss	xmm0, xmm1
	movss	DWORD PTR 4[rax], xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	xmm1, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	subss	xmm0, xmm1
	movss	DWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR 4[rax]
	movss	xmm1, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	subss	xmm0, xmm1
	movss	DWORD PTR 4[rax], xmm0
	add	DWORD PTR -36[rbp], 1
.L5:
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -36[rbp], eax
	jl	.L6
	nop
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fft, .-fft
	.section	.rodata
.LC3:
	.string	"bpm: %d\n"
	.text
	.globl	display_bpm
	.type	display_bpm, @function
display_bpm:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -24576[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 48
	mov	QWORD PTR -24616[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -16400[rbp]
	mov	rax, QWORD PTR -24616[rbp]
	mov	esi, 2048
	mov	rdi, rax
	call	fft
	mov	DWORD PTR -24608[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -24608[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24616[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -24608[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24616[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm1, xmm0
	mov	eax, DWORD PTR -24608[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24616[rbp]
	add	rax, rdx
	movss	xmm2, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -24608[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24616[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR 4[rax]
	mulss	xmm0, xmm2
	addss	xmm1, xmm0
	movss	xmm0, DWORD PTR .LC2[rip]
	mulss	xmm0, xmm1
	mov	eax, DWORD PTR -24608[rbp]
	cdqe
	movss	DWORD PTR -24592[rbp+rax*4], xmm0
	add	DWORD PTR -24608[rbp], 1
.L10:
	cmp	DWORD PTR -24608[rbp], 2047
	jle	.L11
	mov	DWORD PTR -24600[rbp], 20
	mov	DWORD PTR -24596[rbp], 122
	mov	eax, DWORD PTR -24600[rbp]
	mov	DWORD PTR -24604[rbp], eax
	mov	eax, DWORD PTR -24600[rbp]
	mov	DWORD PTR -24608[rbp], eax
	jmp	.L12
.L15:
	mov	eax, DWORD PTR -24608[rbp]
	cdqe
	movss	xmm0, DWORD PTR -24592[rbp+rax*4]
	mov	eax, DWORD PTR -24604[rbp]
	cdqe
	movss	xmm1, DWORD PTR -24592[rbp+rax*4]
	comiss	xmm0, xmm1
	jbe	.L13
	mov	eax, DWORD PTR -24608[rbp]
	mov	DWORD PTR -24604[rbp], eax
.L13:
	add	DWORD PTR -24608[rbp], 1
.L12:
	mov	eax, DWORD PTR -24608[rbp]
	cmp	eax, DWORD PTR -24596[rbp]
	jl	.L15
	mov	eax, DWORD PTR -24604[rbp]
	imul	eax, eax, 3000
	lea	edx, 2047[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 11
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	display_bpm, .-display_bpm
	.globl	bpm_thread
	.type	bpm_thread, @function
bpm_thread:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -16384[rsp]
.LPSRL1:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL1
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -16406[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR fd_pipe[rip]
	lea	rcx, -16404[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edx, DWORD PTR -16404[rbp]
	movzx	eax, WORD PTR -16406[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, edx
	cdqe
	movss	DWORD PTR -16400[rbp+rax*8], xmm0
	movzx	eax, WORD PTR -16406[rbp]
	lea	edx, 1[rax]
	mov	WORD PTR -16406[rbp], dx
	movzx	eax, ax
	cdqe
	pxor	xmm0, xmm0
	movss	DWORD PTR -16396[rbp+rax*8], xmm0
	cmp	WORD PTR -16406[rbp], 2048
	jne	.L19
	mov	WORD PTR -16406[rbp], 0
	lea	rax, -16400[rbp]
	mov	rdi, rax
	call	display_bpm
.L19:
	movzx	eax, BYTE PTR sig_int[rip]
	xor	eax, 1
	test	al, al
	jne	.L20
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE8:
	.size	bpm_thread, .-bpm_thread
	.section	.rodata
.LC5:
	.string	"Terminating Program\n"
	.text
	.globl	SigIntHandler
	.type	SigIntHandler, @function
SigIntHandler:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	BYTE PTR sig_int[rip], 1
	mov	eax, DWORD PTR fd[rip]
	cmp	eax, -1
	je	.L23
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
.L23:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	SigIntHandler, .-SigIntHandler
	.globl	sampleHandler
	.type	sampleHandler, @function
sampleHandler:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -12[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR fd_pipe[rip+4]
	lea	rcx, -12[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sampleHandler, .-sampleHandler
	.section	.rodata
.LC6:
	.string	"Unable to handle %d: %s\n"
	.text
	.type	setSignal, @function
setSignal:
.LFB11:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	signal@PLT
	cmp	rax, -1
	jne	.L28
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	setSignal, .-setSignal
	.globl	setReAlarm
	.type	setReAlarm, @function
setReAlarm:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rcx, QWORD PTR -56[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	lea	rax, -48[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	setitimer@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	setReAlarm, .-setReAlarm
	.section	.rodata
.LC7:
	.string	"/dev/ppgmod_dev"
.LC8:
	.string	"Unable to open %s\n: %s\n"
	.align 8
.LC9:
	.string	"Unable to create pipe channel: %s\n"
.LC10:
	.string	"Unable to create thread: %s\n"
.LC11:
	.string	"Sampling started"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -16[rbp], rax
	lea	rsi, SigIntHandler[rip]
	mov	edi, 2
	call	setSignal
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	jns	.L33
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	lea	rdi, fd_pipe[rip]
	call	pipe@PLT
	test	eax, eax
	jns	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	lea	rsi, sampleHandler[rip]
	mov	edi, 14
	call	setSignal
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, bpm_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L35
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L35:
	mov	edi, 20000
	call	setReAlarm
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L36:
	call	pause@PLT
	jmp	.L36
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	1413754136
	.long	1075388923
	.align 16
.LC1:
	.long	-2147483648
	.long	0
	.long	0
	.long	0
	.align 4
.LC2:
	.long	1019740160
	.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	"111077243.c"
	.text
	.local	fd_pipe
	.comm	fd_pipe,8,4
	.data
	.align	2
	.type	fd, %object
	.size	fd, 4
fd:
	.word	-1
	.local	sig_int
	.comm	sig_int,1,1
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_d2f
	.global	__aeabi_fmul
	.global	__aeabi_fsub
	.global	__aeabi_fadd
	.text
	.align	2
	.global	fft
	.syntax unified
	.arm
	.fpu softvfp
	.type	fft, %function
fft:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	ble	.L8
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-52]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L3
.L4:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-48]
	add	r1, r2, r3
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r1
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, [fp, #-48]
	add	r1, r2, r3
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, r1
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L3:
	ldr	r3, [fp, #-52]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-44]
	cmp	r3, r2
	blt	.L4
	ldr	r3, [fp, #-52]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	ldr	r2, [fp, #-48]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	fft
	ldr	r3, [fp, #-52]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	ldr	r2, [fp, #-48]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	fft
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L5
.L6:
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	ldr	r2, .L9
	ldr	r3, .L9+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-52]
	bl	__aeabi_i2d
	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	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	ldr	r2, .L9
	ldr	r3, .L9+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-52]
	bl	__aeabi_i2d
	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	sin
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	eor	r3, r3, #-2147483648
	str	r3, [fp, #-16]	@ float
	ldr	r0, [fp, #-20]	@ float
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r0, [fp, #-16]	@ float
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3, #4]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	ldr	r0, [fp, #-20]	@ float
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3, #4]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r0, [fp, #-16]	@ float
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r1, [fp, #-28]	@ float
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r0, [r3, #4]	@ float
	ldr	r1, [fp, #-24]	@ float
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r4, r2, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [r4, #4]	@ float
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	ldr	r1, [fp, #-28]	@ float
	ldr	r3, [fp, #-52]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r4, r2, r3
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [r4]	@ float
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r0, [r3, #4]	@ float
	ldr	r1, [fp, #-24]	@ float
	ldr	r3, [fp, #-52]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r4, r2, r3
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [r4, #4]	@ float
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L5:
	ldr	r3, [fp, #-52]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	blt	.L6
	nop
.L8:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L10:
	.align	2
.L9:
	.word	1413754136
	.word	1075388923
	.size	fft, .-fft
	.global	__aeabi_fcmpgt
	.section	.rodata
	.align	2
.LC0:
	.ascii	"bpm: %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	display_bpm
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_bpm, %function
display_bpm:
	@ args = 0, pretend = 0, frame = 24608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #24576
	sub	sp, sp, #36
	sub	r3, fp, #24576
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #24576
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	mov	r1, #2048
	ldr	r0, [r0, #-28]
	bl	fft
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	b	.L12
.L13:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	lsl	r3, r3, #3
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	add	r3, r2, r3
	ldr	r0, [r3]	@ float
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	lsl	r3, r3, #3
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	lsl	r3, r3, #3
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	add	r3, r2, r3
	ldr	r0, [r3, #4]	@ float
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	lsl	r3, r3, #3
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	add	r3, r2, r3
	ldr	r3, [r3, #4]	@ float
	mov	r1, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r1, .L20+4
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]	@ float
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r3, #1
	str	r3, [r2, #-20]
.L12:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #2048
	blt	.L13
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #20
	str	r3, [r2, #-12]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #122
	str	r3, [r2, #-8]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	str	r3, [r2, #-16]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	str	r3, [r2, #-20]
	b	.L14
.L17:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-4]	@ float
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-4]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	str	r3, [r2, #-16]
.L15:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r3, #1
	str	r3, [r2, #-20]
.L14:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r2, #-20]
	ldr	r3, [r3, #-8]
	cmp	r2, r3
	blt	.L17
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r3, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	mov	r3, r2
	add	r2, r3, #2032
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L20+8
	bl	printf
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC1
	.word	1019740160
	.word	.LC0
	.size	display_bpm, .-display_bpm
	.global	__aeabi_i2f
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bpm_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	bpm_thread, %function
bpm_thread:
	@ args = 0, pretend = 0, frame = 16400
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16384
	sub	sp, sp, #20
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, #0
	strh	r2, [r3, #-10]	@ movhi
	b	.L23
.L24:
	ldr	r3, .L26+4
	ldr	r0, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #4
	mov	r1, r3
	bl	read
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldrh	r4, [r2, #-10]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r2, r0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r4, #3
	add	r3, r1, r3
	str	r2, [r3, #-4]	@ float
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrh	r3, [r3, #-10]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	strh	r2, [r1, #-10]	@ movhi
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, r1, lsl #3]	@ float
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrh	r3, [r3, #-10]
	cmp	r3, #2048
	bne	.L23
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, #0
	strh	r2, [r3, #-10]	@ movhi
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	display_bpm
.L23:
	ldr	r3, .L26+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L24
	mov	r0, #0
	bl	pthread_exit
.L27:
	.align	2
.L26:
	.word	.LC2
	.word	fd_pipe
	.word	sig_int
	.size	bpm_thread, .-bpm_thread
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Terminating Program\012\000"
	.text
	.align	2
	.global	SigIntHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	SigIntHandler, %function
SigIntHandler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L30
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L30+4
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L29
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
.L29:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L30+12
	bl	fwrite
	mov	r0, #0
	bl	exit
.L31:
	.align	2
.L30:
	.word	sig_int
	.word	fd
	.word	stdout
	.word	.LC3
	.size	SigIntHandler, .-SigIntHandler
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sampleHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sampleHandler, %function
sampleHandler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L34+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	read
	ldr	r3, .L34+8
	ldr	r3, [r3, #4]
	sub	r1, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	write
	nop
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC4
	.word	fd
	.word	fd_pipe
	.size	sampleHandler, .-sampleHandler
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Unable to handle %d: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setSignal, %function
setSignal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L38
	ldr	r3, .L39
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-16]
	ldr	r1, .L39+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L38:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L40:
	.align	2
.L39:
	.word	stderr
	.word	.LC5
	.size	setSignal, .-setSignal
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setReAlarm
	.syntax unified
	.arm
	.fpu softvfp
	.type	setReAlarm, %function
setReAlarm:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r2, .L44+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	sub	r3, fp, #24
	sub	r2, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #24
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	setitimer
	nop
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC6
	.word	1125899907
	.size	setReAlarm, .-setReAlarm
	.section	.rodata
	.align	2
.LC7:
	.ascii	"/dev/ppgmod_dev\000"
	.align	2
.LC8:
	.ascii	"Unable to open %s\012: %s\012\000"
	.align	2
.LC9:
	.ascii	"Unable to create pipe channel: %s\012\000"
	.align	2
.LC10:
	.ascii	"Unable to create thread: %s\012\000"
	.align	2
.LC11:
	.ascii	"Sampling started\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L52+4
	str	r3, [fp, #-20]
	ldr	r1, .L52+8
	mov	r0, #2
	bl	setSignal
	mov	r1, #2
	ldr	r0, [fp, #-20]
	bl	open
	mov	r3, r0
	ldr	r2, .L52+12
	str	r3, [r2]
	ldr	r3, .L52+12
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L47
	ldr	r3, .L52+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-20]
	ldr	r1, .L52+20
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L47:
	ldr	r0, .L52+24
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L48
	ldr	r3, .L52+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L52+28
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L48:
	ldr	r1, .L52+32
	mov	r0, #14
	bl	setSignal
	sub	r0, fp, #24
	mov	r3, #0
	ldr	r2, .L52+36
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, .L52+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L52+40
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L49:
	ldr	r0, .L52+44
	bl	setReAlarm
	ldr	r0, .L52+48
	bl	puts
.L50:
	bl	pause
	b	.L50
.L53:
	.align	2
.L52:
	.word	.LC12
	.word	.LC7
	.word	SigIntHandler
	.word	fd
	.word	stderr
	.word	.LC8
	.word	fd_pipe
	.word	.LC9
	.word	sampleHandler
	.word	bpm_thread
	.word	.LC10
	.word	20000
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
