// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %eax, %eax
callq 0x3ea7
movq %rax, %rbx
pushq $0x13
popq %rbp
pushq $0xa
popq %r14
pushq $0x11
popq %r15
pushq $0x7
popq %r12
pushq $0x15
popq %r13
movl %ebp, %edi
callq 0x8a20
testq %rax, %rax
jne 0x6f5d
movl %r14d, %edi
callq 0x8a20
testq %rax, %rax
je 0x6f6a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3f25
jmp 0x6f44
movl %r15d, %edi
callq 0x8a20
testq %rax, %rax
jne 0x6f44
movl %r12d, %edi
callq 0x8a20
testq %rax, %rax
jne 0x6f5d
movl %r13d, %edi
callq 0x8a20
testq %rax, %rax
jne 0x6f5d
pushq $0x6
popq %rdi
callq 0x8a20
testq %rax, %rax
jne 0x6f5d
pushq $0xd
popq %rdi
callq 0x8a20
testq %rax, %rax
jne 0x6f5d
pushq $0xe
popq %rdi
callq 0x8a20
testq %rax, %rax
jne 0x6f5d
pushq $0x14
popq %rdi
callq 0x8a20
testq %rax, %rax
jne 0x6f5d
leaq 0x52b6(%rip), %rdi      # 0xc282
callq 0x8a4e
testq %rax, %rax
jne 0x6f5d
movq 0xa3a3(%rip), %rax      # 0x11380
movq %rax, (%rsp)
callq 0x89d5
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x4035
testq %rax, %rax
je 0x700c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3f25
callq 0x8b6e
jmp 0x6f44
pushq $0x12
popq %rdi
callq 0x8a20
testq %rax, %rax
je 0x7091
movl %ebp, %edi
callq 0x319d
movq %rax, (%rsp)
pushq $0x4
popq %rdi
callq 0x8a20
movq (%rsp), %rcx
movq %rax, 0xe8(%rcx)
testq %rax, %rax
je 0x70b3
leaq 0x5262(%rip), %rdi      # 0xc2a5
callq 0x8ad7
testq %rax, %rax
je 0x7080
xorl %eax, %eax
callq 0x3ea7
movq (%rsp), %rcx
movq %rax, 0x68(%rcx)
callq 0x7374
testq %rax, %rax
je 0x7074
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x806b
jmp 0x705c
leaq 0x522c(%rip), %rdi      # 0xc2a7
callq 0x8b1b
movq %rbx, %rdi
movq (%rsp), %rsi
callq 0x3f25
jmp 0x6f44
movq %rbx, %rdi
callq 0x3fb7
xorl %ecx, %ecx
testl %eax, %eax
cmoveq %rcx, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x51da(%rip), %rdi      # 0xc294
leaq 0x5145(%rip), %rsi      # 0xc206
movl $0x184, %edx            # imm = 0x184
callq 0x3cc4