// File: /workspace/github_cpp_makefile_star2_O1/joao18araujo[P]pierluigi/src/scale.cpp
// Function: Scale::Scale(Note, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Scale::Scale(Note note, string mode){
  this->base_note = note;
  this->mode = mode;
  if(mode == "major"){
    Interval m2 = Interval("m2");
    Interval M2 = Interval("M2");
    vector<Interval> intervals {M2, M2, m2, M2, M2, M2};
    fill_note_set(note, intervals);
  }else if(mode == "minor"){
    Interval m2 = Interval("m2");
    Interval M2 = Interval("M2");
    vector<Interval> intervals {M2, m2, M2, M2, m2, M2};
    fill_note_set(note, intervals);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x30(%rdi), %rax
movq %rax, (%rdi)
movq $0x1, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movl $0x3f800000, 0x20(%rdi) # imm = 0x3F800000
movups %xmm0, 0x28(%rdi)
leaq 0x38(%rdi), %rbp
movq %rbp, %rdi
callq 0x1aa88
leaq 0x90(%rbx), %r15
leaq 0xa0(%rbx), %r14
movq %r14, 0x90(%rbx)
movq $0x0, 0x98(%rbx)
movb $0x0, 0xa0(%rbx)
movq (%r12), %rax
movq %rax, 0x38(%rbx)
leaq 0x40(%rbx), %rdi
leaq 0x8(%r12), %rsi
callq 0x51e0
leaq 0x60(%rbx), %rdi
leaq 0x28(%r12), %rsi
callq 0x51e0
movq 0x48(%r12), %rax
movq 0x4e(%r12), %rcx
movq %rcx, 0x86(%rbx)
movq %rax, 0x80(%rbx)
movq %r15, %rdi
movq %r13, %rsi
callq 0x51e0
leaq 0x1e52e(%rip), %rsi     # 0x3b578
movq %r13, %rdi
callq 0x5100
testl %eax, %eax
je 0x1d3b7
leaq 0x1e51d(%rip), %rsi     # 0x3b57e
movq %r13, %rdi
callq 0x5100
testl %eax, %eax
jne 0x1d742
movq %r14, 0x40(%rsp)
leaq 0xc8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1e029(%rip), %rsi     # 0x3b0b2
leaq 0x1e024(%rip), %rdx     # 0x3b0b4
leaq 0xb8(%rsp), %rdi
movq %r15, 0x48(%rsp)
callq 0xb62c
leaq 0x50(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
movl $0x1, %edx
callq 0x14f5c
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d0d6
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0xa8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1dfcc(%rip), %rsi     # 0x3b0b5
leaq 0x1dfc7(%rip), %rdx     # 0x3b0b7
leaq 0x98(%rsp), %rdi
callq 0xb62c
leaq 0x10(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movl $0x1, %edx
callq 0x14f5c
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d131
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5360
movl 0x10(%rsp), %eax
leaq 0x150(%rsp), %rdi
movl %eax, -0x8(%rdi)
leaq 0x160(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %r13
callq 0xb544
movzwl 0x3c(%rsp), %eax
leaq 0x178(%rsp), %r13
movw %ax, -0x4(%r13)
movl 0x38(%rsp), %eax
movl %eax, -0x8(%r13)
movl 0x50(%rsp), %eax
movl %eax, (%r13)
leaq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
callq 0xb544
movzwl 0x7c(%rsp), %eax
leaq 0x1a8(%rsp), %r13
movw %ax, -0x4(%r13)
movl 0x78(%rsp), %eax
movl %eax, -0x8(%r13)
movl 0x10(%rsp), %eax
movl %eax, (%r13)
leaq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
callq 0xb544
leaq 0x38(%rsp), %r14
movzwl 0x4(%r14), %eax
leaq 0x1d8(%rsp), %r13
movw %ax, -0x4(%r13)
movl (%r14), %eax
movl %eax, -0x8(%r13)
movl -0x28(%r14), %eax
movl %eax, (%r13)
leaq 0x1e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rax
movq %rax, -0x10(%rax)
movq -0x20(%r14), %rsi
movq -0x18(%r14), %rdx
addq %rsi, %rdx
callq 0xb544
movzwl 0x4(%r14), %eax
leaq 0x208(%rsp), %r13
movw %ax, -0x4(%r13)
movl (%r14), %eax
movl %eax, -0x8(%r13)
movl 0x50(%rsp), %eax
movl %eax, (%r13)
leaq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
callq 0xb544
leaq 0x78(%rsp), %rax
movzwl 0x4(%rax), %ecx
leaq 0x238(%rsp), %r13
movw %cx, -0x4(%r13)
movl (%rax), %eax
movl %eax, -0x8(%r13)
movl 0x10(%rsp), %eax
movl %eax, (%r13)
leaq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
callq 0xb544
movzwl 0x4(%r14), %eax
leaq 0x148(%rsp), %rsi
movw %ax, 0x11c(%rsi)
movl (%r14), %eax
movl %eax, 0x118(%rsi)
leaq 0x80(%rsp), %rdi
leaq 0x7(%rsp), %rcx
movl $0x6, %edx
callq 0xb0ca
movq $-0x120, %r14           # imm = 0xFEE0
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x1d320
movq (%r15), %rsi
incq %rsi
callq 0x5360
addq $-0x30, %r15
addq $0x30, %r14
jne 0x1d30c
leaq 0x268(%rsp), %rdi
movq %r12, %rsi
callq 0x1a9c6
leaq 0x118(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x1e03a
leaq 0x268(%rsp), %rsi
leaq 0x118(%rsp), %rdx
movq %rbx, %rdi
callq 0x1d974
leaq 0x118(%rsp), %rdi
callq 0xb17a
leaq 0x2a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d395
movq 0x2a0(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x280(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d6ff
movq 0x280(%rsp), %rsi
jmp 0x1d6f7
movq %r14, 0x40(%rsp)
leaq 0x108(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1dce3(%rip), %rsi     # 0x3b0b2
leaq 0x1dcde(%rip), %rdx     # 0x3b0b4
leaq 0xf8(%rsp), %rdi
movq %rbp, 0x8(%rsp)
movq %r15, 0x48(%rsp)
callq 0xb62c
leaq 0x50(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
movl $0x1, %edx
callq 0x14f5c
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d421
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1dc81(%rip), %rsi     # 0x3b0b5
leaq 0x1dc7c(%rip), %rdx     # 0x3b0b7
leaq 0xd8(%rsp), %rdi
callq 0xb62c
leaq 0x10(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
movl $0x1, %edx
callq 0x14f5c
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d47c
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5360
movl 0x10(%rsp), %eax
leaq 0x150(%rsp), %rdi
movl %eax, -0x8(%rdi)
leaq 0x160(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %r14
movq %r14, %r13
callq 0xb544
movzwl 0x3c(%rsp), %eax
leaq 0x178(%rsp), %r13
movw %ax, -0x4(%r13)
movl 0x38(%rsp), %eax
movl %eax, -0x8(%r13)
movl 0x10(%rsp), %eax
movl %eax, (%r13)
leaq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
callq 0xb544
leaq 0x38(%rsp), %rbp
movzwl 0x4(%rbp), %eax
leaq 0x1a8(%rsp), %r13
movw %ax, -0x4(%r13)
movl (%rbp), %eax
movl %eax, -0x8(%r13)
movl 0x50(%rsp), %eax
movl %eax, (%r13)
leaq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
addq %rsi, %rdx
callq 0xb544
movzwl 0x7c(%rsp), %eax
leaq 0x1d8(%rsp), %r13
movw %ax, -0x4(%r13)
movl 0x78(%rsp), %eax
movl %eax, -0x8(%r13)
movl 0x10(%rsp), %eax
movl %eax, (%r13)
leaq 0x1e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
callq 0xb544
movzwl 0x4(%rbp), %eax
leaq 0x208(%rsp), %r13
movw %ax, -0x4(%r13)
movl (%rbp), %eax
movl %eax, -0x8(%r13)
movl 0x10(%rsp), %eax
movl %eax, (%r13)
leaq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
callq 0xb544
movzwl 0x4(%rbp), %eax
leaq 0x238(%rsp), %r13
movw %ax, -0x4(%r13)
movl (%rbp), %eax
movl %eax, -0x8(%r13)
movl 0x10(%rsp), %eax
movl %eax, (%r13)
leaq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
callq 0xb544
movzwl 0x4(%rbp), %eax
leaq 0x148(%rsp), %rsi
movw %ax, 0x11c(%rsi)
movl (%rbp), %eax
movl %eax, 0x118(%rsi)
leaq 0x80(%rsp), %rdi
leaq 0x7(%rsp), %rcx
movl $0x6, %edx
callq 0xb0ca
movq $-0x120, %r14           # imm = 0xFEE0
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x1d669
movq (%r15), %rsi
incq %rsi
callq 0x5360
addq $-0x30, %r15
addq $0x30, %r14
jne 0x1d655
leaq 0x2c0(%rsp), %rdi
movq %r12, %rsi
callq 0x1a9c6
leaq 0x130(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x1e03a
leaq 0x2c0(%rsp), %rsi
leaq 0x130(%rsp), %rdx
movq %rbx, %rdi
callq 0x1d974
leaq 0x130(%rsp), %rdi
callq 0xb17a
leaq 0x2f8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d6de
movq 0x2f8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x2d8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d6ff
movq 0x2d8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x80(%rsp), %rdi
callq 0xb17a
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d727
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d742
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5360
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbp, 0x8(%rsp)
movq %rax, %r12
leaq 0x118(%rsp), %rdi
callq 0xb17a
jmp 0x1d773
movq %rbp, 0x8(%rsp)
movq %rax, %r12
leaq 0x268(%rsp), %rdi
jmp 0x1d824
movq %rbp, 0x8(%rsp)
jmp 0x1d82b
movq %rbp, 0x8(%rsp)
movq %rax, %r12
leaq 0x268(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0x5963
jmp 0x1d8f0
movq %rbp, 0x8(%rsp)
movq %rax, %r12
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d90b
movq 0xa8(%rsp), %rsi
jmp 0x1d903
movq %rbp, 0x8(%rsp)
jmp 0x1d87e
movq %rbp, 0x8(%rsp)
movq %rax, %r12
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d93a
movq 0xc8(%rsp), %rsi
jmp 0x1d91e
jmp 0x1d932
movq %rax, %r12
leaq 0x130(%rsp), %rdi
callq 0xb17a
jmp 0x1d81c
movq %rax, %r12
leaq 0x2c0(%rsp), %rdi
callq 0xb116
jmp 0x1d82e
movq %rax, %r12
leaq 0x80(%rsp), %rdi
callq 0xb17a
jmp 0x1d8f0
movq %rax, %r12
leaq 0x268(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0x59c9
jmp 0x1d8f0
movq %rax, %r12
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d90b
movq 0xe8(%rsp), %rsi
jmp 0x1d903
movq %rax, %r12
jmp 0x1d90b
movq %rax, %r12
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d93a
movq 0x108(%rsp), %rsi
jmp 0x1d91e
jmp 0x1d937
movq %rax, %r12
jmp 0x1d963
movq %rbp, 0x8(%rsp)
movq %rax, %r12
leaq 0x148(%rsp), %rax
cmpq %r13, %rax
je 0x1d8f0
leaq 0x148(%rsp), %rsi
movq %r13, %rdi
callq 0x5930
jmp 0x1d8f0
movq %rax, %r12
cmpq %r13, %r14
je 0x1d8f0
leaq 0x148(%rsp), %rsi
movq %r13, %rdi
callq 0x5996
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d90b
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d93a
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x1d93a
movq %r15, 0x48(%rsp)
movq %r14, 0x40(%rsp)
movq %rbp, 0x8(%rsp)
movq %rax, %r12
movq 0x48(%rsp), %rax
movq (%rax), %rdi
cmpq 0x40(%rsp), %rdi
je 0x1d959
movq 0x40(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x5360
movq 0x8(%rsp), %rdi
callq 0xb116
movq %rbx, %rdi
callq 0xb51e
movq %r12, %rdi
callq 0x55e0
nop