// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x468, %rsp            # imm = 0x468
movq 0x8(%rdi), %rdx
cmpq $0x3, %rdx
jb 0x9b7f
movq %rsi, %r12
leaq -0x1f0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq %rdi, -0xb8(%rbp)
movq (%rdi), %rsi
addq %rsi, %rdx
leaq -0x200(%rbp), %rdi
callq 0x2a3e
leaq -0x1d0(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x552c(%rip), %rsi      # 0xe205
leaq 0x5526(%rip), %rdx      # 0xe206
leaq -0x1e0(%rbp), %rdi
callq 0x7c60
leaq -0x200(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
callq 0x801c
testb %al, %al
je 0x8ee5
movq -0xb8(%rbp), %rax
movq 0x8(%rax), %rdx
cmpq $0x2, %rdx
jbe 0x9ef0
movq (%rax), %rax
movb 0x2(%rax), %r14b
movq -0x1e0(%rbp), %rdi
cmpq %r15, %rdi
je 0x8d3e
movq -0x1d0(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x200(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8d59
movq -0x1f0(%rbp), %rsi
incq %rsi
callq 0x2170
cmpb $0x53, %r14b
movq -0xb8(%rbp), %rdx
jne 0x9b7f
movq %r12, -0x40(%rbp)
leaq -0xa0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x80(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq 0x8(%rdx), %rbx
testq %rbx, %rbx
je 0x8e22
movq -0xb8(%rbp), %rax
movq (%rax), %r13
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r12d, %r12d
testb $0x1, %r12b
je 0x8dc7
movsbl (%r13,%r14), %esi
leaq -0x90(%rbp), %rdi
callq 0x2120
movb (%r13,%r14), %al
movzbl %r12b, %ecx
testb $0x1, %r15b
movl %ecx, %r12d
movl $0x1, %edx
cmovnel %edx, %r12d
cmpb $0x20, %al
cmovnel %ecx, %r12d
movb $0x1, %cl
testb $0x1, %r15b
je 0x8e09
movl %r15d, %ecx
testb $0x1, %r12b
jne 0x8e09
movsbl %al, %esi
leaq -0xb0(%rbp), %rdi
callq 0x2120
movl %r15d, %ecx
cmpb $0x20, (%r13,%r14)
movzbl %cl, %eax
movzbl %r15b, %r15d
cmovel %eax, %r15d
incq %r14
cmpq %r14, %rbx
jne 0x8daf
movq %rsp, -0x208(%rbp)
movq -0xa8(%rbp), %rbx
movq %rsp, %r14
addq $0x10, %rbx
andq $-0x10, %rbx
movq %r14, %rdi
subq %rbx, %rdi
movq %rdi, %rsp
negq %rbx
movq -0x88(%rbp), %r12
movq %rsp, %r13
addq $0x10, %r12
andq $-0x10, %r12
movq %r13, %r15
subq %r12, %r15
movq %r15, %rsp
negq %r12
movq -0xb0(%rbp), %rsi
callq 0x2140
movq -0x90(%rbp), %rsi
movq %r15, %rdi
callq 0x2140
movb (%r14,%rbx), %al
movb (%r13,%r12), %cl
movb %cl, -0x38(%rbp)
movl %eax, %r13d
cmpb $0x39, %al
jle 0x8f1c
movq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x3b8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x3c8(%rbp), %rdi
callq 0x2a3e
leaq -0x3c8(%rbp), %rsi
movq %r15, %rdi
callq 0x3cba
cmpl $0x1, %eax
sete %bl
jmp 0x8f22
movq -0x1e0(%rbp), %rdi
cmpq %r15, %rdi
je 0x8f00
movq -0x1d0(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x200(%rbp), %rdi
cmpq %rbx, %rdi
je 0x9b7f
movq -0x1f0(%rbp), %rsi
jmp 0x9b77
xorl %ebx, %ebx
movq -0x40(%rbp), %r14
cmpb $0x3a, %r13b
jl 0x8f47
leaq -0x3b8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8f47
movq -0x3b8(%rbp), %rsi
incq %rsi
callq 0x2170
testb %bl, %bl
je 0x91d2
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x1b0(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1c0(%rbp), %rdi
callq 0x2a3e
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r12
leaq -0x398(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x3a8(%rbp), %rdi
callq 0x2a3e
leaq -0x488(%rbp), %rdi
leaq -0x3a8(%rbp), %rdx
movq %r12, %rsi
callq 0x3a6a
leaq -0x1c0(%rbp), %rsi
leaq -0x488(%rbp), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x38c2
leaq -0x478(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9002
movq -0x478(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x3a8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x901d
movq -0x398(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x1c0(%rbp), %rdi
leaq -0x1b0(%rbp), %rax
cmpq %rax, %rdi
je 0x903f
movq -0x1b0(%rbp), %rsi
incq %rsi
callq 0x2170
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x378(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x388(%rbp), %rdi
callq 0x2a3e
leaq -0x70(%rbp), %rdi
leaq -0x388(%rbp), %rdx
movq %r15, %rsi
callq 0x3a6a
movq -0x388(%rbp), %rdi
cmpq %rbx, %rdi
je 0x90a0
movq -0x378(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x68(%rbp), %rax
testq %rax, %rax
je 0x91b9
movq -0x70(%rbp), %rcx
xorl %edx, %edx
cmpb $0x2e, (%rcx,%rdx)
je 0x90c6
incq %rdx
cmpq %rdx, %rax
jne 0x90b3
jmp 0x91b9
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x190(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x2a3e
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r12
leaq -0x358(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x368(%rbp), %rdi
callq 0x2a3e
leaq -0x468(%rbp), %rdi
leaq -0x368(%rbp), %rdx
movq %r12, %rsi
callq 0x3a6a
leaq -0x1a0(%rbp), %rsi
leaq -0x468(%rbp), %rdx
movq %r15, %rdi
movl $0x2, %ecx
callq 0x38c2
leaq -0x458(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x917c
movq -0x458(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x368(%rbp), %rdi
cmpq %rbx, %rdi
je 0x9197
movq -0x358(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x1a0(%rbp), %rdi
leaq -0x190(%rbp), %rax
cmpq %rax, %rdi
je 0x91b9
movq -0x190(%rbp), %rsi
incq %rsi
callq 0x2170
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x91d2
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
cmpb $0x3a, -0x38(%rbp)
jl 0x9222
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x338(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x348(%rbp), %rdi
callq 0x2a3e
leaq -0x348(%rbp), %rsi
movq %r15, %rdi
callq 0x3cba
cmpl $0x1, %eax
sete %bl
jmp 0x9224
xorl %ebx, %ebx
cmpb $0x3a, -0x38(%rbp)
jl 0x9249
leaq -0x338(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9249
movq -0x338(%rbp), %rsi
incq %rsi
callq 0x2170
testb %bl, %bl
je 0x94d4
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x170(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x180(%rbp), %rdi
callq 0x2a3e
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r12
leaq -0x318(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x328(%rbp), %rdi
callq 0x2a3e
leaq -0x448(%rbp), %rdi
leaq -0x328(%rbp), %rdx
movq %r12, %rsi
callq 0x3a6a
leaq -0x180(%rbp), %rsi
leaq -0x448(%rbp), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x38c2
leaq -0x438(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9304
movq -0x438(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x328(%rbp), %rdi
cmpq %rbx, %rdi
je 0x931f
movq -0x318(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0x9341
movq -0x170(%rbp), %rsi
incq %rsi
callq 0x2170
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x2f8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x308(%rbp), %rdi
callq 0x2a3e
leaq -0x70(%rbp), %rdi
leaq -0x308(%rbp), %rdx
movq %r15, %rsi
callq 0x3a6a
movq -0x308(%rbp), %rdi
cmpq %rbx, %rdi
je 0x93a2
movq -0x2f8(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x68(%rbp), %rax
testq %rax, %rax
je 0x94bb
movq -0x70(%rbp), %rcx
xorl %edx, %edx
cmpb $0x2e, (%rcx,%rdx)
je 0x93c8
incq %rdx
cmpq %rdx, %rax
jne 0x93b5
jmp 0x94bb
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x150(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x160(%rbp), %rdi
callq 0x2a3e
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r12
leaq -0x2d8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x2e8(%rbp), %rdi
callq 0x2a3e
leaq -0x428(%rbp), %rdi
leaq -0x2e8(%rbp), %rdx
movq %r12, %rsi
callq 0x3a6a
leaq -0x160(%rbp), %rsi
leaq -0x428(%rbp), %rdx
movq %r15, %rdi
movl $0x2, %ecx
callq 0x38c2
leaq -0x418(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x947e
movq -0x418(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x2e8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x9499
movq -0x2d8(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x160(%rbp), %rdi
leaq -0x150(%rbp), %rax
cmpq %rax, %rdi
je 0x94bb
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x2170
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x94d4
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
cmpb $0x39, %r13b
jle 0x9543
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x2b8(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x2c8(%rbp), %rdi
callq 0x2a3e
leaq -0x2c8(%rbp), %rsi
movq %r15, %rdi
callq 0x3cba
cmpl $0x2, %eax
setne %bl
movq -0x2c8(%rbp), %rdi
cmpq %r14, %rdi
movq -0x40(%rbp), %r14
je 0x9572
movq -0x2b8(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9572
movq -0xa8(%rbp), %rax
testq %rax, %rax
je 0x9570
movq -0xb0(%rbp), %rcx
movb $0x1, %bl
xorl %edx, %edx
xorl %esi, %esi
cmpb $0x2e, (%rcx,%rsi)
movzbl %bl, %ebx
cmovel %edx, %ebx
incq %rsi
cmpq %rsi, %rax
jne 0x955c
jmp 0x9572
movb $0x1, %bl
testb $0x1, %bl
je 0x9676
cmpb $0x3a, %r13b
jl 0x9727
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x130(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x140(%rbp), %rdi
callq 0x2a3e
movb -0x38(%rbp), %r14b
leaq -0x70(%rbp), %rdi
leaq -0x140(%rbp), %rdx
movq %r15, %rsi
callq 0x3a6a
movq -0x70(%rbp), %r12
callq 0x2040
movq %rax, %r15
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl $0x0, (%r15)
leaq -0xc0(%rbp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x21e0
cmpq %r12, (%r13)
je 0x9f27
movslq %eax, %rcx
movq %rax, -0x48(%rbp)
cmpq %rax, %rcx
jne 0x9f3f
movl (%r15), %eax
cmpl $0x22, %eax
je 0x9f3f
testl %eax, %eax
movq -0x40(%rbp), %r12
jne 0x9632
movl -0x2c(%rbp), %eax
movl %eax, (%r15)
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x964b
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x978e
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x978e
cmpb $0x3a, %r13b
jl 0x979b
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x110(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x120(%rbp), %rdi
callq 0x2a3e
movb -0x38(%rbp), %r14b
leaq -0x70(%rbp), %rdi
leaq -0x120(%rbp), %rdx
movq %r15, %rsi
callq 0x3a6a
movq -0x70(%rbp), %r12
callq 0x2040
movq %rax, %r15
movl (%rax), %eax
movl %eax, -0x48(%rbp)
movl $0x0, (%r15)
leaq -0xc0(%rbp), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x21c0
movss %xmm0, -0x2c(%rbp)
cmpq %r12, (%r13)
je 0x9f33
movl (%r15), %eax
testl %eax, %eax
je 0x9800
cmpl $0x22, %eax
movq -0x40(%rbp), %r12
jne 0x980a
leaq 0x49f5(%rip), %rdi      # 0xe117
callq 0x21f0
movb -0x38(%rbp), %r14b
movq -0xb0(%rbp), %r12
callq 0x2040
movq %rax, %r15
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl $0x0, (%r15)
leaq -0x70(%rbp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x21e0
cmpq %r12, (%r13)
je 0x9f03
movslq %eax, %rcx
movq %rax, -0x48(%rbp)
cmpq %rax, %rcx
jne 0x9f1b
movl (%r15), %eax
cmpl $0x22, %eax
je 0x9f1b
testl %eax, %eax
movq -0x40(%rbp), %r12
jne 0x978e
movl -0x2c(%rbp), %eax
movl %eax, (%r15)
xorps %xmm0, %xmm0
movss %xmm0, -0x2c(%rbp)
jmp 0x984d
movb -0x38(%rbp), %r14b
movq -0xb0(%rbp), %r12
callq 0x2040
movq %rax, %r15
movl (%rax), %eax
movl %eax, -0x48(%rbp)
movl $0x0, (%r15)
leaq -0x70(%rbp), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x21c0
movss %xmm0, -0x2c(%rbp)
cmpq %r12, (%r13)
je 0x9f0f
movl (%r15), %eax
testl %eax, %eax
je 0x97f4
cmpl $0x22, %eax
movq -0x40(%rbp), %r12
jne 0x9845
leaq 0x4928(%rip), %rdi      # 0xe117
callq 0x21f0
movl -0x48(%rbp), %eax
movl %eax, (%r15)
movq -0x40(%rbp), %r12
jmp 0x9845
movl -0x48(%rbp), %eax
movl %eax, (%r15)
movq -0x40(%rbp), %r12
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9823
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0x9845
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x2170
movq $0x0, -0x48(%rbp)
cmpb $0x3a, %r14b
jl 0x996c
movq %r12, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x298(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x2a8(%rbp), %rdi
callq 0x2a3e
leaq -0x2a8(%rbp), %rsi
movq %r15, %rdi
callq 0x3cba
movl %eax, %r15d
movq -0x2a8(%rbp), %rdi
cmpq %r14, %rdi
movq -0x40(%rbp), %r14
je 0x98bb
movq -0x298(%rbp), %rsi
incq %rsi
callq 0x2170
cmpl $0x2, %r15d
jne 0x997e
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0xd0(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0xe0(%rbp), %rdi
callq 0x2a3e
leaq -0x70(%rbp), %rdi
leaq -0xe0(%rbp), %rdx
movq %r15, %rsi
callq 0x3a6a
movq -0x70(%rbp), %r12
callq 0x2040
movq %rax, %r15
movl (%rax), %r14d
movl $0x0, (%rax)
leaq -0xc0(%rbp), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x21c0
movss %xmm0, -0x4c(%rbp)
cmpq %r12, (%r13)
je 0x9f4b
movl (%r15), %eax
testl %eax, %eax
je 0x9a66
cmpl $0x22, %eax
movq -0x40(%rbp), %r12
leaq -0xd0(%rbp), %r13
jne 0x9a74
leaq 0x47b0(%rip), %rdi      # 0xe117
callq 0x21f0
movl $0x36, %r13d
leaq 0x488e(%rip), %r15      # 0xe207
jmp 0x9b28
movq %r14, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0xf0(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x100(%rbp), %rdi
callq 0x2a3e
leaq -0x70(%rbp), %rdi
leaq -0x100(%rbp), %rdx
movq %r15, %rsi
callq 0x3a6a
movq -0x70(%rbp), %r13
callq 0x2040
movq %rax, %r15
movl (%rax), %r14d
movl $0x0, (%rax)
leaq -0xc0(%rbp), %r12
movq %r13, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x21e0
cmpq %r13, (%r12)
je 0x9f57
movslq %eax, %rcx
movq %rax, -0x38(%rbp)
cmpq %rax, %rcx
jne 0x9f63
movl (%r15), %eax
cmpl $0x22, %eax
je 0x9f63
testl %eax, %eax
movq -0x40(%rbp), %r12
jne 0x9a21
movl %r14d, (%r15)
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9a3a
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0x9a5c
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x2170
xorps %xmm0, %xmm0
movss %xmm0, -0x4c(%rbp)
jmp 0x9ab0
movl %r14d, (%r15)
movq -0x40(%rbp), %r12
leaq -0xd0(%rbp), %r13
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9a8d
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0xe0(%rbp), %rdi
cmpq %r13, %rdi
je 0x9aa8
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2170
movq $0x0, -0x38(%rbp)
movq %r12, %rdi
callq 0xa8f4
movq %rax, %r15
leaq -0x278(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x288(%rbp), %rdi
callq 0x2a3e
leaq -0x288(%rbp), %rsi
movq %r15, %rdi
callq 0x3cba
movl %eax, %r15d
movq -0x288(%rbp), %rdi
cmpq %r14, %rdi
je 0x9b10
movq -0x278(%rbp), %rsi
incq %rsi
callq 0x2170
cmpl $0x2, %r15d
sete %al
movl $0x17, %r13d
leaq 0x471a(%rip), %r15      # 0xe23e
testb %al, %bl
je 0x9b8e
movq 0x84c1(%rip), %rdi      # 0x11ff0
movq %r15, %rsi
movq %r13, %rdx
callq 0x2190
movq -0x208(%rbp), %rsp
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x9b5d
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x9b7f
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2170
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x1, %bl
jne 0x9c02
movq -0x40(%rbp), %rdi
callq 0xa8f4
movq %rax, %r12
leaq -0x258(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x268(%rbp), %rdi
callq 0x2a3e
leaq -0x268(%rbp), %rsi
movq %r12, %rdi
callq 0x3cba
movl %eax, %r12d
movq -0x268(%rbp), %rdi
cmpq %r14, %rdi
je 0x9bf4
movq -0x258(%rbp), %rsi
incq %rsi
callq 0x2170
testl %r12d, %r12d
je 0x9b28
testb $0x1, %bl
je 0x9c48
movq -0xb8(%rbp), %rax
movq 0x8(%rax), %rdx
cmpq $0x1, %rdx
jbe 0x9f6f
movq (%rax), %rax
movzbl 0x1(%rax), %eax
addl $-0x2a, %eax
cmpl $0x5, %eax
movq -0x40(%rbp), %rbx
ja 0x9d3f
leaq 0x45af(%rip), %rcx      # 0xe1e4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x38(%rbp), %rax
imull -0x48(%rbp), %eax
jmp 0x9cad
movq -0xb8(%rbp), %rax
movq 0x8(%rax), %rdx
cmpq $0x1, %rdx
jbe 0x9f82
movq (%rax), %rax
movzbl 0x1(%rax), %eax
addl $-0x2a, %eax
cmpl $0x5, %eax
movq -0x40(%rbp), %rbx
ja 0x9ecb
leaq 0x4551(%rip), %rcx      # 0xe1cc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movss -0x2c(%rbp), %xmm0
mulss -0x4c(%rbp), %xmm0
jmp 0x9e24
movq -0x48(%rbp), %rax
subl -0x38(%rbp), %eax
jmp 0x9cad
movq -0x38(%rbp), %rax
addl -0x48(%rbp), %eax
jmp 0x9cad
movq -0x48(%rbp), %rax
cltd
idivl -0x38(%rbp)
movq %rax, -0x38(%rbp)
movq %rbx, %rdi
callq 0xa8f4
movq %rax, %rbx
leaq -0x218(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x228(%rbp), %rdi
callq 0x2a3e
movq -0x38(%rbp), %rdi
movl %edi, %r14d
negl %r14d
cmovsl %edi, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x9d6d
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x9d64
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x9d6a
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x9d6d
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x9d0c
addl $-0x3, %r15d
jmp 0x9d6d
movq $0x0, -0x38(%rbp)
movq 0x82a2(%rip), %rdi      # 0x11ff0
leaq 0x4501(%rip), %rsi      # 0xe256
movl $0x18, %edx
callq 0x2190
jmp 0x9cb1
addl $-0x2, %r15d
jmp 0x9d6d
decl %r15d
shrl $0x1f, %edi
leal (%r15,%rdi), %esi
movq %rdi, %r12
leaq -0x238(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0x248(%rbp), %rdi
movl $0x2d, %edx
callq 0x21a0
movl %r12d, %edi
leaq -0x248(%rbp), %r12
addq (%r12), %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0xa500
leaq -0x228(%rbp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x38c2
movq -0x248(%rbp), %rdi
cmpq %r13, %rdi
je 0x9ddb
movq -0x238(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x228(%rbp), %rdi
leaq -0x218(%rbp), %r14
cmpq %r14, %rdi
je 0x9b3a
movq (%r14), %rsi
incq %rsi
callq 0x2170
jmp 0x9b3a
movss -0x2c(%rbp), %xmm0
subss -0x4c(%rbp), %xmm0
jmp 0x9e24
movss -0x2c(%rbp), %xmm0
addss -0x4c(%rbp), %xmm0
jmp 0x9e24
movss -0x2c(%rbp), %xmm0
divss -0x4c(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
movq %rbx, %rdi
callq 0xa8f4
movq %rax, %rbx
leaq -0x3f8(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
addq %rsi, %rdx
leaq -0x408(%rbp), %rdi
callq 0x2a3e
xorps %xmm0, %xmm0
cvtss2sd -0x2c(%rbp), %xmm0
movq 0x814d(%rip), %rsi      # 0x11fb8
leaq 0x43fd(%rip), %rcx      # 0xe26f
leaq -0x3e8(%rbp), %rdi
movl $0x3a, %edx
movb $0x1, %al
callq 0xa56d
leaq -0x408(%rbp), %rsi
leaq -0x3e8(%rbp), %rdx
movq %rbx, %rdi
movl $0x2, %ecx
callq 0x38c2
leaq -0x3d8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9ebf
movq -0x3d8(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x408(%rbp), %rdi
jmp 0x9de9
xorps %xmm0, %xmm0
movss %xmm0, -0x2c(%rbp)
movq 0x8116(%rip), %rdi      # 0x11ff0
leaq 0x4375(%rip), %rsi      # 0xe256
movl $0x18, %edx
callq 0x2190
jmp 0x9e29
leaq 0x428e(%rip), %rdi      # 0xe185
movl $0x2, %esi
xorl %eax, %eax
callq 0x2210
leaq 0x4212(%rip), %rdi      # 0xe11c
callq 0x20d0
leaq 0x4201(%rip), %rdi      # 0xe117
callq 0x20d0
leaq 0x41fa(%rip), %rdi      # 0xe11c
callq 0x21f0
leaq 0x41ee(%rip), %rdi      # 0xe11c
callq 0x20d0
leaq 0x41dd(%rip), %rdi      # 0xe117
callq 0x20d0
leaq 0x41d6(%rip), %rdi      # 0xe11c
callq 0x21f0
leaq 0x41c5(%rip), %rdi      # 0xe117
callq 0x20d0
leaq 0x41be(%rip), %rdi      # 0xe11c
callq 0x20d0
leaq 0x41b2(%rip), %rdi      # 0xe11c
callq 0x21f0
leaq 0x420f(%rip), %rdi      # 0xe185
movl $0x1, %esi
xorl %eax, %eax
callq 0x2210
leaq 0x41fc(%rip), %rdi      # 0xe185
movl $0x1, %esi
xorl %eax, %eax
callq 0x2210
movq %rax, %r12
leaq -0x3d8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9fbc
movq -0x3d8(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9fbc
movq %rax, %r12
movq -0x408(%rbp), %rdi
cmpq %r14, %rdi
je 0xa4ba
movq -0x3f8(%rbp), %rsi
jmp 0xa471
jmp 0xa4b7
movq %rax, %r12
movq -0x268(%rbp), %rdi
cmpq %r14, %rdi
je 0xa4ba
movq -0x258(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
leaq -0x418(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa023
movq -0x418(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa023
movq %rax, %r12
movq -0x2e8(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa0fb
movq -0x2d8(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa0fb
movq %rax, %r12
leaq -0x458(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa06e
movq -0x458(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa06e
movq %rax, %r12
movq -0x368(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa11c
movq -0x358(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa11c
movq %rax, %r12
movq -0x248(%rbp), %rdi
cmpq %r13, %rdi
je 0xa0b5
movq -0x238(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa0b5
movq %rax, %r12
movq -0x228(%rbp), %rdi
leaq -0x218(%rbp), %rax
cmpq %rax, %rdi
je 0xa4ba
movq -0x218(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
jmp 0xa249
movq %rax, %r12
jmp 0xa182
movq %rax, %r12
jmp 0xa1cd
movq %rax, %r12
jmp 0xa2bd
movq %rax, %r12
movq -0x160(%rbp), %rdi
leaq -0x150(%rbp), %rax
cmpq %rax, %rdi
je 0xa143
movq -0x150(%rbp), %rsi
jmp 0xa136
jmp 0xa140
movq %rax, %r12
movq -0x1a0(%rbp), %rdi
leaq -0x190(%rbp), %rax
cmpq %rax, %rdi
je 0xa143
movq -0x190(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa143
movq %rax, %r12
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa4ba
movq -0x60(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
cmpl $0x0, (%r15)
jne 0xa169
movl %r14d, (%r15)
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa182
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0xa4ba
movq -0xd0(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
cmpl $0x0, (%r15)
jne 0xa1b4
movl -0x48(%rbp), %eax
movl %eax, (%r15)
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa1cd
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0xa4ba
movq -0x110(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
cmpl $0x0, (%r15)
jne 0xa4ba
movl -0x48(%rbp), %eax
jmp 0xa30f
movq %rax, %r12
movq -0x288(%rbp), %rdi
cmpq %r14, %rdi
je 0xa4ba
movq -0x278(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
cmpl $0x0, (%r15)
jne 0xa230
movl %r14d, (%r15)
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa249
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x100(%rbp), %rdi
leaq -0xf0(%rbp), %rax
cmpq %rax, %rdi
je 0xa4ba
movq -0xf0(%rbp), %rsi
jmp 0xa471
jmp 0xa4b7
jmp 0xa4b7
movq %rax, %r12
movq -0x2a8(%rbp), %rdi
cmpq %r14, %rdi
je 0xa4ba
movq -0x298(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
cmpl $0x0, (%r15)
jne 0xa2a4
movl -0x2c(%rbp), %eax
movl %eax, (%r15)
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa2bd
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0xa4ba
movq -0x130(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
movq -0x308(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa4ba
movq -0x2f8(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
cmpl $0x0, (%r15)
jne 0xa4ba
movl -0x2c(%rbp), %eax
movl %eax, (%r15)
jmp 0xa4ba
jmp 0xa4b7
jmp 0xa4b7
movq %rax, %r12
movq -0x2c8(%rbp), %rdi
cmpq %r14, %rdi
je 0xa4ba
movq -0x2b8(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
leaq -0x438(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa367
movq -0x438(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa367
movq %rax, %r12
movq -0x328(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa436
movq -0x318(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa436
movq %rax, %r12
movq -0x388(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa4ba
movq -0x378(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
movq -0x348(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa4ba
movq -0x338(%rbp), %rsi
jmp 0xa471
movq %rax, %r12
leaq -0x478(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa3f0
movq -0x478(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa3f0
movq %rax, %r12
movq -0x3a8(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa457
movq -0x398(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa457
movq %rax, %r12
movq -0x3c8(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa4ba
movq -0x3b8(%rbp), %rsi
jmp 0xa471
jmp 0xa4b7
jmp 0xa4b7
movq %rax, %r12
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0xa4ba
movq -0x170(%rbp), %rsi
jmp 0xa471
jmp 0xa4b7
movq %rax, %r12
movq -0x1c0(%rbp), %rdi
leaq -0x1b0(%rbp), %rax
cmpq %rax, %rdi
je 0xa4ba
movq -0x1b0(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa4ba
jmp 0xa4b7
movq %rax, %r12
jmp 0xa4a2
jmp 0xa4b7
movq %rax, %r12
movq -0x1e0(%rbp), %rdi
cmpq %r15, %rdi
je 0xa4a2
movq -0x1d0(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x200(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa4f8
movq -0x1f0(%rbp), %rsi
jmp 0xa4f0
movq %rax, %r12
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0xa4d6
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xa4f8
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2170
movq %r12, %rdi
callq 0x2250