// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/PhplusStdLib.cpp
// Function: addToProgRunCmd(CppProgram*)
void addToProgRunCmd(CppProgram * prog)
{
	if (!prog->hasFunc("$runCmd"))
	{
		addToProgPpStr(prog);
		addToProgCStr(prog);
		addToProgConcatStr(prog);
		addToProgAsciiToStr(prog);
				
		string strType=prog->getTypeCode(String);
		
		prog->addFunc("$runCmd", {{strType, "cmd"}}, strType,
			strType+" result = "+prog->ppToCpp("$ppStr")+"(\"\");\n"
			"FILE* pipe = popen(cStr(cmd), \"r\");\n"
			"if (!pipe)\n"
			"	return result;\n"
			"while (!feof(pipe)) {\n"
			"	char c;\n"
			"	if ((c=getc(pipe)) != EOF)\n"
			"	{\n"
			"		result="+prog->ppToCpp("$concatStr")+"(result, "+prog->ppToCpp("$asciiToStr")+"(c));\n"
			"	}\n"
			"}\n"
			"pclose(pipe);\n"
			"return result;\n"
		);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq %rdi, %rbx
leaq 0x228(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x49e5f(%rip), %rsi     # 0x7a928
leaq 0x49e5f(%rip), %rdx     # 0x7a92f
leaq 0x218(%rsp), %rdi
callq 0xdfa8
leaq 0x218(%rsp), %rsi
movq %rbx, %rdi
callq 0x1cb42
movl %eax, %ebp
movq 0x218(%rsp), %rdi
cmpq %r14, %rdi
je 0x30b01
callq 0xa2b0
testb %bpl, %bpl
jne 0x3122a
movq %rbx, %rdi
callq 0x2dea2
movq %rbx, %rdi
callq 0x2e1d2
movq %rbx, %rdi
callq 0x2f10a
movq %rbx, %rdi
callq 0x2fddc
leaq 0x6992f(%rip), %rax     # 0x9a460
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0xd0(%rsp)
movq %rax, 0xd8(%rsp)
testq %rax, %rax
je 0x30b62
movq 0x69454(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x30b5e
incl 0x8(%rax)
jmp 0x30b62
lock
incl 0x8(%rax)
leaq 0x140(%rsp), %rdi
leaq 0xd0(%rsp), %rdx
movq %rbx, %rsi
callq 0x1aab2
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x30b8c
callq 0xdce4
leaq 0x268(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x49d89(%rip), %rsi     # 0x7a928
leaq 0x49d89(%rip), %rdx     # 0x7a92f
leaq 0x258(%rsp), %rdi
callq 0xdfa8
leaq 0x49d76(%rip), %rdx     # 0x7a930
leaq 0x218(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x4f380
leaq 0x1e0(%rsp), %rdi
leaq 0x218(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x4f06a
leaq 0x1b0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a0(%rsp), %rdi
callq 0xde0c
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0xde0c
leaq 0x49ced(%rip), %rsi     # 0x7a934
leaq 0x10(%rsp), %rdi
callq 0xa560
leaq 0x190(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x49355(%rip), %rsi     # 0x79fb9
leaq 0x49354(%rip), %rdx     # 0x79fbf
leaq 0x180(%rsp), %rdi
callq 0xdfa8
movq 0xa0(%rbx), %rsi
leaq 0x120(%rsp), %rdi
leaq 0x180(%rsp), %rdx
callq 0x1924a
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x128(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x30cb9
movq 0x20(%rsp), %rdi
movq 0x120(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x30ce5
leaq 0x130(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x30ce0
movq 0x130(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x30cf1
leaq 0x10(%rsp), %rdi
callq 0xa110
jmp 0x30d02
leaq 0x120(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa310
leaq 0x60(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x30d26
movq %rsi, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x30d2c
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x49bef(%rip), %rsi     # 0x7a93f
leaq 0x50(%rsp), %rdi
callq 0xa560
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x30d82
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x30d8a
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x170(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x49782(%rip), %rsi     # 0x7a537
leaq 0x49785(%rip), %rdx     # 0x7a541
leaq 0x160(%rsp), %rdi
callq 0xdfa8
movq 0xa0(%rbx), %rsi
leaq 0x100(%rsp), %rdi
leaq 0x160(%rsp), %rdx
callq 0x1924a
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x108(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x30e0a
movq 0x40(%rsp), %rdi
movq 0x100(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x30e36
leaq 0x110(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x30e31
movq 0x110(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x30e42
leaq 0x30(%rsp), %rdi
callq 0xa110
jmp 0x30e53
leaq 0x100(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa310
leaq 0x80(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x30e7d
movq %rsi, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x30e83
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x49b25(%rip), %rsi     # 0x7a9cc
leaq 0x70(%rsp), %rdi
callq 0xa560
leaq 0xc0(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x30ee1
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x30ee8
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x208(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x497a9(%rip), %rsi     # 0x7a6bf
leaq 0x497ad(%rip), %rdx     # 0x7a6ca
leaq 0x1f8(%rsp), %rdi
callq 0xdfa8
movq 0xa0(%rbx), %rsi
leaq 0xe0(%rsp), %rdi
leaq 0x1f8(%rsp), %rdx
callq 0x1924a
movq 0xb0(%rsp), %rcx
movq 0xb8(%rsp), %r8
movq 0xe8(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %rbp, %rcx
je 0x30f74
movq 0xc0(%rsp), %rdi
movq 0xe0(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x30fa0
leaq 0xf0(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x30f9b
movq 0xf0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x30faf
leaq 0xb0(%rsp), %rdi
callq 0xa110
jmp 0x30fc0
leaq 0xe0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa310
leaq 0xa0(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x30fed
movq %rsi, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x30ff3
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x98(%rsp)
movq %rcx, (%rax)
movq %r15, %r12
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x499b9(%rip), %rsi     # 0x7a9d6
leaq 0x90(%rsp), %rdi
callq 0xa560
leaq 0x1d0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3105a
movq %rdx, 0x1c0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1d0(%rsp)
jmp 0x31061
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x1c0(%rsp), %r8
movq %rdx, 0x8(%r8)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x258(%rsp), %rsi
leaq 0x1e0(%rsp), %rdx
leaq 0x1a0(%rsp), %rcx
movq %rbx, %rdi
callq 0x1cb62
movq 0x1c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x310b2
callq 0xa2b0
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x310c8
callq 0xa2b0
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x310de
callq 0xa2b0
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x310f0
callq 0xa2b0
movq 0xb0(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x1b0(%rsp), %rbx
leaq 0x20(%rsp), %r13
je 0x3110f
callq 0xa2b0
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x190(%rsp), %r15
je 0x3112d
callq 0xa2b0
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31143
callq 0xa2b0
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x3115d
callq 0xa2b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x31171
callq 0xa2b0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31184
callq 0xa2b0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3119a
callq 0xa2b0
movq 0x180(%rsp), %rdi
cmpq %r15, %rdi
je 0x311ac
callq 0xa2b0
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x311bb
callq 0xa2b0
movq 0x1a0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x311cd
callq 0xa2b0
leaq 0x1e0(%rsp), %rdi
callq 0x4f0ac
leaq 0x248(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x311f0
callq 0xa2b0
movq 0x218(%rsp), %rdi
cmpq %r14, %rdi
je 0x31202
callq 0xa2b0
movq 0x258(%rsp), %rdi
cmpq %r12, %rdi
je 0x31214
callq 0xa2b0
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3122a
callq 0xa2b0
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x1c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x31256
callq 0xa2b0
jmp 0x31256
movq %rax, %rbx
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31274
callq 0xa2b0
jmp 0x31274
movq %r15, %r12
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31292
callq 0xa2b0
jmp 0x31292
movq %r15, %r12
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x312ac
callq 0xa2b0
jmp 0x312ac
movq %r15, %r12
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x312c6
callq 0xa2b0
jmp 0x312c6
movq %r15, %r12
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x312e4
callq 0xa2b0
jmp 0x312e4
movq %r15, %r12
movq %rax, %rbx
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31302
callq 0xa2b0
jmp 0x31302
movq %r15, %r12
movq %rax, %rbx
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x31324
callq 0xa2b0
jmp 0x31324
movq %r15, %r12
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x31338
callq 0xa2b0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3134b
callq 0xa2b0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31361
callq 0xa2b0
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x3137b
callq 0xa2b0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3138f
callq 0xa2b0
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x313a9
callq 0xa2b0
leaq 0x1e0(%rsp), %rdi
callq 0x4f0ac
leaq 0x218(%rsp), %rdi
callq 0x4f040
movq 0x258(%rsp), %rdi
cmpq %r12, %rdi
je 0x313d5
callq 0xa2b0
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x313eb
callq 0xa2b0
movq %rbx, %rdi
callq 0xa510
movq %r15, %r12
movq %rax, %rbx
jmp 0x31338
movq %r15, %r12
movq %rax, %rbx
jmp 0x3134b
movq %r15, %r12
movq %rax, %rbx
jmp 0x31361
movq %r15, %r12
movq %rax, %rbx
jmp 0x3137b
movq %r15, %r12
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
jne 0x3138a
jmp 0x3138f
movq %r15, %r12
movq %rax, %rbx
jmp 0x3138f
movq %r15, %r12
movq %rax, %rbx
jmp 0x313a9
movq %r15, %r12
movq %rax, %rbx
jmp 0x313b6
movq %r15, %r12
movq %rax, %rbx
jmp 0x313c3
movq %rax, %rbx
jmp 0x313d5
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x313eb
callq 0xdce4
jmp 0x313eb
movq %rax, %rbx
movq 0x218(%rsp), %rdi
cmpq %r14, %rdi
jne 0x313e6
jmp 0x313eb
movq %rax, %rbx
jmp 0x313eb