// File: /workspace/github_cpp_makefile_star2_O1/Wombozo[P]harmony/src/Interval.cpp
// Function: Interval::Interval(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Interval::Interval(const std::string &str) : name(str)
{
    if (!str.compare("minor second"))
    {
        type = 2;
        semitones = 1;
    }
    else if (!str.compare("major second"))
    {
        type = 2;
        semitones = 2;
    }
    else if (!str.compare("augmented second"))
    {
        type = 2;
        semitones = 3;
    }
    else if (!str.compare("diminished third"))
    {
        type = 3;
        semitones = 2;
    }
    else if (!str.compare("minor third"))
    {
        type = 3;
        semitones = 3;
    }
    else if (!str.compare("major third"))
    {
        type = 3;
        semitones = 4;
    }
    else if (!str.compare("augmented third"))
    {
        type = 3;
        semitones = 5;
    }
    else if (!str.compare("diminished fourth"))
    {
        type = 4;
        semitones = 4;
    }
    else if (!str.compare("perfect fourth"))
    {
        type = 4;
        semitones = 5;
    }
    else if (!str.compare("augmented fourth"))
    {
        type = 4;
        semitones = 6;
    }
    else if (!str.compare("diminished fifth"))
    {
        type = 5;
        semitones = 6;
    }
    else if (!str.compare("perfect fifth"))
    {
        type = 5;
        semitones = 7;
    }
    else if (!str.compare("augmented fifth"))
    {
        type = 5;
        semitones = 8;
    }
    else if (!str.compare("diminished sixth"))
    {
        type = 6;
        semitones = 7;
    }
    else if (!str.compare("minor sixth"))
    {
        type = 6;
        semitones = 8;
    }
    else if (!str.compare("major sixth"))
    {
        type = 6;
        semitones = 9;
    }
    else if (!str.compare("augmented sixth"))
    {
        type = 6;
        semitones = 10;
    }
    else if (!str.compare("diminished seventh"))
    {
        type = 7;
        semitones = 9;
    }
    else if (!str.compare("minor seventh"))
    {
        type = 7;
        semitones = 10;
    }
    else if (!str.compare("major seventh"))
    {
        type = 7;
        semitones = 11;
    }
    else
    {
        throw E_INTERVAL;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq (%rsi), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0x669c
leaq 0x6bae(%rip), %rsi      # 0xe18b
movq %r14, %rdi
callq 0x3070
testl %eax, %eax
je 0x77fd
leaq 0x6ba4(%rip), %rsi      # 0xe198
movq %r14, %rdi
callq 0x3070
movl $0x2, %r13d
testl %eax, %eax
je 0x780b
leaq 0x6b94(%rip), %rsi      # 0xe1a5
movq %r14, %rdi
callq 0x3070
testl %eax, %eax
je 0x7805
leaq 0x6b8e(%rip), %rsi      # 0xe1b6
movq %r14, %rdi
callq 0x3070
testl %eax, %eax
je 0x7828
leaq 0x6b88(%rip), %rsi      # 0xe1c7
movq %r14, %rdi
callq 0x3070
movl $0x3, %r12d
testl %eax, %eax
je 0x7830
leaq 0x6b77(%rip), %rsi      # 0xe1d3
movq %r14, %rdi
callq 0x3070
testl %eax, %eax
je 0x7838
leaq 0x6b6c(%rip), %rsi      # 0xe1df
movq %r14, %rdi
callq 0x3070
movl $0x5, %r13d
testl %eax, %eax
je 0x7811
leaq 0x6b5f(%rip), %rsi      # 0xe1ef
movq %r14, %rdi
callq 0x3070
movl $0x4, %r12d
testl %eax, %eax
je 0x7838
leaq 0x6b54(%rip), %rsi      # 0xe201
movq %r14, %rdi
callq 0x3070
testl %eax, %eax
je 0x7811
leaq 0x6b4c(%rip), %rsi      # 0xe210
movq %r14, %rdi
callq 0x3070
movl $0x6, %r13d
testl %eax, %eax
je 0x7811
leaq 0x6b40(%rip), %rsi      # 0xe221
movq %r14, %rdi
callq 0x3070
movl $0x5, %r12d
testl %eax, %eax
je 0x7811
leaq 0x6b34(%rip), %rsi      # 0xe232
movq %r14, %rdi
callq 0x3070
movl $0x7, %r13d
testl %eax, %eax
je 0x7811
leaq 0x6b25(%rip), %rsi      # 0xe240
movq %r14, %rdi
callq 0x3070
testl %eax, %eax
je 0x7840
leaq 0x6b1e(%rip), %rsi      # 0xe250
movq %r14, %rdi
callq 0x3070
movl $0x6, %r12d
testl %eax, %eax
je 0x7811
leaq 0x6b12(%rip), %rsi      # 0xe261
movq %r14, %rdi
callq 0x3070
testl %eax, %eax
je 0x7840
leaq 0x6b07(%rip), %rsi      # 0xe26d
movq %r14, %rdi
callq 0x3070
movl $0x9, %r13d
testl %eax, %eax
je 0x7811
leaq 0x6af6(%rip), %rsi      # 0xe279
movq %r14, %rdi
callq 0x3070
testl %eax, %eax
je 0x7848
leaq 0x6aef(%rip), %rsi      # 0xe289
movq %r14, %rdi
callq 0x3070
movl $0x7, %r12d
testl %eax, %eax
je 0x7811
leaq 0x6ae9(%rip), %rsi      # 0xe29c
movq %r14, %rdi
callq 0x3070
testl %eax, %eax
je 0x7848
leaq 0x6ae0(%rip), %rsi      # 0xe2aa
movq %r14, %rdi
callq 0x3070
movl $0xb, %r13d
testl %eax, %eax
je 0x7811
movl $0x4, %edi
callq 0x30d0
movl $0x0, (%rax)
leaq 0xb085(%rip), %rsi      # 0x12878
movq %rax, %rdi
xorl %edx, %edx
callq 0x3290
movl $0x1, %r13d
jmp 0x780b
movl $0x3, %r13d
movl $0x2, %r12d
movl %r12d, 0x20(%rbx)
movl %r13d, 0x24(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x3, %r12d
jmp 0x7811
movl $0x3, %r13d
jmp 0x7811
movl $0x4, %r13d
jmp 0x7811
movl $0x8, %r13d
jmp 0x7811
movl $0xa, %r13d
jmp 0x7811
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x7866
movq (%r15), %rsi
incq %rsi
callq 0x3190
movq %r14, %rdi
callq 0x32b0