// File: /workspace/github_cpp_makefile_star2_O3/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), %r14
movq %r14, %rdi
callq 0x1aada
leaq 0x90(%rbx), %r15
leaq 0xa0(%rbx), %rbp
movq %rbp, 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 0x1e4ce(%rip), %rsi     # 0x3b578
movq %r13, %rdi
callq 0x5100
testl %eax, %eax
je 0x1d410
leaq 0x1e4bd(%rip), %rsi     # 0x3b57e
movq %r13, %rdi
callq 0x5100
testl %eax, %eax
jne 0x1d790
movq %r14, 0x48(%rsp)
leaq 0xc8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1dfc9(%rip), %rsi     # 0x3b0b2
leaq 0x1dfc4(%rip), %rdx     # 0x3b0b4
leaq 0xb8(%rsp), %rdi
movq %rbp, 0x40(%rsp)
callq 0xb5f8
leaq 0x50(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
movl $0x1, %edx
callq 0x14fd4
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d136
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0xa8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1df6c(%rip), %rsi     # 0x3b0b5
leaq 0x1df67(%rip), %rdx     # 0x3b0b7
leaq 0x98(%rsp), %rdi
callq 0xb5f8
leaq 0x10(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movl $0x1, %edx
callq 0x14fd4
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d191
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
callq 0xb50a
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 0xb50a
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 0xb50a
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 0xb50a
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 0xb50a
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), %rbp
movq %rbp, -0x10(%rbp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
callq 0xb50a
movzwl 0x4(%r14), %eax
leaq 0x148(%rsp), %rsi
movw %ax, 0x11c(%rsi)
movl (%r14), %eax
movl %eax, 0x118(%rsi)
leaq 0x80(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movl $0x6, %edx
callq 0xb094
movq $-0x120, %r14           # imm = 0xFEE0
movq -0x10(%rbp), %rdi
cmpq %rdi, %rbp
je 0x1d379
movq (%rbp), %rsi
incq %rsi
callq 0x5360
addq $-0x30, %rbp
addq $0x30, %r14
jne 0x1d364
leaq 0x268(%rsp), %rdi
movq %r12, %rsi
callq 0x1aa22
leaq 0x118(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x1e03e
leaq 0x268(%rsp), %rsi
leaq 0x118(%rsp), %rdx
movq %rbx, %rdi
callq 0x1d978
leaq 0x118(%rsp), %rdi
callq 0xb144
leaq 0x2a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d3ee
movq 0x2a0(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x280(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d74d
movq 0x280(%rsp), %rsi
jmp 0x1d745
movq %r14, 0x48(%rsp)
leaq 0x108(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1dc8a(%rip), %rsi     # 0x3b0b2
leaq 0x1dc85(%rip), %rdx     # 0x3b0b4
leaq 0xf8(%rsp), %rdi
movq %rbp, 0x40(%rsp)
callq 0xb5f8
leaq 0x50(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
movl $0x1, %edx
callq 0x14fd4
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d475
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1dc2d(%rip), %rsi     # 0x3b0b5
leaq 0x1dc28(%rip), %rdx     # 0x3b0b7
leaq 0xd8(%rsp), %rdi
callq 0xb5f8
leaq 0x10(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
movl $0x1, %edx
callq 0x14fd4
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d4d0
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
callq 0xb50a
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 0xb50a
leaq 0x38(%rsp), %r14
movzwl 0x4(%r14), %eax
leaq 0x1a8(%rsp), %r13
movw %ax, -0x4(%r13)
movl (%r14), %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 0xb50a
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 0xb50a
movzwl 0x4(%r14), %eax
leaq 0x208(%rsp), %r13
movw %ax, -0x4(%r13)
movl (%r14), %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 0xb50a
movzwl 0x4(%r14), %eax
leaq 0x238(%rsp), %r13
movw %ax, -0x4(%r13)
movl (%r14), %eax
movl %eax, -0x8(%r13)
movl 0x10(%rsp), %eax
movl %eax, (%r13)
leaq 0x240(%rsp), %rdi
leaq 0x250(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
callq 0xb50a
movzwl 0x4(%r14), %eax
leaq 0x148(%rsp), %rsi
movw %ax, 0x11c(%rsi)
movl (%r14), %eax
movl %eax, 0x118(%rsi)
leaq 0x80(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movl $0x6, %edx
callq 0xb094
movq $-0x120, %r14           # imm = 0xFEE0
movq -0x10(%rbp), %rdi
cmpq %rdi, %rbp
je 0x1d6b7
movq (%rbp), %rsi
incq %rsi
callq 0x5360
addq $-0x30, %rbp
addq $0x30, %r14
jne 0x1d6a2
leaq 0x2c0(%rsp), %rdi
movq %r12, %rsi
callq 0x1aa22
leaq 0x130(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x1e03e
leaq 0x2c0(%rsp), %rsi
leaq 0x130(%rsp), %rdx
movq %rbx, %rdi
callq 0x1d978
leaq 0x130(%rsp), %rdi
callq 0xb144
leaq 0x2f8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d72c
movq 0x2f8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x2d8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d74d
movq 0x2d8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x80(%rsp), %rdi
callq 0xb144
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d775
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d790
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 %rax, %r12
leaq 0x118(%rsp), %rdi
callq 0xb144
jmp 0x1d7b7
movq %rax, %r12
leaq 0x268(%rsp), %rdi
jmp 0x1d854
jmp 0x1d85b
movq %rax, %r12
leaq 0x268(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0x595d
jmp 0x1d8fe
jmp 0x1d88a
movq %rax, %r12
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d919
movq 0xa8(%rsp), %rsi
jmp 0x1d911
jmp 0x1d8a9
movq %rax, %r12
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d943
movq 0xc8(%rsp), %rsi
jmp 0x1d92c
jmp 0x1d940
movq %rax, %r12
leaq 0x130(%rsp), %rdi
callq 0xb144
jmp 0x1d84c
movq %rax, %r12
leaq 0x2c0(%rsp), %rdi
callq 0xb0e0
jmp 0x1d85e
movq %rax, %r12
leaq 0x80(%rsp), %rdi
callq 0xb144
jmp 0x1d8fe
movq %rax, %r12
leaq 0x268(%rsp), %rdi
leaq 0x148(%rsp), %rsi
callq 0x59c3
jmp 0x1d8fe
movq %rax, %r12
jmp 0x1d8fe
movq %rax, %r12
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d919
movq 0xe8(%rsp), %rsi
jmp 0x1d911
movq %rax, %r12
jmp 0x1d919
movq %rax, %r12
movq 0xf8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1d943
movq 0x108(%rsp), %rsi
jmp 0x1d92c
jmp 0x1d940
movq %rax, %r12
jmp 0x1d967
movq %rax, %r12
leaq 0x148(%rsp), %rsi
movq %r13, %rdi
callq 0x592a
jmp 0x1d8fe
movq %rax, %r12
leaq 0x148(%rsp), %rsi
movq %r13, %rdi
callq 0x5990
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d919
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d943
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x1d943
movq %rbp, 0x40(%rsp)
movq %r14, 0x48(%rsp)
movq %rax, %r12
movq (%r15), %rdi
cmpq 0x40(%rsp), %rdi
je 0x1d95d
movq 0x40(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x5360
movq 0x48(%rsp), %rdi
callq 0xb0e0
movq %rbx, %rdi
callq 0xb4e4
movq %r12, %rdi
callq 0x55e0
nop