// File: /workspace/github_cpp_makefile_star2_O3/rfotino[P]consolite-compiler/src/syntax.cpp
// Function: LabelStatement::parse(Tokenizer*)
bool LabelStatement::parse(Tokenizer *tokenizer) {
  _lineNum = tokenizer->peekNext().line();
  // Make sure it is a valid label declaration.
  AtomToken t = tokenizer->getNext();
  if (t.str().empty()) {
    _error("Unexpected EOF.", t.line());
    return false;
  } else if (!isLabelDeclaration(t.str())) {
    _error("Invalid label declaration.", t.line());
    return false;
  }
  // Name is the label declaration minus the trailing colon.
  _name = t.str().substr(0, t.str().size() - 1);
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x32bec
movl 0x8(%r15), %eax
movl %eax, 0x8(%rbx)
leaq 0x27d74(%rip), %r13     # 0x45d10
movq %r13, (%r15)
movq 0x10(%r15), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1dfba
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x32902
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xbd58
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r14
cmpq %r12, %rdi
je 0x1e005
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x8(%rsp), %rdi
testq %r14, %r14
je 0x1e113
movq %r12, (%rdi)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
callq 0xbd58
leaq 0x8(%rsp), %rdi
callq 0x33954
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e04b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bpl, %bpl
je 0x1e139
leaq 0x88(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xbd58
leaq 0x68(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0xbd58
movq 0x60(%rsp), %rcx
decq %rcx
leaq 0x8(%rsp), %rdi
leaq 0x78(%rsp), %rsi
xorl %edx, %edx
callq 0x72f0
addq $0x10, %rbx
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7370
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x1e0d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x58(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x48(%rsp), %r14
je 0x1e0f5
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x1e10f
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x72c0
movb $0x1, %bl
jmp 0x1e180
movq %r12, (%rdi)
leaq 0x178ba(%rip), %rsi     # 0x359d7
leaq 0x178c2(%rip), %rdx     # 0x359e6
callq 0xbdee
movl 0x30(%rsp), %esi
leaq 0x8(%rsp), %rdi
callq 0x34178
jmp 0x1e162
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x17eb6(%rip), %rsi     # 0x35ffe
leaq 0x17ec9(%rip), %rdx     # 0x36018
callq 0xbdee
movl 0x30(%rsp), %esi
leaq 0x8(%rsp), %rdi
callq 0x34178
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e179
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %ebx, %ebx
leaq 0x48(%rsp), %r14
movq %r13, 0x28(%rsp)
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x1e19c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1e1d1
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1e1d1
jmp 0x1e1ed
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x1e20e
movq 0x88(%rsp), %rsi
jmp 0x1e1ff
jmp 0x1e20b
jmp 0x1e20b
jmp 0x1e1ed
jmp 0x1e20b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e20e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1e20e
jmp 0x1e20b
movq %rax, %rbx
movq %r13, 0x28(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1e22f
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rbx, %rdi
callq 0x74f0
nop