// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/Actions/IfAction.cpp
// Function: IfElseAction::addToProg(std::shared_ptr<ActionData>, std::shared_ptr<ActionData>, CppProgram*)
void addToProg(Action inLeft, Action inRight, CppProgram* prog)
	{
		if (returnVal && prog->getExprLevel()>0)
		{
			prog->pushExpr();
				condition->addToProg(voidAction, voidAction, prog);
			prog->popExpr();
			prog->code(" ? ");
			prog->pushExpr();
				ifAction->addToProg(voidAction, voidAction, prog);
			prog->popExpr();
			prog->code(" : ");
			prog->pushExpr();
				elseAction->addToProg(voidAction, voidAction, prog);
			prog->popExpr();
		}
		else
		{
			prog->code("if ");
			prog->pushExpr();
				condition->addToProg(voidAction, voidAction, prog);
			prog->popExpr();
			prog->pushBlock();
				ifAction->addToProg(voidAction, voidAction, prog);
				prog->endln();
			prog->popBlock();
			prog->code("else");
			prog->pushBlock();
				elseAction->addToProg(voidAction, voidAction, prog);
				prog->endln();
			prog->popBlock();
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rcx, %rbx
movq %rdi, %r14
cmpb $0x1, 0xa8(%rdi)
jne 0x4a747
movq 0xa0(%rbx), %rax
cmpl $0x0, 0x28(%rax)
jle 0x4a747
movq %rbx, %rdi
callq 0x3a5fa
movq 0x78(%r14), %r15
leaq 0x2fda2(%rip), %r12     # 0x7a350
leaq 0xd8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x12c1e
leaq 0xc8(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x12c1e
movq (%r15), %rax
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
leaq 0xd0(%rsp), %rdi
callq 0xc984
leaq 0xe0(%rsp), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0x3a692
leaq 0xf678(%rip), %rsi      # 0x59c87
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xa150
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x39d6c
leaq 0x8(%rsp), %rdi
callq 0xa558
movq %rbx, %rdi
callq 0x3a5fa
movq 0x88(%r14), %r15
leaq 0x2fd05(%rip), %r12     # 0x7a350
leaq 0xb8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x12c1e
leaq 0xa8(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x12c1e
movq (%r15), %rax
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
leaq 0xb0(%rsp), %rdi
callq 0xc984
leaq 0xc0(%rsp), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0x3a692
leaq 0xf5df(%rip), %rsi      # 0x59c8b
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xa150
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x39d6c
leaq 0x8(%rsp), %rdi
callq 0xa558
movq %rbx, %rdi
callq 0x3a5fa
movq 0x98(%r14), %r14
leaq 0x2fc68(%rip), %r15     # 0x7a350
leaq 0x98(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x12c1e
leaq 0x88(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x12c1e
movq (%r14), %rax
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
leaq 0x90(%rsp), %rdi
callq 0xc984
leaq 0xa0(%rsp), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0x3a692
jmp 0x4a8dd
leaq 0xf439(%rip), %rsi      # 0x59b87
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xa150
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x39d6c
leaq 0x8(%rsp), %rdi
callq 0xa558
movq %rbx, %rdi
callq 0x3a5fa
movq 0x78(%r14), %r15
leaq 0x2fbc9(%rip), %r12     # 0x7a350
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x12c1e
leaq 0x68(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x12c1e
movq (%r15), %rax
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
leaq 0x70(%rsp), %rdi
callq 0xc984
leaq 0x80(%rsp), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0x3a692
movq %rbx, %rdi
callq 0x3b71e
movq 0x88(%r14), %r15
leaq 0x2fb62(%rip), %r12     # 0x7a350
leaq 0x58(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x12c1e
leaq 0x48(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x12c1e
movq (%r15), %rax
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
leaq 0x50(%rsp), %rdi
callq 0xc984
leaq 0x60(%rsp), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0x3b712
movq %rbx, %rdi
callq 0x3b72a
leaq 0xa3c3(%rip), %rsi      # 0x54c0e
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xa150
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x39d6c
leaq 0x8(%rsp), %rdi
callq 0xa558
movq %rbx, %rdi
callq 0x3b71e
movq 0x98(%r14), %r14
leaq 0x2fac9(%rip), %r15     # 0x7a350
leaq 0x38(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x12c1e
leaq 0x28(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x12c1e
movq (%r14), %rax
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq *0x28(%rax)
leaq 0x30(%rsp), %rdi
callq 0xc984
leaq 0x40(%rsp), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0x3b712
movq %rbx, %rdi
callq 0x3b72a
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0xc984
leaq 0xa0(%rsp), %rdi
jmp 0x4a98f
jmp 0x4a996
jmp 0x4a9a5
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xc984
leaq 0xc0(%rsp), %rdi
jmp 0x4a98f
jmp 0x4a996
jmp 0x4a9a5
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xc984
leaq 0xe0(%rsp), %rdi
jmp 0x4a98f
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xc984
leaq 0x40(%rsp), %rdi
jmp 0x4a98f
jmp 0x4a996
jmp 0x4a9a5
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0xc984
leaq 0x60(%rsp), %rdi
jmp 0x4a98f
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xc984
leaq 0x80(%rsp), %rdi
callq 0xc984
jmp 0x4a9a8
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xa558
jmp 0x4a9a8
movq %rax, %rbx
movq %rbx, %rdi
callq 0xa500