// File: /workspace/github_cpp_makefile_star2_O3/rfotino[P]consolite-compiler/src/syntax.cpp
// Function: ForStatement::parse(Tokenizer*, std::vector<std::shared_ptr<FunctionToken>, std::allocator<std::shared_ptr<FunctionToken>>> const&, std::vector<std::shared_ptr<GlobalVarToken>, std::allocator<std::shared_ptr<GlobalVarToken>>> const&, std::vector<std::shared_ptr<ParamToken>, std::allocator<std::shared_ptr<ParamToken>>> const&, std::vector<std::shared_ptr<LocalVarToken>, std::allocator<std::shared_ptr<LocalVarToken>>> const&, std::vector<std::shared_ptr<LabelStatement>, std::allocator<std::shared_ptr<LabelStatement>>>&, std::vector<std::shared_ptr<GotoStatement>, std::allocator<std::shared_ptr<GotoStatement>>>&, std::shared_ptr<FunctionToken> const&)
bool ForStatement::parse(
      Tokenizer *tokenizer,
      const std::vector<std::shared_ptr<FunctionToken>>& functions,
      const std::vector<std::shared_ptr<GlobalVarToken>>& globals,
      const std::vector<std::shared_ptr<ParamToken>>& parameters,
      const std::vector<std::shared_ptr<LocalVarToken>>& localVars,
      std::vector<std::shared_ptr<LabelStatement>>& labels,
      std::vector<std::shared_ptr<GotoStatement>>& gotos,
      const std::shared_ptr<FunctionToken>& currentFunc) {
  _lineNum = tokenizer->peekNext().line();
  // Start with the "for" keyword.
  if (!_expect(tokenizer, "for")) {
    return false;
  }
  // Next get the "(" token.
  if (!_expect(tokenizer, "(")) {
    return false;
  }
  // Get the INIT_LIST.
  if (";" != tokenizer->peekNext().str()) {
    while (true) {
      std::shared_ptr<ExprToken> expr(new ExprToken());
      if (!expr->parse(tokenizer, functions, globals, parameters, localVars)) {
        return false;
      }
      _initExprs.push_back(expr);
      // If the next token is not a comma, we are done. Otherwise consume
      // the comma and continue.
      if ("," != tokenizer->peekNext().str()) {
        break;
      }
      tokenizer->getNext();
    }
  }
  // Make sure the INIT_LIST ended with a ';'.
  if (!_expect(tokenizer, ";")) {
    return false;
  }
  // Get the COND_EXPR. If the next token is a ';', then the COND_EXPR
  // is an implicit truthy value.
  if (";" == tokenizer->peekNext().str()) {
    _condExpr = std::shared_ptr<ExprToken>(new ExprToken(1));
  } else {
    _condExpr = std::shared_ptr<ExprToken>(new ExprToken());
    if (!_condExpr->parse(tokenizer, functions, globals,
                          parameters, localVars)) {
      return false;
    }
  }
  // Make sure the COND_EXPR ended with a ';'.
  if (!_expect(tokenizer, ";")) {
    return false;
  }
  // Get the LOOP_LIST.
  if (")" != tokenizer->peekNext().str()) {
    while (true) {
      std::shared_ptr<ExprToken> expr(new ExprToken());
      if (!expr->parse(tokenizer, functions, globals, parameters, localVars)) {
        return false;
      }
      _loopExprs.push_back(expr);
      // If the next token is not a comma, we are done. Otherwise consume
      // the comma and continue.
      if ("," != tokenizer->peekNext().str()) {
        break;
      }
      tokenizer->getNext();
    }
  }
  // Make sure the LOOP_LIST ended with a ')'.
  if (!_expect(tokenizer, ")")) {
    return false;
  }
  // Get the statement that is the body of the loop, make sure it is valid.
  _body = StatementToken::parse(tokenizer, functions, globals, parameters,
                                localVars, labels, gotos, currentFunc, true);
  if (!_body) {
    return false;
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %r9, %r12
movq %r8, 0x78(%rsp)
movq %rcx, 0x70(%rsp)
movq %rdx, 0x68(%rsp)
movq %rsi, %rbp
movq %rdi, %r14
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x32bec
movl 0x8(%rbx), %eax
movl %eax, 0x8(%r14)
leaq 0x29550(%rip), %rax     # 0x45d10
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1c7de
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x195c7(%rip), %rsi     # 0x35db5
leaq 0x195c3(%rip), %rdx     # 0x35db8
movq %rsp, %rdi
callq 0xbdee
movq %rsp, %rsi
movq %rbp, %rdi
movl $0x1, %edx
callq 0x342b6
movl %eax, %ebx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1c825
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bl, %bl
je 0x1cf30
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x1887f(%rip), %rsi     # 0x350b9
leaq 0x18879(%rip), %rdx     # 0x350ba
callq 0xbdee
movq %rsp, %rsi
movq %rbp, %rdi
movl $0x1, %edx
callq 0x342b6
movl %eax, %ebx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1c86e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bl, %bl
je 0x1cf30
movq %r14, 0x60(%rsp)
movq %rsp, %rbx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x32bec
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0xbd58
leaq 0x19313(%rip), %rsi     # 0x35bc1
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x70c0
movl %eax, %ebx
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x1c8d2
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x29437(%rip), %rax     # 0x45d10
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
movq 0x60(%rsp), %r14
je 0x1c8fe
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x72c0
testl %ebx, %ebx
movq %r12, 0x80(%rsp)
je 0x1ca83
addq $0x30, %r14
leaq 0x2971f(%rip), %r13     # 0x46038
leaq 0x40(%rsp), %r15
movl $0x28, %edi
callq 0x72b0
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq %r13, (%rax)
movb $0x1, 0xc(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0xe(%rax)
movups %xmm0, 0x18(%rax)
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
callq 0x30c64
movq 0x30(%rsp), %rdi
movq %rbp, %rsi
movq 0x68(%rsp), %rdx
movq 0x70(%rsp), %rcx
movq 0x78(%rsp), %r8
movq %r12, %r9
callq 0x1131a
movl $0x1, %ebx
testb %al, %al
je 0x1ca5e
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
callq 0x21aba
movq %rsp, %rdi
movq %rbp, %rsi
callq 0x32bec
leaq 0x50(%rsp), %rbx
movq %rbx, 0x40(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xbd58
movq %r15, %rdi
leaq 0x19027(%rip), %rsi     # 0x359e7
callq 0x70c0
movl %eax, %r12d
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1c9df
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x2932a(%rip), %rax     # 0x45d10
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1ca06
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x72c0
movl $0x3, %ebx
testl %r12d, %r12d
movq 0x80(%rsp), %r12
jne 0x1ca5e
leaq 0xb8(%rsp), %rdi
movq %rbp, %rsi
callq 0x32902
leaq 0x292e1(%rip), %rax     # 0x45d10
movq %rax, 0xb8(%rsp)
movq 0xc8(%rsp), %rdi
xorl %ebx, %ebx
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x1ca5e
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1ca6d
callq 0x8036
testl %ebx, %ebx
je 0x1c91e
cmpl $0x1, %ebx
leaq 0x10(%rsp), %r13
je 0x1cf30
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x19131(%rip), %rsi     # 0x35bc1
leaq 0x1912b(%rip), %rdx     # 0x35bc2
callq 0xbdee
movq %rsp, %rsi
movq %rbp, %rdi
movl $0x1, %edx
callq 0x342b6
movl %eax, %ebx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1cac4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bl, %bl
je 0x1cf30
movq %rsp, %rbx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x32bec
leaq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %r15
movq %r15, (%rdi)
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
addq %rsi, %rdx
callq 0xbd58
leaq 0x190c3(%rip), %rsi     # 0x35bc1
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x70c0
movl %eax, %ebx
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x1cb22
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x291e7(%rip), %rax     # 0x45d10
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
movq 0x60(%rsp), %r15
je 0x1cb4e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x72c0
testl %ebx, %ebx
je 0x1cbe8
movl $0x28, %edi
callq 0x72b0
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
leaq 0x294ca(%rip), %rcx     # 0x46038
movq %rcx, (%rax)
movb $0x1, 0xc(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0xe(%rax)
movups %xmm0, 0x18(%rax)
leaq 0x8(%rsp), %rbx
movq %rax, -0x8(%rbx)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x30c64
movaps -0x8(%rbx), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, -0x8(%rbx)
movq 0x18(%r15), %rdi
movups %xmm0, 0x10(%r15)
testq %rdi, %rdi
je 0x1cbc1
callq 0x8036
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1cbc1
callq 0x8036
movq 0x10(%r15), %rdi
movq %rbp, %rsi
movq 0x68(%rsp), %rdx
movq 0x70(%rsp), %rcx
movq 0x78(%rsp), %r8
movq %r12, %r9
callq 0x1131a
testb %al, %al
jne 0x1cc43
jmp 0x1cf30
movl $0x28, %edi
callq 0x72b0
movq %rax, %r14
movq %rax, %rdi
movl $0x1, %esi
callq 0x133c6
leaq 0x8(%rsp), %rbx
movq %r14, -0x8(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30c64
movaps -0x8(%rbx), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, -0x8(%rbx)
movq 0x18(%r15), %rdi
movups %xmm0, 0x10(%r15)
testq %rdi, %rdi
je 0x1cc43
callq 0x8036
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1cc43
callq 0x8036
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x18f71(%rip), %rsi     # 0x35bc1
leaq 0x18f6b(%rip), %rdx     # 0x35bc2
callq 0xbdee
movq %rsp, %rsi
movq %rbp, %rdi
movl $0x1, %edx
callq 0x342b6
movl %eax, %ebx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1cc84
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bl, %bl
je 0x1cf30
movq %rsp, %rbx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x32bec
leaq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %r15
movq %r15, (%rdi)
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
addq %rsi, %rdx
callq 0xbd58
leaq 0x19c20(%rip), %rsi     # 0x368de
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x70c0
movl %eax, %ebx
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x1cce2
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x29027(%rip), %rax     # 0x45d10
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
movq 0x60(%rsp), %r14
je 0x1cd0e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x72c0
testl %ebx, %ebx
je 0x1ce90
addq $0x48, %r14
leaq 0x29317(%rip), %r13     # 0x46038
leaq 0x40(%rsp), %r15
movl $0x28, %edi
callq 0x72b0
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq %r13, (%rax)
movb $0x1, 0xc(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0xe(%rax)
movups %xmm0, 0x18(%rax)
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
callq 0x30c64
movq 0x30(%rsp), %rdi
movq %rbp, %rsi
movq 0x68(%rsp), %rdx
movq 0x70(%rsp), %rcx
movq 0x78(%rsp), %r8
movq %r12, %r9
callq 0x1131a
movl $0x1, %ebx
testb %al, %al
je 0x1ce66
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
callq 0x21aba
movq %rsp, %rdi
movq %rbp, %rsi
callq 0x32bec
leaq 0x50(%rsp), %rbx
movq %rbx, 0x40(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xbd58
movq %r15, %rdi
leaq 0x18c1f(%rip), %rsi     # 0x359e7
callq 0x70c0
movl %eax, %r12d
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1cde7
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x28f22(%rip), %rax     # 0x45d10
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1ce0e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x72c0
movl $0x5, %ebx
testl %r12d, %r12d
movq 0x80(%rsp), %r12
jne 0x1ce66
leaq 0x88(%rsp), %rdi
movq %rbp, %rsi
callq 0x32902
leaq 0x28ed9(%rip), %rax     # 0x45d10
movq %rax, 0x88(%rsp)
movq 0x98(%rsp), %rdi
xorl %ebx, %ebx
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x1ce66
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1ce75
callq 0x8036
testl %ebx, %ebx
je 0x1cd26
cmpl $0x1, %ebx
movq 0x60(%rsp), %r14
leaq 0x10(%rsp), %r13
je 0x1cf30
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x19a41(%rip), %rsi     # 0x368de
leaq 0x19a3b(%rip), %rdx     # 0x368df
callq 0xbdee
movq %rsp, %rsi
movq %rbp, %rdi
movl $0x1, %edx
callq 0x342b6
movl %eax, %ebx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1ced1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bl, %bl
je 0x1cf30
movq %rsp, %rbx
movq %rbx, %rdi
movq %rbp, %rsi
movq 0x68(%rsp), %rdx
movq 0x70(%rsp), %rcx
movq 0x78(%rsp), %r8
movq %r12, %r9
pushq $0x1
pushq 0x138(%rsp)
pushq 0x138(%rsp)
pushq 0x138(%rsp)
callq 0x19e3a
addq $0x20, %rsp
movq 0x28(%r14), %rdi
movaps (%rbx), %xmm0
movups %xmm0, 0x20(%r14)
testq %rdi, %rdi
je 0x1cf26
callq 0x8036
cmpq $0x0, 0x20(%r14)
setne %al
jmp 0x1cf32
xorl %eax, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1cfd2
jmp 0x1cfed
jmp 0x1cf9b
movq %rax, %rbx
movl $0x28, %esi
movq %r14, %rdi
jmp 0x1cfe6
jmp 0x1cfd2
jmp 0x1cfed
jmp 0x1cf9b
movq %rax, %rbx
leaq 0x28d9d(%rip), %rax     # 0x45d10
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1cfc6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1cfc6
jmp 0x1cfc3
jmp 0x1cfd2
jmp 0x1cfed
movq %rax, %rbx
leaq 0x28d6b(%rip), %rax     # 0x45d10
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1d032
movq 0x20(%rsp), %rsi
jmp 0x1cfe3
jmp 0x1cfd2
jmp 0x1cfed
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1d032
jmp 0x1d02d
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1d032
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1d032
movq %rax, %rbx
jmp 0x1d032
movq %rax, %rbx
leaq 0x28d14(%rip), %rax     # 0x45d10
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1d023
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1d023
jmp 0x1d020
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1d032
callq 0x8036
movq %rbx, %rdi
callq 0x74f0