// File: /workspace/github_c_makefile_star2_O0/baines[P]MiniGBS/ui.c
// Function: ui_notes_draw
static void ui_notes_draw(uint16_t notes[static 4]){
	static const char* note_strs[] = {
		"A-", "A#", "B-", "C-", "C#", "D-", "D#", "E-", "F-", "F#", "G-", "G#"
	};

	move((cfg.win_h-6)/6+9, (cfg.win_w-47)/2+9);
	attron(A_BOLD);

	for(int i = 0; i < 3; ++i){
		if(notes[i] != 0xffff){
			printw("[ ");
			attron(COLOR_PAIR(i+1));
			int octave = MAX(0, MIN(notes[i] / 12, 9));
			printw("%s%d", note_strs[notes[i] % 12], octave);
			attroff(COLOR_PAIR(i+1));
			printw(" ]     ");
		} else {
			printw("[     ]     ");
		}
	}
	attroff(A_BOLD);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq 0x6c9d(%rip), %rax      # 0x14fd0
movq (%rax), %rdi
leaq 0x85db(%rip), %rax      # 0x16918
movl 0x2c(%rax), %eax
subl $0x6, %eax
movl $0x6, %ecx
cltd
idivl %ecx
movl %eax, %esi
addl $0x9, %esi
leaq 0x85c1(%rip), %rax      # 0x16918
movl 0x28(%rax), %eax
subl $0x2f, %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %edx
addl $0x9, %edx
callq 0x5200
movq 0x6c5a(%rip), %rax      # 0x14fd0
movq (%rax), %rdi
movl $0x200000, %esi         # imm = 0x200000
xorl %eax, %eax
movl %eax, %edx
callq 0x52b0
movl $0x0, -0xc(%rbp)
cmpl $0x3, -0xc(%rbp)
jge 0xe4cb
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movzwl (%rax,%rcx,2), %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0xe4ad
leaq 0x3c20(%rip), %rdi      # 0x11fd6
movb $0x0, %al
callq 0x54e0
movq 0x6c0c(%rip), %rax      # 0x14fd0
movq (%rax), %rdi
movl -0xc(%rbp), %esi
addl $0x1, %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0x52b0
movl $0x0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movzwl (%rax,%rcx,2), %eax
movl $0xc, %ecx
cltd
idivl %ecx
movl %eax, -0x1c(%rbp)
movl $0x9, -0x20(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x20(%rbp), %eax
jg 0xe414
movl -0x1c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0xe41a
movl -0x20(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jle 0xe436
movl -0x14(%rbp), %eax
movl %eax, -0x30(%rbp)
jmp 0xe43c
movl -0x18(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movzwl (%rax,%rcx,2), %eax
movl $0xc, %ecx
cltd
idivl %ecx
movslq %edx, %rcx
leaq 0x82ea(%rip), %rax      # 0x16750
movq (%rax,%rcx,8), %rsi
movl -0x10(%rbp), %edx
leaq 0x3b65(%rip), %rdi      # 0x11fd9
movb $0x0, %al
callq 0x54e0
movq 0x6b4e(%rip), %rax      # 0x14fd0
movq (%rax), %rdi
movl -0xc(%rbp), %esi
addl $0x1, %esi
shll $0x8, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
movl %eax, %edx
callq 0x55a0
leaq 0x3b3f(%rip), %rdi      # 0x11fe3
movb $0x0, %al
callq 0x54e0
jmp 0xe4bb
leaq 0x3b2a(%rip), %rdi      # 0x11fde
movb $0x0, %al
callq 0x54e0
jmp 0xe4bd
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xe38e
movq 0x6afe(%rip), %rax      # 0x14fd0
movq (%rax), %rdi
movl $0x200000, %esi         # imm = 0x200000
xorl %eax, %eax
movl %eax, %edx
callq 0x55a0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)