// File: /workspace/github_c_makefile_star2_O1/hikalium[P]compilium/parser.c
// Function: ParseDirectDecltor
struct Node *ParseDirectDecltor() {
  // always allow abstract decltors
  struct Node *n = NULL;
  struct Node *t;
  if ((t = ConsumePunctuator("("))) {
    n = AllocNode(kASTDirectDecltor);
    n->op = t;
    n->value = ParseDecltor();
    assert(n->value);
    ExpectPunctuator(")");
  } else if ((t = ConsumeToken(kTokenIdent))) {
    n = AllocNode(kASTDirectDecltor);
    n->op = t;
  }
  while (true) {
    if ((t = ConsumePunctuator("("))) {
      struct Node *op = t;
      struct Node *args = AllocList();
      if (!ConsumePunctuator(")")) {
        while (1) {
          if ((t = ConsumePunctuator("..."))) {
            PushToList(args, t);
          } else {
            struct Node *arg = ParseParamDecl();
            if (!arg) {
              ErrorWithToken(NextToken(), "Expected ParamDecl here");
            }
            PushToList(args, arg);
          }
          if (!ConsumePunctuator(",")) break;
        }
        ExpectPunctuator(")");
      }
      struct Node *nn = AllocNode(kASTDirectDecltor);
      nn->op = op;
      nn->right = args;
      nn->left = n;
      n = nn;
    }
    if ((t = ConsumePunctuator("["))) {
      struct Node *nn = AllocNode(kASTDirectDecltor);
      nn->op = t;
      nn->right = ParseAssignExpr();
      nn->left = n;
      n = nn;
      ExpectPunctuator("]");
      continue;
    }
    break;
  }
  return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x397c(%rip), %rdi      # 0xb5c4
callq 0x94f8
testq %rax, %rax
je 0x7c89
movq %rax, %r14
movl $0xb, %edi
callq 0x3f05
movq %rax, %rbx
movq %r14, 0x10(%rax)
callq 0x7dd0
movq %rax, 0xa0(%rbx)
testq %rax, %rax
je 0x7db8
leaq 0x4bf7(%rip), %rdi      # 0xc879
callq 0x953c
jmp 0x7cb0
movl $0x4, %edi
callq 0x9431
testq %rax, %rax
je 0x7cae
movq %rax, %r14
movl $0xb, %edi
callq 0x3f05
movq %rax, %rbx
movq %r14, 0x10(%rax)
jmp 0x7cb0
xorl %ebx, %ebx
leaq 0x38e2(%rip), %r15      # 0xb599
leaq 0x39e3(%rip), %rbp      # 0xb6a1
leaq 0x3555(%rip), %r13      # 0xb21a
leaq 0x38f8(%rip), %rdi      # 0xb5c4
callq 0x94f8
testq %rax, %rax
je 0x7d4c
movq %rax, %r12
xorl %eax, %eax
callq 0x4806
movq %rax, %r14
leaq 0x4b8f(%rip), %rdi      # 0xc879
callq 0x94f8
testq %rax, %rax
jne 0x7d33
movq %rbp, %rdi
callq 0x94f8
testq %rax, %rax
jne 0x7d0f
callq 0x7e92
testq %rax, %rax
je 0x7da2
movq %r14, %rdi
movq %rax, %rsi
callq 0x488e
movq %r13, %rdi
callq 0x94f8
testq %rax, %rax
jne 0x7cf4
leaq 0x4b4b(%rip), %rdi      # 0xc879
callq 0x953c
movl $0xb, %edi
callq 0x3f05
movq %r12, 0x10(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x18(%rax)
movq %rax, %rbx
movq %r15, %rdi
callq 0x94f8
testq %rax, %rax
je 0x7d90
movq %rax, %r14
movl $0xb, %edi
callq 0x3f05
movq %rax, %r12
movq %r14, 0x10(%rax)
callq 0x76ab
movq %rax, 0x20(%r12)
movq %rbx, 0x18(%r12)
leaq 0x443a(%rip), %rdi      # 0xc1bd
callq 0x953c
movq %r12, %rbx
jmp 0x7cc5
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x958f
leaq 0x4508(%rip), %rsi      # 0xc2b6
movq %rax, %rdi
xorl %eax, %eax
callq 0x4740
leaq 0x44ee(%rip), %rdi      # 0xc2ad
leaq 0x4444(%rip), %rsi      # 0xc20a
movl $0x1a2, %edx            # imm = 0x1A2
callq 0x4704