// File: /workspace/github_c_makefile_star2_O3/hikalium[P]compilium/parser.c
// Function: ParseDeclSpecs
struct Node *ParseDeclSpecs() {
  // returns Node<kASTList> or NULL
  struct Node *decl_specs = AllocList();
  for (;;) {
    struct Node *decl_spec;
    // storage-class-specifier
    if ((decl_spec = ConsumeToken(kTokenKwTypedef)) ||
        (decl_spec = ConsumeToken(kTokenKwExtern))) {
      PushToList(decl_specs, decl_spec);
      continue;
    }
    if ((decl_spec = ConsumeToken(kTokenKwStatic))) {
      continue;
    }
    // type-qualifier
    if ((decl_spec = ConsumeToken(kTokenKwConst))) {
      PushToList(decl_specs, decl_spec);
      continue;
    }
    if ((decl_spec = ConsumeToken(kTokenKwVoid)) ||
        (decl_spec = ConsumeToken(kTokenKwChar)) ||
        (decl_spec = ConsumeToken(kTokenKwInt)) ||
        (decl_spec = ConsumeToken(kTokenKwLong)) ||
        (decl_spec = ConsumeToken(kTokenKwUnsigned))) {
      PushToList(decl_specs, decl_spec);
      continue;
    }
    // builtin type name
    if ((decl_spec = ConsumeTokenStr("__builtin_va_list"))) {
      PushToList(decl_specs, decl_spec);
      continue;
    }
    // typedef name
    struct Node *typedef_type = GetNodeByTokenKey(ord_idents, PeekToken());
    if (typedef_type) {
      PushToList(decl_specs, typedef_type);
      NextToken();
      continue;
    }
    // struct-or-union-specifier
    if (ConsumeToken(kTokenKwStruct)) {
      struct Node *struct_spec = AllocNode(kASTStructSpec);
      struct_spec->tag = ConsumeToken(kTokenIdent);
      assert(struct_spec->tag);
      if (ConsumePunctuator("{")) {
        struct_spec->struct_member_dict = AllocList();
        struct Node *decl;
        while ((decl = ParseDecl())) {
          AddMemberOfStructFromDecl(struct_spec, decl);
        }
        ExpectPunctuator("}");
      }
      PushToList(decl_specs, struct_spec);
      continue;
    }
    break;
  };
  if (GetSizeOfList(decl_specs) == 0) {
    return NULL;
  }
  return decl_specs;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
xorl %eax, %eax
callq 0x47d2
movq %rax, %rbx
leaq 0x483e(%rip), %r14      # 0xc282
leaq 0x485a(%rip), %r15      # 0xc2a5
leaq 0x4855(%rip), %r12      # 0xc2a7
movl $0x13, %edi
callq 0x93c9
testq %rax, %rax
jne 0x7a70
movl $0xa, %edi
callq 0x93c9
testq %rax, %rax
je 0x7a7d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x485a
jmp 0x7a52
movl $0x11, %edi
callq 0x93c9
testq %rax, %rax
jne 0x7a52
movl $0x7, %edi
callq 0x93c9
testq %rax, %rax
jne 0x7a70
movl $0x15, %edi
callq 0x93c9
testq %rax, %rax
jne 0x7a70
movl $0x6, %edi
callq 0x93c9
testq %rax, %rax
jne 0x7a70
movl $0xd, %edi
callq 0x93c9
testq %rax, %rax
jne 0x7a70
movl $0xe, %edi
callq 0x93c9
testq %rax, %rax
jne 0x7a70
movl $0x14, %edi
callq 0x93c9
testq %rax, %rax
jne 0x7a70
movq %r14, %rdi
callq 0x93f7
testq %rax, %rax
jne 0x7a70
movq 0x9882(%rip), %r13      # 0x11380
callq 0x937c
movq %r13, %rdi
movq %rax, %rsi
callq 0x496e
testq %rax, %rax
je 0x7b28
movq %rbx, %rdi
movq %rax, %rsi
callq 0x485a
callq 0x9527
jmp 0x7a52
movl $0x12, %edi
callq 0x93c9
testq %rax, %rax
je 0x7ba1
movl $0x13, %edi
callq 0x3f11
movq %rax, %r13
movl $0x4, %edi
callq 0x93c9
movq %rax, 0xe8(%r13)
testq %rax, %rax
je 0x7bbe
movq %r15, %rdi
callq 0x9490
testq %rax, %rax
je 0x7b91
xorl %eax, %eax
callq 0x47d2
movq %rax, 0x68(%r13)
callq 0x7ea2
testq %rax, %rax
je 0x7b89
movq %r13, %rdi
movq %rax, %rsi
callq 0x8c12
jmp 0x7b72
movq %r12, %rdi
callq 0x94d4
movq %rbx, %rdi
movq %r13, %rsi
callq 0x485a
jmp 0x7a52
movq %rbx, %rdi
callq 0x48ee
xorl %ecx, %ecx
testl %eax, %eax
cmoveq %rcx, %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x46cf(%rip), %rdi      # 0xc294
leaq 0x463a(%rip), %rsi      # 0xc206
movl $0x184, %edx            # imm = 0x184
callq 0x46d0