// File: /workspace/github_cpp_makefile_star2_O1/joao18araujo[P]pierluigi/src/scale.cpp
// Function: Scale::fill_note_set(Note, std::vector<Interval, std::allocator<Interval>>)
void Scale::fill_note_set(Note note, vector<Interval> intervals){
  permitted_notes.clear();
  permitted_notes.insert(note.full_note());

  for(auto & interval : intervals){
    note = Interval::interval_to_note(note, interval);
    permitted_notes.insert(note.full_note());
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
callq 0xb416
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1a9ac
leaq 0x8(%rsp), %rdx
movq %r14, (%rdx)
movq %r14, 0x88(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x1e0d6
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d9d9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5360
movq (%r15), %r12
movq 0x8(%r15), %rax
movq %rax, 0x80(%rsp)
cmpq %rax, %r12
je 0x1dbc2
leaq 0x8(%rbx), %rax
movq %rax, 0x78(%rsp)
leaq 0x18(%rsp), %rbp
leaq 0x28(%rbx), %rax
movq %rax, 0x70(%rsp)
leaq 0x48(%rbx), %rax
movq %rax, 0x68(%rsp)
leaq 0xc0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1a9c6
movl (%r12), %eax
movl %eax, 0x90(%rsp)
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x8(%r12), %rsi
movq 0x10(%r12), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %r13
movq %r13, %rdi
callq 0xb544
movzwl 0x2c(%r12), %eax
movw %ax, 0x24(%r13)
movl 0x28(%r12), %eax
movl %eax, 0x20(%r13)
leaq 0x10(%rsp), %rdi
movq %r14, %r15
movq %r14, %rsi
leaq 0x90(%rsp), %rdx
callq 0x15a46
movq 0x10(%rsp), %rax
movq %rax, (%rbx)
movq 0x78(%rsp), %rdi
movq %rbp, %rsi
callq 0x51e0
movq 0x70(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x51e0
movq 0x40(%rbp), %rax
movq 0x46(%rbp), %rcx
movq 0x68(%rsp), %rdx
movq %rcx, 0x6(%rdx)
movq %rax, (%rdx)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1dadc
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x1daf8
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x1db1d
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x1db42
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x1db67
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1a9ac
movq 0x88(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movq %r14, %rsi
leaq 0x8(%rsp), %rdx
callq 0x1e0d6
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1dbad
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5360
addq $0x30, %r12
cmpq 0x80(%rsp), %r12
movq %r15, %r14
jne 0x1da19
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x1dbf9
movq %rax, %rbx
jmp 0x1dc3f
movq %rax, %rbx
jmp 0x1dc1a
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1dc4c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x1dc4c
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xb116
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x1dc3f
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0xc0(%rsp), %rdi
callq 0xb116
movq %rbx, %rdi
callq 0x55e0