// File: /workspace/github_cpp_makefile_star2_O3/rfotino[P]consolite-compiler/src/syntax.cpp
// Function: LocalVarToken::output(Parser*, std::shared_ptr<FunctionToken> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void LocalVarToken::output(Parser *parser,
			   const std::shared_ptr<FunctionToken>&,
			   const std::string&,
			   const std::string&,
			   const std::string&) {
  // If this is an array, store the address of the data in the variable's
  // location.
  if (_type.isArray()) {
    // Store the location of the array at the variable's location.
    if (this->isReg()) {
      // Store FP + _dataOffset in the variable's register.
      parser->writeInst("MOV " + this->getReg() + " FP");
      if (0 != _dataOffset) {
        parser->writeInst("MOVI L " + toHexStr(_dataOffset));
        parser->writeInst("ADD " + this->getReg() + " L");
      }
    } else {
      // Store FP + _offset in M
      parser->writeInst("MOV M FP");
      if (0 != _offset) {
        parser->writeInst("MOVI L " + toHexStr(_offset));
        parser->writeInst("ADD M L");
      }
      // Store FP + _dataOffset in N
      parser->writeInst("MOV N FP");
      if (0 != _dataOffset) {
        parser->writeInst("MOVI L " + toHexStr(_dataOffset));
        parser->writeInst("ADD N L");
      }
      // Store the data offset in the variable's location relative to
      // the frame pointer.
      parser->writeInst("STOR N M");
    }
  }
  // If there is no initial value, do nothing else.
  if (_initExprs.empty()) {
    return;
  }
  // Store initial values.
  if (_type.isArray()) {
    for (size_t i = 0; i < _initExprs.size(); i++) {
      // Output initial expressions for each element.
      _initExprs[i]->output(parser, VarLocation(_dataOffset + (DATA_SIZE * i)));
    }
  } else {
    // Output initial expression for the scalar, to either the register
    // or frame pointer offset.
    _initExprs[0]->output(parser, VarLocation(_reg, _offset));
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x1, 0x68(%rdi)
jne 0x1f9a6
movq 0x18(%r14), %rdx
testq %rdx, %rdx
je 0x1f476
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%r14), %rsi
addq %rsi, %rdx
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0xbd58
leaq 0x15d03(%rip), %rcx     # 0x35139
movl $0x4, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7320
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f519
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x1f521
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1652a(%rip), %rsi     # 0x359b1
leaq 0x1652b(%rip), %rdx     # 0x359b9
movq %rsp, %rdi
callq 0xbdee
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1f4b7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movl 0x30(%r14), %eax
testl %eax, %eax
je 0x1f83d
movzwl %ax, %esi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x4, %edx
callq 0x33681
leaq 0x1633c(%rip), %rcx     # 0x3581b
movl $0x7, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7320
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f7a8
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1f7b0
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x16842(%rip), %rsi     # 0x35d86
callq 0x7560
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f56f
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1f576
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x1f5ae
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f5c5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f5dc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72c0
movzwl 0xb0(%r14), %eax
testw %ax, %ax
je 0x1f9a6
movzwl %ax, %esi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x4, %edx
callq 0x33681
leaq 0x16212(%rip), %rcx     # 0x3581b
movl $0x7, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7320
movq %rbp, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f63c
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1f643
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x1f67b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f692
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x48(%rsp), %r15
movq %r12, (%r15)
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xbd58
leaq 0x167d2(%rip), %rcx     # 0x35e86
movl $0x4, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7320
movq %r13, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f6e9
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x1f6f1
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x163c3(%rip), %rsi     # 0x35ad7
callq 0x7560
movq %rbp, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f73a
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1f741
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x1f779
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f790
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f9a6
movq 0x58(%rsp), %rsi
jmp 0x1f99e
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1f7e8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f803
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0x161aa(%rip), %rsi     # 0x359ba
leaq 0x161aa(%rip), %rdx     # 0x359c1
callq 0xbdee
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1f83d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0x16641(%rip), %rsi     # 0x35e8b
leaq 0x16642(%rip), %rdx     # 0x35e93
callq 0xbdee
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1f877
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movzwl 0xb0(%r14), %eax
testw %ax, %ax
je 0x1f96c
movzwl %ax, %esi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x4, %edx
callq 0x33681
leaq 0x15f77(%rip), %rcx     # 0x3581b
movl $0x7, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7320
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f8d7
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1f8df
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1f917
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f932
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0x16555(%rip), %rsi     # 0x35e94
leaq 0x16555(%rip), %rdx     # 0x35e9b
callq 0xbdee
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1f96c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0x15e3f(%rip), %rsi     # 0x357b8
leaq 0x15e40(%rip), %rdx     # 0x357c0
callq 0xbdee
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1f9a6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x98(%r14), %rax
cmpq 0xa0(%r14), %rax
je 0x1fa86
cmpb $0x1, 0x68(%r14)
jne 0x1fa37
leaq 0x10(%rsp), %r12
xorl %r13d, %r13d
movq %rsp, %r15
xorl %ebp, %ebp
movq (%rax,%r13,8), %rdi
movzwl 0xb0(%r14), %eax
addl %r13d, %eax
movq %r12, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movl %eax, 0x20(%rsp)
movq %rbx, %rsi
movq %r15, %rdx
callq 0x153ca
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1fa14
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
incq %rbp
movq 0x98(%r14), %rax
movq 0xa0(%r14), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
addq $0x2, %r13
cmpq %rcx, %rbp
jb 0x1f9ce
jmp 0x1fa86
movq (%rax), %r15
movl 0x30(%r14), %ebp
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0xbd58
movl %ebp, 0x20(%r14)
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x153ca
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1fa86
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1fb75
jmp 0x1faeb
jmp 0x1faa7
jmp 0x1fac2
jmp 0x1fb75
jmp 0x1faeb
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1fac5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1fac5
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x1fb21
jmp 0x1fb8e
jmp 0x1fb75
jmp 0x1faeb
jmp 0x1fb75
jmp 0x1faeb
jmp 0x1fb75
movq %rax, %rbx
jmp 0x1fb8e
jmp 0x1fb2a
jmp 0x1fb45
jmp 0x1fb61
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x1fb17
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1fb17
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x1fb8e
movq 0x38(%rsp), %rsi
jmp 0x1fb86
jmp 0x1fb75
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x1fb48
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1fb48
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x1fb64
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x1fb64
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x1fb8e
movq 0x58(%rsp), %rsi
jmp 0x1fb86
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1fb8e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rbx, %rdi
callq 0x74f0