// File: /workspace/github_cpp_makefile_star2_O3/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 0x10df4
movl %eax, %ebp
movq %rsp, %rdi
callq 0xb4aa
leaq 0x20(%rsp), %rdi
callq 0xb3fe
testb %bpl, %bpl
je 0x18318
cmpb $0x1, 0x68(%rbx)
leaq 0x30(%rsp), %rbp
jne 0x1832e
leaq 0x20(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x1d8ec(%rip), %rsi     # 0x35bd4
leaq 0x1d909(%rip), %rdx     # 0x35bf8
callq 0xbdee
movl 0x40(%rbx), %esi
leaq 0x20(%rsp), %rdi
callq 0x34178
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x18318
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 0xbd58
leaq 0x1ccef(%rip), %rsi     # 0x35040
movq %r13, %rdi
callq 0x70c0
movq %rbp, %rcx
movl %eax, %ebp
movq (%r13), %rdi
movq %rcx, %r13
cmpq %rcx, %rdi
je 0x18377
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x72c0
testl %ebp, %ebp
je 0x184de
leaq 0x20(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x32902
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%r13), %rsi
movq 0x18(%r13), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xbd58
movq (%rsp), %rdi
movq 0x8(%rsp), %r13
cmpq %r12, %rdi
je 0x183c7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rsp, %rdi
testq %r13, %r13
je 0x1851c
movq %r12, (%rdi)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
callq 0xbd58
movq %rsp, %rdi
callq 0x338b8
movl %eax, %ebp
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18408
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bpl, %bpl
je 0x18555
movq %rsp, %rdi
movq %r12, (%rdi)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
callq 0xbd58
leaq 0x58(%rsp), %rdi
movq %rsp, %rsi
movq %r15, %rdx
callq 0x33e1d
movq 0x58(%rsp), %r15
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x1844d
callq 0x8036
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18463
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testq %r15, %r15
je 0x185c1
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xbd58
leaq 0x1d79e(%rip), %rsi     # 0x35c34
leaq 0x58(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x2190d
leaq 0x1d799(%rip), %rsi     # 0x35c45
leaq 0x58(%rsp), %rdi
callq 0x7560
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x18781
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x18789
leaq 0x20(%rsp), %rdi
movq %r13, %r14
movq %r13, (%rdi)
leaq 0x1d709(%rip), %rsi     # 0x35bf9
leaq 0x1d723(%rip), %rdx     # 0x35c1a
callq 0xbdee
movl 0x40(%rbx), %esi
leaq 0x20(%rsp), %rdi
callq 0x34178
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
jne 0x1830b
jmp 0x18318
movq %r12, (%rdi)
leaq 0x1d4b1(%rip), %rsi     # 0x359d7
leaq 0x1d4b9(%rip), %rdx     # 0x359e6
callq 0xbdee
movl 0x28(%rsp), %esi
movq %rsp, %rdi
callq 0x34178
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18750
movq 0x10(%rsp), %rsi
jmp 0x18748
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xbd58
leaq 0x1d69c(%rip), %rcx     # 0x35c1b
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 0x1868e
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x18695
movq %rsp, %rdi
movq %r12, (%rdi)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
callq 0xbd58
leaq 0x58(%rsp), %rdi
movq %rsp, %rsi
movq %r14, %rdx
callq 0x33f2c
movq 0x58(%rsp), %r14
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x185fd
callq 0x8036
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18613
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
testq %r14, %r14
je 0x187ae
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xbd58
leaq 0x1d5ee(%rip), %rsi     # 0x35c34
leaq 0x58(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x2190d
leaq 0x1d609(%rip), %rsi     # 0x35c65
leaq 0x58(%rsp), %rdi
callq 0x7560
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x187f4
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x187fc
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 0x1d68a(%rip), %rsi     # 0x35d42
callq 0x7560
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x186de
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x186e6
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 0x34178
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1871f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x18736
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x18750
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %ebx, %ebx
leaq 0x2d5b7(%rip), %rax     # 0x45d10
leaq 0x40(%rsp), %rcx
movq %rax, -0x20(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x1831a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1831a
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 0x34178
jmp 0x1881f
movq %rsp, %rdi
movq %r12, (%rdi)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
callq 0xbd58
addq $0x70, %rbx
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7370
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x187ed
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movb $0x1, %bl
jmp 0x18752
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 0x34178
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18835
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x18729
jmp 0x18736
jmp 0x18921
jmp 0x18866
jmp 0x18881
jmp 0x188d2
jmp 0x18921
jmp 0x18904
jmp 0x18921
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18884
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x18884
movq %rax, %rbx
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x188c3
jmp 0x188d5
jmp 0x188d2
jmp 0x18921
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x188b9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x188b9
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x188d5
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x188d5
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x18924
movq 0x88(%rsp), %rsi
jmp 0x18915
jmp 0x18904
jmp 0x18921
jmp 0x18921
jmp 0x18904
jmp 0x18921
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
jne 0x18951
jmp 0x1897a
jmp 0x18960
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x18924
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x18924
jmp 0x18921
movq %rax, %rbx
leaq 0x2d3e5(%rip), %rax     # 0x45d10
leaq 0x40(%rsp), %rcx
movq %rax, -0x20(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x1897a
movq 0x40(%rsp), %rsi
jmp 0x18956
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1897a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1897a
movq %rax, %rbx
jmp 0x1897a
movq %rax, %rbx
movq %rsp, %rdi
callq 0xb4aa
leaq 0x20(%rsp), %rdi
callq 0xb3fe
movq %rbx, %rdi
callq 0x74f0