// File: /workspace/github_cpp_makefile_star2_O1/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 0x1aa35(%rip), %ebp     # 0x46328
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x2b941
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x2b93a
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x2b93f
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x2b941
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x2b909
addl $-0x3, %eax
jmp 0x2b941
addl $-0x2, %eax
jmp 0x2b941
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 0x1878f
leaq 0xcbf7(%rip), %rcx      # 0x38569
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 0x2b9a6
movq %rdx, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x2b9ae
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 0x2b9dc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x42a0
incl 0x1a946(%rip)           # 0x46328
movq (%r15), %r15
testq %r15, %r15
je 0x2ba7a
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0xca12
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xca12
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x1a99a
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2ba51
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x2ba68
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 0x1a547(%rip), %rdi     # 0x45fc8
leaq 0xcaeb(%rip), %rsi      # 0x38573
movl $0x1b, %edx
callq 0x4310
movq 0x1a52f(%rip), %rdi     # 0x45fc8
callq 0x4150
movl $0x2, %edi
callq 0x4360
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2bac7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2bac7
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x2baf7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x2baf7
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x2bb0b
movq 0x58(%rsp), %rsi
jmp 0x2bb03
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x2bb0b
movq (%r12), %rsi
incq %rsi
callq 0x42a0
movq %r14, %rdi
callq 0x44c0
nop