// File: /workspace/github_cpp_makefile_star2_O1/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 $0x98, %rsp
movq %r9, %r12
movq %r8, %r13
movq %rcx, %rbp
movq %rdx, %r15
movq %rdi, %r14
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %rsi, 0x28(%rsp)
callq 0x33270
movl 0x8(%rbx), %eax
movl %eax, 0x8(%r14)
leaq 0x27616(%rip), %rax     # 0x46ce0
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
leaq 0x50(%rsp), %rbx
cmpq %rbx, %rdi
je 0x1f6e8
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x10(%r14), %rdi
movq 0x28(%rsp), %rsi
movq %r15, %rdx
movq %rbp, %rcx
movq %r13, %r8
movq %r12, %r9
callq 0x1376e
testb %al, %al
je 0x1f7d7
movq %rbx, %r13
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0xc014
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x34498
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f756
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x68(%rsp), %rbx
testq %rbx, %rbx
je 0x1f7de
leaq 0x275e9(%rip), %rax     # 0x46d50
leaq 0x40(%rsp), %rdi
movq %rax, -0x10(%rdi)
movl 0x28(%rbx), %eax
movl %eax, -0x8(%rdi)
leaq 0x275a3(%rip), %r15     # 0x46d20
movq %r15, -0x10(%rdi)
movq %r13, (%rdi)
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rdx
addq %rsi, %rdx
callq 0xc014
movl 0x50(%rbx), %eax
movl %eax, 0x60(%rsp)
leaq 0x88(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xc014
leaq 0x1687b(%rip), %rsi     # 0x36040
leaq 0x78(%rsp), %rdi
callq 0x70c0
testl %eax, %eax
setne %bpl
jmp 0x1f7e1
xorl %ebx, %ebx
jmp 0x1f8d6
movb $0x1, %bpl
testq %rbx, %rbx
je 0x1f82a
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f807
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x27512(%rip), %rax     # 0x46d20
movq %rax, 0x30(%rsp)
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f82a
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bpl, %bpl
je 0x1f879
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1765d(%rip), %rsi     # 0x36e9c
leaq 0x17682(%rip), %rdx     # 0x36ec8
leaq 0x8(%rsp), %rdi
callq 0xc0a4
movl 0x8(%r14), %esi
leaq 0x8(%rsp), %rdi
callq 0x34811
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1f875
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %ebx, %ebx
jmp 0x1f8c7
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x17338(%rip), %rsi     # 0x36bc1
leaq 0x17332(%rip), %rdx     # 0x36bc2
leaq 0x8(%rsp), %rdi
callq 0xc0a4
leaq 0x8(%rsp), %rsi
movq 0x28(%rsp), %rdi
movl $0x1, %edx
callq 0x3494f
movl %eax, %ebx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1f8c7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1f8d6
callq 0x81ea
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x1f906
jmp 0x1f935
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1f935
movq 0x18(%rsp), %rsi
jmp 0x1f928
jmp 0x1f932
jmp 0x1f932
movq %rax, %rbx
movq %r15, 0x30(%rsp)
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f935
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1f935
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1f960
callq 0x81ea
jmp 0x1f960
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f960
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rbx, %rdi
callq 0x74f0