// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/Actions/VarAction.cpp
// Function: ConstGetAction::addToProg(std::shared_ptr<ActionData>, std::shared_ptr<ActionData>, CppProgram*)
void addToProg(Action inLeft, Action inRight, CppProgram* prog)
	{
		if (getReturnType()==String)
		{
			//addToProgPnStr(prog);
			//prog->name("$pnStr");
			prog->code(prog->getTypeCode(String));
			prog->pushExpr();
				
				auto sizeInfo=getReturnType()->getSubType("_size");
				auto dataInfo=getReturnType()->getSubType("_data");
				if (sizeInfo.type!=Int || dataInfo.type!=Byte->getPtr())
				{
					throw PhplusError("ConstGetAction::addToProg failed to access string properties", INTERNAL_ERROR);
				}
			
				prog->code(Int->getCppLiteral((char*)data+sizeInfo.offset, prog));
				prog->code(", ");
				//prog->code(Int->getCppLiteral((char*)data+sizeInfo.offset, prog));
				//prog->code(", (unsigned char*)\"");
				prog->code("(unsigned char*)\"");
				int len=*(int*)((char*)data+sizeInfo.offset);
				for (int i=0; i<len; i++)
				{
					char c=*((*(char**)((char*)data+dataInfo.offset))+i);
					
					if (c=='"')
					{
						prog->code("\\\"");
					}
					else if (c=='\\')
					{
						prog->code("\\\\");
					}
					else if (c>=32 && c<=126)
					{
						prog->code(string()+c);
					}
					else if (c=='\n')
					{
						prog->code("\\n");
					}
					else
					{
						prog->code(str::charToCppStringLiteralEscaped(c));
					}
					
				}
				prog->code("\"");
				
			prog->popExpr();
		}
		else
		{
			prog->code(getReturnType()->getCppLiteral(data, prog));
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rcx, %rbx
movq %rdi, %r14
movq 0x28(%rdi), %rsi
leaq 0x2b3b6(%rip), %rax     # 0x7a440
cmpq (%rax), %rsi
je 0x4f0ba
movq 0x78(%r14), %rdx
movq (%rsi), %rax
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rcx
callq *0x18(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x39d6c
movq %rsp, %rdi
callq 0xa558
jmp 0x4f388
leaq 0x2b37f(%rip), %rsi     # 0x7a440
leaq 0x70(%rsp), %r15
movq %r15, %rdi
callq 0x12c0a
movq %rsp, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x15e88
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x39d6c
movq %rsp, %rdi
callq 0xa558
leaq 0x78(%rsp), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0x3a5fa
movq 0x28(%r14), %r15
leaq 0x8a10(%rip), %rsi      # 0x57b1c
leaq 0xb8(%rsp), %rdi
movq %rsp, %rdx
callq 0xa150
movq (%r15), %rax
leaq 0x40(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
movq %r15, %rsi
callq *0x50(%rax)
leaq 0xb8(%rsp), %rdi
callq 0xa558
movq 0x28(%r14), %r15
leaq 0x8d6d(%rip), %rsi      # 0x57eb7
leaq 0x98(%rsp), %rdi
movq %rsp, %rdx
callq 0xa150
movq (%r15), %rax
leaq 0x58(%rsp), %rdi
leaq 0x98(%rsp), %rdx
movq %r15, %rsi
callq *0x50(%rax)
leaq 0x98(%rsp), %rdi
callq 0xa558
movq 0x48(%rsp), %rax
leaq 0x2b297(%rip), %r15     # 0x7a420
cmpq (%r15), %rax
jne 0x4f39a
leaq 0x2b277(%rip), %rax     # 0x7a410
movq (%rax), %rsi
movq %rsp, %rdi
callq 0x3dce8
movq 0x60(%rsp), %r12
leaq 0x8(%rsp), %rdi
movq -0x8(%rdi), %r13
callq 0xc984
cmpq %r13, %r12
jne 0x4f39a
movq (%r15), %rsi
movq 0x78(%r14), %rdx
addq 0x40(%rsp), %rdx
movq (%rsi), %rax
movq %rsp, %rdi
movq %rbx, %rcx
callq *0x18(%rax)
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x39d6c
movq %rsp, %rdi
callq 0xa558
leaq 0x8ca3(%rip), %rsi      # 0x57e95
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0xa150
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x39d6c
movq %rsp, %rdi
callq 0xa558
leaq 0xb0f4(%rip), %rsi      # 0x5a30d
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0xa150
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x39d6c
movq %rsp, %r15
movq %r15, %rdi
callq 0xa558
movq 0x78(%r14), %rax
movq 0x40(%rsp), %rcx
movl (%rax,%rcx), %r12d
xorl %ebp, %ebp
testl %r12d, %r12d
cmovlel %ebp, %r12d
leaq 0x20(%rsp), %r13
cmpq %rbp, %r12
je 0x4f345
movq 0x78(%r14), %rax
movq 0x58(%rsp), %rcx
movq (%rax,%rcx), %rax
movzbl (%rax,%rbp), %eax
cmpl $0x5c, %eax
je 0x4f29a
cmpl $0x22, %eax
jne 0x4f2c4
movq %r15, %rdi
leaq 0xb09a(%rip), %rsi      # 0x5a31f
movq %r13, %rdx
callq 0xa150
movq %rbx, %rdi
movq %r15, %rsi
callq 0x39d6c
jmp 0x4f2b7
movq %r15, %rdi
leaq 0xb07e(%rip), %rsi      # 0x5a322
movq %r13, %rdx
callq 0xa150
movq %rbx, %rdi
movq %r15, %rsi
callq 0x39d6c
movq %r15, %rdi
callq 0xa558
incq %rbp
jmp 0x4f257
leal -0x20(%rax), %ecx
cmpb $0x5e, %cl
ja 0x4f307
leaq 0x30(%rsp), %rcx
movq %rcx, 0x20(%rsp)
andq $0x0, 0x28(%rsp)
movb $0x0, 0x30(%rsp)
movsbl %al, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x1aaca
movq %rbx, %rdi
movq %r15, %rsi
callq 0x39d6c
movq %r15, %rdi
callq 0xa558
movq %r13, %rdi
jmp 0x4f2ba
cmpb $0xa, %al
jne 0x4f32a
movq %r15, %rdi
leaq 0xb010(%rip), %rsi      # 0x5a325
movq %r13, %rdx
callq 0xa150
movq %rbx, %rdi
movq %r15, %rsi
callq 0x39d6c
jmp 0x4f2b7
movzbl %al, %esi
movq %r15, %rdi
callq 0x533c8
movq %rbx, %rdi
movq %r15, %rsi
callq 0x39d6c
jmp 0x4f2b7
leaq 0x8b1a(%rip), %rsi      # 0x57e66
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0xa150
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x39d6c
movq %rsp, %rdi
callq 0xa558
movq %rbx, %rdi
callq 0x3a692
leaq 0x68(%rsp), %rdi
callq 0xc984
leaq 0x50(%rsp), %rdi
callq 0xc984
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r14
leaq 0xaf24(%rip), %rsi      # 0x5a2d0
leaq 0xd8(%rsp), %rdi
movq %rsp, %rdx
callq 0xa150
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bpl
leaq 0xd8(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r14, %rdi
callq 0x19f06
xorl %ebp, %ebp
leaq 0x281af(%rip), %rsi     # 0x77598
leaq -0x3dd5e(%rip), %rdx    # 0x11692
movq %r14, %rdi
callq 0xa4e0
jmp 0x4f4db
jmp 0x4f4ce
jmp 0x4f4db
jmp 0x4f4ce
jmp 0x4f4db
jmp 0x4f4ce
jmp 0x4f4db
jmp 0x4f4ce
jmp 0x4f4db
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0xc984
leaq 0xd8(%rsp), %rdi
callq 0xa558
testb %bpl, %bpl
jne 0x4f44f
jmp 0x4f4de
movq %rax, %rbx
movq %r14, %rdi
callq 0xa230
jmp 0x4f4de
jmp 0x4f4db
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0xa558
jmp 0x4f4e8
movq %rax, %rbx
jmp 0x4f4e8
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
jmp 0x4f4a4
movq %rax, %rbx
jmp 0x4f4f2
movq %rax, %rbx
movq %rsp, %rdi
callq 0xa558
jmp 0x4f497
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
jmp 0x4f4ed
movq %rax, %rbx
movq %rsp, %rdi
callq 0xa558
jmp 0x4f4f2
jmp 0x4f4ce
jmp 0x4f4db
jmp 0x4f4ce
jmp 0x4f4db
movq %rax, %rbx
jmp 0x4f4c3
movq %rax, %rbx
movq %rsp, %rdi
callq 0xa558
leaq 0x20(%rsp), %rdi
jmp 0x4f4d4
jmp 0x4f4ce
jmp 0x4f4db
movq %rax, %rbx
movq %rsp, %rdi
callq 0xa558
jmp 0x4f4de
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0xc984
leaq 0x50(%rsp), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0xa500