// File: /workspace/github_cpp_makefile_star2_O3/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 0x2ba18(%rip), %rax     # 0x9a460
movq (%rax), %rcx
cmpq %rcx, %rsi
je 0x6ea8e
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 0x1861a
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ee9c
callq 0xa2b0
jmp 0x6ee9c
movq %rcx, 0x20(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x6eab6
movq 0x2b500(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x6eab2
incl 0x8(%rax)
jmp 0x6eab6
lock
incl 0x8(%rax)
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
movq %rbx, %rsi
callq 0x1aab2
movq 0xa0(%rbx), %rdi
movq %rsp, %rsi
callq 0x1861a
leaq 0x10(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x6eae9
callq 0xa2b0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6eaf8
callq 0xdce4
movq 0xa0(%rbx), %rdi
callq 0x18e22
movq 0x28(%r14), %r15
leaq 0xb0(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xbf2c(%rip), %rsi      # 0x7aa47
leaq 0xbf2a(%rip), %rdx      # 0x7aa4c
leaq 0xa0(%rsp), %rdi
callq 0xdfa8
movq (%r15), %rax
leaq 0x50(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
movq %r15, %rsi
callq *0x50(%rax)
movq 0xa0(%rsp), %rdi
cmpq %r13, %rdi
je 0x6eb57
callq 0xa2b0
movq 0x28(%r14), %r15
leaq 0x90(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xc260(%rip), %rsi      # 0x7adce
leaq 0xc25e(%rip), %rdx      # 0x7add3
leaq 0x80(%rsp), %rdi
callq 0xdfa8
movq (%r15), %rax
leaq 0x68(%rsp), %rdi
leaq 0x80(%rsp), %rdx
movq %r15, %rsi
callq *0x50(%rax)
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0x6ebaa
callq 0xa2b0
movq 0x58(%rsp), %rax
leaq 0x2b88a(%rip), %r15     # 0x9a440
cmpq (%r15), %rax
jne 0x6eeae
leaq 0x2b86a(%rip), %rax     # 0x9a430
movq (%rax), %rsi
movq %rsp, %rdi
callq 0x55358
movq 0x70(%rsp), %r13
movq (%rsp), %rbp
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6ebe9
callq 0xdce4
cmpq %rbp, %r13
jne 0x6eeae
movq (%r15), %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 0x1861a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6ec27
callq 0xa2b0
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0xba81(%rip), %rsi      # 0x7a6b5
leaq 0xba7c(%rip), %rdx      # 0x7a6b7
callq 0xdfa8
movq 0xa0(%rbx), %rdi
movq %rsp, %rsi
callq 0x1861a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6ec5d
callq 0xa2b0
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0xe6bb(%rip), %rsi      # 0x7d325
leaq 0xe6c5(%rip), %rdx      # 0x7d336
callq 0xdfa8
movq 0xa0(%rbx), %rdi
movq %rsp, %rsi
callq 0x1861a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6ec93
callq 0xa2b0
movq 0x78(%r14), %rax
movq 0x50(%rsp), %rcx
movslq (%rax,%rcx), %rbp
testq %rbp, %rbp
jle 0x6ee3c
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 0x6ecf6
cmpl $0x22, %eax
jne 0x6ed3e
movq %r12, (%rsp)
movq %r13, %rdi
leaq 0xe65e(%rip), %rsi      # 0x7d337
leaq 0xe659(%rip), %rdx      # 0x7d339
callq 0xdfa8
movq 0xa0(%rbx), %rdi
movq %r13, %rsi
callq 0x1861a
jmp 0x6ed1f
movq %r12, (%rsp)
movq %r13, %rdi
leaq 0xe636(%rip), %rsi      # 0x7d33a
leaq 0xe631(%rip), %rdx      # 0x7d33c
callq 0xdfa8
movq 0xa0(%rbx), %rdi
movq %r13, %rsi
callq 0x1861a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6ed2d
callq 0xa2b0
incq %r15
cmpq %r15, %rbp
jne 0x6ecaf
jmp 0x6ee3c
leal -0x20(%rax), %ecx
cmpb $0x5e, %cl
ja 0x6ed96
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 0x6ede7
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x6edef
cmpb $0xa, %al
jne 0x6edc8
movq %r12, (%rsp)
movq %r13, %rdi
leaq 0xe595(%rip), %rsi      # 0x7d33d
leaq 0xe590(%rip), %rdx      # 0x7d33f
callq 0xdfa8
movq 0xa0(%rbx), %rdi
movq %r13, %rsi
callq 0x1861a
jmp 0x6ed1f
movzbl %al, %esi
movq %r13, %rdi
callq 0x75628
movq 0xa0(%rbx), %rdi
movq %r13, %rsi
callq 0x1861a
jmp 0x6ed1f
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 0x1861a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6ee24
callq 0xa2b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
jne 0x6ed28
jmp 0x6ed2d
movq %rsp, %rdi
movq %r12, (%rdi)
leaq 0xe4ec(%rip), %rsi      # 0x7d335
leaq 0xe4e6(%rip), %rdx      # 0x7d336
callq 0xdfa8
movq 0xa0(%rbx), %rdi
movq %rsp, %rsi
callq 0x1861a
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6ee72
callq 0xa2b0
movq 0xa0(%rbx), %rdi
callq 0x18e94
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x6ee8d
callq 0xdce4
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x6ee9c
callq 0xdce4
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0xe8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xe41a(%rip), %rsi      # 0x7d2e8
leaq 0xe44f(%rip), %rdx      # 0x7d324
leaq 0xd8(%rsp), %rdi
callq 0xdfa8
xorps %xmm0, %xmm0
leaq 0xc0(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bpl
leaq 0xd8(%rsp), %rsi
movq %r14, %rdi
movl $0x3, %edx
callq 0x203f4
xorl %ebp, %ebp
leaq 0x28727(%rip), %rsi     # 0x97638
leaq -0x5a3f2(%rip), %rdx    # 0x14b26
movq %r14, %rdi
callq 0xa4f0
jmp 0x6f056
jmp 0x6f043
jmp 0x6f056
jmp 0x6f043
jmp 0x6f056
jmp 0x6f043
jmp 0x6f056
jmp 0x6f043
jmp 0x6f056
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x6ef62
callq 0xdce4
movq 0xd8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6ef74
callq 0xa2b0
testb %bpl, %bpl
jne 0x6ef81
jmp 0x6f059
movq %rax, %rbx
movq %r14, %rdi
callq 0xa240
jmp 0x6f059
jmp 0x6f056
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0x6f068
callq 0xa2b0
jmp 0x6f068
movq %rax, %rbx
jmp 0x6f068
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r13, %rdi
jne 0x6f009
jmp 0x6f077
movq %rax, %rbx
jmp 0x6f077
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6eff1
callq 0xa2b0
jmp 0x6eff1
movq %rax, %rbx
movq 0x28(%rsp), %rdi
jmp 0x6f06d
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6f077
callq 0xa2b0
jmp 0x6f077
jmp 0x6f043
jmp 0x6f056
jmp 0x6f043
jmp 0x6f056
movq %rax, %rbx
jmp 0x6f02e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6f02e
callq 0xa2b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
jne 0x6f04f
jmp 0x6f059
jmp 0x6f043
jmp 0x6f056
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6f059
callq 0xa2b0
jmp 0x6f059
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x6f068
callq 0xdce4
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x6f077
callq 0xdce4
movq %rbx, %rdi
callq 0xa510
nop