// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/IRs/IRBase.cpp
// Function: IRBase::getVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string IRBase::getVariable(std::string value)
{
    // std::cerr<<"generating variable with "<<value<<std::endl;
    std::string result = "variable_" + std::to_string(_nextGeneratedVariableSuffix);
    _nextGeneratedVariableSuffix++;
    if (!_symbolTable)
    {
        std::cout<<"SYMBOL TABLE NOT INITALIZED"<<std::endl;
        exit(2);
    }
    _symbolTable->addConst(result, value);
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl 0x19cd1(%rip), %ebp     # 0x45328
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x2b6a5
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x2b69e
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x2b6a3
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x2b6a5
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x2b66d
addl $-0x3, %eax
jmp 0x2b6a5
addl $-0x2, %eax
jmp 0x2b6a5
decl %eax
movl %eax, %esi
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x48(%rsp), %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x4330
movq (%r12), %rdi
movl 0x8(%r12), %esi
movl %ebp, %edx
callq 0x1853f
leaq 0xbe93(%rip), %rcx      # 0x37569
movl $0x9, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4300
leaq 0x10(%rbx), %r12
movq %r12, (%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2b70a
movq %rdx, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x2b712
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x2b740
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42a0
incl 0x19be2(%rip)           # 0x45328
movq (%r15), %r15
testq %r15, %r15
je 0x2b7de
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0xc7aa
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xc7aa
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x1a6dc
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2b7b5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x2b7cc
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x197e3(%rip), %rdi     # 0x44fc8
leaq 0xbd87(%rip), %rsi      # 0x37573
movl $0x1b, %edx
callq 0x4310
movq 0x197cb(%rip), %rdi     # 0x44fc8
callq 0x4150
movl $0x2, %edi
callq 0x4360
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2b82b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2b82b
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x2b85b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2b85b
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x2b86f
movq 0x58(%rsp), %rsi
jmp 0x2b867
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x2b86f
movq (%r12), %rsi
incq %rsi
callq 0x42a0
movq %r14, %rdi
callq 0x44c0
nop