// File: /workspace/github_cpp_makefile_star2_O1/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 0x669c
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movq $0x0, 0x50(%rbx)
leaq 0x2409(%rip), %rsi      # 0xe2b8
movq %r15, %rdi
callq 0x3070
testl %eax, %eax
movq %r14, -0x108(%rbp)
je 0xc129
leaq 0x23f1(%rip), %rsi      # 0xe2be
movq %r15, %rdi
callq 0x3070
testl %eax, %eax
jne 0xc30d
leaq -0xa8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x22a9(%rip), %rsi      # 0xe198
leaq 0x22ae(%rip), %rdx      # 0xe1a4
leaq -0xb8(%rbp), %rdi
callq 0x5178
leaq -0x1f8(%rbp), %r12
leaq -0xb8(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x1d0(%rbp), %r12
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x2296(%rip), %rsi      # 0xe1c7
leaq 0x229a(%rip), %rdx      # 0xe1d2
leaq -0x98(%rbp), %rdi
callq 0x5178
leaq -0x98(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x1a8(%rbp), %r12
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x2298(%rip), %rsi      # 0xe201
leaq 0x229f(%rip), %rdx      # 0xe20f
leaq -0x78(%rbp), %rdi
callq 0x5178
leaq -0x78(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x180(%rbp), %r12
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x2297(%rip), %rsi      # 0xe232
leaq 0x229d(%rip), %rdx      # 0xe23f
leaq -0x58(%rbp), %rdi
callq 0x5178
leaq -0x58(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x158(%rbp), %r12
leaq -0xe8(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2291(%rip), %rsi      # 0xe261
leaq 0x2295(%rip), %rdx      # 0xe26c
leaq -0xf8(%rbp), %rdi
callq 0x5178
leaq -0xf8(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x130(%rbp), %r12
leaq -0xc8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x2291(%rip), %rsi      # 0xe29c
leaq 0x2297(%rip), %rdx      # 0xe2a9
leaq -0xd8(%rbp), %rdi
callq 0x5178
leaq -0xd8(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x108(%rbp), %rdx
leaq -0x1f8(%rbp), %rsi
movq %rbx, %rdi
callq 0xbad8
movl $0xc8, %r12d
leaq (%r12,%rbp), %rdi
addq $-0x1f8, %rdi           # imm = 0xFE08
callq 0x786e
addq $-0x28, %r12
cmpq $-0x28, %r12
jne 0xc049
movq -0xd8(%rbp), %rdi
cmpq %r14, %rdi
je 0xc07e
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc099
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 0xc0c4
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0x78(%rbp), %rdi
cmpq %r12, %rdi
je 0xc0d9
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0x98(%rbp), %rdi
cmpq %r15, %rdi
je 0xc0f4
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0xb8(%rbp), %rdi
cmpq %r14, %rdi
je 0xc10f
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3190
movq %rbx, %rdi
callq 0xbd74
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 0x205d(%rip), %rsi      # 0xe198
leaq 0x2062(%rip), %rdx      # 0xe1a4
leaq -0xb8(%rbp), %rdi
callq 0x5178
leaq -0x1f8(%rbp), %r12
leaq -0xb8(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x1d0(%rbp), %r12
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x2056(%rip), %rsi      # 0xe1d3
leaq 0x205a(%rip), %rdx      # 0xe1de
leaq -0x98(%rbp), %rdi
callq 0x5178
leaq -0x98(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x1a8(%rbp), %r12
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x204c(%rip), %rsi      # 0xe201
leaq 0x2053(%rip), %rdx      # 0xe20f
leaq -0x78(%rbp), %rdi
callq 0x5178
leaq -0x78(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x180(%rbp), %r12
leaq -0x48(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x204b(%rip), %rsi      # 0xe232
leaq 0x2051(%rip), %rdx      # 0xe23f
leaq -0x58(%rbp), %rdi
callq 0x5178
leaq -0x58(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x158(%rbp), %r12
leaq -0xe8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x2051(%rip), %rsi      # 0xe26d
leaq 0x2055(%rip), %rdx      # 0xe278
leaq -0xf8(%rbp), %rdi
callq 0x5178
leaq -0xf8(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x130(%rbp), %r12
leaq -0xc8(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2053(%rip), %rsi      # 0xe2aa
leaq 0x2059(%rip), %rdx      # 0xe2b7
leaq -0xd8(%rbp), %rdi
callq 0x5178
leaq -0xd8(%rbp), %rsi
movq %r12, %rdi
callq 0x75ac
leaq -0x108(%rbp), %rdx
leaq -0x1f8(%rbp), %rsi
movq %rbx, %rdi
callq 0xbad8
movl $0xc8, %r12d
leaq (%r12,%rbp), %rdi
addq $-0x1f8, %rdi           # imm = 0xFE08
callq 0x786e
addq $-0x28, %r12
cmpq $-0x28, %r12
jne 0xc295
movq -0xd8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc2ca
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 0xc2fb
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3190
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
jne 0xc0b8
jmp 0xc0c4
movl $0x4, %edi
callq 0x30d0
movl $0x3, (%rax)
leaq 0x6554(%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 0x786e
addq $-0x28, %r14
cmpq $-0x28, %r14
jne 0xc338
movb $0x1, %al
movl %eax, -0x34(%rbp)
jmp 0xc364
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0xd8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc38e
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc38e
jmp 0xc383
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0xf8(%rbp), %rdi
cmpq %r15, %rdi
je 0xc3b8
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc3b8
jmp 0xc3ad
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0xc3e0
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc3e0
jmp 0xc3d5
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0xc408
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc408
jmp 0xc3fd
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0xc439
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc439
jmp 0xc42e
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xc45b
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3190
leaq -0x1f8(%rbp), %r14
cmpq %r12, %r14
sete %al
cmpb $0x0, -0x34(%rbp)
jne 0xc5fa
testb %al, %al
jne 0xc5fa
addq $-0x28, %r12
movq %r12, %rdi
callq 0x786e
cmpq %r14, %r12
jne 0xc47a
jmp 0xc5fa
movq %rax, -0x30(%rbp)
leaq -0x1f8(%rbp), %r12
movl $0x0, -0x34(%rbp)
jmp 0xc45b
movq %rax, -0x30(%rbp)
movl $0xc8, %r15d
leaq (%r15,%rbp), %rdi
addq $-0x1f8, %rdi           # imm = 0xFE08
callq 0x786e
addq $-0x28, %r15
cmpq $-0x28, %r15
jne 0xc4ae
movb $0x1, %r15b
jmp 0xc4d4
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0xd8(%rbp), %rdi
cmpq %r14, %rdi
je 0xc4fa
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc4fa
jmp 0xc4f3
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0xf8(%rbp), %rdi
cmpq %r13, %rdi
je 0xc520
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc520
jmp 0xc519
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0xc544
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc544
jmp 0xc53d
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0xc568
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc568
jmp 0xc561
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0x98(%rbp), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0xc595
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3190
jmp 0xc595
jmp 0xc58e
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xc5b7
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3190
leaq -0x1f8(%rbp), %r14
cmpq %r12, %r14
sete %al
testb %r15b, %r15b
jne 0xc5fa
testb %al, %al
jne 0xc5fa
addq $-0x28, %r12
movq %r12, %rdi
callq 0x786e
cmpq %r14, %r12
jne 0xc5cd
jmp 0xc5fa
movq %rax, -0x30(%rbp)
leaq -0x1f8(%rbp), %r12
xorl %r15d, %r15d
jmp 0xc5b7
movq %rax, -0x30(%rbp)
jmp 0xc637
movq %rax, -0x30(%rbp)
leaq 0x40(%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xc612
movq 0x50(%rbx), %rsi
subq %rdi, %rsi
callq 0x3190
movq -0x108(%rbp), %rax
movq (%rax), %rdi
cmpq -0x100(%rbp), %rdi
je 0xc637
movq -0x100(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x3190
movq %rbx, %rdi
callq 0x91c0
movq -0x30(%rbp), %rdi
callq 0x32b0