	.file	"445265.c"
	.intel_syntax noprefix
	.text
	.globl	NUM_NOTES
	.section	.rodata
	.align 4
	.type	NUM_NOTES, @object
	.size	NUM_NOTES, 4
NUM_NOTES:
	.long	7
	.globl	NUM_STRINGS
	.align 4
	.type	NUM_STRINGS, @object
	.size	NUM_STRINGS, 4
NUM_STRINGS:
	.long	6
	.globl	INTERVAL
	.align 4
	.type	INTERVAL, @object
	.size	INTERVAL, 4
INTERVAL:
	.long	3
	.data
	.align 4
	.type	keepRunning, @object
	.size	keepRunning, 4
keepRunning:
	.long	1
	.section	.rodata
.LC0:
	.string	"cheatsheet"
.LC1:
	.string	"s:p:"
	.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
	push	rbx
	sub	rsp, 168
	.cfi_offset 3, -24
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, 7
	cdqe
	sub	rax, 1
	mov	QWORD PTR -112[rbp], rax
	mov	eax, 7
	cdqe
	mov	r10, rax
	mov	r11d, 0
	mov	eax, 7
	cdqe
	mov	r8, rax
	mov	r9d, 0
	mov	eax, 7
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -104[rbp], rax
	mov	BYTE PTR -149[rbp], -1
	mov	DWORD PTR -140[rbp], 3
	mov	eax, 6
	mov	DWORD PTR -132[rbp], eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	DWORD PTR -72[rbp], 99
	mov	QWORD PTR -64[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	jmp	.L5
.L12:
	cmp	DWORD PTR -128[rbp], 115
	je	.L6
	cmp	DWORD PTR -128[rbp], 115
	jg	.L5
	cmp	DWORD PTR -128[rbp], 99
	je	.L7
	cmp	DWORD PTR -128[rbp], 112
	jne	.L5
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -140[rbp], eax
	jmp	.L5
.L6:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -132[rbp], eax
	mov	BYTE PTR -149[rbp], 0
	mov	DWORD PTR -144[rbp], 0
	jmp	.L8
.L10:
	mov	rdx, QWORD PTR optarg[rip]
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 49
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	js	.L9
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	edx, eax
	movzx	eax, BYTE PTR -149[rbp]
	or	eax, edx
	mov	BYTE PTR -149[rbp], al
.L9:
	add	DWORD PTR -144[rbp], 1
.L8:
	mov	eax, DWORD PTR -144[rbp]
	cmp	DWORD PTR -132[rbp], eax
	ja	.L10
	jmp	.L5
.L7:
	mov	eax, 0
	call	cheatsheet@PLT
	mov	eax, 0
	jmp	.L11
.L5:
	lea	rcx, -148[rbp]
	lea	rdx, -96[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC1[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], -1
	jne	.L12
	mov	DWORD PTR -136[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -136[rbp]
	add	eax, 65
	mov	ecx, eax
	mov	rdx, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -136[rbp], 1
.L13:
	mov	eax, 7
	cmp	DWORD PTR -136[rbp], eax
	jl	.L14
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	lea	rsi, interruptHandler[rip]
	mov	edi, 2
	call	signal@PLT
	jmp	.L15
.L16:
	call	rand@PLT
	mov	ecx, 7
	cdq
	idiv	ecx
	mov	DWORD PTR -124[rbp], edx
	call	rand@PLT
	mov	ecx, 6
	cdq
	idiv	ecx
	mov	DWORD PTR -120[rbp], edx
	movzx	edx, BYTE PTR -149[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L15
	mov	edx, DWORD PTR -124[rbp]
	mov	ecx, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	drawFretboard
	mov	eax, DWORD PTR -140[rbp]
	mov	edi, eax
	call	sleep@PLT
.L15:
	mov	eax, DWORD PTR keepRunning[rip]
	test	eax, eax
	jne	.L16
	mov	eax, 0
.L11:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"%c[2K\r"
.LC3:
	.string	"%c[%dA"
	.text
	.globl	drawFretboard
	.type	drawFretboard, @function
drawFretboard:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -4[rbp], 20
	mov	DWORD PTR -12[rbp], 0
	jmp	.L20
.L25:
	mov	esi, 27
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L21
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	jmp	.L22
.L21:
	mov	eax, 32
.L22:
	mov	edi, eax
	call	putchar@PLT
	mov	edi, 32
	call	putchar@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L23
.L24:
	mov	edi, 45
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L23:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L24
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L20:
	mov	eax, 6
	cmp	DWORD PTR -12[rbp], eax
	jl	.L25
	mov	eax, 6
	mov	edx, eax
	mov	esi, 27
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	drawFretboard, .-drawFretboard
	.section	.rodata
.LC4:
	.string	"%c[%dB"
	.text
	.globl	interruptHandler
	.type	interruptHandler, @function
interruptHandler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, 6
	mov	edx, eax
	mov	esi, 27
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR keepRunning[rip], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	interruptHandler, .-interruptHandler
	.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	"445265.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cheatsheet\000"
	.text
	.global	NUM_NOTES
	.section	.rodata
	.align	2
	.type	NUM_NOTES, %object
	.size	NUM_NOTES, 4
NUM_NOTES:
	.word	7
	.global	NUM_STRINGS
	.align	2
	.type	NUM_STRINGS, %object
	.size	NUM_STRINGS, 4
NUM_STRINGS:
	.word	6
	.global	INTERVAL
	.align	2
	.type	INTERVAL, %object
	.size	INTERVAL, 4
INTERVAL:
	.word	3
	.data
	.align	2
	.type	keepRunning, %object
	.size	keepRunning, 4
keepRunning:
	.word	1
	.section	.rodata
	.align	2
.LC3:
	.ascii	"s:p:\000"
	.global	__aeabi_idivmod
	.align	2
.LC2:
	.word	.LC0
	.word	0
	.word	0
	.word	99
	.word	0
	.word	0
	.word	0
	.word	0
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #7
	sub	r3, r3, #1
	str	r3, [fp, #-76]
	mov	r3, #7
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #7
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #7
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #0
	str	r3, [fp, #-72]
	mvn	r3, #0
	strb	r3, [fp, #-93]
	mov	r3, #3
	str	r3, [fp, #-84]
	mov	r3, #6
	str	r3, [fp, #-68]
	ldr	r3, .L16+4
	sub	ip, fp, #48
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L2
.L9:
	ldr	r3, [fp, #-64]
	cmp	r3, #115
	beq	.L3
	ldr	r3, [fp, #-64]
	cmp	r3, #115
	bgt	.L2
	ldr	r3, [fp, #-64]
	cmp	r3, #99
	beq	.L4
	ldr	r3, [fp, #-64]
	cmp	r3, #112
	bne	.L2
	ldr	r3, .L16+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-84]
	b	.L2
.L3:
	ldr	r3, .L16+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-68]
	mov	r3, #0
	strb	r3, [fp, #-93]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L5
.L7:
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #49
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	blt	.L6
	mov	r2, #1
	ldr	r3, [fp, #-52]
	lsl	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrsb	r3, [fp, #-93]
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-93]
.L6:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L5:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	bhi	.L7
	b	.L2
.L4:
	bl	cheatsheet
	mov	r3, #0
	b	.L8
.L2:
	sub	r2, fp, #48
	sub	r3, fp, #92
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L16+12
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-104]
	bl	getopt_long
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L10
.L11:
	ldr	r3, [fp, #-80]
	and	r3, r3, #255
	add	r3, r3, #65
	and	r1, r3, #255
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-80]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L10:
	mov	r2, #7
	ldr	r3, [fp, #-80]
	cmp	r3, r2
	blt	.L11
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, .L16+16
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r1, .L16+20
	mov	r0, #2
	bl	signal
	b	.L12
.L13:
	bl	rand
	mov	r3, r0
	mov	r2, #7
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-60]
	bl	rand
	mov	r3, r0
	mov	r2, #6
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-56]
	ldrb	r2, [fp, #-93]	@ zero_extendqisi2
	ldr	r3, [fp, #-56]
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L12
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-72]
	bl	drawFretboard
	ldr	r0, [fp, #-84]
	bl	sleep
.L12:
	ldr	r3, .L16+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	mov	r3, #0
.L8:
	mov	sp, r4
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC2
	.word	optarg
	.word	.LC3
	.word	stdout
	.word	interruptHandler
	.word	keepRunning
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%c[2K\015\000"
	.align	2
.LC6:
	.ascii	"%c[%dA\000"
	.text
	.align	2
	.global	drawFretboard
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawFretboard, %function
drawFretboard:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #20
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L19
.L24:
	mov	r1, #27
	ldr	r0, .L25
	bl	printf
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L20
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L21
.L20:
	mov	r3, #32
.L21:
	mov	r0, r3
	bl	putchar
	mov	r0, #32
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L22
.L23:
	mov	r0, #45
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L23
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L19:
	mov	r2, #6
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L24
	mov	r3, #6
	mov	r2, r3
	mov	r1, #27
	ldr	r0, .L25+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC5
	.word	.LC6
	.size	drawFretboard, .-drawFretboard
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%c[%dB\000"
	.text
	.align	2
	.global	interruptHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	interruptHandler, %function
interruptHandler:
	@ 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]
	mov	r3, #6
	mov	r2, r3
	mov	r1, #27
	ldr	r0, .L28
	bl	printf
	ldr	r3, .L28+4
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC7
	.word	keepRunning
	.size	interruptHandler, .-interruptHandler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
