// File: /workspace/github_c_makefile_star2_O1/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 0x4806
movq %rax, %rbx
leaq 0x47e2(%rip), %r14      # 0xc286
leaq 0x47fe(%rip), %r15      # 0xc2a9
leaq 0x47f9(%rip), %r12      # 0xc2ab
movl $0x13, %edi
callq 0x9431
testq %rax, %rax
jne 0x7ad0
movl $0xa, %edi
callq 0x9431
testq %rax, %rax
je 0x7add
movq %rbx, %rdi
movq %rax, %rsi
callq 0x488e
jmp 0x7ab2
movl $0x11, %edi
callq 0x9431
testq %rax, %rax
jne 0x7ab2
movl $0x7, %edi
callq 0x9431
testq %rax, %rax
jne 0x7ad0
movl $0x15, %edi
callq 0x9431
testq %rax, %rax
jne 0x7ad0
movl $0x6, %edi
callq 0x9431
testq %rax, %rax
jne 0x7ad0
movl $0xd, %edi
callq 0x9431
testq %rax, %rax
jne 0x7ad0
movl $0xe, %edi
callq 0x9431
testq %rax, %rax
jne 0x7ad0
movl $0x14, %edi
callq 0x9431
testq %rax, %rax
jne 0x7ad0
movq %r14, %rdi
callq 0x945f
testq %rax, %rax
jne 0x7ad0
movq 0x9822(%rip), %r13      # 0x11380
callq 0x93e4
movq %r13, %rdi
movq %rax, %rsi
callq 0x49a2
testq %rax, %rax
je 0x7b88
movq %rbx, %rdi
movq %rax, %rsi
callq 0x488e
callq 0x958f
jmp 0x7ab2
movl $0x12, %edi
callq 0x9431
testq %rax, %rax
je 0x7c01
movl $0x13, %edi
callq 0x3f05
movq %rax, %r13
movl $0x4, %edi
callq 0x9431
movq %rax, 0xe8(%r13)
testq %rax, %rax
je 0x7c1e
movq %r15, %rdi
callq 0x94f8
testq %rax, %rax
je 0x7bf1
xorl %eax, %eax
callq 0x4806
movq %rax, 0x68(%r13)
callq 0x7f06
testq %rax, %rax
je 0x7be9
movq %r13, %rdi
movq %rax, %rsi
callq 0x8c7a
jmp 0x7bd2
movq %r12, %rdi
callq 0x953c
movq %rbx, %rdi
movq %r13, %rsi
callq 0x488e
jmp 0x7ab2
movq %rbx, %rdi
callq 0x4922
xorl %ecx, %ecx
testl %eax, %eax
cmoveq %rcx, %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x4673(%rip), %rdi      # 0xc298
leaq 0x45de(%rip), %rsi      # 0xc20a
movl $0x184, %edx            # imm = 0x184
callq 0x4704