// File: /workspace/github_cpp_makefile_star2_O1/rfotino[P]consolite-compiler/src/syntax.cpp
// Function: ParamToken::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&)
bool ParamToken::parse(
      Tokenizer *tokenizer,
      const std::vector<std::shared_ptr<FunctionToken>>& functions,
      const std::vector<std::shared_ptr<GlobalVarToken>>& globals) {
  if (!_type.parse(tokenizer, functions, globals)) {
    return false;
  } else if (_type.isArray()) {
    _error("Array parameter types not supported.", _type.line());
    return false;
  } else if ("void" == _type.name()) {
    _error("Parameter cannot be of type void.", _type.line());
    return false;
  }
  AtomToken nameToken = tokenizer->getNext();
  if (nameToken.str().empty()) {
    _error("Unexpected EOF.", nameToken.line());
    return false;
  } else if (!isValidName(nameToken.str())) {
    _error("Invalid parameter name '" + nameToken.str() + "'.",
           nameToken.line());
    return false;
  } else if (getFunction(nameToken.str(), functions)) {
    _error("Parameter name '" + nameToken.str() + "' conflicts with "
           "function name.", nameToken.line());
    return false;
  } else if (getGlobal(nameToken.str(), globals)) {
    _error("Parameter name '" + nameToken.str() + "' conflicts with "
           " global var name.", nameToken.line());
    return false;
  }
  _name = nameToken.str();
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
addq $0x38, %rdi
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r8
movaps %xmm0, (%r8)
xorl %eax, %eax
movq %rax, 0x10(%r8)
movq %rsp, %r9
movq %rax, 0x10(%r9)
movaps %xmm0, (%r9)
callq 0x110e8
movl %eax, %ebp
movq %rsp, %rdi
callq 0xb77e
leaq 0x20(%rsp), %rdi
callq 0xb6d8
testb %bpl, %bpl
je 0x18706
cmpb $0x1, 0x68(%rbx)
leaq 0x30(%rsp), %rbp
jne 0x1871c
leaq 0x20(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x1e4fe(%rip), %rsi     # 0x36bd4
leaq 0x1e51b(%rip), %rdx     # 0x36bf8
callq 0xc0a4
movl 0x40(%rbx), %esi
leaq 0x20(%rsp), %rdi
callq 0x34811
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x18706
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rsp), %r13
movq %rbp, (%r13)
movq 0x48(%rbx), %rsi
movq 0x50(%rbx), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0xc014
leaq 0x1d901(%rip), %rsi     # 0x36040
movq %r13, %rdi
callq 0x70c0
movq %rbp, %rcx
movl %eax, %ebp
movq (%r13), %rdi
movq %rcx, %r13
cmpq %rcx, %rdi
je 0x18765
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x72c0
testl %ebp, %ebp
je 0x188cc
leaq 0x20(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x32f76
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%r13), %rsi
movq 0x18(%r13), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xc014
movq (%rsp), %rdi
movq 0x8(%rsp), %r13
cmpq %r12, %rdi
je 0x187b5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rsp, %rdi
testq %r13, %r13
je 0x1890a
movq %r12, (%rdi)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
callq 0xc014
movq %rsp, %rdi
callq 0x33f07
movl %eax, %ebp
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x187f6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bpl, %bpl
je 0x18943
movq %rsp, %rdi
movq %r12, (%rdi)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
callq 0xc014
leaq 0x58(%rsp), %rdi
movq %rsp, %rsi
movq %r15, %rdx
callq 0x34498
movq 0x58(%rsp), %r15
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x1883b
callq 0x81ea
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18851
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testq %r15, %r15
je 0x189af
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xc014
leaq 0x1e3b0(%rip), %rsi     # 0x36c34
leaq 0x58(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x22046
leaq 0x1e3ab(%rip), %rsi     # 0x36c45
leaq 0x58(%rsp), %rdi
callq 0x7560
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x18b6f
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x18b77
leaq 0x20(%rsp), %rdi
movq %r13, %r14
movq %r13, (%rdi)
leaq 0x1e31b(%rip), %rsi     # 0x36bf9
leaq 0x1e335(%rip), %rdx     # 0x36c1a
callq 0xc0a4
movl 0x40(%rbx), %esi
leaq 0x20(%rsp), %rdi
callq 0x34811
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
jne 0x186f9
jmp 0x18706
movq %r12, (%rdi)
leaq 0x1e0c3(%rip), %rsi     # 0x369d7
leaq 0x1e0cb(%rip), %rdx     # 0x369e6
callq 0xc0a4
movl 0x28(%rsp), %esi
movq %rsp, %rdi
callq 0x34811
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18b3e
movq 0x10(%rsp), %rsi
jmp 0x18b36
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xc014
leaq 0x1e2ae(%rip), %rcx     # 0x36c1b
leaq 0x78(%rsp), %rdi
movl $0x18, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x7320
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x18a7c
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x18a83
movq %rsp, %rdi
movq %r12, (%rdi)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
callq 0xc014
leaq 0x58(%rsp), %rdi
movq %rsp, %rsi
movq %r14, %rdx
callq 0x345b1
movq 0x58(%rsp), %r14
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x189eb
callq 0x81ea
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18a01
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testq %r14, %r14
je 0x18b9c
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xc014
leaq 0x1e200(%rip), %rsi     # 0x36c34
leaq 0x58(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x22046
leaq 0x1e21b(%rip), %rsi     # 0x36c65
leaq 0x58(%rsp), %rdi
callq 0x7560
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x18be2
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x18bea
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x58(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1e29c(%rip), %rsi     # 0x36d42
callq 0x7560
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x18acc
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x18ad4
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x28(%rsp), %esi
callq 0x34811
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18b0d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x18b24
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x18b3e
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %ebx, %ebx
leaq 0x2e199(%rip), %rax     # 0x46ce0
leaq 0x40(%rsp), %rcx
movq %rax, -0x20(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x18708
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x18708
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x28(%rsp), %esi
callq 0x34811
jmp 0x18c0d
movq %rsp, %rdi
movq %r12, (%rdi)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
callq 0xc014
addq $0x70, %rbx
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7370
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x18bdb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movb $0x1, %bl
jmp 0x18b40
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x28(%rsp), %esi
callq 0x34811
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18c23
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x18b17
jmp 0x18b24
jmp 0x18d0f
jmp 0x18c54
jmp 0x18c6f
jmp 0x18cc0
jmp 0x18d0f
jmp 0x18cf2
jmp 0x18d0f
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18c72
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x18c72
movq %rax, %rbx
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x18cb1
jmp 0x18cc3
jmp 0x18cc0
jmp 0x18d0f
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18ca7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x18ca7
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x18cc3
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x18cc3
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x18d12
movq 0x88(%rsp), %rsi
jmp 0x18d03
jmp 0x18cf2
jmp 0x18d0f
jmp 0x18d0f
jmp 0x18cf2
jmp 0x18d0f
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
jne 0x18d3f
jmp 0x18d68
jmp 0x18d4e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18d12
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x18d12
jmp 0x18d0f
movq %rax, %rbx
leaq 0x2dfc7(%rip), %rax     # 0x46ce0
leaq 0x40(%rsp), %rcx
movq %rax, -0x20(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x18d68
movq 0x40(%rsp), %rsi
jmp 0x18d44
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x18d68
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x18d68
movq %rax, %rbx
jmp 0x18d68
movq %rax, %rbx
movq %rsp, %rdi
callq 0xb77e
leaq 0x20(%rsp), %rdi
callq 0xb6d8
movq %rbx, %rdi
callq 0x74f0