// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/External/Utilities.hpp
// Function: validateAndConvertData[abi:cxx11](Driver&, Data const&)
std::string validateAndConvertData(Driver& d, const Data& data)
{
    if (!data.name.empty())
    {
        checkForErrors(d.ST->checkVariableExistsAndIsInitialized(data.name));
        return data.name;
    }
    else
    {
        std::string reg = d.FIR->getVariable(std::to_string(data.value));
        d.FIR->addNewCode("CONST", reg , std::to_string(data.value));
        return reg;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x10(%rdx), %rdx
testq %rdx, %rdx
je 0x30463
movq (%r15), %r15
leaq -0xa0(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x8(%r14), %rsi
addq %rsi, %rdx
leaq -0xb0(%rbp), %r12
movq %r12, %rdi
callq 0xc7aa
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1ab20
leaq -0x48(%rbp), %rdi
callq 0x3034c
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30429
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42a0
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x30444
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x42a0
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0xc7aa
jmp 0x3060c
movq 0x10(%r15), %rax
movq %rax, -0x50(%rbp)
movq (%r14), %r13
movl $0x1, %esi
cmpq $0xa, %r13
jb 0x304c8
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r13, %rcx
cmpq $0x63, %rcx
jbe 0x304c1
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x304c6
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x304c8
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x3048b
addl $-0x3, %esi
jmp 0x304c8
addl $-0x2, %esi
jmp 0x304c8
decl %esi
movl %esi, %esi
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x70(%rbp), %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x4330
movq (%r12), %rdi
movl 0x8(%r12), %esi
movq %r13, %rdx
callq 0x19d66
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movq %r12, %rdx
callq 0x2b63a
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x30519
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x42a0
movq 0x10(%r15), %r15
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x6ff5(%rip), %rsi      # 0x37521
leaq 0x6ff3(%rip), %rdx      # 0x37526
leaq -0x48(%rbp), %rdi
callq 0x53cc
movq (%r14), %r14
movl $0x1, %esi
cmpq $0xa, %r14
jb 0x30599
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x30592
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x30597
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x30599
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x3055c
addl $-0x3, %esi
jmp 0x30599
addl $-0x2, %esi
jmp 0x30599
decl %esi
movl %esi, %esi
leaq -0x80(%rbp), %r13
movq %r13, -0x10(%r13)
leaq -0x90(%rbp), %rdi
xorl %edx, %edx
callq 0x4330
leaq -0x90(%rbp), %r12
movq (%r12), %rdi
movl 0x8(%r12), %esi
movq %r14, %rdx
callq 0x19d66
leaq -0x48(%rbp), %rsi
movq %r15, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x1c778
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
leaq -0x38(%rbp), %r14
je 0x305f7
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x42a0
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x3060c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0x30641
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x42a0
jmp 0x30641
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3065f
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42a0
jmp 0x3065f
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x306c2
movq (%rbx), %rsi
jmp 0x306ba
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x306c2
movq -0x60(%rbp), %rsi
jmp 0x306ba
movq %rax, %r14
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x306a7
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42a0
jmp 0x306a7
movq %rax, %r14
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x306c2
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x42a0
movq %r14, %rdi
callq 0x44c0