// File: /workspace/github_c_makefile_star2_O1/mrkite[P]regs/docmaker/parser.cc
// Function: Parser::parseStruct(Struct*, File*)
bool Parser::parseStruct(Struct *s, File *f) {
  if (!f->token().expect('{')) {
    return false;
  }
  Token token;
  while ((token = f->token()).type == VAR || token.type == STRUCT ||
         token.type == UNION) {
    Field field;
    if (!parseField(&field, token, f)) {
      return false;
    }
    s->fields.push_back(field);
    token = f->token();
    if (!token.expect(";}")) {
      return false;
    }
    if (token.asSym == '}') {
      break;
    }
  }
  return token.expect('}');
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdx, %rbx
movq %rsi, 0xb0(%rsp)
movq %rdi, %r15
leaq 0x58(%rsp), %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0x78ce
movq %r14, %rdi
movl $0x7b, %esi
callq 0x7b5e
movl %eax, %ebp
leaq 0x98(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x5607
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x70(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x5622
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3210
testb %bpl, %bpl
je 0x587d
leaq 0x60(%rsp), %r12
movq %r13, (%r12)
xorl %eax, %eax
movq %rax, 0x8(%r12)
movb %al, 0x10(%r12)
movb %al, 0x20(%r12)
movl $0x0, 0x24(%r12)
leaq 0x88(%rsp), %r13
movq %r14, (%r13)
movq %rax, 0x8(%r13)
movb %al, 0x10(%r13)
leaq 0xc8(%rsp), %rbp
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x78ce
movl (%rsp), %eax
movl %eax, 0x58(%rsp)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3270
movq 0x28(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3270
movl 0x50(%rsp), %eax
movl %eax, 0xa8(%rsp)
movl 0x58(%rsp), %r14d
movl %r14d, %eax
orl $0x2, %eax
cmpl $0x7, %eax
jne 0x56f8
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x56da
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x573a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x573a
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5714
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5730
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
cmpl $0x6, %r14d
jne 0x586a
movq %rbp, 0xb8(%rsp)
movq $0x0, 0xc0(%rsp)
movb $0x0, 0xc8(%rsp)
movl $0x0, 0xdc(%rsp)
movq %r15, %rdi
leaq 0xb8(%rsp), %rsi
leaq 0x58(%rsp), %rdx
movq %rbx, %rcx
callq 0x5ef4
movl $0x1, %r14d
testb %al, %al
je 0x583e
movq 0xb0(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x6312
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x78ce
movl (%rsp), %eax
movl %eax, 0x58(%rsp)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3270
movq 0x28(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3270
movl 0x50(%rsp), %eax
movl %eax, 0xa8(%rsp)
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x57fc
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5818
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x58(%rsp), %rdi
leaq 0x4916(%rip), %rsi      # 0xa13a
callq 0x7b94
testb %al, %al
je 0x583e
xorl %eax, %eax
cmpb $0x7d, 0x80(%rsp)
sete %al
leal (%rax,%rax,2), %r14d
movq 0xb8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x585b
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3210
testl %r14d, %r14d
je 0x566a
cmpl $0x3, %r14d
jne 0x5881
leaq 0x58(%rsp), %rdi
movl $0x7d, %esi
callq 0x7b5e
movl %eax, %ebx
jmp 0x5883
xorl %ebx, %ebx
jmp 0x58c4
xorl %ebx, %ebx
leaq 0x98(%rsp), %rax
leaq 0x70(%rsp), %r14
movq 0x88(%rsp), %rdi
cmpq %rax, %rdi
je 0x58ad
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x58c4
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3210
movl %ebx, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x58de
jmp 0x58de
jmp 0x58e3
movq %rax, %rbx
jmp 0x5903
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5903
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x58(%rsp), %rdi
callq 0x603a
movq %rbx, %rdi
callq 0x33e0
nop