// File: /workspace/github_cpp_makefile_star2_O1/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 $0x88, %rsp
movq %rsi, 0x8(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, (%rsp)
movq $0x0, 0x10(%rdi)
movq 0x9bf7cf3(%rip), %rbx   # 0x9c13ad8
testq %rbx, %rbx
je 0x1bfa8
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %r15
leaq 0x28(%rax), %r12
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1c1a3
leaq 0x9bf7cb3(%rip), %rdi   # 0x9c13ac8
movq %r13, %rsi
callq 0x1c7a6
movl (%rax), %ebp
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x1be3b
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5360
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1c1a3
movq 0x10(%rbx), %rdx
cmpq 0x38(%rsp), %rdx
jne 0x1be73
testq %rdx, %rdx
je 0x1bf80
movq 0x30(%rsp), %rsi
movq 0x8(%rbx), %rdi
callq 0x5380
testl %eax, %eax
je 0x1bf80
movslq 0x28(%rbx), %r14
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x1be93
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5360
imulq $0x2aaaaaab, %r14, %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, %r14d
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, %r14d
jne 0x1bf9c
movq %r13, %rdi
movq 0x8(%rsp), %rsi
callq 0x1a9c6
movl $0x1, %eax
cmpl 0x28(%rbx), %ebp
jg 0x1bef6
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jge 0x1befa
addl %eax, 0x78(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0xb544
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
callq 0x1ad72
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1bf42
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5360
movq (%rsp), %rdi
movq %r13, %rsi
callq 0xb14e
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x1bf6a
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1bf9c
movq 0x48(%rsp), %rsi
jmp 0x1bf94
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x1bf9c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5360
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x1be00
movq (%rsp), %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1bfe4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x1bfe4
jmp 0x1c013
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xb116
jmp 0x1c016
jmp 0x1c013
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x1c016
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x1c016
movq %rax, %rbx
movq (%rsp), %rdi
callq 0xb1d6
movq %rbx, %rdi
callq 0x55e0
nop