// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x40, %rsp
movq $0x0, -0x8(%rbp)
leaq 0x6add(%rip), %rdi      # 0x10534
callq 0xc320
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x9ac7
movl $0xb, %edi
callq 0x3a70
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
callq 0x9c60
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0xa0(%rax)
jne 0x9ab9
leaq 0x7772(%rip), %rdi      # 0x1121a
leaq 0x76cc(%rip), %rsi      # 0x1117b
movl $0x1a2, %edx            # imm = 0x1A2
callq 0x4b20
leaq 0x7c85(%rip), %rdi      # 0x11745
callq 0xc390
jmp 0x9af7
movl $0x4, %edi
callq 0xc1c0
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x9af5
movl $0xb, %edi
callq 0x3a70
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x9af7
jmp 0x9af9
leaq 0x6a34(%rip), %rdi      # 0x10534
callq 0xc320
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x9bee
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movb $0x0, %al
callq 0x4e30
movq %rax, -0x20(%rbp)
leaq 0x7c18(%rip), %rdi      # 0x11745
callq 0xc320
cmpq $0x0, %rax
jne 0x9bb4
jmp 0x9b3a
leaq 0x6ad2(%rip), %rdi      # 0x10613
callq 0xc320
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x9b5f
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x4f10
jmp 0x9b92
callq 0x9d70
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x9b85
callq 0xc400
movq %rax, %rdi
leaq 0x76a5(%rip), %rsi      # 0x11223
movb $0x0, %al
callq 0x4d50
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x4f10
leaq 0x6651(%rip), %rdi      # 0x101ea
callq 0xc320
cmpq $0x0, %rax
jne 0x9ba6
jmp 0x9ba8
jmp 0x9b3a
leaq 0x7b96(%rip), %rdi      # 0x11745
callq 0xc390
movl $0xb, %edi
callq 0x3a70
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq 0x6912(%rip), %rdi      # 0x10507
callq 0xc320
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x9c53
movl $0xb, %edi
callq 0x3a70
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
callq 0x9240
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq 0x682d(%rip), %rdi      # 0x10476
callq 0xc390
jmp 0x9af9
jmp 0x9c55
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nop