// File: /workspace/github_c_makefile_star2_O3/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 0x7862
movq %r14, %rdi
movl $0x7b, %esi
callq 0x7afc
movl %eax, %ebp
leaq 0x98(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x55e9
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x70(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x5604
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3200
testb %bpl, %bpl
je 0x585f
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 0x7862
movl (%rsp), %eax
movl %eax, 0x58(%rsp)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3260
movq 0x28(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3260
movl 0x50(%rsp), %eax
movl %eax, 0xa8(%rsp)
movl 0x58(%rsp), %r14d
movl %r14d, %eax
orl $0x2, %eax
cmpl $0x7, %eax
jne 0x56da
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x56bc
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x571c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x571c
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x56f6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5712
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
cmpl $0x6, %r14d
jne 0x584c
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 0x5ed6
movl $0x1, %r14d
testb %al, %al
je 0x5820
movq 0xb0(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x62ec
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x7862
movl (%rsp), %eax
movl %eax, 0x58(%rsp)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3260
movq 0x28(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
callq 0x3260
movl 0x50(%rsp), %eax
movl %eax, 0xa8(%rsp)
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x57de
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x57fa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x58(%rsp), %rdi
leaq 0x4934(%rip), %rsi      # 0xa13a
callq 0x7b32
testb %al, %al
je 0x5820
xorl %eax, %eax
cmpb $0x7d, 0x80(%rsp)
sete %al
leal (%rax,%rax,2), %r14d
movq 0xb8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x583d
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3200
testl %r14d, %r14d
je 0x564c
cmpl $0x3, %r14d
jne 0x5863
leaq 0x58(%rsp), %rdi
movl $0x7d, %esi
callq 0x7afc
movl %eax, %ebx
jmp 0x5865
xorl %ebx, %ebx
jmp 0x58a6
xorl %ebx, %ebx
leaq 0x98(%rsp), %rax
leaq 0x70(%rsp), %r14
movq 0x88(%rsp), %rdi
cmpq %rax, %rdi
je 0x588f
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3200
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x58a6
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x3200
movl %ebx, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x58c0
jmp 0x58c0
jmp 0x58c5
movq %rax, %rbx
jmp 0x58e5
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x58e5
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x58(%rsp), %rdi
callq 0x6014
movq %rbx, %rdi
callq 0x33d0
nop