// File: /workspace/github_cpp_makefile_star2_O3/Wombozo[P]harmony/src/Scale.cpp
// Function: Scale::Scale(Note*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Scale::Scale(Note *t, const std::string &n) : tonic(t), name(n)
{
    if (!n.compare("Major"))
    {
        intervals = {Interval("major second"),
                     Interval("major third"),
                     Interval("perfect fourth"),
                     Interval("perfect fifth"),
                     Interval("major sixth"),
                     Interval("major seventh")};
        setNotes();
    }
    else if (!n.compare("Minor"))
    {
        intervals = {Interval("major second"),
                     Interval("minor third"),
                     Interval("perfect fourth"),
                     Interval("perfect fifth"),
                     Interval("minor sixth"),
                     Interval("minor seventh")};
        setNotes();
    }
    else
        throw E_SCALE_UNKNOWN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdx, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %rsi, 0x18(%rdi)
leaq 0x20(%rdi), %r14
leaq 0x30(%rdi), %rax
movq %rax, -0x100(%rbp)
movq %rax, 0x20(%rdi)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x663a
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movq $0x0, 0x50(%rbx)
leaq 0x2509(%rip), %rsi      # 0xe2b8
movq %r15, %rdi
callq 0x3070
testl %eax, %eax
movq %r14, -0x108(%rbp)
je 0xc029
leaq 0x24f1(%rip), %rsi      # 0xe2be
movq %r15, %rdi
callq 0x3070
testl %eax, %eax
jne 0xc20d
leaq -0xa8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x23a9(%rip), %rsi      # 0xe198
leaq 0x23ae(%rip), %rdx      # 0xe1a4
leaq -0xb8(%rbp), %rdi
callq 0x5178
leaq -0x1f8(%rbp), %r12
leaq -0xb8(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x1d0(%rbp), %r12
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x2396(%rip), %rsi      # 0xe1c7
leaq 0x239a(%rip), %rdx      # 0xe1d2
leaq -0x98(%rbp), %rdi
callq 0x5178
leaq -0x98(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x1a8(%rbp), %r12
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x2398(%rip), %rsi      # 0xe201
leaq 0x239f(%rip), %rdx      # 0xe20f
leaq -0x78(%rbp), %rdi
callq 0x5178
leaq -0x78(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x180(%rbp), %r12
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x2397(%rip), %rsi      # 0xe232
leaq 0x239d(%rip), %rdx      # 0xe23f
leaq -0x58(%rbp), %rdi
callq 0x5178
leaq -0x58(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x158(%rbp), %r12
leaq -0xe8(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2391(%rip), %rsi      # 0xe261
leaq 0x2395(%rip), %rdx      # 0xe26c
leaq -0xf8(%rbp), %rdi
callq 0x5178
leaq -0xf8(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x130(%rbp), %r12
leaq -0xc8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x2391(%rip), %rsi      # 0xe29c
leaq 0x2397(%rip), %rdx      # 0xe2a9
leaq -0xd8(%rbp), %rdi
callq 0x5178
leaq -0xd8(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x108(%rbp), %rdx
leaq -0x1f8(%rbp), %rsi
movq %rbx, %rdi
callq 0xb9c6
movl $0xc8, %r12d
leaq (%r12,%rbp), %rdi
addq $-0x1f8, %rdi           # imm = 0xFE08
callq 0x780a
addq $-0x28, %r12
cmpq $-0x28, %r12
jne 0xbf49
movq -0xd8(%rbp), %rdi
cmpq %r14, %rdi
je 0xbf7e
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0xbf99
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
leaq -0xa8(%rbp), %r14
leaq -0x88(%rbp), %r15
leaq -0x68(%rbp), %r12
je 0xbfc4
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0x78(%rbp), %rdi
cmpq %r12, %rdi
je 0xbfd9
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0x98(%rbp), %rdi
cmpq %r15, %rdi
je 0xbff4
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0xc00f
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3190
movq %rbx, %rdi
callq 0xbc74
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0xa8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x215d(%rip), %rsi      # 0xe198
leaq 0x2162(%rip), %rdx      # 0xe1a4
leaq -0xb8(%rbp), %rdi
callq 0x5178
leaq -0x1f8(%rbp), %r12
leaq -0xb8(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x1d0(%rbp), %r12
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x2156(%rip), %rsi      # 0xe1d3
leaq 0x215a(%rip), %rdx      # 0xe1de
leaq -0x98(%rbp), %rdi
callq 0x5178
leaq -0x98(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x1a8(%rbp), %r12
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x214c(%rip), %rsi      # 0xe201
leaq 0x2153(%rip), %rdx      # 0xe20f
leaq -0x78(%rbp), %rdi
callq 0x5178
leaq -0x78(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x180(%rbp), %r12
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x214b(%rip), %rsi      # 0xe232
leaq 0x2151(%rip), %rdx      # 0xe23f
leaq -0x58(%rbp), %rdi
callq 0x5178
leaq -0x58(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x158(%rbp), %r12
leaq -0xe8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x2151(%rip), %rsi      # 0xe26d
leaq 0x2155(%rip), %rdx      # 0xe278
leaq -0xf8(%rbp), %rdi
callq 0x5178
leaq -0xf8(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x130(%rbp), %r12
leaq -0xc8(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2153(%rip), %rsi      # 0xe2aa
leaq 0x2159(%rip), %rdx      # 0xe2b7
leaq -0xd8(%rbp), %rdi
callq 0x5178
leaq -0xd8(%rbp), %rsi
movq %r12, %rdi
callq 0x7548
leaq -0x108(%rbp), %rdx
leaq -0x1f8(%rbp), %rsi
movq %rbx, %rdi
callq 0xb9c6
movl $0xc8, %r12d
leaq (%r12,%rbp), %rdi
addq $-0x1f8, %rdi           # imm = 0xFE08
callq 0x780a
addq $-0x28, %r12
cmpq $-0x28, %r12
jne 0xc195
movq -0xd8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc1ca
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0xf8(%rbp), %rdi
cmpq %r15, %rdi
leaq -0xa8(%rbp), %r14
leaq -0x88(%rbp), %r15
leaq -0x68(%rbp), %r12
leaq -0x48(%rbp), %r13
je 0xc1fb
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
jne 0xbfb8
jmp 0xbfc4
movl $0x4, %edi
callq 0x30d0
movl $0x3, (%rax)
leaq 0x6654(%rip), %rsi      # 0x12878
movq %rax, %rdi
xorl %edx, %edx
callq 0x3290
movq %rax, -0x30(%rbp)
movl $0xc8, %r14d
leaq (%r14,%rbp), %rdi
addq $-0x1f8, %rdi           # imm = 0xFE08
callq 0x780a
addq $-0x28, %r14
cmpq $-0x28, %r14
jne 0xc238
movb $0x1, %al
movl %eax, -0x34(%rbp)
jmp 0xc264
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0xd8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc28e
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc28e
jmp 0xc283
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0xf8(%rbp), %rdi
cmpq %r15, %rdi
je 0xc2b8
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc2b8
jmp 0xc2ad
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0xc2e0
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc2e0
jmp 0xc2d5
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0xc308
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc308
jmp 0xc2fd
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0xc339
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc339
jmp 0xc32e
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xc35b
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3190
leaq -0x1f8(%rbp), %r14
cmpq %r12, %r14
sete %al
movl -0x34(%rbp), %ecx
orb %al, %cl
jne 0xc4d2
addq $-0x28, %r12
movq %r12, %rdi
callq 0x780a
cmpq %r14, %r12
jne 0xc373
jmp 0xc4d2
jmp 0xc4ce
movq %rax, -0x30(%rbp)
movl $0xc8, %r15d
leaq (%r15,%rbp), %rdi
addq $-0x1f8, %rdi           # imm = 0xFE08
callq 0x780a
addq $-0x28, %r15
cmpq $-0x28, %r15
jne 0xc398
movb $0x1, %r15b
jmp 0xc3be
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0xd8(%rbp), %rdi
cmpq %r14, %rdi
je 0xc3e4
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc3e4
jmp 0xc3dd
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc40a
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc40a
jmp 0xc403
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0xc42e
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc42e
jmp 0xc427
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0xc452
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc452
jmp 0xc44b
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0xc47f
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc47f
jmp 0xc478
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xc4a1
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3190
leaq -0x1f8(%rbp), %r14
cmpq %r12, %r14
sete %al
orb %al, %r15b
jne 0xc4d2
addq $-0x28, %r12
movq %r12, %rdi
callq 0x780a
cmpq %r14, %r12
jne 0xc4b3
jmp 0xc4d2
jmp 0xc4ce
movq %rax, -0x30(%rbp)
jmp 0xc50f
movq %rax, -0x30(%rbp)
leaq 0x40(%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xc4ea
movq 0x50(%rbx), %rsi
subq %rdi, %rsi
callq 0x3190
movq -0x108(%rbp), %rax
movq (%rax), %rdi
cmpq -0x100(%rbp), %rdi
je 0xc50f
movq -0x100(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x3190
movq %rbx, %rdi
callq 0x9120
movq -0x30(%rbp), %rdi
callq 0x32b0