// File: /workspace/github_cpp_makefile_star2_O1/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 0x33270
movl 0x8(%r15), %eax
movl %eax, 0x8(%rbx)
leaq 0x28646(%rip), %r13     # 0x46ce0
movq %r13, (%r15)
movq 0x10(%r15), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1e6b8
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x32f76
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xc014
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r14
cmpq %r12, %rdi
je 0x1e703
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x8(%rsp), %rdi
testq %r14, %r14
je 0x1e811
movq %r12, (%rdi)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
callq 0xc014
leaq 0x8(%rsp), %rdi
callq 0x33fa3
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e749
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bpl, %bpl
je 0x1e837
leaq 0x88(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0xc014
leaq 0x68(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0xc014
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 0x1e7d7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x58(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x48(%rsp), %r14
je 0x1e7f3
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x1e80d
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x72c0
movb $0x1, %bl
jmp 0x1e87e
movq %r12, (%rdi)
leaq 0x181bc(%rip), %rsi     # 0x369d7
leaq 0x181c4(%rip), %rdx     # 0x369e6
callq 0xc0a4
movl 0x30(%rsp), %esi
leaq 0x8(%rsp), %rdi
callq 0x34811
jmp 0x1e860
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x187b8(%rip), %rsi     # 0x36ffe
leaq 0x187cb(%rip), %rdx     # 0x37018
callq 0xc0a4
movl 0x30(%rsp), %esi
leaq 0x8(%rsp), %rdi
callq 0x34811
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e877
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 0x1e89a
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 0x1e8cf
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1e8cf
jmp 0x1e8eb
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x1e90c
movq 0x88(%rsp), %rsi
jmp 0x1e8fd
jmp 0x1e909
jmp 0x1e909
jmp 0x1e8eb
jmp 0x1e909
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e90c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1e90c
jmp 0x1e909
movq %rax, %rbx
movq %r13, 0x28(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1e92d
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rbx, %rdi
callq 0x74f0
nop