// File: /workspace/github_cpp_makefile_star2_O3/rfotino[P]consolite-compiler/src/syntax.cpp
// Function: GotoStatement::parse(Tokenizer*)
bool GotoStatement::parse(Tokenizer *tokenizer) {
  _lineNum = tokenizer->peekNext().line();
  // Make sure the first token is the "goto" keyword.
  if (!_expect(tokenizer, "goto")) {
    return false;
  }
  // Get the label.
  AtomToken labelToken = tokenizer->getNext();
  if (labelToken.str().empty()) {
    _error("Unexpected EOF.", labelToken.line());
    return false;
  } else if (!isValidName(labelToken.str())) {
    _error("Invalid label name in goto statement.", labelToken.line());
    return false;
  }
  _label = labelToken.str();
  // Get the trailing ";" token.
  if (!_expect(tokenizer, ";")) {
    return false;
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x32bec
movl 0x8(%r15), %eax
movl %eax, 0x8(%r14)
leaq 0x2804c(%rip), %r13     # 0x45d10
movq %r13, (%r15)
movq 0x10(%r15), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1dce2
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x180d0(%rip), %rsi     # 0x35dc2
leaq 0x180cd(%rip), %rdx     # 0x35dc6
leaq 0x28(%rsp), %rdi
callq 0xbdee
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x342b6
movl %eax, %ebp
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1dd2e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
testb %bpl, %bpl
je 0x1de5c
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %rbx, %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), %r15
cmpq %r12, %rdi
je 0x1dd82
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x8(%rsp), %rdi
testq %r15, %r15
je 0x1de63
movq %r12, (%rdi)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
callq 0xbd58
leaq 0x8(%rsp), %rdi
callq 0x338b8
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1ddc8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x8(%rsp), %rdi
testb %bpl, %bpl
je 0x1de89
movq %r12, (%rdi)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
callq 0xbd58
addq $0x10, %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x7370
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x1de14
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x17d9e(%rip), %rsi     # 0x35bc1
leaq 0x17d98(%rip), %rdx     # 0x35bc2
callq 0xbdee
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x342b6
movl %eax, %ebx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1dec6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1dec6
xorl %ebx, %ebx
jmp 0x1dee7
movq %r12, (%rdi)
leaq 0x17b6a(%rip), %rsi     # 0x359d7
leaq 0x17b72(%rip), %rdx     # 0x359e6
callq 0xbdee
movl 0x30(%rsp), %esi
leaq 0x8(%rsp), %rdi
callq 0x34178
jmp 0x1dead
movq %r12, (%rdi)
leaq 0x18186(%rip), %rsi     # 0x36019
leaq 0x181a4(%rip), %rdx     # 0x3603e
callq 0xbdee
movl 0x30(%rsp), %esi
leaq 0x8(%rsp), %rdi
callq 0x34178
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1dec4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
xorl %ebx, %ebx
leaq 0x48(%rsp), %rax
movq %r13, 0x28(%rsp)
movq 0x38(%rsp), %rdi
cmpq %rax, %rdi
je 0x1dee7
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x72c0
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1df06
jmp 0x1df06
jmp 0x1df24
jmp 0x1df24
jmp 0x1df24
jmp 0x1df06
jmp 0x1df24
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1df27
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1df27
jmp 0x1df24
movq %rax, %rbx
movq %r13, 0x28(%rsp)
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1df61
movq 0x48(%rsp), %rsi
jmp 0x1df54
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1df61
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1df61
movq %rax, %rbx
movq %rbx, %rdi
callq 0x74f0
nop