// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/PhplusStdLib.cpp
// Function: populateStdFuncs()
void populateStdFuncs()
{
	//mencetak
	
	func("cetak", Void, Void, Void,
		cout << endl;
	,
		"fputs(\"\\n\", stdout)"
	);
	
	func("cetak", Void, Bool, Void,
		cout << (right?"benar":"salah") << endl;
	,
		"fputs($:?\"benar\\n\":\"salah\\n\", stdout)"
	);
	
	func("cetak", Void, Byte, Void,
		cout << right << endl;
	,
		"printf(\"%c\", $:)"
	);
	
	func("cetak", Void, Int, Void,
		cout << right << endl;
	,
		"printf(\"%d\\n\", $:)"
	);
	
	func("cetak", Void, Dub, Void,
		cout << doubleToString(right) << endl;
	,
		ADD_CPP_HEADER
		{
			addToProgDoubleToStr(prog);
			addToProgCStr(prog);
			
			prog->code("printf");
			prog->pushExpr();
				prog->code("\"%s\\n\", ");
				prog->name("$cStr");
				prog->pushExpr();
					prog->name("$doubleToStr");
					prog->pushExpr();
						right->addToProg(prog);
					prog->popExpr();
				prog->popExpr();
			prog->popExpr();
		}
	);
	
	addAction("cetak", Void, String, Void,
		LAMBDA_HEADER
		{
			cout << pncnStr2CppStr(rightIn) << endl;
			return nullptr;
		},
		ADD_CPP_HEADER
		{
			addToProgCStr(prog);
			
			prog->code("printf");
			prog->pushExpr();
				prog->code("\"%s\\n\", ");
				prog->name("$cStr");
				prog->pushExpr();
					right->addToProg(prog);
				prog->popExpr();
			prog->popExpr();
		}
	);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x338, %rsp            # imm = 0x338
leaq 0x2c8ee(%rip), %rsi     # 0x57cce
leaq 0x290(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xa150
leaq 0x4efe7(%rip), %rbx     # 0x7a3e0
leaq 0xc0(%rsp), %rdi
movq %rbx, %rsi
callq 0x12c0a
leaq 0xb0(%rsp), %rdi
movq %rbx, %rsi
callq 0x12c0a
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x12c0a
xorps %xmm0, %xmm0
movaps %xmm0, 0x130(%rsp)
leaq 0x52c7(%rip), %rax      # 0x30702
movq %rax, 0x148(%rsp)
leaq 0x52ca(%rip), %rax      # 0x30714
movq %rax, 0x140(%rsp)
leaq 0x2c87b(%rip), %rsi     # 0x57cd4
leaq 0x270(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xa150
leaq 0x290(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
leaq 0x130(%rsp), %r8
leaq 0x270(%rsp), %r9
callq 0x23467
leaq 0x270(%rsp), %rdi
callq 0xa558
leaq 0x130(%rsp), %rdi
callq 0x182be
leaq 0xa8(%rsp), %rdi
callq 0xc984
leaq 0xb8(%rsp), %rdi
callq 0xc984
leaq 0xc8(%rsp), %rdi
callq 0xc984
leaq 0x290(%rsp), %rdi
callq 0xa558
leaq 0x2c7d9(%rip), %rsi     # 0x57cce
leaq 0x250(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xa150
leaq 0x4eed2(%rip), %rbx     # 0x7a3e0
leaq 0x90(%rsp), %rdi
movq %rbx, %rsi
callq 0x12c0a
leaq 0x4eedb(%rip), %rsi     # 0x7a400
leaq 0x80(%rsp), %rdi
callq 0x12c0a
leaq 0x70(%rsp), %rdi
movq %rbx, %rsi
callq 0x12c0a
xorps %xmm0, %xmm0
movaps %xmm0, 0x110(%rsp)
leaq 0x51db(%rip), %rax      # 0x3072c
movq %rax, 0x128(%rsp)
leaq 0x51fe(%rip), %rax      # 0x3075e
movq %rax, 0x120(%rsp)
leaq 0x2c779(%rip), %rsi     # 0x57ce8
leaq 0x230(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xa150
leaq 0x250(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x80(%rsp), %rdx
leaq 0x70(%rsp), %rcx
leaq 0x110(%rsp), %r8
leaq 0x230(%rsp), %r9
callq 0x23467
leaq 0x230(%rsp), %rdi
callq 0xa558
leaq 0x110(%rsp), %rdi
callq 0x182be
leaq 0x78(%rsp), %rdi
callq 0xc984
leaq 0x88(%rsp), %rdi
callq 0xc984
leaq 0x98(%rsp), %rdi
callq 0xc984
leaq 0x250(%rsp), %rdi
callq 0xa558
leaq 0x2c6c9(%rip), %rsi     # 0x57cce
leaq 0x210(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xa150
leaq 0x4edc2(%rip), %rbx     # 0x7a3e0
leaq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x12c0a
leaq 0x4edde(%rip), %rsi     # 0x7a410
leaq 0x50(%rsp), %rdi
callq 0x12c0a
leaq 0x40(%rsp), %rdi
movq %rbx, %rsi
callq 0x12c0a
xorps %xmm0, %xmm0
movaps %xmm0, 0xf0(%rsp)
leaq 0x511b(%rip), %rax      # 0x30776
movq %rax, 0x108(%rsp)
leaq 0x512c(%rip), %rax      # 0x30796
movq %rax, 0x100(%rsp)
leaq 0x2c695(%rip), %rsi     # 0x57d0e
leaq 0x1f0(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xa150
leaq 0x210(%rsp), %rdi
leaq 0x60(%rsp), %rsi
leaq 0x50(%rsp), %rdx
leaq 0x40(%rsp), %rcx
leaq 0xf0(%rsp), %r8
leaq 0x1f0(%rsp), %r9
callq 0x23467
leaq 0x1f0(%rsp), %rdi
callq 0xa558
leaq 0xf0(%rsp), %rdi
callq 0x182be
leaq 0x48(%rsp), %rdi
callq 0xc984
leaq 0x58(%rsp), %rdi
callq 0xc984
leaq 0x68(%rsp), %rdi
callq 0xc984
leaq 0x210(%rsp), %rdi
callq 0xa558
leaq 0x2c5cb(%rip), %rsi     # 0x57cce
leaq 0x1d0(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xa150
leaq 0x4ecc4(%rip), %rbx     # 0x7a3e0
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x12c0a
leaq 0x4ecf0(%rip), %rsi     # 0x7a420
leaq 0x20(%rsp), %rdi
callq 0x12c0a
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x12c0a
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
leaq 0x5055(%rip), %rax      # 0x307ae
movq %rax, 0xe8(%rsp)
leaq 0x5064(%rip), %rax      # 0x307cc
movq %rax, 0xe0(%rsp)
leaq 0x2c5a8(%rip), %rsi     # 0x57d1f
leaq 0x1b0(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xa150
leaq 0x1d0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0xd0(%rsp), %r8
leaq 0x1b0(%rsp), %r9
callq 0x23467
leaq 0x1b0(%rsp), %rdi
callq 0xa558
leaq 0xd0(%rsp), %rdi
callq 0x182be
leaq 0x18(%rsp), %rdi
callq 0xc984
leaq 0x28(%rsp), %rdi
callq 0xc984
leaq 0x38(%rsp), %rdi
callq 0xc984
leaq 0x1d0(%rsp), %rdi
callq 0xa558
leaq 0x4ebdf(%rip), %r14     # 0x7a3e0
leaq 0x1a0(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12c0a
leaq 0x4ec15(%rip), %rsi     # 0x7a430
leaq 0x190(%rsp), %r15
movq %r15, %rdi
callq 0x12c0a
leaq 0x180(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x12c0a
xorps %xmm0, %xmm0
leaq 0x310(%rsp), %r8
movaps %xmm0, (%r8)
leaq 0x4f90(%rip), %rax      # 0x307e4
movq %rax, 0x18(%r8)
leaq 0x4fd7(%rip), %rax      # 0x30836
movq %rax, 0x10(%r8)
leaq 0x2f0(%rsp), %r9
movaps %xmm0, (%r9)
leaq 0x4fd8(%rip), %rax      # 0x3084e
movq %rax, 0x18(%r9)
leaq 0x5157(%rip), %rax      # 0x309d8
movq %rax, 0x10(%r9)
leaq 0x2c442(%rip), %rdi     # 0x57cce
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x39f90
leaq 0x2f0(%rsp), %rdi
callq 0x182be
leaq 0x310(%rsp), %rdi
callq 0x182be
leaq 0x188(%rsp), %rdi
callq 0xc984
leaq 0x198(%rsp), %rdi
callq 0xc984
leaq 0x1a8(%rsp), %rdi
callq 0xc984
leaq 0x4eafe(%rip), %r14     # 0x7a3e0
leaq 0x170(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12c0a
leaq 0x4eb44(%rip), %rsi     # 0x7a440
leaq 0x160(%rsp), %r15
movq %r15, %rdi
callq 0x12c0a
leaq 0x150(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x12c0a
leaq 0x2d0(%rsp), %r8
xorps %xmm0, %xmm0
movaps %xmm0, (%r8)
leaq 0x50bb(%rip), %rax      # 0x309f0
movq %rax, 0x18(%r8)
leaq 0x50fe(%rip), %rax      # 0x30a3e
movq %rax, 0x10(%r8)
leaq 0x2b0(%rsp), %r9
movaps %xmm0, (%r9)
leaq 0x50ff(%rip), %rax      # 0x30a56
movq %rax, 0x18(%r9)
leaq 0x5236(%rip), %rax      # 0x30b98
movq %rax, 0x10(%r9)
leaq 0x2c361(%rip), %rdi     # 0x57cce
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x39f90
leaq 0x2b0(%rsp), %rdi
callq 0x182be
leaq 0x2d0(%rsp), %rdi
callq 0x182be
leaq 0x158(%rsp), %rdi
callq 0xc984
leaq 0x168(%rsp), %rdi
callq 0xc984
leaq 0x178(%rsp), %rdi
callq 0xc984
addq $0x338, %rsp            # imm = 0x338
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x2b0(%rsp), %rdi
callq 0x182be
leaq 0x2d0(%rsp), %rdi
callq 0x182be
leaq 0x158(%rsp), %rdi
callq 0xc984
leaq 0x168(%rsp), %rdi
callq 0xc984
leaq 0x178(%rsp), %rdi
jmp 0x2ba4b
movq %rax, %rbx
leaq 0x2f0(%rsp), %rdi
callq 0x182be
leaq 0x310(%rsp), %rdi
callq 0x182be
leaq 0x188(%rsp), %rdi
callq 0xc984
leaq 0x198(%rsp), %rdi
callq 0xc984
leaq 0x1a8(%rsp), %rdi
callq 0xc984
jmp 0x2bba6
movq %rax, %rbx
leaq 0x1b0(%rsp), %rdi
callq 0xa558
jmp 0x2ba6a
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x182be
leaq 0x18(%rsp), %rdi
callq 0xc984
leaq 0x28(%rsp), %rdi
callq 0xc984
leaq 0x38(%rsp), %rdi
callq 0xc984
leaq 0x1d0(%rsp), %rdi
jmp 0x2bb9c
jmp 0x2bba3
movq %rax, %rbx
leaq 0x1f0(%rsp), %rdi
callq 0xa558
jmp 0x2babc
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x182be
leaq 0x48(%rsp), %rdi
callq 0xc984
leaq 0x58(%rsp), %rdi
callq 0xc984
leaq 0x68(%rsp), %rdi
callq 0xc984
leaq 0x210(%rsp), %rdi
jmp 0x2bb9c
jmp 0x2bba3
movq %rax, %rbx
leaq 0x230(%rsp), %rdi
callq 0xa558
jmp 0x2bb0e
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x182be
leaq 0x78(%rsp), %rdi
callq 0xc984
leaq 0x88(%rsp), %rdi
callq 0xc984
leaq 0x98(%rsp), %rdi
callq 0xc984
leaq 0x250(%rsp), %rdi
jmp 0x2bb9c
jmp 0x2bba3
movq %rax, %rbx
leaq 0x270(%rsp), %rdi
callq 0xa558
jmp 0x2bb60
movq %rax, %rbx
leaq 0x130(%rsp), %rdi
callq 0x182be
leaq 0xa8(%rsp), %rdi
callq 0xc984
leaq 0xb8(%rsp), %rdi
callq 0xc984
leaq 0xc8(%rsp), %rdi
callq 0xc984
leaq 0x290(%rsp), %rdi
callq 0xa558
jmp 0x2bba6
movq %rax, %rbx
movq %rbx, %rdi
callq 0xa500