// File: /workspace/github_cpp_makefile_star2_O1/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 0x49156(%rip), %rsi     # 0x79968
leaq 0x49156(%rip), %rdx     # 0x7996f
leaq 0x218(%rsp), %rdi
callq 0xdf6a
leaq 0x218(%rsp), %rsi
movq %rbx, %rdi
callq 0x1c806
movl %eax, %ebp
movq 0x218(%rsp), %rdi
cmpq %r14, %rdi
je 0x3084a
callq 0xa2b0
testb %bpl, %bpl
jne 0x30f76
movq %rbx, %rdi
callq 0x2dbc6
movq %rbx, %rdi
callq 0x2def6
movq %rbx, %rdi
callq 0x2ee34
movq %rbx, %rdi
callq 0x2fb15
leaq 0x68be6(%rip), %rax     # 0x99460
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0xd0(%rsp)
movq %rax, 0xd8(%rsp)
testq %rax, %rax
je 0x308ab
movq 0x6870b(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x308a7
incl 0x8(%rax)
jmp 0x308ab
lock
incl 0x8(%rax)
leaq 0x140(%rsp), %rdi
leaq 0xd0(%rsp), %rdx
movq %rbx, %rsi
callq 0x1a7f4
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x308d5
callq 0xdcba
leaq 0x268(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x49080(%rip), %rsi     # 0x79968
leaq 0x49080(%rip), %rdx     # 0x7996f
leaq 0x258(%rsp), %rdi
callq 0xdf6a
leaq 0x4906d(%rip), %rdx     # 0x79970
leaq 0x218(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x4e5b8
leaq 0x1e0(%rsp), %rdi
leaq 0x218(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x4e2a2
leaq 0x1b0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a0(%rsp), %rdi
callq 0xdde2
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0xdde2
leaq 0x48fe4(%rip), %rsi     # 0x79974
leaq 0x10(%rsp), %rdi
callq 0xa560
leaq 0x190(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x4864c(%rip), %rsi     # 0x78ff9
leaq 0x4864b(%rip), %rdx     # 0x78fff
leaq 0x180(%rsp), %rdi
callq 0xdf6a
movq 0xa0(%rbx), %rsi
leaq 0x120(%rsp), %rdi
leaq 0x180(%rsp), %rdx
callq 0x18f84
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x128(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x30a02
movq 0x20(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x30a27
leaq 0x130(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x30a22
movq 0x130(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x30a3b
movq 0x120(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0xa110
jmp 0x30a4c
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 0x30a70
movq %rsi, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x30a76
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 0x48ee5(%rip), %rsi     # 0x7997f
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 0x30acc
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x30ad4
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 0x48a78(%rip), %rsi     # 0x79577
leaq 0x48a7b(%rip), %rdx     # 0x79581
leaq 0x160(%rsp), %rdi
callq 0xdf6a
movq 0xa0(%rbx), %rsi
leaq 0x100(%rsp), %rdi
leaq 0x160(%rsp), %rdx
callq 0x18f84
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x108(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x30b54
movq 0x40(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x30b79
leaq 0x110(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x30b74
movq 0x110(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x30b8d
movq 0x100(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0xa110
jmp 0x30b9e
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 0x30bc8
movq %rsi, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x30bce
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 0x48e1a(%rip), %rsi     # 0x79a0c
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 0x30c2c
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x30c33
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 0x48a9e(%rip), %rsi     # 0x796ff
leaq 0x48aa2(%rip), %rdx     # 0x7970a
leaq 0x1f8(%rsp), %rdi
callq 0xdf6a
movq 0xa0(%rbx), %rsi
leaq 0xe0(%rsp), %rdi
leaq 0x1f8(%rsp), %rdx
callq 0x18f84
movq 0xb0(%rsp), %rcx
movq 0xb8(%rsp), %r8
movq 0xe8(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %rbp, %rcx
je 0x30cbf
movq 0xc0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x30ce4
leaq 0xf0(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x30cdf
movq 0xf0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x30cfb
movq 0xe0(%rsp), %rsi
leaq 0xb0(%rsp), %rdi
callq 0xa110
jmp 0x30d0c
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 0x30d39
movq %rsi, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x30d3f
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 0x48cad(%rip), %rsi     # 0x79a16
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 0x30da6
movq %rdx, 0x1c0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1d0(%rsp)
jmp 0x30dad
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 0x1c826
movq 0x1c0(%rsp), %rdi
cmpq %r15, %rdi
je 0x30dfe
callq 0xa2b0
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30e14
callq 0xa2b0
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30e2a
callq 0xa2b0
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x30e3c
callq 0xa2b0
movq 0xb0(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x1b0(%rsp), %rbx
leaq 0x20(%rsp), %r13
je 0x30e5b
callq 0xa2b0
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x190(%rsp), %r15
je 0x30e79
callq 0xa2b0
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30e8f
callq 0xa2b0
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x30ea9
callq 0xa2b0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x30ebd
callq 0xa2b0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30ed0
callq 0xa2b0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30ee6
callq 0xa2b0
movq 0x180(%rsp), %rdi
cmpq %r15, %rdi
je 0x30ef8
callq 0xa2b0
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x30f07
callq 0xa2b0
movq 0x1a0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x30f19
callq 0xa2b0
leaq 0x1e0(%rsp), %rdi
callq 0x4e2e4
leaq 0x248(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30f3c
callq 0xa2b0
movq 0x218(%rsp), %rdi
cmpq %r14, %rdi
je 0x30f4e
callq 0xa2b0
movq 0x258(%rsp), %rdi
cmpq %r12, %rdi
je 0x30f60
callq 0xa2b0
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30f76
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 0x30fa2
callq 0xa2b0
jmp 0x30fa2
movq %rax, %rbx
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30fc0
callq 0xa2b0
jmp 0x30fc0
movq %r15, %r12
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x30fde
callq 0xa2b0
jmp 0x30fde
movq %r15, %r12
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
cmpq %r13, %rdi
je 0x30ff8
callq 0xa2b0
jmp 0x30ff8
movq %r15, %r12
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x31012
callq 0xa2b0
jmp 0x31012
movq %r15, %r12
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31030
callq 0xa2b0
jmp 0x31030
movq %r15, %r12
movq %rax, %rbx
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3104e
callq 0xa2b0
jmp 0x3104e
movq %r15, %r12
movq %rax, %rbx
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x31070
callq 0xa2b0
jmp 0x31070
movq %r15, %r12
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x31084
callq 0xa2b0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31097
callq 0xa2b0
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x310ad
callq 0xa2b0
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x310c7
callq 0xa2b0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x310db
callq 0xa2b0
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x310f5
callq 0xa2b0
leaq 0x1e0(%rsp), %rdi
callq 0x4e2e4
leaq 0x218(%rsp), %rdi
callq 0x4e278
movq 0x258(%rsp), %rdi
cmpq %r12, %rdi
je 0x31121
callq 0xa2b0
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31137
callq 0xa2b0
movq %rbx, %rdi
callq 0xa510
movq %r15, %r12
movq %rax, %rbx
jmp 0x31084
movq %r15, %r12
movq %rax, %rbx
jmp 0x31097
movq %r15, %r12
movq %rax, %rbx
jmp 0x310ad
movq %r15, %r12
movq %rax, %rbx
jmp 0x310c7
movq %r15, %r12
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
jne 0x310d6
jmp 0x310db
movq %r15, %r12
movq %rax, %rbx
jmp 0x310db
movq %r15, %r12
movq %rax, %rbx
jmp 0x310f5
movq %r15, %r12
movq %rax, %rbx
jmp 0x31102
movq %r15, %r12
movq %rax, %rbx
jmp 0x3110f
movq %rax, %rbx
jmp 0x31121
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x31137
callq 0xdcba
jmp 0x31137
movq %rax, %rbx
movq 0x218(%rsp), %rdi
cmpq %r14, %rdi
jne 0x31132
jmp 0x31137
movq %rax, %rbx
jmp 0x31137