// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/Type.cpp
// Function: PrimType::getCppLiteral[abi:cxx11](void*, CppProgram*)
string getCppLiteral(void * data, CppProgram * prog)
	{
		string val;
		
		switch (primType)
		{
			case BOOL: val=(*(bool*)data)?"true":"false"; break;
			case BYTE: val=to_string(*(unsigned char*)data); break;
			case INT: val=to_string(*(int*)data); break;
			case DUB: val=doubleToString(*(double*)data); break;
			/*{
				std::ostringstream ss;
				ss << *(double*)data;
				val=ss.str();
			}
			break;*/
			
			default:
				throw PhplusError("tried to convert " + getString() + " to C++ code", INTERNAL_ERROR);
		}
		
		return val;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl 0x48(%rsi), %eax
addl $-0x2, %eax
cmpl $0x4, %eax
ja 0x5690a
leaq 0x24dd7(%rip), %rcx     # 0x7b564
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl (%rdx), %ebp
cmpl $0x64, %ebp
movl $0x3, %eax
sbbl $0x0, %eax
cmpl $0xa, %ebp
movl $0x1, %r14d
cmovael %eax, %r14d
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rsp, %rdi
movq %r14, %rsi
movl $0x2d, %edx
callq 0xa330
movq %rsp, %r15
movq (%r15), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x50ca9
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa370
movq (%r15), %rdi
jmp 0x568ee
movl (%rdx), %r14d
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x568ad
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x568a4
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x568aa
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x568ad
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x56815
addl $-0x3, %r15d
jmp 0x568ad
movzbl (%rdx), %r8d
leaq 0x21518(%rip), %rax     # 0x77d73
leaq 0x21499(%rip), %rcx     # 0x77cfb
testq %r8, %r8
cmovneq %rax, %rcx
xorq $0x5, %r8
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa470
jmp 0x568f8
movsd (%rdx), %xmm0
movq %rsp, %rdi
callq 0x5df8e
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa370
movq (%r14), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
jne 0x568f3
jmp 0x568f8
addl $-0x2, %r15d
jmp 0x568ad
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rsp, %rdi
movl $0x2d, %edx
callq 0xa330
movq %rsp, %r12
addq (%r12), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x50ca9
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa370
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x568f8
callq 0xa2b0
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
movq (%r15), %rax
leaq 0x58(%rsp), %rdi
movq %r15, %rsi
callq *0x8(%rax)
leaq 0x24dd8(%rip), %rsi     # 0x7b704
movq %rsp, %rdi
leaq 0x58(%rsp), %rdx
callq 0x158ca
leaq 0x24dd6(%rip), %rsi     # 0x7b716
movq %rsp, %rdi
callq 0xa560
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x5696a
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x56977
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bpl
movq %r14, %rdi
movl $0x3, %edx
callq 0x203f4
xorl %ebp, %ebp
leaq 0x40c81(%rip), %rsi     # 0x97638
leaq -0x41e98(%rip), %rdx    # 0x14b26
movq %r14, %rdi
callq 0xa4f0
movq %rax, %r15
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x569d8
callq 0xdce4
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x569ef
callq 0xa2b0
jmp 0x569ef
movq %rax, %r15
movb $0x1, %bpl
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x56a02
callq 0xa2b0
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x56a15
callq 0xa2b0
testb %bpl, %bpl
jne 0x56a37
jmp 0x56a4a
movq %rax, %r15
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x56a37
callq 0xa2b0
jmp 0x56a37
movq %rax, %r15
movq %r14, %rdi
callq 0xa240
jmp 0x56a4a
jmp 0x56a47
jmp 0x56a47
jmp 0x56a47
movq %rax, %r15
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x56a57
callq 0xa2b0
movq %r15, %rdi
callq 0xa510
nop