// File: /workspace/github_cpp_makefile_star2_O1/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 $0x108, %rsp            # imm = 0x108
movq %rcx, %rbx
movq %rdi, %r14
movq 0x28(%rdi), %rsi
leaq 0x2b986(%rip), %rax     # 0x99460
movq (%rax), %rcx
cmpq %rcx, %rsi
je 0x6db20
movq 0x78(%r14), %rdx
movq (%rsi), %rax
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rcx
callq *0x18(%rax)
movq 0xa0(%rbx), %rdi
movq %r14, %rsi
callq 0x1834e
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6df52
callq 0xa2b0
jmp 0x6df52
movq %rcx, 0x20(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x6db48
movq 0x2b46e(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x6db44
incl 0x8(%rax)
jmp 0x6db48
lock
incl 0x8(%rax)
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
movq %rbx, %rsi
callq 0x1a7f4
movq 0xa0(%rbx), %rdi
movq %rsp, %rsi
callq 0x1834e
leaq 0x10(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x6db7b
callq 0xa2b0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6db8a
callq 0xdcba
movq 0xa0(%rbx), %rdi
callq 0x18b54
movq 0x28(%r14), %r15
leaq 0xc0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xbeda(%rip), %rsi      # 0x79a87
leaq 0xbed8(%rip), %rdx      # 0x79a8c
leaq 0xb0(%rsp), %rdi
callq 0xdf6a
movq (%r15), %rax
leaq 0x50(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
movq %r15, %rsi
callq *0x50(%rax)
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x6dbe9
callq 0xa2b0
movq 0x28(%r14), %r15
leaq 0xa0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xc20e(%rip), %rsi      # 0x79e0e
leaq 0xc20c(%rip), %rdx      # 0x79e13
leaq 0x90(%rsp), %rdi
callq 0xdf6a
movq (%r15), %rax
leaq 0x68(%rsp), %rdi
leaq 0x90(%rsp), %rdx
movq %r15, %rsi
callq *0x50(%rax)
movq 0x90(%rsp), %rdi
cmpq %r13, %rdi
je 0x6dc3c
callq 0xa2b0
movq 0x58(%rsp), %r13
leaq 0x2b7f8(%rip), %rax     # 0x99440
movq (%rax), %rbp
movb $0x1, %r15b
cmpq %rbp, %r13
jne 0x6dc82
leaq 0x2b7d6(%rip), %rax     # 0x99430
movq (%rax), %rsi
leaq 0x80(%rsp), %rdi
callq 0x546ca
movq 0x70(%rsp), %rax
cmpq 0x80(%rsp), %rax
setne %r15b
leaq 0x2b7be(%rip), %rax     # 0x99440
cmpq %rbp, %r13
jne 0x6dc9f
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x6dc9f
movq %rax, %r13
callq 0xdcba
movq %r13, %rax
testb %r15b, %r15b
jne 0x6df64
movq (%rax), %rsi
movq 0x78(%r14), %rdx
addq 0x50(%rsp), %rdx
movq (%rsi), %rax
movq %rsp, %rdi
movq %rbx, %rcx
callq *0x18(%rax)
movq 0xa0(%rbx), %rdi
movq %rsp, %rsi
callq 0x1834e
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6dcdd
callq 0xa2b0
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0xba0b(%rip), %rsi      # 0x796f5
leaq 0xba06(%rip), %rdx      # 0x796f7
callq 0xdf6a
movq 0xa0(%rbx), %rdi
movq %rsp, %rsi
callq 0x1834e
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6dd13
callq 0xa2b0
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0xe645(%rip), %rsi      # 0x7c365
leaq 0xe64f(%rip), %rdx      # 0x7c376
callq 0xdf6a
movq 0xa0(%rbx), %rdi
movq %rsp, %rsi
callq 0x1834e
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6dd49
callq 0xa2b0
movq 0x78(%r14), %rax
movq 0x50(%rsp), %rcx
movslq (%rax,%rcx), %rbp
testq %rbp, %rbp
jle 0x6def2
xorl %r15d, %r15d
movq %rsp, %r13
movq 0x78(%r14), %rax
movq 0x68(%rsp), %rcx
movq (%rax,%rcx), %rax
movzbl (%rax,%r15), %eax
cmpl $0x5c, %eax
je 0x6ddac
cmpl $0x22, %eax
jne 0x6ddf4
movq %r12, (%rsp)
movq %r13, %rdi
leaq 0xe5e8(%rip), %rsi      # 0x7c377
leaq 0xe5e3(%rip), %rdx      # 0x7c379
callq 0xdf6a
movq 0xa0(%rbx), %rdi
movq %r13, %rsi
callq 0x1834e
jmp 0x6ddd5
movq %r12, (%rsp)
movq %r13, %rdi
leaq 0xe5c0(%rip), %rsi      # 0x7c37a
leaq 0xe5bb(%rip), %rdx      # 0x7c37c
callq 0xdf6a
movq 0xa0(%rbx), %rdi
movq %r13, %rsi
callq 0x1834e
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6dde3
callq 0xa2b0
incq %r15
cmpq %r15, %rbp
jne 0x6dd65
jmp 0x6def2
leal -0x20(%rax), %ecx
cmpb $0x5e, %cl
ja 0x6de4c
leaq 0x40(%rsp), %rcx
movq %rcx, 0x30(%rsp)
movq $0x0, 0x38(%rsp)
movb $0x0, 0x40(%rsp)
movsbl %al, %r8d
movl $0x1, %ecx
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa550
movq %r12, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6de9d
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x6dea5
cmpb $0xa, %al
jne 0x6de7e
movq %r12, (%rsp)
movq %r13, %rdi
leaq 0xe51f(%rip), %rsi      # 0x7c37d
leaq 0xe51a(%rip), %rdx      # 0x7c37f
callq 0xdf6a
movq 0xa0(%rbx), %rdi
movq %r13, %rsi
callq 0x1834e
jmp 0x6ddd5
movzbl %al, %esi
movq %r13, %rdi
callq 0x74688
movq 0xa0(%rbx), %rdi
movq %r13, %rsi
callq 0x1834e
jmp 0x6ddd5
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xa0(%rbx), %rdi
movq %r13, %rsi
callq 0x1834e
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6deda
callq 0xa2b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
jne 0x6ddde
jmp 0x6dde3
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0xe476(%rip), %rsi      # 0x7c375
leaq 0xe470(%rip), %rdx      # 0x7c376
callq 0xdf6a
movq 0xa0(%rbx), %rdi
movq %rsp, %rsi
callq 0x1834e
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6df28
callq 0xa2b0
movq 0xa0(%rbx), %rdi
callq 0x18bc6
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x6df43
callq 0xdcba
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x6df52
callq 0xdcba
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0xf8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xe3a4(%rip), %rsi      # 0x7c328
leaq 0xe3d9(%rip), %rdx      # 0x7c364
leaq 0xe8(%rsp), %rdi
callq 0xdf6a
xorps %xmm0, %xmm0
leaq 0xd0(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bpl
leaq 0xe8(%rsp), %rsi
movq %r14, %rdi
movl $0x3, %edx
callq 0x200e4
xorl %ebp, %ebp
leaq 0x28671(%rip), %rsi     # 0x96638
leaq -0x596d6(%rip), %rdx    # 0x148f8
movq %r14, %rdi
callq 0xa4f0
jmp 0x6e110
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x6dff0
callq 0xdcba
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6e00a
callq 0xa2b0
jmp 0x6e00a
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x6e113
movq %r14, %rdi
callq 0xa240
jmp 0x6e113
jmp 0x6e110
jmp 0x6e0fd
jmp 0x6e110
jmp 0x6e0fd
jmp 0x6e110
jmp 0x6e0fd
jmp 0x6e110
jmp 0x6e0fd
jmp 0x6e110
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r13, %rdi
je 0x6e122
callq 0xa2b0
jmp 0x6e122
movq %rax, %rbx
jmp 0x6e122
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
jne 0x6e0c3
jmp 0x6e131
movq %rax, %rbx
jmp 0x6e131
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e0ab
callq 0xa2b0
jmp 0x6e0ab
movq %rax, %rbx
movq 0x28(%rsp), %rdi
jmp 0x6e127
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e131
callq 0xa2b0
jmp 0x6e131
jmp 0x6e0fd
jmp 0x6e110
jmp 0x6e0fd
jmp 0x6e110
movq %rax, %rbx
jmp 0x6e0e8
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6e0e8
callq 0xa2b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
jne 0x6e109
jmp 0x6e113
jmp 0x6e0fd
jmp 0x6e110
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6e113
callq 0xa2b0
jmp 0x6e113
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x6e122
callq 0xdcba
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x6e131
callq 0xdcba
movq %rbx, %rdi
callq 0xa510
nop