// File: /workspace/github_cpp_makefile_star2_O3/joao18araujo[P]pierluigi/src/note.cpp
// Function: Note::enarmonies()
vector<Note> Note::enarmonies(){
  vector<Note> v;
  for(auto & p : notes_with_accidental_to_number){
    int note_position = notes_with_accidental_to_number[this->full_note()];
    if(p.first != this->full_note() &&
      (p.second % N_SCALE) == (note_position % N_SCALE)){
      Note n(*this);
      if(note_position > p.second)
        n.octave++;
      else if(note_position < p.second)
        n.octave--;

      n.set_full_note(p.first);
      v.push_back(n);
    }
  }

  return v;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, 0x8(%rsp)
movq $0x0, 0x10(%rdi)
movq 0x9bf7cb4(%rip), %r14   # 0x9c13ad8
testq %r14, %r14
je 0x1bffc
movq 0x10(%rsp), %rax
leaq 0x8(%rax), %r15
leaq 0x28(%rax), %r12
leaq 0x40(%rsp), %r13
movq %r15, 0x38(%rsp)
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1c217
leaq 0x9bf7c6f(%rip), %rdi   # 0x9c13ac8
movq %r13, %rsi
callq 0x1c818
movl (%rax), %ebp
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1be7f
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x5360
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1c217
movq 0x10(%r14), %rdx
cmpq 0x48(%rsp), %rdx
jne 0x1bed0
movq 0x40(%rsp), %rbx
testq %rdx, %rdx
je 0x1beb2
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x5380
testl %eax, %eax
jne 0x1bed5
leaq 0x50(%rsp), %rax
cmpq %rax, %rbx
je 0x1bff0
movq 0x50(%rsp), %rsi
incq %rsi
movq %rbx, %rdi
jmp 0x1bfeb
movq 0x40(%rsp), %rbx
movslq 0x28(%r14), %r15
leaq 0x50(%rsp), %rax
cmpq %rax, %rbx
je 0x1bef3
movq 0x50(%rsp), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x5360
imulq $0x2aaaaaab, %r15, %rax # imm = 0x2AAAAAAB
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x21, %rax
addl %ecx, %eax
shll $0x2, %eax
leal (%rax,%rax,2), %eax
subl %eax, %r15d
movslq %ebp, %rax
imulq $0x2aaaaaab, %rax, %rcx # imm = 0x2AAAAAAB
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x21, %rcx
addl %edx, %ecx
shll $0x2, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
cmpl %eax, %r15d
movq 0x38(%rsp), %r15
jne 0x1bff0
movq %r13, %rdi
movq 0x10(%rsp), %rsi
callq 0x1aa22
movl $0x1, %eax
cmpl 0x28(%r14), %ebp
jg 0x1bf5c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jge 0x1bf63
addl %eax, 0x88(%rsp)
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rdi
callq 0xb50a
movq %r13, %rdi
leaq 0x18(%rsp), %rsi
callq 0x1adc4
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x1bfab
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0xb118
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x1bfd4
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x1bff0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5360
movq (%r14), %r14
testq %r14, %r14
jne 0x1be44
movq 0x8(%rsp), %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x1c039
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x1c039
jmp 0x1c068
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0xb0e0
jmp 0x1c06b
jmp 0x1c068
movq %rax, %r14
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1c06b
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x1c06b
movq %rax, %r14
movq 0x8(%rsp), %rdi
callq 0xb1a2
movq %r14, %rdi
callq 0x55e0
nop