// File: /workspace/github_cpp_makefile_star2_O3/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 0x9830
movq %rsi, %r14
leaq -0xf0(%rbp), %r15
movq %r15, -0x10(%r15)
movq %rdi, -0x30(%rbp)
movq (%rdi), %rsi
addq %rsi, %rdx
leaq -0x100(%rbp), %rdi
callq 0x2a32
leaq -0xd0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x5841(%rip), %rsi      # 0xe205
leaq 0x583b(%rip), %rdx      # 0xe206
leaq -0xe0(%rbp), %rdi
callq 0x79c6
movq -0xd8(%rbp), %rax
cmpq %rax, -0xf8(%rbp)
jae 0x89f3
movq -0xe0(%rbp), %rdi
jmp 0x8b2e
testq %rax, %rax
je 0x8a29
movq -0x100(%rbp), %rdx
movb $0x1, %cl
movq -0xe0(%rbp), %rdi
xorl %esi, %esi
movb (%rdx,%rsi), %r8b
cmpb (%rdi,%rsi), %r8b
sete %r8b
andb %r8b, %cl
incq %rsi
cmpq %rsi, %rax
jne 0x8a0a
testb %cl, %cl
je 0x8b2e
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdx
cmpq $0x2, %rdx
jbe 0x9b89
movq (%rax), %rax
movb 0x2(%rax), %bl
movq -0xe0(%rbp), %rdi
cmpq %r12, %rdi
je 0x8a5c
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x100(%rbp), %rdi
cmpq %r15, %rdi
je 0x8a77
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x2170
cmpb $0x53, %bl
movq -0x30(%rbp), %rdx
jne 0x9830
movq %r14, -0x40(%rbp)
leaq -0xa0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x78(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq 0x8(%rdx), %r13
testq %r13, %r13
je 0x8b5e
movq (%rdx), %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r12d, %r12d
testb $0x1, %r12b
je 0x8ad9
movsbl (%rbx,%r14), %esi
leaq -0x88(%rbp), %rdi
callq 0x2120
movb (%rbx,%r14), %al
cmpb $0x20, %al
movzbl %r12b, %ecx
movl %ecx, %r12d
movl $0x1, %edx
cmovel %edx, %r12d
testb $0x1, %r15b
cmovel %ecx, %r12d
je 0x8b12
testb $0x1, %r12b
jne 0x8b12
movsbl %al, %esi
leaq -0xb0(%rbp), %rdi
callq 0x2120
movb (%rbx,%r14), %al
cmpb $0x20, %al
sete %al
orb %al, %r15b
incq %r14
cmpq %r14, %r13
jne 0x8ac2
movq -0xa8(%rbp), %rbx
incq %rbx
jmp 0x8b63
cmpq %r12, %rdi
je 0x8b42
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x100(%rbp), %rdi
cmpq %r15, %rdi
je 0x9830
movq -0xf0(%rbp), %rsi
jmp 0x9828
movl $0x1, %ebx
movq %rsp, -0x1c8(%rbp)
movq %rsp, %r14
addq $0xf, %rbx
andq $-0x10, %rbx
movq %r14, %rdi
subq %rbx, %rdi
movq %rdi, %rsp
negq %rbx
movq -0x80(%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 -0x88(%rbp), %rsi
movq %r15, %rdi
callq 0x2140
movb (%r14,%rbx), %r14b
movb (%r13,%r12), %al
movb %al, -0xb8(%rbp)
cmpb $0x39, %r14b
movq -0x40(%rbp), %r13
jle 0x8ec7
movq %r13, %rdi
callq 0xa598
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 0x2a32
leaq -0x3c8(%rbp), %rsi
movq %r15, %rdi
callq 0x3b24
movl %eax, %r15d
movq -0x3c8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8c34
movq -0x3b8(%rbp), %rsi
incq %rsi
callq 0x2170
cmpl $0x1, %r15d
jne 0x8ec7
movq %r13, %rdi
callq 0xa598
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 0x2a32
movq %r13, %rdi
callq 0xa598
movq %rax, %r12
leaq -0x398(%rbp), %rax
movq %rax, %rbx
movq %rax, -0x10(%rax)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x3a8(%rbp), %rdi
callq 0x2a32
leaq -0x488(%rbp), %rdi
leaq -0x3a8(%rbp), %rdx
movq %r12, %rsi
callq 0x3908
leaq -0x1c0(%rbp), %rsi
leaq -0x488(%rbp), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x378c
leaq -0x478(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8cf4
movq -0x478(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x3a8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8d0f
movq -0x398(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x1c0(%rbp), %rdi
leaq -0x1b0(%rbp), %rax
cmpq %rax, %rdi
je 0x8d31
movq -0x1b0(%rbp), %rsi
incq %rsi
callq 0x2170
movq %r13, %rdi
callq 0xa598
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 0x2a32
leaq -0x68(%rbp), %rdi
leaq -0x388(%rbp), %rdx
movq %r15, %rsi
callq 0x3908
movq -0x388(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8d92
movq -0x378(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x60(%rbp), %rax
testq %rax, %rax
je 0x8eae
movq -0x68(%rbp), %rcx
xorl %edx, %edx
cmpb $0x2e, (%rcx,%rdx)
je 0x8db8
incq %rdx
cmpq %rdx, %rax
jne 0x8da5
jmp 0x8eae
movq %r13, %rdi
callq 0xa598
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 0x2a32
movq %r13, %rdi
callq 0xa598
movq %rax, %r12
leaq -0x358(%rbp), %rax
movq %rax, %rbx
movq %rax, -0x10(%rax)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x368(%rbp), %rdi
callq 0x2a32
leaq -0x468(%rbp), %rdi
leaq -0x368(%rbp), %rdx
movq %r12, %rsi
callq 0x3908
leaq -0x1a0(%rbp), %rsi
leaq -0x468(%rbp), %rdx
movq %r15, %rdi
movl $0x2, %ecx
callq 0x378c
leaq -0x458(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8e71
movq -0x458(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x368(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8e8c
movq -0x358(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x1a0(%rbp), %rdi
leaq -0x190(%rbp), %rax
cmpq %rax, %rdi
je 0x8eae
movq -0x190(%rbp), %rsi
incq %rsi
callq 0x2170
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8ec7
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
cmpb $0x3a, -0xb8(%rbp)
jl 0x91b5
movq %r13, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x338(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x348(%rbp), %rdi
callq 0x2a32
leaq -0x348(%rbp), %rsi
movq %r15, %rdi
callq 0x3b24
movl %eax, %r15d
movq -0x348(%rbp), %rdi
cmpq %rbx, %rdi
je 0x8f31
movq -0x338(%rbp), %rsi
incq %rsi
callq 0x2170
cmpl $0x1, %r15d
jne 0x91b5
movq %r13, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x170(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x180(%rbp), %rdi
callq 0x2a32
movq %r13, %rdi
callq 0xa598
movq %rax, %r12
leaq -0x318(%rbp), %rax
movq %rax, %rbx
movq %rax, -0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x328(%rbp), %rdi
callq 0x2a32
leaq -0x448(%rbp), %rdi
leaq -0x328(%rbp), %rdx
movq %r12, %rsi
callq 0x3908
leaq -0x180(%rbp), %rsi
leaq -0x448(%rbp), %rdx
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x378c
leaq -0x438(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x8feb
movq -0x438(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x328(%rbp), %rdi
cmpq %rbx, %rdi
je 0x9006
movq -0x318(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0x9028
movq -0x170(%rbp), %rsi
incq %rsi
callq 0x2170
movq %r13, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x2f8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x308(%rbp), %rdi
callq 0x2a32
leaq -0x68(%rbp), %rdi
leaq -0x308(%rbp), %rdx
movq %r15, %rsi
callq 0x3908
movq -0x308(%rbp), %rdi
cmpq %rbx, %rdi
je 0x9086
movq -0x2f8(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x60(%rbp), %rax
testq %rax, %rax
je 0x919c
movq -0x68(%rbp), %rcx
xorl %edx, %edx
cmpb $0x2e, (%rcx,%rdx)
je 0x90ac
incq %rdx
cmpq %rdx, %rax
jne 0x9099
jmp 0x919c
movq %r13, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x150(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x160(%rbp), %rdi
callq 0x2a32
movq %r13, %rdi
callq 0xa598
movq %rax, %r12
leaq -0x2d8(%rbp), %rax
movq %rax, %rbx
movq %rax, -0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x2e8(%rbp), %rdi
callq 0x2a32
leaq -0x428(%rbp), %rdi
leaq -0x2e8(%rbp), %rdx
movq %r12, %rsi
callq 0x3908
leaq -0x160(%rbp), %rsi
leaq -0x428(%rbp), %rdx
movq %r15, %rdi
movl $0x2, %ecx
callq 0x378c
leaq -0x418(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x915f
movq -0x418(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x2e8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x917a
movq -0x2d8(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x160(%rbp), %rdi
leaq -0x150(%rbp), %rax
cmpq %rax, %rdi
je 0x919c
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x2170
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x91b5
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
cmpb $0x39, %r14b
jle 0x92d0
movq %r13, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x2b8(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x2c8(%rbp), %rdi
callq 0x2a32
leaq -0x2c8(%rbp), %rsi
movq %r15, %rdi
callq 0x3b24
movl %eax, %r15d
movq -0x2c8(%rbp), %rdi
cmpq %rbx, %rdi
movq -0x40(%rbp), %rbx
je 0x9223
movq -0x2b8(%rbp), %rsi
incq %rsi
callq 0x2170
cmpl $0x2, %r15d
jne 0x9367
movq %rbx, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x278(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x288(%rbp), %rdi
callq 0x2a32
leaq -0x68(%rbp), %rdi
leaq -0x288(%rbp), %rdx
movq %r15, %rsi
callq 0x3908
movq -0x68(%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, -0x34(%rbp)
cmpq %r12, (%r13)
je 0x9bb4
movq %rbx, %r12
movl (%r15), %eax
testl %eax, %eax
je 0x94a0
cmpl $0x22, %eax
movq -0x40(%rbp), %rbx
jne 0x94a7
leaq 0x4e4c(%rip), %rdi      # 0xe117
callq 0x21f0
movq -0xb0(%rbp), %r15
movq -0xa8(%rbp), %rax
testq %rax, %rax
je 0x9303
movb $0x1, %cl
xorl %edx, %edx
cmpb $0x2e, (%r15,%rdx)
setne %sil
andb %sil, %cl
incq %rdx
cmpq %rdx, %rax
jne 0x92e7
testb %cl, %cl
je 0x9454
callq 0x2040
movq %rax, %r12
movl (%rax), %r14d
movl $0x0, (%rax)
leaq -0x68(%rbp), %r13
movq %r15, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x21e0
cmpq %r15, (%r13)
je 0x9b9c
movslq %eax, %rcx
movq %rax, -0x90(%rbp)
cmpq %rax, %rcx
jne 0x9ba8
movl (%r12), %eax
cmpl $0x22, %eax
je 0x9ba8
testl %eax, %eax
movq -0x40(%rbp), %rbx
jne 0x9444
movl %r14d, (%r12)
jmp 0x9444
movq %rbx, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x298(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x2a8(%rbp), %rdi
callq 0x2a32
leaq -0x68(%rbp), %rdi
leaq -0x2a8(%rbp), %rdx
movq %r15, %rsi
callq 0x3908
movq -0x68(%rbp), %r12
callq 0x2040
movq %rax, %r15
movl (%rax), %r14d
movl $0x0, (%rax)
leaq -0xc0(%rbp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x21e0
cmpq %r12, (%r13)
je 0x9bc3
movq %rbx, %r12
movslq %eax, %rcx
movq %rax, -0x90(%rbp)
cmpq %rax, %rcx
jne 0x9bd2
movl (%r15), %eax
cmpl $0x22, %eax
je 0x9bd2
testl %eax, %eax
movq -0x40(%rbp), %rbx
jne 0x9410
movl %r14d, (%r15)
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9429
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x2a8(%rbp), %rdi
cmpq %r12, %rdi
je 0x9444
movq -0x298(%rbp), %rsi
incq %rsi
callq 0x2170
xorps %xmm0, %xmm0
movss %xmm0, -0x34(%rbp)
movb $0x1, %r14b
jmp 0x94f3
callq 0x2040
movq %rax, %r12
movl (%rax), %r14d
movl $0x0, (%rax)
leaq -0x68(%rbp), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x21c0
movss %xmm0, -0x34(%rbp)
cmpq %r15, (%r13)
je 0x9c02
movl (%r12), %eax
testl %eax, %eax
je 0x94dd
cmpl $0x22, %eax
movq -0x40(%rbp), %rbx
jne 0x94e5
leaq 0x4c7c(%rip), %rdi      # 0xe117
callq 0x21f0
movl %r14d, (%r15)
movq -0x40(%rbp), %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x94c0
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x288(%rbp), %rdi
cmpq %r12, %rdi
je 0x94e5
movq -0x278(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x94e5
movl %r14d, (%r12)
movq -0x40(%rbp), %rbx
xorl %r14d, %r14d
movq $0x0, -0x90(%rbp)
cmpb $0x3a, -0xb8(%rbp)
jl 0x960e
movq %rbx, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x258(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x268(%rbp), %rdi
callq 0x2a32
leaq -0x268(%rbp), %rsi
movq %r15, %rdi
callq 0x3b24
movl %eax, %r15d
movq -0x268(%rbp), %rdi
cmpq %rbx, %rdi
movq -0x40(%rbp), %rbx
je 0x9561
movq -0x258(%rbp), %rsi
incq %rsi
callq 0x2170
cmpl $0x2, %r15d
jne 0x9620
movq %rbx, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x130(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x140(%rbp), %rdi
callq 0x2a32
movl %r14d, %ebx
leaq -0x68(%rbp), %rdi
leaq -0x140(%rbp), %rdx
movq %r15, %rsi
callq 0x3908
movq -0x68(%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, -0x44(%rbp)
cmpq %r12, (%r13)
je 0x9bde
movl (%r15), %eax
testl %eax, %eax
movl %ebx, %r12d
je 0x9712
cmpl $0x22, %eax
movq -0x40(%rbp), %rbx
jne 0x9719
leaq 0x4b0e(%rip), %rdi      # 0xe117
callq 0x21f0
movl $0x36, %r13d
leaq 0x4bec(%rip), %r15      # 0xe207
jmp 0x97d9
movq %rbx, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x110(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x120(%rbp), %rdi
callq 0x2a32
movl %r14d, %ebx
leaq -0x68(%rbp), %rdi
leaq -0x120(%rbp), %rdx
movq %r15, %rsi
callq 0x3908
movq -0x68(%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 0x9bea
movslq %eax, %rcx
movq %rax, -0xb8(%rbp)
cmpq %rax, %rcx
jne 0x9bf6
movl (%r15), %eax
cmpl $0x22, %eax
je 0x9bf6
movl %ebx, %r12d
testl %eax, %eax
movq -0x40(%rbp), %rbx
jne 0x96c9
movl %r14d, (%r15)
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x96e2
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
movq -0x30(%rbp), %r14
je 0x9708
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x2170
xorps %xmm0, %xmm0
movss %xmm0, -0x44(%rbp)
jmp 0x9763
movl %r14d, (%r15)
movq -0x40(%rbp), %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9732
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
movq -0x30(%rbp), %r14
je 0x9758
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x2170
movq $0x0, -0xb8(%rbp)
movq %rbx, %rdi
callq 0xa598
movq %rax, %r15
leaq -0x238(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x248(%rbp), %rdi
callq 0x2a32
leaq -0x248(%rbp), %rsi
movq %r15, %rdi
callq 0x3b24
movl %eax, %r15d
movq -0x248(%rbp), %rdi
cmpq %rbx, %rdi
je 0x97c0
movq -0x238(%rbp), %rsi
incq %rsi
callq 0x2170
cmpl $0x2, %r15d
sete %al
movl $0x17, %r13d
leaq 0x4a6a(%rip), %r15      # 0xe23e
testb %al, %r12b
je 0x983f
movq 0x8810(%rip), %rdi      # 0x11ff0
movq %r15, %rsi
movq %r13, %rdx
callq 0x2190
movq -0x1c8(%rbp), %rsp
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x980e
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x9830
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 %r12b, %r12b
je 0x988d
movq 0x8(%r14), %rdx
cmpq $0x1, %rdx
jbe 0x9c0e
movq (%r14), %rax
movzbl 0x1(%rax), %eax
addl $-0x2a, %eax
cmpl $0x5, %eax
movq -0x40(%rbp), %rbx
movq -0xb8(%rbp), %r12
ja 0x9960
leaq 0x496d(%rip), %rcx      # 0xe1e4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
imull -0x90(%rbp), %r12d
jmp 0x997b
movq -0x40(%rbp), %rdi
callq 0xa598
movq %rax, %r12
leaq -0x218(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x228(%rbp), %rdi
callq 0x2a32
leaq -0x228(%rbp), %rsi
movq %r12, %rdi
callq 0x3b24
movl %eax, %r12d
movq -0x228(%rbp), %rdi
cmpq %rbx, %rdi
je 0x98eb
movq -0x218(%rbp), %rsi
incq %rsi
callq 0x2170
testl %r12d, %r12d
je 0x97d9
movq 0x8(%r14), %rdx
cmpq $0x1, %rdx
jbe 0x9c21
movq (%r14), %rax
movzbl 0x1(%rax), %eax
addl $-0x2a, %eax
cmpl $0x5, %eax
movq -0x40(%rbp), %rbx
ja 0x9b64
leaq 0x48ac(%rip), %rcx      # 0xe1cc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movss -0x34(%rbp), %xmm0
mulss -0x44(%rbp), %xmm0
jmp 0x9aac
movq -0x90(%rbp), %rax
subl %r12d, %eax
movl %eax, %r12d
jmp 0x997b
addl -0x90(%rbp), %r12d
jmp 0x997b
movq -0x90(%rbp), %rax
cltd
idivl %r12d
movl %eax, %r12d
jmp 0x997b
xorl %r12d, %r12d
movq 0x8686(%rip), %rdi      # 0x11ff0
leaq 0x48e5(%rip), %rsi      # 0xe256
movl $0x18, %edx
callq 0x2190
movq %rbx, %rdi
callq 0xa598
movq %rax, %rbx
leaq -0x1d8(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x1e8(%rbp), %rdi
callq 0x2a32
movl %r12d, %r14d
negl %r14d
cmovsl %r12d, %r14d
movl $0x1, %r15d
cmpl $0xa, %r14d
jb 0x9a0b
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x9a02
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x9a08
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x9a0b
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x99cf
addl $-0x3, %r15d
jmp 0x9a0b
addl $-0x2, %r15d
jmp 0x9a0b
decl %r15d
shrl $0x1f, %r12d
leal (%r15,%r12), %esi
leaq -0x1f8(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0x208(%rbp), %rdi
movl $0x2d, %edx
callq 0x21a0
movl %r12d, %edi
leaq -0x208(%rbp), %r12
addq (%r12), %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0xa1a3
leaq -0x1e8(%rbp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x378c
movq -0x208(%rbp), %rdi
cmpq %r13, %rdi
je 0x9a77
movq -0x1f8(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x1e8(%rbp), %rdi
leaq -0x1d8(%rbp), %r14
jmp 0x9b4b
movss -0x34(%rbp), %xmm0
subss -0x44(%rbp), %xmm0
jmp 0x9aac
movss -0x34(%rbp), %xmm0
addss -0x44(%rbp), %xmm0
jmp 0x9aac
movss -0x34(%rbp), %xmm0
divss -0x44(%rbp), %xmm0
movss %xmm0, -0x34(%rbp)
movq %rbx, %rdi
callq 0xa598
movq %rax, %rbx
leaq -0x3f8(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x408(%rbp), %rdi
callq 0x2a32
xorps %xmm0, %xmm0
cvtss2sd -0x34(%rbp), %xmm0
movq 0x84c8(%rip), %rsi      # 0x11fb8
leaq 0x4778(%rip), %rcx      # 0xe26f
leaq -0x3e8(%rbp), %rdi
movl $0x3a, %edx
movb $0x1, %al
callq 0xa210
leaq -0x408(%rbp), %rsi
leaq -0x3e8(%rbp), %rdx
movq %rbx, %rdi
movl $0x2, %ecx
callq 0x378c
leaq -0x3d8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9b44
movq -0x3d8(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x408(%rbp), %rdi
cmpq %r14, %rdi
je 0x97eb
movq (%r14), %rsi
incq %rsi
callq 0x2170
jmp 0x97eb
xorps %xmm0, %xmm0
movss %xmm0, -0x34(%rbp)
movq 0x847d(%rip), %rdi      # 0x11ff0
leaq 0x46dc(%rip), %rsi      # 0xe256
movl $0x18, %edx
callq 0x2190
jmp 0x9ab1
leaq 0x45f5(%rip), %rdi      # 0xe185
movl $0x2, %esi
xorl %eax, %eax
callq 0x2210
leaq 0x4579(%rip), %rdi      # 0xe11c
callq 0x20d0
leaq 0x456d(%rip), %rdi      # 0xe11c
callq 0x21f0
movq %rbx, %r12
leaq 0x4559(%rip), %rdi      # 0xe117
callq 0x20d0
movq %rbx, %r12
leaq 0x454f(%rip), %rdi      # 0xe11c
callq 0x20d0
leaq 0x4543(%rip), %rdi      # 0xe11c
callq 0x21f0
leaq 0x4532(%rip), %rdi      # 0xe117
callq 0x20d0
leaq 0x452b(%rip), %rdi      # 0xe11c
callq 0x20d0
leaq 0x451f(%rip), %rdi      # 0xe11c
callq 0x21f0
leaq 0x450e(%rip), %rdi      # 0xe117
callq 0x20d0
leaq 0x4570(%rip), %rdi      # 0xe185
movl $0x1, %esi
xorl %eax, %eax
callq 0x2210
leaq 0x455d(%rip), %rdi      # 0xe185
movl $0x1, %esi
xorl %eax, %eax
callq 0x2210
movq %rax, -0x30(%rbp)
leaq -0x3d8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9c5d
movq -0x3d8(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9c5d
movq %rax, -0x30(%rbp)
movq -0x408(%rbp), %rdi
cmpq %r14, %rdi
je 0xa15c
movq -0x3f8(%rbp), %rsi
jmp 0xa0ff
movq %rax, -0x30(%rbp)
leaq -0x418(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9ca2
movq -0x418(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9ca2
movq %rax, -0x30(%rbp)
movq -0x2e8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x9d7f
movq -0x2d8(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9d7f
movq %rax, -0x30(%rbp)
leaq -0x458(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9cef
movq -0x458(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9cef
movq %rax, -0x30(%rbp)
movq -0x368(%rbp), %rdi
cmpq %rbx, %rdi
je 0x9da1
movq -0x358(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9da1
movq %rax, -0x30(%rbp)
movq -0x208(%rbp), %rdi
cmpq %r13, %rdi
je 0x9d38
movq -0x1f8(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9d38
movq %rax, -0x30(%rbp)
movq -0x1e8(%rbp), %rdi
leaq -0x1d8(%rbp), %rax
cmpq %rax, %rdi
je 0xa15c
movq -0x1d8(%rbp), %rsi
jmp 0xa0ff
movq %rax, -0x30(%rbp)
movq -0x228(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa15c
movq -0x218(%rbp), %rsi
jmp 0xa0ff
movq %rax, -0x30(%rbp)
movq -0x160(%rbp), %rdi
leaq -0x150(%rbp), %rax
cmpq %rax, %rdi
je 0x9dc9
movq -0x150(%rbp), %rsi
jmp 0x9dbb
jmp 0x9dc5
movq %rax, -0x30(%rbp)
movq -0x1a0(%rbp), %rdi
leaq -0x190(%rbp), %rax
cmpq %rax, %rdi
je 0x9dc9
movq -0x190(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9dc9
movq %rax, -0x30(%rbp)
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa15c
movq -0x58(%rbp), %rsi
jmp 0xa0ff
jmp 0xa109
jmp 0xa158
movq %rax, -0x30(%rbp)
jmp 0x9fc7
movq %rax, -0x30(%rbp)
jmp 0x9f17
movq %rax, -0x30(%rbp)
movq -0x308(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa15c
movq -0x2f8(%rbp), %rsi
jmp 0xa0ff
movq %rbx, %r12
movq %rax, -0x30(%rbp)
jmp 0xa03a
movq %rbx, %r12
movq %rax, -0x30(%rbp)
jmp 0x9f60
movq %rax, -0x30(%rbp)
leaq -0x438(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9e60
movq -0x438(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9e60
movq %rax, -0x30(%rbp)
movq -0x328(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa086
movq -0x318(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa086
movq %rax, -0x30(%rbp)
movq -0x388(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa15c
movq -0x378(%rbp), %rsi
jmp 0xa0ff
movq %rax, -0x30(%rbp)
leaq -0x478(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9ecd
movq -0x478(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x9ecd
movq %rax, -0x30(%rbp)
movq -0x3a8(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa0cc
movq -0x398(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa0cc
movq %rax, -0x30(%rbp)
cmpl $0x0, (%r15)
jne 0x9efe
movl %r14d, (%r15)
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9f17
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0xa15c
movq -0x130(%rbp), %rsi
jmp 0xa0ff
movq %rax, -0x30(%rbp)
cmpl $0x0, (%r15)
jne 0x9f47
movl %r14d, (%r15)
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9f60
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x288(%rbp), %rdi
cmpq %r12, %rdi
je 0xa15c
movq -0x278(%rbp), %rsi
jmp 0xa0ff
jmp 0xa158
movq %rax, -0x30(%rbp)
movq -0x248(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa15c
movq -0x238(%rbp), %rsi
jmp 0xa0ff
movq %rax, -0x30(%rbp)
cmpl $0x0, (%r15)
jne 0x9fae
movl %r14d, (%r15)
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9fc7
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x120(%rbp), %rdi
leaq -0x110(%rbp), %rax
cmpq %rax, %rdi
je 0xa15c
movq -0x110(%rbp), %rsi
jmp 0xa0ff
jmp 0xa158
jmp 0xa158
movq %rax, -0x30(%rbp)
movq -0x268(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa15c
movq -0x258(%rbp), %rsi
jmp 0xa0ff
movq %rax, -0x30(%rbp)
cmpl $0x0, (%r15)
jne 0xa021
movl %r14d, (%r15)
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa03a
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x2a8(%rbp), %rdi
cmpq %r12, %rdi
je 0xa15c
movq -0x298(%rbp), %rsi
jmp 0xa0ff
jmp 0xa158
jmp 0xa158
jmp 0xa158
movq %rax, -0x30(%rbp)
movq -0x2c8(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa15c
movq -0x2b8(%rbp), %rsi
jmp 0xa0ff
movq %rax, -0x30(%rbp)
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0xa15c
movq -0x170(%rbp), %rsi
jmp 0xa0ff
jmp 0xa158
movq %rax, -0x30(%rbp)
movq -0x348(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa15c
movq -0x338(%rbp), %rsi
jmp 0xa0ff
movq %rax, -0x30(%rbp)
movq -0x1c0(%rbp), %rdi
leaq -0x1b0(%rbp), %rax
cmpq %rax, %rdi
je 0xa15c
movq -0x1b0(%rbp), %rsi
jmp 0xa0ff
movq %rax, -0x30(%rbp)
movq -0x3c8(%rbp), %rdi
cmpq %rbx, %rdi
je 0xa15c
movq -0x3b8(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa15c
movq %rax, -0x30(%rbp)
cmpl $0x0, (%r12)
jne 0xa15c
movl %r14d, (%r12)
jmp 0xa15c
movq %rax, -0x30(%rbp)
movq -0xe0(%rbp), %rdi
cmpq %r12, %rdi
je 0xa143
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0xa143
jmp 0xa158
jmp 0xa158
movq %rax, -0x30(%rbp)
movq -0x100(%rbp), %rdi
cmpq %r15, %rdi
je 0xa19a
movq -0xf0(%rbp), %rsi
jmp 0xa192
movq %rax, -0x30(%rbp)
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0xa178
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xa19a
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2170
movq -0x30(%rbp), %rdi
callq 0x2250