	.file	"760787.c"
	.intel_syntax noprefix
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -33[rbp], 0
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	cmp	DWORD PTR -52[rbp], 1
	je	.L2
	cmp	DWORD PTR -52[rbp], 4
	jne	.L3
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	cvttsd2si	eax, xmm0
	mov	BYTE PTR -24[rbp], al
.L3:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	cvttsd2si	eax, xmm0
	mov	WORD PTR -22[rbp], ax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
.L2:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	metronome_init
	mov	BYTE PTR -33[rbp], al
	cmp	BYTE PTR -33[rbp], 0
	je	.L4
	movsx	eax, BYTE PTR -33[rbp]
	jmp	.L6
.L4:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	metronome
	mov	BYTE PTR -33[rbp], al
	movsx	eax, BYTE PTR -33[rbp]
.L6:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"data/config"
.LC2:
	.string	"mkdir data"
.LC3:
	.string	"\n"
.LC4:
	.string	"w+"
.LC5:
	.string	"%s\n"
.LC6:
	.string	"%d\n"
.LC7:
	.string	"%d"
	.text
	.globl	metronome_init
	.type	metronome_init, @function
metronome_init:
.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -58[rbp], 0
	mov	BYTE PTR -57[rbp], 0
	mov	DWORD PTR -28[rbp], 3419956
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR 10[rax]
	test	ax, ax
	je	.L9
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L9
	mov	eax, 1
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	mov	BYTE PTR -57[rbp], al
	and	BYTE PTR -57[rbp], 1
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	setne	al
	mov	BYTE PTR -58[rbp], al
	movzx	eax, BYTE PTR -57[rbp]
	xor	eax, 1
	test	al, al
	je	.L11
	movzx	eax, BYTE PTR -58[rbp]
	xor	eax, 1
	test	al, al
	je	.L11
	lea	rdi, .LC2[rip]
	call	system@PLT
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -28[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	WORD PTR 10[rax], 60
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR 8[rax], 4
	jmp	.L12
.L11:
	movzx	eax, BYTE PTR -57[rbp]
	xor	eax, 1
	test	al, al
	je	.L13
	cmp	BYTE PTR -58[rbp], 0
	je	.L13
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	rdx, QWORD PTR -40[rbp]
	lea	rcx, -48[rbp]
	lea	rax, -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	rbx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcspn@PLT
	add	rax, rbx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR -40[rbp]
	lea	rcx, -48[rbp]
	lea	rax, -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	rbx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcspn@PLT
	add	rax, rbx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	WORD PTR 10[rax], dx
	mov	rdx, QWORD PTR -40[rbp]
	lea	rcx, -48[rbp]
	lea	rax, -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	rbx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcspn@PLT
	add	rax, rbx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR 8[rax], dl
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L12
.L13:
	cmp	BYTE PTR -57[rbp], 0
	je	.L14
	movzx	eax, BYTE PTR -58[rbp]
	xor	eax, 1
	test	al, al
	jne	.L15
.L14:
	cmp	BYTE PTR -57[rbp], 0
	je	.L12
	cmp	BYTE PTR -58[rbp], 0
	je	.L12
.L15:
	movzx	eax, BYTE PTR -58[rbp]
	xor	eax, 1
	test	al, al
	je	.L16
	lea	rdi, .LC2[rip]
	call	system@PLT
.L16:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 8[rax]
	test	al, al
	jne	.L17
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR 8[rax], 4
.L17:
	cmp	BYTE PTR -58[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L18:
	lea	rsi, .LC4[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L19
	mov	eax, -1
	jmp	.L21
.L19:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	edx, ax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L12:
	mov	eax, 0
.L21:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	metronome_init, .-metronome_init
	.section	.rodata
.LC8:
	.string	"BPM too low"
.LC9:
	.string	"BPM too high"
.LC10:
	.string	"Not enough sub-divisions"
.LC11:
	.string	"Too many sub-divisions"
.LC12:
	.string	"/"
.LC13:
	.string	"Time signature is too high"
	.align 8
.LC16:
	.string	"Time Signature: %d/%d, BPM: %d Sub-division: %d\n"
	.align 8
.LC17:
	.string	"Note: If the value of the beats (bottom number) is not 4, the sub-divisions will be changed internally to adhere to the value of beats."
.LC18:
	.string	"%d "
	.text
	.globl	metronome
	.type	metronome, @function
metronome:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR 10[rax]
	cmp	ax, 19
	ja	.L24
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L46
.L24:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR 10[rax]
	cmp	ax, 400
	jbe	.L26
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L46
.L26:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 8[rax]
	cmp	al, 3
	ja	.L27
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L46
.L27:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 8[rax]
	cmp	al, 32
	jbe	.L28
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L46
.L28:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	rdi, rax
	call	atof@PLT
	cvttsd2si	eax, xmm0
	mov	BYTE PTR -54[rbp], al
	lea	rsi, .LC12[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	rdi, rax
	call	atof@PLT
	cvttsd2si	eax, xmm0
	mov	BYTE PTR -53[rbp], al
	cmp	BYTE PTR -54[rbp], 0
	je	.L29
	cmp	BYTE PTR -53[rbp], 0
	jne	.L30
.L29:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L46
.L30:
	cmp	BYTE PTR -54[rbp], 16
	ja	.L31
	cmp	BYTE PTR -53[rbp], 8
	jbe	.L32
.L31:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L46
.L32:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	ecx, ax
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	eax, al
	cmp	BYTE PTR -53[rbp], 4
	jne	.L33
	mov	edx, 1
	jmp	.L34
.L33:
	mov	edx, 2
.L34:
	imul	eax, edx
	movzx	esi, BYTE PTR -53[rbp]
	cdq
	idiv	esi
	imul	eax, ecx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	DWORD PTR -52[rbp], eax
	lea	rax, -48[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	cmp	DWORD PTR -52[rbp], 999999999
	jbe	.L35
	mov	QWORD PTR -48[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	test	rax, rax
	js	.L36
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L37
.L36:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L37:
	movsd	xmm1, QWORD PTR .LC15[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -40[rbp], rax
	jmp	.L38
.L35:
	mov	eax, DWORD PTR -52[rbp]
	mov	QWORD PTR -40[rbp], rax
.L38:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	eax, al
	cmp	BYTE PTR -53[rbp], 4
	jne	.L39
	mov	edx, 1
	jmp	.L40
.L39:
	mov	edx, 2
.L40:
	mov	esi, edx
	imul	esi, eax
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	ecx, ax
	movzx	edx, BYTE PTR -53[rbp]
	movzx	eax, BYTE PTR -54[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L45:
	mov	BYTE PTR -56[rbp], 1
	jmp	.L41
.L44:
	mov	BYTE PTR -55[rbp], 1
	jmp	.L42
.L43:
	movzx	eax, BYTE PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	nanosleep@PLT
	movzx	eax, BYTE PTR -55[rbp]
	add	eax, 1
	mov	BYTE PTR -55[rbp], al
.L42:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 8[rax]
	shr	al, 2
	cmp	BYTE PTR -55[rbp], al
	jbe	.L43
	movzx	eax, BYTE PTR -56[rbp]
	add	eax, 1
	mov	BYTE PTR -56[rbp], al
.L41:
	movzx	eax, BYTE PTR -56[rbp]
	cmp	al, BYTE PTR -54[rbp]
	jbe	.L44
	jmp	.L45
.L46:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	metronome, .-metronome
	.section	.rodata
	.align 8
.LC14:
	.long	-1342177280
	.long	1110175886
	.align 8
.LC15:
	.long	0
	.long	1104006501
	.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	"760787.c"
	.text
	.global	__aeabi_d2uiz
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-17]
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L2
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	bne	.L3
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
.L2:
	sub	r3, fp, #16
	mov	r0, r3
	bl	metronome_init
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldrsb	r3, [fp, #-17]
	cmp	r3, #0
	beq	.L4
	ldrsb	r3, [fp, #-17]
	b	.L6
.L4:
	sub	r3, fp, #16
	mov	r0, r3
	bl	metronome
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldrsb	r3, [fp, #-17]
.L6:
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"data/config\000"
	.align	2
.LC3:
	.ascii	"mkdir data\000"
	.align	2
.LC4:
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"w+\000"
	.align	2
.LC6:
	.ascii	"%s\012\000"
	.align	2
.LC7:
	.ascii	"%d\012\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	metronome_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	metronome_init, %function
metronome_init:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-34]
	mov	r3, #0
	strb	r3, [fp, #-33]
	ldr	r3, .L25+4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3, #6]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	mov	r3, #1
	b	.L12
.L11:
	mov	r3, #0
.L12:
	strb	r3, [fp, #-33]
	ldrb	r3, [fp, #-33]
	and	r3, r3, #1
	strb	r3, [fp, #-33]
	ldr	r1, .L25+8
	ldr	r0, .L25+12
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-34]
	ldrb	r3, [fp, #-33]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L13
	ldrb	r3, [fp, #-34]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L25+16
	bl	system
	ldr	r3, [fp, #-40]
	sub	r2, fp, #20
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	mov	r2, #60
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, [fp, #-40]
	mov	r2, #4
	strb	r2, [r3, #4]
	b	.L14
.L13:
	ldrb	r3, [fp, #-33]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L15
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r1, fp, #28
	sub	r3, fp, #32
	ldr	r2, [fp, #-24]
	mov	r0, r3
	bl	getline
	ldr	r4, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r1, .L25+20
	mov	r0, r3
	bl	strcspn
	mov	r3, r0
	add	r3, r4, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	sub	r1, fp, #28
	sub	r3, fp, #32
	ldr	r2, [fp, #-24]
	mov	r0, r3
	bl	getline
	ldr	r4, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r1, .L25+20
	mov	r0, r3
	bl	strcspn
	mov	r3, r0
	add	r3, r4, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-40]
	strh	r2, [r3, #6]	@ movhi
	sub	r1, fp, #28
	sub	r3, fp, #32
	ldr	r2, [fp, #-24]
	mov	r0, r3
	bl	getline
	ldr	r4, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r1, .L25+20
	mov	r0, r3
	bl	strcspn
	mov	r3, r0
	add	r3, r4, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-40]
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-24]
	bl	fclose
	b	.L14
.L15:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	ldrb	r3, [fp, #-34]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L17
.L16:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
.L17:
	ldrb	r3, [fp, #-34]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L25+16
	bl	system
.L18:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-40]
	mov	r2, #4
	strb	r2, [r3, #4]
.L19:
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L20
	ldr	r0, [fp, #-24]
	bl	fclose
.L20:
	ldr	r1, .L25+24
	ldr	r0, .L25+12
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L21
	mvn	r3, #0
	b	.L23
.L21:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L25+28
	ldr	r0, [fp, #-24]
	bl	fprintf
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3, #6]
	mov	r2, r3
	ldr	r1, .L25+32
	ldr	r0, [fp, #-24]
	bl	fprintf
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L25+36
	ldr	r0, [fp, #-24]
	bl	fprintf
	ldr	r0, [fp, #-24]
	bl	fclose
.L14:
	mov	r3, #0
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC9
	.word	3419956
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	metronome_init, .-metronome_init
	.section	.rodata
	.align	2
.LC10:
	.ascii	"BPM too low\000"
	.align	2
.LC11:
	.ascii	"BPM too high\000"
	.align	2
.LC12:
	.ascii	"Not enough sub-divisions\000"
	.align	2
.LC13:
	.ascii	"Too many sub-divisions\000"
	.align	2
.LC14:
	.ascii	"/\000"
	.align	2
.LC15:
	.ascii	"Time signature is too high\000"
	.global	__aeabi_idiv
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_ui2d
	.global	__aeabi_dsub
	.global	__aeabi_d2iz
	.align	2
.LC16:
	.ascii	"Time Signature: %d/%d, BPM: %d Sub-division: %d\012"
	.ascii	"\000"
	.align	2
.LC17:
	.ascii	"Note: If the value of the beats (bottom number) is "
	.ascii	"not 4, the sub-divisions will be changed internally"
	.ascii	" to adhere to the value of beats.\000"
	.align	2
.LC18:
	.ascii	"%d \000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	metronome
	.syntax unified
	.arm
	.fpu softvfp
	.type	metronome, %function
metronome:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	ldrh	r3, [r3, #6]
	cmp	r3, #19
	bhi	.L28
	ldr	r0, .L50+4
	bl	puts
	mvn	r3, #0
	b	.L48
.L28:
	ldr	r3, [fp, #-48]
	ldrh	r3, [r3, #6]
	cmp	r3, #400
	bls	.L30
	ldr	r0, .L50+8
	bl	puts
	mvn	r3, #0
	b	.L48
.L30:
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #3
	bhi	.L31
	ldr	r0, .L50+12
	bl	puts
	mvn	r3, #0
	b	.L48
.L31:
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #32
	bls	.L32
	ldr	r0, .L50+16
	bl	puts
	mvn	r3, #0
	b	.L48
.L32:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r1, .L50+20
	mov	r0, r3
	bl	strtok
	mov	r3, r0
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	strb	r3, [fp, #-38]
	ldr	r1, .L50+20
	mov	r0, #0
	bl	strtok
	mov	r3, r0
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L33
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L34
.L33:
	ldr	r0, .L50+24
	bl	puts
	mvn	r3, #0
	b	.L48
.L34:
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #16
	bhi	.L35
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #8
	bls	.L36
.L35:
	ldr	r0, .L50+24
	bl	puts
	mvn	r3, #0
	b	.L48
.L36:
	ldr	r3, [fp, #-48]
	ldrh	r3, [r3, #6]
	mov	r4, r3
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L37
	mov	r3, #1
	b	.L38
.L37:
	mov	r3, #2
.L38:
	mul	r3, r2, r3
	ldrb	r2, [fp, #-37]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mul	r3, r4, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #-1342177280
	ldr	r1, .L50+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-36]
	sub	r3, fp, #32
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-36]
	ldr	r2, .L50+32
	cmp	r3, r2
	bls	.L39
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L50+36
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-28]
	b	.L40
.L39:
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-28]
.L40:
	ldrb	r1, [fp, #-38]	@ zero_extendqisi2
	ldrb	r2, [fp, #-37]	@ zero_extendqisi2
	ldr	r3, [fp, #-48]
	ldrh	r3, [r3, #6]
	mov	ip, r3
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L41
	mov	r3, #1
	b	.L42
.L41:
	mov	r3, #2
.L42:
	mul	r3, r0, r3
	str	r3, [sp]
	mov	r3, ip
	ldr	r0, .L50+40
	bl	printf
	ldr	r0, .L50+44
	bl	puts
.L47:
	mov	r3, #1
	strb	r3, [fp, #-40]
	b	.L43
.L46:
	mov	r3, #1
	strb	r3, [fp, #-39]
	b	.L44
.L45:
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L50+48
	bl	printf
	ldr	r3, .L50+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r2, fp, #24
	sub	r3, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	nanosleep
	ldrb	r3, [fp, #-39]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-39]
.L44:
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	ldrb	r2, [fp, #-39]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L45
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-40]
.L43:
	ldrb	r2, [fp, #-40]	@ zero_extendqisi2
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L46
	b	.L47
.L48:
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC19
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	1110175886
	.word	999999999
	.word	1104006501
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	stdout
	.size	metronome, .-metronome
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
