// File: /workspace/github_cpp_makefile_star2_O3/rfotino[P]consolite-compiler/src/syntax.cpp
// Function: VoidStatement::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&)
bool VoidStatement::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) {
  _lineNum = tokenizer->peekNext().line();
  // Parse the function call.
  if (!_fnCall.parse(tokenizer, functions, globals, parameters, localVars)) {
    return false;
  }
  // Make sure the function call is void.
  auto function = getFunction(_fnCall.funcName(), functions);
  if (!function || "void" != function->type().name()) {
    _error("Expected function call to be of type 'void'.", _lineNum);
    return false;
  }
  // Make sure the next symbol is a semicolon.
  if (!_expect(tokenizer, ";")) {
    return false;
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %r12
movq %r8, %r13
movq %rcx, %rbp
movq %rdx, %r15
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %rsi, 0x40(%rsp)
callq 0x32bec
movl 0x8(%rbx), %eax
movl %eax, 0x8(%r14)
leaq 0x26d4d(%rip), %rax     # 0x45d10
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x1efe1
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x10(%r14), %rdi
movq 0x40(%rsp), %rsi
movq %r15, %rdx
movq %rbp, %rcx
movq %r13, %r8
movq %r12, %r9
callq 0x13476
testb %al, %al
je 0x1f15d
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0xbd58
leaq 0x48(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x33e1d
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f04c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x48(%rsp), %rbx
testq %rbx, %rbx
je 0x1f10a
movl 0x28(%rbx), %eax
leaq 0x18(%rsp), %r15
movl %eax, -0x8(%r15)
leaq 0x26ce3(%rip), %rax     # 0x45d50
movq %rax, -0x10(%r15)
leaq 0x28(%rsp), %rax
movq %rax, (%r15)
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xbd58
movl 0x50(%rbx), %eax
movl %eax, 0x38(%rsp)
leaq 0x68(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0xbd58
leaq 0x15f86(%rip), %rsi     # 0x35040
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0x70c0
movl %eax, %ebp
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x1f0de
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x26c6b(%rip), %rax     # 0x45d50
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x1f106
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x72c0
testl %ebp, %ebp
je 0x1f170
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x16d83(%rip), %rsi     # 0x35e9c
leaq 0x16da8(%rip), %rdx     # 0x35ec8
callq 0xbdee
movl 0x8(%r14), %esi
leaq 0x8(%rsp), %rdi
callq 0x34178
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f14a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %ebx, %ebx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x1f15f
callq 0x8036
jmp 0x1f15f
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x16a42(%rip), %rsi     # 0x35bc1
leaq 0x16a3c(%rip), %rdx     # 0x35bc2
callq 0xbdee
leaq 0x8(%rsp), %rsi
movq 0x40(%rsp), %rdi
movl $0x1, %edx
callq 0x342b6
movl %eax, %ebx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1f14c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1f14c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x1f1ff
jmp 0x1f211
jmp 0x1f20e
movq %rax, %rbx
leaq 0x26b7b(%rip), %rax     # 0x45d50
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x1f211
movq 0x28(%rsp), %rsi
jmp 0x1f204
jmp 0x1f20e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f211
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1f211
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x1f23c
callq 0x8036
jmp 0x1f23c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f23c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rbx, %rdi
callq 0x74f0