// File: /workspace/github_cpp_makefile_star2_O1/Falldog[P]dcinja/src/include/inja/inja.hpp
// Function: inja::Parser::parse_expression(inja::Template&, inja::Token::Kind)
bool parse_expression(Template &tmpl, Token::Kind closing) {
    while (tok.kind != closing && tok.kind != Token::Kind::Eof) {
      // Literals
      switch (tok.kind) {
      case Token::Kind::String: {
        if (current_brace_level == 0 && current_bracket_level == 0) {
          json_literal_start = tok.text;
          add_json_literal(tmpl.content.c_str());
        }

      } break;
      case Token::Kind::Number: {
        if (current_brace_level == 0 && current_bracket_level == 0) {
          json_literal_start = tok.text;
          add_json_literal(tmpl.content.c_str());
        }

      } break;
      case Token::Kind::LeftBracket: {
        if (current_brace_level == 0 && current_bracket_level == 0) {
          json_literal_start = tok.text;
        }
        current_bracket_level += 1;

      } break;
      case Token::Kind::LeftBrace: {
        if (current_brace_level == 0 && current_bracket_level == 0) {
          json_literal_start = tok.text;
        }
        current_brace_level += 1;

      } break;
      case Token::Kind::RightBracket: {
        if (current_bracket_level == 0) {
          throw_parser_error("unexpected ']'");
        }

        current_bracket_level -= 1;
        if (current_brace_level == 0 && current_bracket_level == 0) {
          add_json_literal(tmpl.content.c_str());
        }

      } break;
      case Token::Kind::RightBrace: {
        if (current_brace_level == 0) {
          throw_parser_error("unexpected '}'");
        }

        current_brace_level -= 1;
        if (current_brace_level == 0 && current_bracket_level == 0) {
          add_json_literal(tmpl.content.c_str());
        }

      } break;
      case Token::Kind::Id: {
        get_peek_token();

        // Json Literal
        if (tok.text == static_cast<decltype(tok.text)>("true") || tok.text == static_cast<decltype(tok.text)>("false") || tok.text == static_cast<decltype(tok.text)>("null")) {
          if (current_brace_level == 0 && current_bracket_level == 0) {
            json_literal_start = tok.text;
            add_json_literal(tmpl.content.c_str());
          }

	      // Operator
        } else if (tok.text == "and" || tok.text == "or" || tok.text == "in" || tok.text == "not") {
          goto parse_operator;

        // Functions
        } else if (peek_tok.kind == Token::Kind::LeftParen) {
          operator_stack.emplace(std::make_shared<FunctionNode>(static_cast<std::string>(tok.text), tok.text.data() - tmpl.content.c_str()));
          function_stack.emplace(operator_stack.top().get(), current_paren_level);       

        // Variables
        } else {
          current_expression_list->rpn_output.emplace_back(std::make_shared<JsonNode>(static_cast<std::string>(tok.text), tok.text.data() - tmpl.content.c_str()));
        }

      // Operators
      } break;
      case Token::Kind::Equal:
      case Token::Kind::NotEqual:
      case Token::Kind::GreaterThan:
      case Token::Kind::GreaterEqual:
      case Token::Kind::LessThan:
      case Token::Kind::LessEqual:
      case Token::Kind::Plus:
      case Token::Kind::Minus:
      case Token::Kind::Times:
      case Token::Kind::Slash:
      case Token::Kind::Power:
      case Token::Kind::Percent:
      case Token::Kind::Dot: {

  parse_operator:
        FunctionStorage::Operation operation;
        switch (tok.kind) {
        case Token::Kind::Id: {
          if (tok.text == "and") {
            operation = FunctionStorage::Operation::And;
          } else if (tok.text == "or") {
            operation = FunctionStorage::Operation::Or;
          } else if (tok.text == "in") {
            operation = FunctionStorage::Operation::In;
          } else if (tok.text == "not") {
            operation = FunctionStorage::Operation::Not;
          } else {
            throw_parser_error("unknown operator in parser.");
          }
        } break;
        case Token::Kind::Equal: {
          operation = FunctionStorage::Operation::Equal;
        } break;
        case Token::Kind::NotEqual: {
          operation = FunctionStorage::Operation::NotEqual;
        } break;
        case Token::Kind::GreaterThan: {
          operation = FunctionStorage::Operation::Greater;
        } break;
        case Token::Kind::GreaterEqual: {
          operation = FunctionStorage::Operation::GreaterEqual;
        } break;
        case Token::Kind::LessThan: {
          operation = FunctionStorage::Operation::Less;
        } break;
        case Token::Kind::LessEqual: {
          operation = FunctionStorage::Operation::LessEqual;
        } break;
        case Token::Kind::Plus: {
          operation = FunctionStorage::Operation::Add;
        } break;
        case Token::Kind::Minus: {
          operation = FunctionStorage::Operation::Subtract;
        } break;
        case Token::Kind::Times: {
          operation = FunctionStorage::Operation::Multiplication;
        } break;
        case Token::Kind::Slash: {
          operation = FunctionStorage::Operation::Division;
        } break;
        case Token::Kind::Power: {
          operation = FunctionStorage::Operation::Power;
        } break;
        case Token::Kind::Percent: {
          operation = FunctionStorage::Operation::Modulo;
        } break;
        case Token::Kind::Dot: {
          operation = FunctionStorage::Operation::AtId;
        } break;
        default: {
          throw_parser_error("unknown operator in parser.");
        }
        }
        auto function_node = std::make_shared<FunctionNode>(operation, tok.text.data() - tmpl.content.c_str());

        while (!operator_stack.empty() && ((operator_stack.top()->precedence > function_node->precedence) || (operator_stack.top()->precedence == function_node->precedence && function_node->associativity == FunctionNode::Associativity::Left)) && (operator_stack.top()->operation != FunctionStorage::Operation::ParenLeft)) {
          current_expression_list->rpn_output.emplace_back(operator_stack.top());
          operator_stack.pop();
        }

        operator_stack.emplace(function_node);

      } break;
      case Token::Kind::Comma: {
        if (current_brace_level == 0 && current_bracket_level == 0) {
          if (function_stack.empty()) {
            throw_parser_error("unexpected ','");
          }

          function_stack.top().first->number_args += 1;
        }

      } break;
      case Token::Kind::Colon: {
        if (current_brace_level == 0 && current_bracket_level == 0) {
          throw_parser_error("unexpected ':'");
        }

      } break;
      case Token::Kind::LeftParen: {
        current_paren_level += 1;
        operator_stack.emplace(std::make_shared<FunctionNode>(FunctionStorage::Operation::ParenLeft, tok.text.data() - tmpl.content.c_str()));

        get_peek_token();
        if (peek_tok.kind == Token::Kind::RightParen) {
          if (!function_stack.empty() && function_stack.top().second == current_paren_level - 1) {
            function_stack.top().first->number_args = 0;
          }
        }

      } break;
      case Token::Kind::RightParen: {
        current_paren_level -= 1;
        while (!operator_stack.empty() && operator_stack.top()->operation != FunctionStorage::Operation::ParenLeft) {
          current_expression_list->rpn_output.emplace_back(operator_stack.top());
          operator_stack.pop();
        }

        if (!operator_stack.empty() && operator_stack.top()->operation == FunctionStorage::Operation::ParenLeft) {
          operator_stack.pop();
        }

        if (!function_stack.empty() && function_stack.top().second == current_paren_level) {
          auto func = function_stack.top().first;
          auto function_data = function_storage.find_function(func->name, func->number_args);
          if (function_data.operation == FunctionStorage::Operation::None) {
            throw_parser_error("unknown function " + func->name);
          }
          func->operation = function_data.operation;
          if (function_data.operation == FunctionStorage::Operation::Callback) {
            func->callback = function_data.callback;
          }

          if (operator_stack.empty()) {
            throw_parser_error("internal error at function " + func->name);
          }

          current_expression_list->rpn_output.emplace_back(operator_stack.top());
          operator_stack.pop();
          function_stack.pop();
        }
      }
      default:
        break;
      }

      get_next_token();
    }

    while (!operator_stack.empty()) {
      current_expression_list->rpn_output.emplace_back(operator_stack.top());
      operator_stack.pop();
    }

    return true;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, 0x30(%rsp)
movq %rdi, %rbx
movl 0x48(%rdi), %eax
movl %edx, 0x94(%rsp)
cmpl %edx, %eax
sete %cl
cmpl $0x22, %eax
sete %dl
orb %cl, %dl
je 0x1de50
movq 0x138(%rbx), %rsi
cmpq 0x118(%rbx), %rsi
je 0x1de3c
leaq 0x108(%rbx), %r14
movl $0x200, %r15d           # imm = 0x200
cmpq 0x140(%rbx), %rsi
jne 0x1de10
movq 0x150(%rbx), %rax
movq -0x8(%rax), %rsi
addq %r15, %rsi
movq 0xb0(%rbx), %rdi
addq $0x10, %rdi
addq $-0x10, %rsi
callq 0x2d488
movq %r14, %rdi
callq 0x2f228
movq 0x138(%rbx), %rsi
cmpq 0x118(%rbx), %rsi
jne 0x1ddf9
movb $0x1, %al
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x48(%rbx), %rbp
leaq 0x108(%rbx), %r12
leaq 0xb8(%rbx), %rcx
movq %rcx, 0x98(%rsp)
leaq 0x8(%rbx), %rcx
movq %rcx, 0x80(%rsp)
leaq 0x60(%rbx), %rcx
movq %rcx, 0x78(%rsp)
leaq 0x50(%rbx), %rcx
movq %rcx, 0x40(%rsp)
leaq 0x98(%rbx), %rcx
movq %rcx, 0x38(%rsp)
leaq 0x80(%rbx), %rcx
movq %rcx, 0xa0(%rsp)
movq %rsp, %r13
movq %r12, 0x48(%rsp)
addl $-0x9, %eax
cmpl $0x17, %eax
ja 0x1e918
leaq 0x372b2(%rip), %rcx     # 0x55170
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl (%rbp), %eax
addl $-0x9, %eax
cmpl $0x17, %eax
ja 0x1e4c9
leaq 0x37313(%rip), %rcx     # 0x551f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x50(%rbx), %r14
movq 0x58(%rbx), %r12
cmpq $0x2, %r14
movq %rsp, %r13
je 0x1df27
cmpq $0x3, %r14
jne 0x1df87
movq %r12, %rdi
leaq 0x3d845(%rip), %rsi     # 0x5b750
movq %r14, %rdx
callq 0x9400
testl %eax, %eax
je 0x1eb73
cmpq $0x3, %r14
je 0x1df6d
cmpq $0x2, %r14
jne 0x1df87
movq %r12, %rdi
leaq 0x38b55(%rip), %rsi     # 0x56a86
movq %r14, %rdx
callq 0x9400
testl %eax, %eax
je 0x1eb68
cmpq $0x3, %r14
je 0x1df6d
cmpq $0x2, %r14
jne 0x1df87
movq %r12, %rdi
leaq 0x38b02(%rip), %rsi     # 0x56a59
movq %r14, %rdx
callq 0x9400
testl %eax, %eax
je 0x1eb86
cmpq $0x3, %r14
jne 0x1df87
movq %r12, %rdi
leaq 0x3b633(%rip), %rsi     # 0x595aa
movq %r14, %rdx
callq 0x9400
testl %eax, %eax
je 0x1eb7e
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
leaq 0x3b614(%rip), %rsi     # 0x595ae
leaq 0x3b628(%rip), %rdx     # 0x595c9
callq 0x12646
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1c41c
jmp 0x1e4f6
cmpb $0x0, 0x78(%rbx)
jne 0x1dfe5
movq %rsp, %rdi
movq 0x80(%rsp), %rsi
callq 0x1ecce
movq 0x10(%rsp), %rax
movq 0x78(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups (%rsp), %xmm0
movups %xmm0, (%rcx)
movb $0x1, 0x78(%rbx)
movq 0x50(%rbx), %r12
leaq -0x2(%r12), %r13
cmpq $0x3, %r13
ja 0x1e9d7
movq 0x58(%rbx), %r14
leaq 0x371cd(%rip), %rcx     # 0x551d0
movslq (%rcx,%r13,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
leaq 0x3d73a(%rip), %rsi     # 0x5b750
movq %r12, %rdx
callq 0x9400
testl %eax, %eax
je 0x1dec7
cmpq $0x3, %r12
je 0x1e9bd
cmpq $0x2, %r12
je 0x1e977
jmp 0x1e9d7
movq 0x88(%rbx), %rax
orq 0x90(%rbx), %rax
jne 0x1e915
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %r13
movq %r13, %rdi
leaq 0x3b570(%rip), %rsi     # 0x595d9
leaq 0x3b577(%rip), %rdx     # 0x595e7
callq 0x12646
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1c41c
jmp 0x1eb44
movq 0x88(%rbx), %rax
movq 0x90(%rbx), %rcx
orq %rax, %rcx
jne 0x1e0a8
movq 0x40(%rsp), %rcx
movups (%rcx), %xmm0
movq 0x38(%rsp), %rcx
movups %xmm0, (%rcx)
incq %rax
movq %rax, 0x88(%rbx)
jmp 0x1e915
cmpq $0x0, 0x88(%rbx)
movq %rsp, %r13
jne 0x1e109
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
leaq 0x3b4b0(%rip), %rsi     # 0x59587
leaq 0x3b4b7(%rip), %rdx     # 0x59595
callq 0x12646
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1c41c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1e109
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x93c0
movq 0x88(%rbx), %rax
decq %rax
movq %rax, 0x88(%rbx)
orq 0x90(%rbx), %rax
je 0x1e439
jmp 0x1e918
incq 0x80(%rbx)
movq 0x58(%rbx), %r14
movq 0x30(%rsp), %rax
subq 0x28(%rax), %r14
movq $0x0, (%rsp)
movl $0x78, %edi
callq 0x93b0
movq %rax, %r12
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x8(%r12)
leaq 0x5a195(%rip), %rax     # 0x78300
movq %rax, (%r12)
leaq 0x10(%r12), %r13
movq %r13, %rdi
movl $0x2c, %esi
movq %r14, %rdx
callq 0x2f09a
movq %r12, 0x8(%rsp)
movq %r13, (%rsp)
movq 0x48(%rsp), %rdi
movq %rsp, %r13
movq %r13, %rsi
callq 0x2db04
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1e1ac
callq 0xf9ae
cmpb $0x0, 0x78(%rbx)
jne 0x1e1db
movq %r13, %rdi
movq 0x80(%rsp), %rsi
callq 0x1ecce
movq 0x10(%rsp), %rax
movq 0x78(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups (%rsp), %xmm0
movups %xmm0, (%rcx)
movb $0x1, 0x78(%rbx)
cmpl $0x16, 0x60(%rbx)
jne 0x1e918
movq 0xe8(%rbx), %rax
cmpq 0xc8(%rbx), %rax
je 0x1e918
movq 0xf0(%rbx), %rcx
movq %rax, %rdx
cmpq %rcx, %rax
jne 0x1e21b
movq 0x100(%rbx), %rdx
movq -0x8(%rdx), %rdx
movl $0x200, %esi            # imm = 0x200
addq %rsi, %rdx
movq 0x80(%rbx), %rsi
decq %rsi
cmpq %rsi, -0x8(%rdx)
jne 0x1e918
cmpq %rcx, %rax
jne 0x1e247
movq 0x100(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x10(%rax), %rax
movl $0x0, 0x40(%rax)
jmp 0x1e918
movq 0x90(%rbx), %rax
movq 0x88(%rbx), %rcx
orq %rax, %rcx
jne 0x1e27a
movq 0x40(%rsp), %rcx
movups (%rcx), %xmm0
movq 0x38(%rsp), %rcx
movups %xmm0, (%rcx)
incq %rax
movq %rax, 0x90(%rbx)
jmp 0x1e915
decq 0x80(%rbx)
movq 0x138(%rbx), %rsi
cmpq 0x118(%rbx), %rsi
sete %al
movq %rsp, %r13
movq 0x48(%rsp), %r12
je 0x1e6ae
movq 0x140(%rbx), %rcx
movq %rsi, %rdx
cmpq %rcx, %rsi
jne 0x1e2d1
movq 0x150(%rbx), %rdx
movq -0x8(%rdx), %rdx
movl $0x200, %edi            # imm = 0x200
addq %rdi, %rdx
movq -0x10(%rdx), %rdx
cmpl $0x2c, 0x18(%rdx)
je 0x1e67c
cmpq %rcx, %rsi
jne 0x1e2f7
movq 0x150(%rbx), %rax
movq -0x8(%rax), %rsi
movl $0x200, %eax            # imm = 0x200
addq %rax, %rsi
movq 0xb0(%rbx), %rdi
addq $0x10, %rdi
addq $-0x10, %rsi
callq 0x2d488
movq %r12, %rdi
callq 0x2f228
movq 0x138(%rbx), %rsi
cmpq 0x118(%rbx), %rsi
sete %al
jne 0x1e2af
jmp 0x1e6ae
movq 0x88(%rbx), %rax
orq 0x90(%rbx), %rax
jne 0x1e915
movq 0xe8(%rbx), %rax
cmpq 0xc8(%rbx), %rax
movq %rsp, %r13
jne 0x1e397
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
leaq 0x3b265(%rip), %rsi     # 0x595ca
leaq 0x3b26c(%rip), %rdx     # 0x595d8
callq 0x12646
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1c41c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1e397
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x93c0
movq 0xe8(%rbx), %rax
cmpq 0xf0(%rbx), %rax
jne 0x1e3ba
movq 0x100(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x10(%rax), %rax
incl 0x40(%rax)
jmp 0x1e918
cmpq $0x0, 0x90(%rbx)
movq %rsp, %r13
jne 0x1e418
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %r13, %rdi
leaq 0x3b1b0(%rip), %rsi     # 0x59596
leaq 0x3b1b7(%rip), %rdx     # 0x595a4
callq 0x12646
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1c41c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1e418
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x93c0
movq 0x88(%rbx), %rax
movq 0x90(%rbx), %rcx
decq %rcx
movq %rcx, 0x90(%rbx)
orq %rax, %rcx
jne 0x1e918
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rsi
movq %rbx, %rdi
callq 0x2d314
jmp 0x1e918
movl $0x9, %r15d
jmp 0x1e516
movl $0x6, %r15d
jmp 0x1e516
movl $0xd, %r15d
jmp 0x1e516
movl $0x8, %r15d
jmp 0x1e516
movl $0xf, %r15d
jmp 0x1e516
movl $0x7, %r15d
jmp 0x1e516
movl $0xc, %r15d
jmp 0x1e516
movl $0xb, %r15d
jmp 0x1e516
movl $0xa, %r15d
jmp 0x1e516
movl $0xe, %r15d
jmp 0x1e516
movl $0x10, %r15d
jmp 0x1e516
movl $0x5, %r15d
jmp 0x1e516
movl $0x4, %r15d
jmp 0x1e516
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %r14
movq %r14, %rdi
leaq 0x3b0cf(%rip), %rsi     # 0x595ae
leaq 0x3b0e3(%rip), %rdx     # 0x595c9
callq 0x12646
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1c41c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1e511
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x93c0
movl 0x74(%rsp), %r15d
movq 0x58(%rbx), %r14
movq 0x30(%rsp), %rax
subq 0x28(%rax), %r14
movq $0x0, (%rsp)
movl $0x78, %edi
callq 0x93b0
movq %rax, %r12
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x8(%r12)
leaq 0x59db2(%rip), %rax     # 0x78300
movq %rax, (%r12)
leaq 0x10(%r12), %r13
movq %r13, %rdi
movl %r15d, 0x74(%rsp)
movl %r15d, %esi
movq %r14, %rdx
callq 0x2f09a
movq %r12, 0x8(%rsp)
movq %r13, (%rsp)
movq 0x138(%rbx), %rsi
cmpq 0x118(%rbx), %rsi
movq %rsp, %r13
movq 0x48(%rsp), %r12
je 0x1e659
movq 0x140(%rbx), %rax
movq %rsi, %rcx
cmpq %rax, %rsi
jne 0x1e5b1
movq 0x150(%rbx), %rcx
movq -0x8(%rcx), %rcx
movl $0x200, %edx            # imm = 0x200
addq %rdx, %rcx
movq -0x10(%rcx), %rdi
movq (%rsp), %rcx
movl 0x10(%rcx), %edx
cmpl %edx, 0x10(%rdi)
ja 0x1e5ec
movq %rsi, %rdi
cmpq %rax, %rsi
jne 0x1e5dd
movq 0x150(%rbx), %rdi
movq -0x8(%rdi), %rdi
movl $0x200, %r8d            # imm = 0x200
addq %r8, %rdi
movq -0x10(%rdi), %rdi
cmpl %edx, 0x10(%rdi)
jne 0x1e659
cmpl $0x0, 0x14(%rcx)
jne 0x1e659
movq %rsi, %rcx
cmpq %rax, %rsi
jne 0x1e607
movq 0x150(%rbx), %rcx
movq -0x8(%rcx), %rcx
movl $0x200, %edx            # imm = 0x200
addq %rdx, %rcx
movq -0x10(%rcx), %rcx
cmpl $0x2c, 0x18(%rcx)
je 0x1e659
cmpq %rax, %rsi
jne 0x1e629
movq 0x150(%rbx), %rax
movq -0x8(%rax), %rsi
movl $0x200, %eax            # imm = 0x200
addq %rax, %rsi
movq 0xb0(%rbx), %rdi
addq $0x10, %rdi
addq $-0x10, %rsi
callq 0x2d488
movq %r12, %rdi
callq 0x2f228
movq 0x138(%rbx), %rsi
cmpq 0x118(%rbx), %rsi
jne 0x1e58f
movq %r12, %rdi
movq %r13, %rsi
callq 0x2f29c
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1e918
callq 0xf9ae
jmp 0x1e918
testb $0x1, %al
jne 0x1e6ae
cmpq 0x140(%rbx), %rsi
jne 0x1e69c
movq 0x150(%rbx), %rax
movq -0x8(%rax), %rsi
movl $0x200, %eax            # imm = 0x200
addq %rax, %rsi
movq -0x10(%rsi), %rax
cmpl $0x2c, 0x18(%rax)
jne 0x1e6ae
movq %r12, %rdi
callq 0x2f228
movq 0xe8(%rbx), %rax
cmpq 0xc8(%rbx), %rax
je 0x1e918
movq 0xf0(%rbx), %rcx
movq %rax, %rdx
cmpq %rcx, %rax
jne 0x1e6e4
movq 0x100(%rbx), %rdx
movq -0x8(%rdx), %rdx
movl $0x200, %esi            # imm = 0x200
addq %rsi, %rdx
movq -0x8(%rdx), %rdx
cmpq 0x80(%rbx), %rdx
jne 0x1e918
cmpq %rcx, %rax
jne 0x1e70d
movq 0x100(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x10(%rax), %r12
movq 0x40(%rbx), %rsi
leaq 0x20(%r12), %r14
movq 0x20(%r12), %rcx
movq 0x28(%r12), %rdx
movl 0x40(%r12), %r8d
movq %r13, %rdi
callq 0x2d4da
cmpl $0x2e, (%rsp)
jne 0x1e775
leaq 0x50(%rsp), %r15
movq %r15, %rdi
leaq 0x3aea2(%rip), %rsi     # 0x595e8
movq %r14, %rdx
callq 0x124ba
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1c41c
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1e775
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x93c0
movl (%rsp), %eax
movl %eax, 0x18(%r12)
cmpl $0x2b, %eax
jne 0x1e793
addq $0x48, %r12
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x2d76e
movq 0x138(%rbx), %rax
cmpq 0x118(%rbx), %rax
jne 0x1e7e1
leaq 0x50(%rsp), %r15
movq %r15, %rdi
leaq 0x3ae48(%rip), %rsi     # 0x595fa
movq %r14, %rdx
callq 0x124ba
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1c41c
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1e7e1
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x93c0
movq 0xb0(%rbx), %rdi
movq 0x138(%rbx), %rsi
cmpq 0x140(%rbx), %rsi
jne 0x1e80b
movq 0x150(%rbx), %rax
movq -0x8(%rax), %rsi
movl $0x200, %eax            # imm = 0x200
addq %rax, %rsi
addq $0x10, %rdi
addq $-0x10, %rsi
callq 0x2d488
movq 0x48(%rsp), %rdi
callq 0x2f228
movq 0x98(%rsp), %rdi
callq 0x2f460
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x1e918
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x1e918
movq %r14, %rdi
leaq 0x3ad4a(%rip), %rsi     # 0x595a5
movq %r12, %rdx
callq 0x9400
testl %eax, %eax
je 0x1e8e4
cmpq $0x3, %r13
ja 0x1e9d7
leaq 0x36968(%rip), %rcx     # 0x551e0
movslq (%rcx,%r13,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
leaq 0x37dd6(%rip), %rsi     # 0x56661
movq %r12, %rdx
callq 0x9400
testl %eax, %eax
je 0x1e8e4
cmpq $0x2, %r12
je 0x1e977
cmpq $0x3, %r12
je 0x1e00c
cmpq $0x4, %r12
jne 0x1e9d7
movq %r14, %rdi
leaq 0x39d97(%rip), %rsi     # 0x58656
movq %r12, %rdx
callq 0x9400
testl %eax, %eax
je 0x1e8e4
cmpq $0x2, %r12
je 0x1e977
cmpq $0x3, %r12
je 0x1e00c
jmp 0x1e9d7
movq 0x88(%rbx), %rax
orq 0x90(%rbx), %rax
jne 0x1e915
movq 0x40(%rsp), %rax
movups (%rax), %xmm0
movq 0x38(%rsp), %rax
movups %xmm0, (%rax)
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rsi
movq %rbx, %rdi
callq 0x2d314
movq %rsp, %r13
cmpb $0x1, 0x78(%rbx)
jne 0x1e938
movq 0x78(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rbp)
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movb $0x0, 0x78(%rbx)
jmp 0x1e959
movq %r13, %rdi
movq 0x80(%rsp), %rsi
callq 0x1ecce
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbp)
movups (%rsp), %xmm0
movups %xmm0, (%rbp)
movl (%rbp), %eax
cmpl 0x94(%rsp), %eax
je 0x1dddc
cmpl $0x22, %eax
jne 0x1deab
jmp 0x1dddc
movq %r14, %rdi
leaq 0x38105(%rip), %rsi     # 0x56a86
movq %r12, %rdx
callq 0x9400
testl %eax, %eax
je 0x1dec7
cmpq $0x3, %r12
je 0x1e9bd
cmpq $0x2, %r12
jne 0x1e9d7
movq %r14, %rdi
leaq 0x380b2(%rip), %rsi     # 0x56a59
movq %r12, %rdx
callq 0x9400
testl %eax, %eax
je 0x1dec7
cmpq $0x3, %r12
jne 0x1e9d7
movq %r14, %rdi
leaq 0x3abe3(%rip), %rsi     # 0x595aa
movq %r12, %rdx
callq 0x9400
testl %eax, %eax
je 0x1dec7
cmpl $0x15, 0x60(%rbx)
jne 0x1eac1
movq 0x58(%rbx), %rsi
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
addq %rsi, %r12
movq %rsp, %r13
movq %r13, %rdi
movq %r12, %rdx
callq 0x12646
movq 0x58(%rbx), %rax
movq 0x30(%rsp), %rcx
subq 0x28(%rcx), %rax
movq %rax, 0x88(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x50(%rsp), %r14
movq %r14, %rsi
leaq 0x2f(%rsp), %rdx
movq %r13, %rcx
leaq 0x88(%rsp), %r8
callq 0x2dd92
movq 0x48(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2db04
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x1ea5e
callq 0xf9ae
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1ea79
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x93c0
movq 0x138(%rbx), %rax
cmpq 0x140(%rbx), %rax
jne 0x1ea9c
movq 0x150(%rbx), %rax
movq -0x8(%rax), %rax
movl $0x200, %ecx            # imm = 0x200
addq %rcx, %rax
movq -0x10(%rax), %rax
movq %rax, (%rsp)
movq 0x98(%rsp), %rdi
movq %r13, %rsi
movq 0xa0(%rsp), %rdx
callq 0x2df7e
jmp 0x1e918
movq 0xb0(%rbx), %r14
movq 0x58(%rbx), %rsi
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
addq %rsi, %r12
movq %rsp, %r13
movq %r13, %rdi
movq %r12, %rdx
callq 0x12646
movq 0x58(%rbx), %rax
movq 0x30(%rsp), %rcx
subq 0x28(%rcx), %rax
movq %rax, 0x88(%rsp)
movq $0x0, 0x50(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x50(%rsp), %r15
movq %r15, %rsi
leaq 0x2f(%rsp), %rdx
movq %r13, %rcx
leaq 0x88(%rsp), %r8
callq 0x2e310
addq $0x10, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x2d440
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x1eb44
callq 0xf9ae
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1e918
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x93c0
jmp 0x1e918
movl $0x2, %r15d
jmp 0x1e516
movl $0x1, %r15d
jmp 0x1e516
xorl %r15d, %r15d
jmp 0x1e516
movl $0x3, %r15d
jmp 0x1e516
jmp 0x1eb95
jmp 0x1ebe4
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1ebe7
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x93c0
jmp 0x1ebe7
jmp 0x1ebe4
jmp 0x1ec12
jmp 0x1ec32
jmp 0x1ec02
jmp 0x1ebc4
jmp 0x1ec12
jmp 0x1ec32
movq %rax, %rbx
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x1ec15
callq 0xf9ae
jmp 0x1ec15
jmp 0x1ec12
jmp 0x1ec32
jmp 0x1ec12
jmp 0x1ec32
jmp 0x1ec12
jmp 0x1ec32
movq %rax, %rbx
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x1ec4d
leaq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x1ec4d
movq %rax, %rdi
callq 0xe8bb
jmp 0x1ec12
jmp 0x1ec32
jmp 0x1ec12
jmp 0x1ec32
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1ec4d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x93c0
jmp 0x1ec4d
movq %rax, %rbx
jmp 0x1ec4d
jmp 0x1ec3b
jmp 0x1ec3b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1ec4d
callq 0xf9ae
movq %rbx, %rdi
callq 0x9790
nop