// File: /workspace/github_cpp_makefile_star2_O1/rfotino[P]consolite-compiler/src/syntax.cpp
// Function: FunctionToken::parse(Tokenizer*, std::vector<std::shared_ptr<FunctionToken>, std::allocator<std::shared_ptr<FunctionToken>>>&, std::vector<std::shared_ptr<GlobalVarToken>, std::allocator<std::shared_ptr<GlobalVarToken>>>&)
bool FunctionToken::parse(
      Tokenizer *tokenizer,
      std::vector<std::shared_ptr<FunctionToken>>& functions,
      std::vector<std::shared_ptr<GlobalVarToken>>& globals) {
  _lineNum = _type.line();
  // Validate the type
  if (_type.isArray()) {
    _error("Function return type cannot be array-valued.", _type.line());
    return false;
  }
  // Validate the name
  if (!isValidName(_name)) {
    _error("Invalid function name '" + _name + "'.", _type.line());
    return false;
  } else if (getFunction(_name, functions)) {
    _error("Function '" + _name + "' conflicts with existing function name.",
           _type.line());
    return false;
  } else if (getGlobal(_name, globals)) {
    _error("Function '" + _name + "' conflicts with existing global var name.",
           _type.line());
    return false;
  }
  // Make sure the first token is an open parenthesis
  if (!_expect(tokenizer, "(")) {
    return false;
  }
  // Get the parameters
  while (")" != tokenizer->peekNext().str()) {
    std::shared_ptr<ParamToken> param(new ParamToken());
    if (!param->parse(tokenizer, functions, globals)) {
      return false;
    } else if (getParameter(param->name(), _parameters)) {
      _error("Parameter '" + param->name() + "' conflicts with existing "
             "parameter name.", param->line());
      return false;
    }
    _parameters.push_back(param);
    AtomToken t = tokenizer->peekNext();
    if (t.str().empty()) {
      _error("Unexpected EOF.", t.line());
      return false;
    } else if ("," == t.str()) {
      tokenizer->getNext();
      continue;
    } else if (")" != t.str()) {
      _error("Unexpected token '" + t.str() + "'.", t.line());
      return false;
    }
  }
  // Consume the closing parenthesis
  tokenizer->getNext();
  // Add self to the functions list
  functions.push_back(shared_from_this());
  // Get the function body. Make sure it starts with a '{'.
  if (!_expect(tokenizer, "{")) {
    return false;
  }
  // Get the statements within the function body. Local variable
  // declarations must come before any other statements.
  bool inDeclarations = true;
  while ("}" != tokenizer->peekNext().str()) {
    auto statement = StatementToken::parse(tokenizer, functions, globals,
                                           _parameters, _localVars, _labels,
                                           _gotos, shared_from_this());
    if (!statement) {
      return false;
    }
    // If it's a local variable declaration, add it to the list of local
    // variables.
    if (std::dynamic_pointer_cast<LocalVarToken>(statement)) {
      if (!inDeclarations) {
        _error("Declarations must come before other "
               "statements in function '" + _name + "()'.",
               statement->line());
        return false;
      }
      _localVars.push_back(std::dynamic_pointer_cast<LocalVarToken>(statement));
    } else {
      inDeclarations = false;
      _statements.push_back(statement);
    }
    // Check for EOF
    AtomToken t = tokenizer->peekNext();
    if (t.str().empty()) {
      _error("Unexpected EOF.", t.line());
      return false;
    }
  }
  // Consume the '}' token
  tokenizer->getNext();
  // Make sure all of the goto statements match up with a label.
  bool ret = true;
  for (auto gotoStatement : _gotos) {
    if (!getLabel(gotoStatement->label(), _labels)) {
      _error("Label '" + gotoStatement->label() + "' does not exist in "
             "function '" + _name + "' for goto statement.",
             gotoStatement->line());
      ret = false;
    }
  }
  return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdi, %rbx
movl 0x28(%rdi), %eax
movl %eax, 0x8(%rdi)
cmpb $0x1, 0x50(%rdi)
jne 0x18dd6
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1dee8(%rip), %rsi     # 0x36c88
leaq 0x1df0d(%rip), %rdx     # 0x36cb4
leaq 0x28(%rsp), %rdi
callq 0xc0a4
movl 0x28(%rbx), %esi
leaq 0x28(%rsp), %rdi
callq 0x34811
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x1968b
movq 0x38(%rsp), %rsi
jmp 0x19683
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r15
leaq 0x58(%rbx), %r14
movq %r14, %rdi
callq 0x33f07
testb %al, %al
je 0x18e87
leaq 0x28(%rsp), %rbp
movq %rbp, %rdi
movq %r14, 0x80(%rsp)
movq %r14, %rsi
movq %r12, 0x78(%rsp)
movq %r12, %rdx
callq 0x34498
movq (%rbp), %r12
movq 0x8(%rbp), %rdi
testq %rdi, %rdi
je 0x18e25
callq 0x81ea
testq %r12, %r12
je 0x18edb
leaq 0x1dbd1(%rip), %rsi     # 0x36a06
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq 0x80(%rsp), %rdx
callq 0xb963
leaq 0x1dcdb(%rip), %rsi     # 0x36b2c
movq %r15, %rdi
callq 0x7560
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x18f97
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x18f9e
leaq 0x1de27(%rip), %rsi     # 0x36cb5
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xb963
leaq 0x1de9d(%rip), %rsi     # 0x36d42
movq %r15, %rdi
callq 0x7560
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x18f67
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x18f6e
leaq 0x28(%rsp), %rbp
movq %rbp, %rdi
movq 0x80(%rsp), %rsi
movq %r13, %rdx
callq 0x345b1
movq (%rbp), %r12
movq 0x8(%rbp), %rdi
testq %rdi, %rdi
je 0x18f05
callq 0x81ea
testq %r12, %r12
je 0x18fc7
leaq 0x1daf1(%rip), %rsi     # 0x36a06
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq 0x80(%rsp), %rdx
callq 0xb963
leaq 0x1dc24(%rip), %rsi     # 0x36b55
movq %r15, %rdi
callq 0x7560
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1962e
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x19635
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x28(%rbx), %esi
callq 0x34811
jmp 0x19659
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x28(%rbx), %esi
callq 0x34811
jmp 0x19659
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1d0e1(%rip), %rsi     # 0x360b9
leaq 0x1d0db(%rip), %rdx     # 0x360ba
leaq 0x28(%rsp), %rdi
callq 0xc0a4
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
movl $0x1, %edx
callq 0x3494f
movl %eax, %ebp
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x19014
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bpl, %bpl
je 0x1968b
movq %r13, 0xe8(%rsp)
leaq 0x18(%rsp), %r13
leaq 0x78(%rbx), %rax
movq %rax, 0xd0(%rsp)
xorl %r12d, %r12d
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x33270
movq %r13, 0x8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
callq 0xc014
movq %rbp, %rdi
leaq 0x1e86f(%rip), %rsi     # 0x378de
callq 0x70c0
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1908d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x2dc4c(%rip), %rax     # 0x46ce0
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x190b5
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
testl %ebp, %ebp
je 0x196a5
movl $0x98, %edi
callq 0x72b0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %edx, 0x8(%rax)
leaq 0x20(%rax), %rcx
movq %rcx, 0x10(%rax)
movq %r12, 0x18(%rax)
movb %r12b, 0x20(%rax)
movl %edx, 0x40(%rax)
leaq 0x2dc37(%rip), %rcx     # 0x46d20
movq %rcx, 0x38(%rax)
leaq 0x58(%rax), %rcx
movq %rcx, 0x48(%rax)
movq %r12, 0x50(%rax)
movb %r12b, 0x58(%rax)
movb %r12b, 0x68(%rax)
movw $0xffff, 0x6a(%rax)     # imm = 0xFFFF
leaq 0x80(%rax), %rcx
movq %rcx, 0x70(%rax)
movq %r12, 0x78(%rax)
movb %r12b, 0x80(%rax)
movb $0x1, 0x90(%rax)
leaq 0x2dc3d(%rip), %rcx     # 0x46d68
movq %rcx, (%rax)
movq %rax, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
movq %rax, %rsi
callq 0x316be
movq 0xb0(%rsp), %rdi
movq %r15, %rsi
movq 0x78(%rsp), %rdx
movq 0xe8(%rsp), %rcx
callq 0x18660
movb $0x1, %r13b
testb %al, %al
je 0x1960a
movq 0xb0(%rsp), %rax
leaq 0x38(%rsp), %rcx
movq %rcx, 0x28(%rsp)
movq 0x70(%rax), %rsi
movq 0x78(%rax), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rbp
movq %rbp, %rdi
callq 0xc014
leaq 0x8(%rsp), %rdi
movq %rbp, %rsi
movq 0xd0(%rsp), %rdx
callq 0x34266
movq 0x8(%rsp), %rbp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x191c1
callq 0x81ea
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x191dd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
testq %rbp, %rbp
je 0x19259
movq 0xb0(%rsp), %rax
leaq 0x68(%rsp), %rcx
movq %rcx, 0x58(%rsp)
movq 0x70(%rax), %rsi
movq 0x78(%rax), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0xc014
leaq 0x8(%rsp), %rbp
movl $0xb, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1daa8(%rip), %rcx     # 0x36ccd
callq 0x7320
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x193f0
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x193f6
movq 0xd0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x22368
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x33270
leaq 0x18(%rsp), %rbp
movq %rbp, 0x8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xc014
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r13
cmpq %rbp, %rdi
je 0x192b8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
testq %r13, %r13
leaq 0x8(%rsp), %rbp
leaq 0x18(%rsp), %r13
je 0x194cd
movq %r13, 0x8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0xc014
movq %rbp, %rdi
leaq 0x1d6f8(%rip), %rsi     # 0x369e7
callq 0x70c0
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x19312
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x18(%rsp), %r13
testl %ebp, %ebp
je 0x1950c
movq %r13, 0x8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
callq 0xc014
movq %rbp, %rdi
leaq 0x1e59b(%rip), %rsi     # 0x378de
callq 0x70c0
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x19361
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
testl %ebp, %ebp
je 0x19550
leaq 0xa0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %r13
movq %r13, %rdi
callq 0xc014
leaq 0x8(%rsp), %rbp
leaq 0x58(%rsp), %r14
movq %r14, %rdi
leaq 0x1d4fd(%rip), %rsi     # 0x368a7
movq %r13, %rdx
callq 0x22046
movq %r14, %rdi
leaq 0x1d986(%rip), %rsi     # 0x36d42
callq 0x7560
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x19558
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1955e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbp, %rdi
leaq 0x1d8c1(%rip), %rsi     # 0x36cd9
callq 0x7560
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x19445
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x1944b
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xb0(%rsp), %rax
movl 0x8(%rax), %esi
leaq 0x28(%rsp), %rdi
callq 0x34811
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x19494
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x194b0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x1960a
movq 0x68(%rsp), %rsi
jmp 0x19602
movq %r13, 0x8(%rsp)
movq %rbp, %rdi
leaq 0x1d4fb(%rip), %rsi     # 0x369d7
leaq 0x1d503(%rip), %rdx     # 0x369e6
callq 0xc0a4
movl 0x30(%rsp), %esi
movq %rbp, %rdi
callq 0x34811
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x195df
movq 0x18(%rsp), %rsi
jmp 0x195d7
leaq 0x108(%rsp), %rdi
movq %r15, %rsi
callq 0x32f76
leaq 0x2d7bd(%rip), %rax     # 0x46ce0
movq %rax, 0x108(%rsp)
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x19550
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %r13d, %r13d
jmp 0x195e2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x30(%rsp), %esi
movq %rbp, %rdi
callq 0x34811
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1959e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x195ba
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x195df
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x72c0
movb $0x1, %r13b
leaq 0x2d6f7(%rip), %rax     # 0x46ce0
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1960a
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x1961c
callq 0x81ea
xorl %ebp, %ebp
testb %r13b, %r13b
leaq 0x18(%rsp), %r13
je 0x19039
jmp 0x1968d
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x28(%rbx), %esi
callq 0x34811
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x19670
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1968b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %ebp, %ebp
andb $0x1, %bpl
movl %ebp, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x168(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x32f76
leaq 0x2d621(%rip), %rax     # 0x46ce0
movq %rax, (%rbp)
movq 0x10(%rbp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x196e4
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x10(%rbx), %rsi
leaq 0x28(%rsp), %rbp
movq %rbp, %rdi
movq %rsi, 0x100(%rsp)
callq 0x3192a
movq 0x78(%rsp), %rdi
movq %rbp, %rsi
callq 0xc868
leaq 0x38(%rsp), %r12
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1971e
callq 0x81ea
leaq 0x28(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x1d2a6(%rip), %rsi     # 0x369d3
leaq 0x1d2a0(%rip), %rdx     # 0x369d4
callq 0xc0a4
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
movq %rsi, %r14
movl $0x1, %edx
callq 0x3494f
movl %eax, %ebp
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x19767
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bpl, %bpl
je 0x1968b
leaq 0x90(%rbx), %rax
movq %rax, 0xd8(%rsp)
leaq 0xa8(%rbx), %rax
movq %rax, 0xe0(%rsp)
leaq 0xc0(%rbx), %rax
movq %rax, 0xf8(%rsp)
leaq 0xd8(%rbx), %rax
movq %rax, 0xf0(%rsp)
movb $0x1, %al
movl %eax, 0x8c(%rsp)
leaq 0x8(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x33270
movq %r13, 0x8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rbp
movq %r12, %rdi
callq 0xc014
movq %rbp, %rdi
leaq 0x1d1e9(%rip), %rsi     # 0x369d5
callq 0x70c0
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1980a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x2d4cf(%rip), %rax     # 0x46ce0
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x19832
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
testl %ebp, %ebp
je 0x19af8
movq %r14, %rdi
movq 0x100(%rsp), %rsi
callq 0x3192a
leaq 0x58(%rsp), %rdi
movq %r15, %rsi
movq 0x78(%rsp), %rdx
movq 0xe8(%rsp), %rcx
movq 0xd0(%rsp), %r8
movq 0xd8(%rsp), %r9
pushq $0x0
pushq %r14
pushq 0x108(%rsp)
pushq 0xf8(%rsp)
callq 0x1a294
addq $0x20, %rsp
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x19899
callq 0x81ea
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x19ad1
leaq 0x2d7ba(%rip), %rsi     # 0x47068
leaq 0x2da1b(%rip), %rdx     # 0x472d0
xorl %ecx, %ecx
callq 0x7330
movq %rax, %rbp
movl $0x0, %edi
testq %rax, %rax
je 0x198e8
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x198e8
movq 0x2e6be(%rip), %rax     # 0x47f98
cmpb $0x0, (%rax)
je 0x198e4
incl 0x8(%rdi)
jmp 0x198e8
lock
incl 0x8(%rdi)
testq %rdi, %rdi
je 0x198f2
callq 0x81ea
testq %rbp, %rbp
je 0x19933
testb $0x1, 0x8c(%rsp)
je 0x19a1f
movq %r14, %rdi
leaq 0x58(%rsp), %rsi
callq 0x223a7
movq 0xd8(%rsp), %rdi
movq %r14, %rsi
callq 0x31980
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x19950
callq 0x81ea
jmp 0x19950
movq 0xf0(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x22412
movl $0x0, 0x8c(%rsp)
movq %r12, %rbp
movq %r14, %rdi
movq %r15, %rsi
callq 0x33270
movq %r13, 0x8(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0xc014
movq %r13, %rax
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rbp
testq %rbp, %rbp
setne %r13b
cmpq %rax, %rdi
je 0x1999e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
testq %rbp, %rbp
jne 0x199ee
movq %r12, %rbp
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %r12, %rdi
leaq 0x1d01d(%rip), %rsi     # 0x369d7
leaq 0x1d025(%rip), %rdx     # 0x369e6
callq 0xc0a4
movl 0x30(%rsp), %esi
movq %rbp, %rdi
callq 0x34811
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x199ee
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x2d2eb(%rip), %rax     # 0x46ce0
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x19ad4
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x19ad4
movq %r12, %rbp
movq %r12, %rdi
leaq 0x1d2d7(%rip), %rsi     # 0x36d03
movq 0x80(%rsp), %rdx
callq 0xb963
movq %rbp, %rdi
leaq 0x1d2fd(%rip), %rsi     # 0x36d40
callq 0x7560
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x19a70
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x19a76
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x58(%rsp), %rax
movl 0x8(%rax), %esi
movq %r14, %rdi
callq 0x34811
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x19aba
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x19ad1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %r13d, %r13d
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x19ae3
callq 0x81ea
xorl %ebp, %ebp
testb %r13b, %r13b
leaq 0x18(%rsp), %r13
jne 0x197ba
jmp 0x1968d
leaq 0x138(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x32f76
leaq 0x2d1ce(%rip), %rax     # 0x46ce0
movq %rax, (%r14)
movq 0x10(%r14), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x19b36
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0xc0(%rbx), %r13
movq 0xc8(%rbx), %rax
movq %rax, 0x80(%rsp)
movb $0x1, %bpl
cmpq %rax, %r13
je 0x1968d
leaq 0x28(%rsp), %r15
movq (%r13), %r12
movq 0x8(%r13), %rcx
testq %rcx, %rcx
je 0x19b7f
movq 0x2e427(%rip), %rax     # 0x47f98
cmpb $0x0, (%rax)
je 0x19b7b
incl 0x8(%rcx)
jmp 0x19b7f
lock
incl 0x8(%rcx)
movq %rcx, 0x78(%rsp)
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xc014
leaq 0x8(%rsp), %rdi
movq %r15, %r14
movq %r15, %rsi
movq 0xe0(%rsp), %rdx
callq 0x346ca
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x19bcf
callq 0x81ea
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x19beb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
testq %r15, %r15
movq %r14, %r15
jne 0x19e4b
leaq 0xc0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rbp
movq %rbp, %rdi
callq 0xc014
movl $0x7, %r8d
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1d10d(%rip), %rcx     # 0x36d45
callq 0x7320
leaq 0xa0(%rsp), %rsi
movq %rsi, 0x90(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x19c71
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x19c77
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x98(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90(%rsp), %rdi
leaq 0x1d0ac(%rip), %rsi     # 0x36d4d
callq 0x7560
leaq 0x68(%rsp), %rsi
movq %rsi, 0x58(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x19cce
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x19cd4
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x58(%rbx), %rsi
movq 0x60(%rbx), %rdx
leaq 0x58(%rsp), %rdi
callq 0x70d0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x19d26
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x19d2c
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x1d01c(%rip), %rsi     # 0x36d6c
callq 0x7560
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x19d7d
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x19d83
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x8(%r12), %esi
movq %r15, %rdi
callq 0x34811
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
leaq 0x68(%rsp), %r15
leaq 0xa0(%rsp), %r12
je 0x19dd1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x19ded
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x19e04
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x90(%rsp), %rdi
cmpq %r12, %rdi
movq %r14, %r15
je 0x19e24
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x19e49
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %ebp, %ebp
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x19e5a
callq 0x81ea
addq $0x10, %r13
cmpq 0x80(%rsp), %r13
jne 0x19b5d
jmp 0x1968d
jmp 0x1a0c6
jmp 0x1a288
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1a28b
jmp 0x1a265
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1a084
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1a084
jmp 0x1a081
jmp 0x1a11b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x19ee7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x19ee7
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x19f08
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x19f08
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x1a11e
movq 0xa0(%rsp), %rsi
jmp 0x1a06a
jmp 0x1a11b
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1a0b1
callq 0x81ea
jmp 0x1a0b1
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x19f72
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x19f72
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1a0b1
movq 0x18(%rsp), %rsi
jmp 0x1a0a4
jmp 0x1a0ae
jmp 0x1a0ae
jmp 0x1a0e1
movq %rax, %rbx
jmp 0x19fed
movq %rax, %rbx
jmp 0x1a009
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x19fd1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x19fd1
movq %rax, %rbx
jmp 0x1a02e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x19fed
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x1a009
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x1a02e
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x1a105
movq 0xc0(%rsp), %rsi
jmp 0x1a0fd
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1a11e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1a11e
jmp 0x1a11b
jmp 0x1a11b
movq %rax, %rbx
leaq 0x2cc55(%rip), %rax     # 0x46ce0
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1a0b1
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1a0b1
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x1a28b
jmp 0x1a265
jmp 0x1a11b
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
jne 0x1a279
jmp 0x1a28b
jmp 0x1a288
movq %rax, %rbx
jmp 0x1a105
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1a105
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
cmpq $0x0, 0x78(%rsp)
je 0x1a28b
movq 0x78(%rsp), %rdi
jmp 0x1a265
movq %rax, %rbx
leaq 0x2cbbb(%rip), %rax     # 0x46ce0
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1a258
movq 0x48(%rsp), %rsi
jmp 0x1a1ec
jmp 0x1a255
jmp 0x1a1fc
jmp 0x1a218
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1a28b
jmp 0x1a265
jmp 0x1a230
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1a195
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1a195
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1a1b6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1a1b6
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x1a258
movq 0x68(%rsp), %rsi
jmp 0x1a1ec
jmp 0x1a255
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1a258
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1a258
jmp 0x1a255
jmp 0x1a1fc
jmp 0x1a218
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x1a21b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1a21b
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a28b
movq 0x18(%rsp), %rsi
jmp 0x1a27e
movq %rax, %rbx
leaq 0x2caa6(%rip), %rax     # 0x46ce0
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1a28b
movq 0x48(%rsp), %rsi
jmp 0x1a27e
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x1a28b
callq 0x81ea
jmp 0x1a28b
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x1a28b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1a28b
movq %rax, %rbx
movq %rbx, %rdi
callq 0x74f0
nop