// File: /workspace/github_cpp_makefile_star2_O1/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 0x55cee
leaq 0x24a33(%rip), %rcx     # 0x7a5a4
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 0x4ff49
movq %rbx, %rdi
movq %r15, %rsi
callq 0xa370
movq (%r15), %rdi
jmp 0x55cd2
movl (%rdx), %r14d
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x55c91
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x55c88
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x55c8e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x55c91
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x55bf9
addl $-0x3, %r15d
jmp 0x55c91
movzbl (%rdx), %r8d
leaq 0x21134(%rip), %rax     # 0x76d73
leaq 0x210b5(%rip), %rcx     # 0x76cfb
testq %r8, %r8
cmovneq %rax, %rcx
xorq $0x5, %r8
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa470
jmp 0x55cdc
movsd (%rdx), %xmm0
movq %rsp, %rdi
callq 0x5d271
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa370
movq (%r14), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
jne 0x55cd7
jmp 0x55cdc
addl $-0x2, %r15d
jmp 0x55c91
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 0x4ff49
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa370
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x55cdc
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 0x24a34(%rip), %rsi     # 0x7a744
movq %rsp, %rdi
leaq 0x58(%rsp), %rdx
callq 0x1562b
leaq 0x24a32(%rip), %rsi     # 0x7a756
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 0x55d4e
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x55d5b
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 0x200e4
xorl %ebp, %ebp
leaq 0x4089d(%rip), %rsi     # 0x96638
leaq -0x414aa(%rip), %rdx    # 0x148f8
movq %r14, %rdi
callq 0xa4f0
movq %rax, %r15
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x55dbc
callq 0xdcba
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x55dd3
callq 0xa2b0
jmp 0x55dd3
movq %rax, %r15
movb $0x1, %bpl
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x55dee
callq 0xa2b0
jmp 0x55dee
movq %rax, %r15
movb $0x1, %bpl
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x55e09
callq 0xa2b0
jmp 0x55e09
movq %rax, %r15
movb $0x1, %bpl
testb %bpl, %bpl
je 0x55e21
movq %r14, %rdi
callq 0xa240
jmp 0x55e21
jmp 0x55e1e
jmp 0x55e1e
jmp 0x55e1e
movq %rax, %r15
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x55e2e
callq 0xa2b0
movq %r15, %rdi
callq 0xa510