// File: /workspace/github_cpp_makefile_star2_O1/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 0x307c7
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 0xca12
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1adde
leaq -0x48(%rbp), %rdi
callq 0x306b0
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3078d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42a0
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x307a8
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 0xca12
jmp 0x30970
movq 0x10(%r15), %rax
movq %rax, -0x50(%rbp)
movq (%r14), %r13
movl $0x1, %esi
cmpq $0xa, %r13
jb 0x3082c
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r13, %rcx
cmpq $0x63, %rcx
jbe 0x30825
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x3082a
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x3082c
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x307ef
addl $-0x3, %esi
jmp 0x3082c
addl $-0x2, %esi
jmp 0x3082c
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 0x1a028
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movq %r12, %rdx
callq 0x2b8d6
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3087d
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x42a0
movq 0x10(%r15), %r15
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x7c91(%rip), %rsi      # 0x38521
leaq 0x7c8f(%rip), %rdx      # 0x38526
leaq -0x48(%rbp), %rdi
callq 0x54fc
movq (%r14), %r14
movl $0x1, %esi
cmpq $0xa, %r14
jb 0x308fd
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x308f6
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x308fb
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x308fd
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x308c0
addl $-0x3, %esi
jmp 0x308fd
addl $-0x2, %esi
jmp 0x308fd
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 0x1a028
leaq -0x48(%rbp), %rsi
movq %r15, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x1ca1c
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
leaq -0x38(%rbp), %r14
je 0x3095b
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x42a0
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x30970
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 0x309a5
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x42a0
jmp 0x309a5
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x309c3
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42a0
jmp 0x309c3
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x30a26
movq (%rbx), %rsi
jmp 0x30a1e
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x30a26
movq -0x60(%rbp), %rsi
jmp 0x30a1e
movq %rax, %r14
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30a0b
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42a0
jmp 0x30a0b
movq %rax, %r14
movq -0xb0(%rbp), %rdi
cmpq %r13, %rdi
je 0x30a26
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x42a0
movq %r14, %rdi
callq 0x44c0