// File: Manuel123cool[P]smiley/regex.cpp
// Function: MyRegex::testCalculater(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Stack&)
void MyRegex::testCalculater(std::string code, Stack &stack)
{
    if (code.length() < 3)
        return;

    if (!MyRegex::testString(code, ":") || code.at(2) != 'S')
        return;

    std::string firstValue;
    std::string secondValue;
    bool identifier1{ false };
    bool identifier2{ false };
    
    bool firstStart{ false };
    bool secondStart{ false };
    for(const auto &c : code) 
    {    
        if (secondStart)
            secondValue += c;

        if (c == ' ' && firstStart)
            secondStart = true;

        if (firstStart && !secondStart)
            firstValue += c;

        if (c == ' ' && !firstStart)
            firstStart = true; 
    } 
    

    char firstChar[firstValue.length() + 1]; 
    char secondChar[secondValue.length() + 1]; 
        
    std::strcpy(firstChar, firstValue.c_str());    
    std::strcpy(secondChar, secondValue.c_str());    
    
    if (static_cast<int>(firstChar[0]) > 57 && static_cast<int>(firstChar[0]) >= 48)
        identifier1 = true;
                
    if (static_cast<int>(secondChar[0]) > 57 && static_cast<int>(secondChar[0]) >= 48) 
        identifier2 = true;

    if (identifier1 && stack().getTypeByIdent(firstValue) == Variable::STRING)
    {        
        stack().setVariable(
                firstValue, stack().getValueVar(firstValue), Variable::INT); 
        for (const auto &elem : stack().getValueVar(firstValue))
        {
            if (elem == '.')
            {
                stack().setVariable(
                    firstValue, stack().getValueVar(firstValue), Variable::FLOAT); 
                break;
            } 
        }
    }
    if (identifier2 && stack().getTypeByIdent(secondValue) == Variable::STRING)
    {        
        
        stack().setVariable(
                secondValue, stack().getValueVar(secondValue), Variable::INT); 
        for (const auto &elem : stack().getValueVar(secondValue))
        {
            if (elem == '.')
            {
                stack().setVariable(
                    secondValue, stack().getValueVar(secondValue), Variable::FLOAT); 
                break;
            } 
        }
    }

    int firstNum{ 0 };
    int secondNum{ 0 }; 
     
    float firstFloat{ 0.0f };
    float secondFloat{ 0.0f }; 
    
    bool isInt1{ true };

    if (!identifier1)
    {
        for (const auto &elem : firstValue)
        {
            if (elem == '.')
                isInt1 = false;
        }
    }
    else 
    {
        if (stack().getTypeByIdent(firstValue) == Variable::FLOAT)
            isInt1 = false;
    }

    if (isInt1)
    {
        if (identifier1)
            firstNum = std::stoi(stack().getValueVar(firstValue));
        else 
            firstNum = std::stoi(firstValue);
    }
    else
    {
        if (identifier1)
            firstFloat = std::stof(stack().getValueVar(firstValue));
        else 
            firstFloat = std::stof(firstValue);
    } 

    if (identifier2)
    {
        if (stack().getTypeByIdent(secondValue) == Variable::FLOAT)
            secondFloat = std::stof(stack().getValueVar(secondValue));
        else
            secondNum = std::stoi(stack().getValueVar(secondValue));
    }
    else 
    {
        std::cerr << "Error calculating: second value should be a identifier";
        return;
    } 

    if (stack().getTypeByIdent(secondValue) == 2)
    {
        if (isInt1)
        {
            std::cerr << "Types are not the same\n"; 
            return;
        }
    }
    if (!isInt1)
    {
        if (stack().getTypeByIdent(secondValue) == 0)
        {
            std::cerr << "Types are not the same\n"; 
            return;
        }
    }
    if (isInt1)
    { 
        int result{ 0 }; 
        switch (code.at(1))
        {
            case '+':
                result = firstNum + secondNum;
                break;
            case '*':
                result = firstNum * secondNum;
                break;
             case '-':
                result = firstNum - secondNum;
                break;
             case '/':
                result = firstNum / secondNum;
                break;
             default:
                std::cerr << "calculation syntax error";
        }
        stack().setVariable(secondValue, std::to_string(result), Variable::INT); 
    }
    else 
    {
        float result{ 0.0f }; 
        switch (code.at(1))
        {
            case '+':
                result = firstFloat + secondFloat;
                break;
            case '*':
                result = firstFloat * secondFloat;
                break;
             case '-':
                result = firstFloat - secondFloat;
                break;
             case '/':
                result = firstFloat / secondFloat;
                break;
             default:
                std::cerr << "calculation syntax error";
        }
        stack().setVariable(secondValue, std::to_string(result), Variable::FLOAT); 
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x730, %rsp            # imm = 0x730
movq %rdi, -0x5d0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
callq 0x3330
cmpq $0x3, %rax
jae 0xb40a
jmp 0xc93c
movq -0x5d0(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x30e0
leaq -0x51(%rbp), %rdi
movq %rdi, -0x5d8(%rbp)
callq 0x3390
movq -0x5d8(%rbp), %rdx
leaq 0x9d89(%rip), %rsi      # 0x151c1
leaq -0x50(%rbp), %rdi
callq 0x8eb0
jmp 0xb443
leaq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0xa430
movb %al, -0x5d9(%rbp)
jmp 0xb458
movb -0x5d9(%rbp), %cl
movb $0x1, %al
testb $0x1, %cl
movb %al, -0x5da(%rbp)
jne 0xb46d
jmp 0xb49d
movq -0x5d0(%rbp), %rdi
movl $0x2, %esi
callq 0x33c0
movq %rax, -0x5e8(%rbp)
jmp 0xb487
movq -0x5e8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x53, %eax
setne %al
movb %al, -0x5da(%rbp)
movb -0x5da(%rbp), %al
movb %al, -0x5e9(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x3160
leaq -0x51(%rbp), %rdi
callq 0x3270
leaq -0x30(%rbp), %rdi
callq 0x3160
movb -0x5e9(%rbp), %al
testb $0x1, %al
jne 0xb4d0
jmp 0xb50f
jmp 0xc93c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xb4f8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x3160
leaq -0x51(%rbp), %rdi
callq 0x3270
leaq -0x30(%rbp), %rdi
callq 0x3160
jmp 0xc959
leaq -0x88(%rbp), %rdi
callq 0x3300
leaq -0xa8(%rbp), %rdi
callq 0x3300
movq -0x5d0(%rbp), %rax
movb $0x0, -0xa9(%rbp)
movb $0x0, -0xaa(%rbp)
movb $0x0, -0xab(%rbp)
movb $0x0, -0xac(%rbp)
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rdi
callq 0x31e0
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rdi
callq 0x3130
movq %rax, -0xc8(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x9180
testb $0x1, %al
jne 0xb593
jmp 0xb657
leaq -0xc0(%rbp), %rdi
callq 0x91c0
movq %rax, -0xd0(%rbp)
testb $0x1, -0xac(%rbp)
je 0xb5da
movq -0xd0(%rbp), %rax
movsbl (%rax), %esi
leaq -0xa8(%rbp), %rdi
callq 0x3170
jmp 0xb5c7
jmp 0xb5da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xc941
movq -0xd0(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0xb5f9
testb $0x1, -0xab(%rbp)
je 0xb5f9
movb $0x1, -0xac(%rbp)
testb $0x1, -0xab(%rbp)
je 0xb625
testb $0x1, -0xac(%rbp)
jne 0xb625
movq -0xd0(%rbp), %rax
movsbl (%rax), %esi
leaq -0x88(%rbp), %rdi
callq 0x3170
jmp 0xb623
jmp 0xb625
movq -0xd0(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0xb644
testb $0x1, -0xab(%rbp)
jne 0xb644
movb $0x1, -0xab(%rbp)
jmp 0xb646
leaq -0xc0(%rbp), %rdi
callq 0x91e0
jmp 0xb577
leaq -0x88(%rbp), %rdi
callq 0x3330
movq %rax, %rdx
movq %rdx, %rax
incq %rax
movq %rsp, %rcx
movq %rcx, -0xd8(%rbp)
addq $0x10, %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x5f8(%rbp)
movq %rcx, %rsp
movq %rax, -0xe0(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x3330
movq %rax, %rdx
movq %rdx, %rax
incq %rax
addq $0x10, %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x600(%rbp)
movq %rcx, %rsp
movq %rax, -0xe8(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x30d0
movq -0x5f8(%rbp), %rdi
movq %rax, %rsi
callq 0x3210
leaq -0xa8(%rbp), %rdi
callq 0x30d0
movq -0x600(%rbp), %rdi
movq %rax, %rsi
callq 0x3210
movq -0x5f8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
jle 0xb724
movq -0x5f8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x30, %eax
jl 0xb724
movb $0x1, -0xa9(%rbp)
movq -0x600(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
jle 0xb749
movq -0x600(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x30, %eax
jl 0xb749
movb $0x1, -0xaa(%rbp)
movb -0xa9(%rbp), %cl
movb $0x0, -0x109(%rbp)
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x601(%rbp)
je 0xb7be
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x610(%rbp)
jmp 0xb775
leaq -0x108(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x30e0
jmp 0xb78a
movq -0x610(%rbp), %rdi
movb $0x1, -0x109(%rbp)
leaq -0x108(%rbp), %rsi
callq 0x5430
movl %eax, -0x614(%rbp)
jmp 0xb7ac
movl -0x614(%rbp), %eax
cmpl $0x1, %eax
sete %al
movb %al, -0x601(%rbp)
movb -0x601(%rbp), %al
movb %al, -0x615(%rbp)
testb $0x1, -0x109(%rbp)
jne 0xb7d5
jmp 0xb7e1
leaq -0x108(%rbp), %rdi
callq 0x3160
movb -0x615(%rbp), %al
testb $0x1, %al
jne 0xb7f0
jmp 0xbb50
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x620(%rbp)
jmp 0xb802
leaq -0x130(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x30e0
jmp 0xb817
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x628(%rbp)
jmp 0xb829
leaq -0x170(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x30e0
jmp 0xb83e
movq -0x628(%rbp), %rsi
leaq -0x150(%rbp), %rdi
leaq -0x170(%rbp), %rdx
callq 0x5200
jmp 0xb85a
movq -0x620(%rbp), %rdi
leaq -0x130(%rbp), %rsi
leaq -0x150(%rbp), %rdx
xorl %ecx, %ecx
callq 0x50b0
jmp 0xb878
leaq -0x150(%rbp), %rdi
callq 0x3160
leaq -0x170(%rbp), %rdi
callq 0x3160
leaq -0x130(%rbp), %rdi
callq 0x3160
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x630(%rbp)
jmp 0xb8ae
leaq -0x1b8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x30e0
jmp 0xb8c3
movq -0x630(%rbp), %rsi
leaq -0x198(%rbp), %rdi
leaq -0x1b8(%rbp), %rdx
callq 0x5200
jmp 0xb8df
leaq -0x1b8(%rbp), %rdi
callq 0x3160
leaq -0x198(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rdi
callq 0x31e0
movq %rax, -0x1c0(%rbp)
movq -0x178(%rbp), %rdi
callq 0x3130
movq %rax, -0x1c8(%rbp)
leaq -0x1c0(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
callq 0x9180
testb $0x1, %al
jne 0xb9df
movl $0x4, -0x1cc(%rbp)
jmp 0xbb2f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
testb $0x1, -0x109(%rbp)
jne 0xb960
jmp 0xb96c
leaq -0x108(%rbp), %rdi
callq 0x3160
jmp 0xc941
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xb9b1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xb9a5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x150(%rbp), %rdi
callq 0x3160
leaq -0x170(%rbp), %rdi
callq 0x3160
leaq -0x130(%rbp), %rdi
callq 0x3160
jmp 0xc941
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x3160
jmp 0xc941
leaq -0x1c0(%rbp), %rdi
callq 0x91c0
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0xbb1c
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x638(%rbp)
jmp 0xba17
leaq -0x1f8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x30e0
jmp 0xba2c
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x640(%rbp)
jmp 0xba3e
leaq -0x238(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x30e0
jmp 0xba53
movq -0x640(%rbp), %rsi
leaq -0x218(%rbp), %rdi
leaq -0x238(%rbp), %rdx
callq 0x5200
jmp 0xba6f
movq -0x638(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
leaq -0x218(%rbp), %rdx
movl $0x2, %ecx
callq 0x50b0
jmp 0xba90
leaq -0x218(%rbp), %rdi
callq 0x3160
leaq -0x238(%rbp), %rdi
callq 0x3160
leaq -0x1f8(%rbp), %rdi
callq 0x3160
movl $0x4, -0x1cc(%rbp)
jmp 0xbb2f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xbb3d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xbb0e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xbb02
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x218(%rbp), %rdi
callq 0x3160
leaq -0x238(%rbp), %rdi
callq 0x3160
leaq -0x1f8(%rbp), %rdi
callq 0x3160
jmp 0xbb3d
jmp 0xbb1e
leaq -0x1c0(%rbp), %rdi
callq 0x91e0
jmp 0xb91f
leaq -0x198(%rbp), %rdi
callq 0x3160
jmp 0xbb4e
leaq -0x198(%rbp), %rdi
callq 0x3160
jmp 0xc941
jmp 0xbb50
movb -0xaa(%rbp), %cl
movb $0x0, -0x259(%rbp)
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x641(%rbp)
je 0xbbc5
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x650(%rbp)
jmp 0xbb7c
leaq -0x258(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xbb91
movq -0x650(%rbp), %rdi
movb $0x1, -0x259(%rbp)
leaq -0x258(%rbp), %rsi
callq 0x5430
movl %eax, -0x654(%rbp)
jmp 0xbbb3
movl -0x654(%rbp), %eax
cmpl $0x1, %eax
sete %al
movb %al, -0x641(%rbp)
movb -0x641(%rbp), %al
movb %al, -0x655(%rbp)
testb $0x1, -0x259(%rbp)
jne 0xbbdc
jmp 0xbbe8
leaq -0x258(%rbp), %rdi
callq 0x3160
movb -0x655(%rbp), %al
testb $0x1, %al
jne 0xbbf7
jmp 0xbf57
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x660(%rbp)
jmp 0xbc09
leaq -0x280(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xbc1e
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x668(%rbp)
jmp 0xbc30
leaq -0x2c0(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xbc45
movq -0x668(%rbp), %rsi
leaq -0x2a0(%rbp), %rdi
leaq -0x2c0(%rbp), %rdx
callq 0x5200
jmp 0xbc61
movq -0x660(%rbp), %rdi
leaq -0x280(%rbp), %rsi
leaq -0x2a0(%rbp), %rdx
xorl %ecx, %ecx
callq 0x50b0
jmp 0xbc7f
leaq -0x2a0(%rbp), %rdi
callq 0x3160
leaq -0x2c0(%rbp), %rdi
callq 0x3160
leaq -0x280(%rbp), %rdi
callq 0x3160
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x670(%rbp)
jmp 0xbcb5
leaq -0x308(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xbcca
movq -0x670(%rbp), %rsi
leaq -0x2e8(%rbp), %rdi
leaq -0x308(%rbp), %rdx
callq 0x5200
jmp 0xbce6
leaq -0x308(%rbp), %rdi
callq 0x3160
leaq -0x2e8(%rbp), %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rdi
callq 0x31e0
movq %rax, -0x310(%rbp)
movq -0x2c8(%rbp), %rdi
callq 0x3130
movq %rax, -0x318(%rbp)
leaq -0x310(%rbp), %rdi
leaq -0x318(%rbp), %rsi
callq 0x9180
testb $0x1, %al
jne 0xbde6
movl $0x6, -0x1cc(%rbp)
jmp 0xbf36
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
testb $0x1, -0x259(%rbp)
jne 0xbd67
jmp 0xbd73
leaq -0x258(%rbp), %rdi
callq 0x3160
jmp 0xc941
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xbdb8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xbdac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x2a0(%rbp), %rdi
callq 0x3160
leaq -0x2c0(%rbp), %rdi
callq 0x3160
leaq -0x280(%rbp), %rdi
callq 0x3160
jmp 0xc941
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x308(%rbp), %rdi
callq 0x3160
jmp 0xc941
leaq -0x310(%rbp), %rdi
callq 0x91c0
movq %rax, -0x320(%rbp)
movq -0x320(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0xbf23
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x678(%rbp)
jmp 0xbe1e
leaq -0x340(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xbe33
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x680(%rbp)
jmp 0xbe45
leaq -0x380(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xbe5a
movq -0x680(%rbp), %rsi
leaq -0x360(%rbp), %rdi
leaq -0x380(%rbp), %rdx
callq 0x5200
jmp 0xbe76
movq -0x678(%rbp), %rdi
leaq -0x340(%rbp), %rsi
leaq -0x360(%rbp), %rdx
movl $0x2, %ecx
callq 0x50b0
jmp 0xbe97
leaq -0x360(%rbp), %rdi
callq 0x3160
leaq -0x380(%rbp), %rdi
callq 0x3160
leaq -0x340(%rbp), %rdi
callq 0x3160
movl $0x6, -0x1cc(%rbp)
jmp 0xbf36
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xbf44
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xbf15
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xbf09
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x360(%rbp), %rdi
callq 0x3160
leaq -0x380(%rbp), %rdi
callq 0x3160
leaq -0x340(%rbp), %rdi
callq 0x3160
jmp 0xbf44
jmp 0xbf25
leaq -0x310(%rbp), %rdi
callq 0x91e0
jmp 0xbd26
leaq -0x2e8(%rbp), %rdi
callq 0x3160
jmp 0xbf55
leaq -0x2e8(%rbp), %rdi
callq 0x3160
jmp 0xc941
jmp 0xbf57
movl $0x0, -0x384(%rbp)
movl $0x0, -0x388(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x38c(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x390(%rbp)
movb $0x1, -0x391(%rbp)
testb $0x1, -0xa9(%rbp)
jne 0xc020
leaq -0x88(%rbp), %rax
movq %rax, -0x3a0(%rbp)
movq -0x3a0(%rbp), %rdi
callq 0x31e0
movq %rax, -0x3a8(%rbp)
movq -0x3a0(%rbp), %rdi
callq 0x3130
movq %rax, -0x3b0(%rbp)
leaq -0x3a8(%rbp), %rdi
leaq -0x3b0(%rbp), %rsi
callq 0x9180
testb $0x1, %al
jne 0xbfe2
jmp 0xc01b
leaq -0x3a8(%rbp), %rdi
callq 0x91c0
movq %rax, -0x3b8(%rbp)
movq -0x3b8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0xc00b
movb $0x0, -0x391(%rbp)
jmp 0xc00d
leaq -0x3a8(%rbp), %rdi
callq 0x91e0
jmp 0xbfc9
jmp 0xc0a1
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x688(%rbp)
jmp 0xc032
leaq -0x3d8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x30e0
jmp 0xc047
movq -0x688(%rbp), %rdi
leaq -0x3d8(%rbp), %rsi
callq 0x5430
movl %eax, -0x68c(%rbp)
jmp 0xc062
leaq -0x3d8(%rbp), %rdi
callq 0x3160
movl -0x68c(%rbp), %eax
cmpl $0x2, %eax
jne 0xc09f
movb $0x0, -0x391(%rbp)
jmp 0xc09f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x3d8(%rbp), %rdi
callq 0x3160
jmp 0xc941
jmp 0xc0a1
testb $0x1, -0x391(%rbp)
je 0xc1a6
testb $0x1, -0xa9(%rbp)
je 0xc178
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x698(%rbp)
jmp 0xc0cd
leaq -0x418(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x30e0
jmp 0xc0e2
movq -0x698(%rbp), %rsi
leaq -0x3f8(%rbp), %rdi
leaq -0x418(%rbp), %rdx
callq 0x5200
jmp 0xc0fe
xorl %eax, %eax
movl %eax, %esi
leaq -0x3f8(%rbp), %rdi
movl $0xa, %edx
callq 0x92b0
movl %eax, -0x69c(%rbp)
jmp 0xc11b
movl -0x69c(%rbp), %eax
movl %eax, -0x384(%rbp)
leaq -0x3f8(%rbp), %rdi
callq 0x3160
leaq -0x418(%rbp), %rdi
callq 0x3160
jmp 0xc1a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xc167
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x3f8(%rbp), %rdi
callq 0x3160
leaq -0x418(%rbp), %rdi
callq 0x3160
jmp 0xc941
xorl %eax, %eax
movl %eax, %esi
leaq -0x88(%rbp), %rdi
movl $0xa, %edx
callq 0x92b0
movl %eax, -0x6a0(%rbp)
jmp 0xc195
movl -0x6a0(%rbp), %eax
movl %eax, -0x384(%rbp)
jmp 0xc29d
testb $0x1, -0xa9(%rbp)
je 0xc271
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x6a8(%rbp)
jmp 0xc1c5
leaq -0x458(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x30e0
jmp 0xc1da
movq -0x6a8(%rbp), %rsi
leaq -0x438(%rbp), %rdi
leaq -0x458(%rbp), %rdx
callq 0x5200
jmp 0xc1f6
xorl %eax, %eax
movl %eax, %esi
leaq -0x438(%rbp), %rdi
callq 0x9270
movss %xmm0, -0x6ac(%rbp)
jmp 0xc210
movss -0x6ac(%rbp), %xmm0
movss %xmm0, -0x38c(%rbp)
leaq -0x438(%rbp), %rdi
callq 0x3160
leaq -0x458(%rbp), %rdi
callq 0x3160
jmp 0xc29b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xc260
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x438(%rbp), %rdi
callq 0x3160
leaq -0x458(%rbp), %rdi
callq 0x3160
jmp 0xc941
xorl %eax, %eax
movl %eax, %esi
leaq -0x88(%rbp), %rdi
callq 0x9270
movss %xmm0, -0x6b0(%rbp)
jmp 0xc28b
movss -0x6b0(%rbp), %xmm0
movss %xmm0, -0x38c(%rbp)
jmp 0xc29d
testb $0x1, -0xaa(%rbp)
je 0xc4a4
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x6b8(%rbp)
jmp 0xc2bc
leaq -0x478(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xc2d1
movq -0x6b8(%rbp), %rdi
leaq -0x478(%rbp), %rsi
callq 0x5430
movl %eax, -0x6bc(%rbp)
jmp 0xc2ec
leaq -0x478(%rbp), %rdi
callq 0x3160
movl -0x6bc(%rbp), %eax
cmpl $0x2, %eax
jne 0xc3e5
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x6c8(%rbp)
jmp 0xc319
leaq -0x4b8(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xc32e
movq -0x6c8(%rbp), %rsi
leaq -0x498(%rbp), %rdi
leaq -0x4b8(%rbp), %rdx
callq 0x5200
jmp 0xc34a
xorl %eax, %eax
movl %eax, %esi
leaq -0x498(%rbp), %rdi
callq 0x9270
movss %xmm0, -0x6cc(%rbp)
jmp 0xc364
movss -0x6cc(%rbp), %xmm0
movss %xmm0, -0x390(%rbp)
leaq -0x498(%rbp), %rdi
callq 0x3160
leaq -0x4b8(%rbp), %rdi
callq 0x3160
jmp 0xc4a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x478(%rbp), %rdi
callq 0x3160
jmp 0xc941
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xc3d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x498(%rbp), %rdi
callq 0x3160
leaq -0x4b8(%rbp), %rdi
callq 0x3160
jmp 0xc941
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x6d8(%rbp)
jmp 0xc3f7
leaq -0x4f8(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xc40c
movq -0x6d8(%rbp), %rsi
leaq -0x4d8(%rbp), %rdi
leaq -0x4f8(%rbp), %rdx
callq 0x5200
jmp 0xc428
xorl %eax, %eax
movl %eax, %esi
leaq -0x4d8(%rbp), %rdi
movl $0xa, %edx
callq 0x92b0
movl %eax, -0x6dc(%rbp)
jmp 0xc445
movl -0x6dc(%rbp), %eax
movl %eax, -0x388(%rbp)
leaq -0x4d8(%rbp), %rdi
callq 0x3160
leaq -0x4f8(%rbp), %rdi
callq 0x3160
jmp 0xc4a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xc491
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x4d8(%rbp), %rdi
callq 0x3160
leaq -0x4f8(%rbp), %rdi
callq 0x3160
jmp 0xc941
jmp 0xc4c8
movq 0x10b45(%rip), %rdi     # 0x1cff0
leaq 0x8d11(%rip), %rsi      # 0x151c3
callq 0x3220
jmp 0xc4b9
movl $0x1, -0x1cc(%rbp)
jmp 0xc91a
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x6e8(%rbp)
jmp 0xc4da
leaq -0x518(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xc4ef
movq -0x6e8(%rbp), %rdi
leaq -0x518(%rbp), %rsi
callq 0x5430
movl %eax, -0x6ec(%rbp)
jmp 0xc50a
leaq -0x518(%rbp), %rdi
callq 0x3160
movl -0x6ec(%rbp), %eax
cmpl $0x2, %eax
jne 0xc56d
testb $0x1, -0x391(%rbp)
je 0xc56b
movq 0x10abf(%rip), %rdi     # 0x1cff0
leaq 0x8cc2(%rip), %rsi      # 0x151fa
callq 0x3220
jmp 0xc53f
movl $0x1, -0x1cc(%rbp)
jmp 0xc91a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x518(%rbp), %rdi
callq 0x3160
jmp 0xc941
jmp 0xc56d
testb $0x1, -0x391(%rbp)
jne 0xc616
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x6f8(%rbp)
jmp 0xc58c
leaq -0x538(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xc5a1
movq -0x6f8(%rbp), %rdi
leaq -0x538(%rbp), %rsi
callq 0x5430
movl %eax, -0x6fc(%rbp)
jmp 0xc5bc
leaq -0x538(%rbp), %rdi
callq 0x3160
movl -0x6fc(%rbp), %eax
cmpl $0x0, %eax
jne 0xc614
movq 0x10a16(%rip), %rdi     # 0x1cff0
leaq 0x8c19(%rip), %rsi      # 0x151fa
callq 0x3220
jmp 0xc5e8
movl $0x1, -0x1cc(%rbp)
jmp 0xc91a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x538(%rbp), %rdi
callq 0x3160
jmp 0xc941
jmp 0xc616
testb $0x1, -0x391(%rbp)
je 0xc78f
movq -0x5d0(%rbp), %rdi
movl $0x0, -0x53c(%rbp)
movl $0x1, %esi
callq 0x33c0
movq %rax, -0x708(%rbp)
jmp 0xc647
movq -0x708(%rbp), %rax
movsbl (%rax), %eax
addl $-0x2a, %eax
movl %eax, %ecx
movq %rcx, -0x710(%rbp)
subl $0x5, %eax
ja 0xc6cb
movq -0x710(%rbp), %rax
leaq 0x8b30(%rip), %rcx      # 0x151a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x384(%rbp), %eax
addl -0x388(%rbp), %eax
movl %eax, -0x53c(%rbp)
jmp 0xc6e2
movl -0x384(%rbp), %eax
imull -0x388(%rbp), %eax
movl %eax, -0x53c(%rbp)
jmp 0xc6e2
movl -0x384(%rbp), %eax
subl -0x388(%rbp), %eax
movl %eax, -0x53c(%rbp)
jmp 0xc6e2
movl -0x384(%rbp), %eax
cltd
idivl -0x388(%rbp)
movl %eax, -0x53c(%rbp)
jmp 0xc6e2
movq 0x1091e(%rip), %rdi     # 0x1cff0
leaq 0x8b39(%rip), %rsi      # 0x15212
callq 0x3220
jmp 0xc6e0
jmp 0xc6e2
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x718(%rbp)
jmp 0xc6f4
leaq -0x560(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xc709
movl -0x53c(%rbp), %esi
leaq -0x580(%rbp), %rdi
callq 0xcb70
jmp 0xc71d
movq -0x718(%rbp), %rdi
leaq -0x560(%rbp), %rsi
leaq -0x580(%rbp), %rdx
xorl %ecx, %ecx
callq 0x50b0
jmp 0xc73b
leaq -0x580(%rbp), %rdi
callq 0x3160
leaq -0x560(%rbp), %rdi
callq 0x3160
jmp 0xc910
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xc77e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x580(%rbp), %rdi
callq 0x3160
leaq -0x560(%rbp), %rdi
callq 0x3160
jmp 0xc941
movq -0x5d0(%rbp), %rdi
movl $0x0, -0x584(%rbp)
movl $0x1, %esi
callq 0x33c0
movq %rax, -0x720(%rbp)
jmp 0xc7b3
movq -0x720(%rbp), %rax
movsbl (%rax), %eax
addl $-0x2a, %eax
movl %eax, %ecx
movq %rcx, -0x728(%rbp)
subl $0x5, %eax
ja 0xc84d
movq -0x728(%rbp), %rax
leaq 0x89ac(%rip), %rcx      # 0x15188
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movss -0x38c(%rbp), %xmm0
addss -0x390(%rbp), %xmm0
movss %xmm0, -0x584(%rbp)
jmp 0xc864
movss -0x38c(%rbp), %xmm0
mulss -0x390(%rbp), %xmm0
movss %xmm0, -0x584(%rbp)
jmp 0xc864
movss -0x38c(%rbp), %xmm0
subss -0x390(%rbp), %xmm0
movss %xmm0, -0x584(%rbp)
jmp 0xc864
movss -0x38c(%rbp), %xmm0
divss -0x390(%rbp), %xmm0
movss %xmm0, -0x584(%rbp)
jmp 0xc864
movq 0x1079c(%rip), %rdi     # 0x1cff0
leaq 0x89b7(%rip), %rsi      # 0x15212
callq 0x3220
jmp 0xc862
jmp 0xc864
movq -0x10(%rbp), %rdi
callq 0xdf30
movq %rax, -0x730(%rbp)
jmp 0xc876
leaq -0x5a8(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x30e0
jmp 0xc88b
movss -0x584(%rbp), %xmm0
leaq -0x5c8(%rbp), %rdi
callq 0xcc90
jmp 0xc8a1
movq -0x730(%rbp), %rdi
leaq -0x5a8(%rbp), %rsi
leaq -0x5c8(%rbp), %rdx
movl $0x2, %ecx
callq 0x50b0
jmp 0xc8c2
leaq -0x5c8(%rbp), %rdi
callq 0x3160
leaq -0x5a8(%rbp), %rdi
callq 0x3160
jmp 0xc910
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0xc902
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x5c8(%rbp), %rdi
callq 0x3160
leaq -0x5a8(%rbp), %rdi
callq 0x3160
jmp 0xc941
movl $0x0, -0x1cc(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x3160
leaq -0x88(%rbp), %rdi
callq 0x3160
movq %rbp, %rsp
popq %rbp
retq
leaq -0xa8(%rbp), %rdi
callq 0x3160
leaq -0x88(%rbp), %rdi
callq 0x3160
movq -0x60(%rbp), %rdi
callq 0x3380
nopw %cs:(%rax,%rax)
nopl (%rax)