// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/Actions/IfAction.cpp
// Function: IfElseAction::IfElseAction(std::shared_ptr<ActionData>, std::shared_ptr<ActionData>, std::shared_ptr<ActionData>)
IfElseAction(Action conditionIn, Action ifActionIn, Action elseActionIn)
		:ActionData([&](){return ifActionIn->getReturnType()->matches(elseActionIn->getReturnType())?ifActionIn->getReturnType():Void;}(), Void, Void)
	{
		returnVal=getReturnType()!=Void;
		condition=conditionIn;
		ifAction=ifActionIn;
		elseAction=elseActionIn;
		
		if (condition->getReturnType()!=Bool)
		{
			error.log("IfElseAction created with condition action that does not return Bool", INTERNAL_ERROR);
		}
		
		if (condition->getInLeftType()!=Void || condition->getInRightType()!=Void)
		{
			error.log("IfElseAction created with conditiofn action that takes in something other then Void", INTERNAL_ERROR);
		}
		
		if (ifAction->getInLeftType()!=Void || ifAction->getInRightType()!=Void)
		{
			error.log("IfElseAction created with action that takes in something other then Void", INTERNAL_ERROR);
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdx, %rbp
movq %rsi, (%rsp)
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
movq %rdx, (%rsi)
movq %rcx, 0x8(%rsp)
movq %rcx, 0x8(%rsi)
leaq 0x78(%rsp), %r15
movq %r15, %rdi
callq 0x4a200
leaq 0x307a6(%rip), %r12     # 0x7a3e0
leaq 0x68(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x12c0a
leaq 0x58(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x12c0a
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x44704
leaq 0x60(%rsp), %rdi
callq 0xc984
leaq 0x70(%rsp), %rdi
callq 0xc984
leaq 0x80(%rsp), %rdi
callq 0xc984
leaq 0x2fa15(%rip), %rax     # 0x796a8
movq %rax, (%rbx)
leaq 0x78(%rbx), %r13
leaq 0x88(%rbx), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%rbx)
movups %xmm0, 0x88(%rbx)
movups %xmm0, 0x98(%rbx)
movq 0x28(%rbx), %rax
cmpq (%r12), %rax
leaq 0x98(%rbx), %r14
setne 0xa8(%rbx)
movq %r13, %rdi
movq (%rsp), %rsi
callq 0x12bbe
movq %r15, %rdi
movq %rbp, %rsi
callq 0x12bbe
movq %r14, %rdi
movq 0x8(%rsp), %rsi
callq 0x12bbe
movq 0x78(%rbx), %rcx
movq 0x28(%rcx), %rax
leaq 0x30701(%rip), %rdx     # 0x7a400
cmpq (%rdx), %rax
je 0x49d5a
leaq 0xfe80(%rip), %rsi      # 0x59b8b
leaq 0xc8(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xa150
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x305cc(%rip), %rdi     # 0x7a2fb
leaq 0xc8(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0x19a6e
leaq 0x48(%rsp), %rdi
callq 0xc984
leaq 0xc8(%rsp), %rdi
callq 0xa558
movq (%r13), %rcx
movq 0x38(%rcx), %rax
leaq 0x3067b(%rip), %r14     # 0x7a3e0
cmpq (%r14), %rax
jne 0x49d70
cmpq %rax, 0x48(%rcx)
je 0x49dc5
leaq 0xfe59(%rip), %rsi      # 0x59bd0
leaq 0xa8(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xa150
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x30560(%rip), %rdi     # 0x7a2fb
leaq 0xa8(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0x19a6e
leaq 0x38(%rsp), %rdi
callq 0xc984
leaq 0xa8(%rsp), %rdi
callq 0xa558
movq (%r14), %rax
movq (%r15), %rcx
cmpq %rax, 0x38(%rcx)
jne 0x49dd4
cmpq %rax, 0x48(%rcx)
je 0x49e26
leaq 0xfe49(%rip), %rsi      # 0x59c24
leaq 0x88(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xa150
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x304fc(%rip), %rdi     # 0x7a2fb
leaq 0x88(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0x19a6e
leaq 0x28(%rsp), %rdi
callq 0xc984
leaq 0x88(%rsp), %rdi
callq 0xa558
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0xc984
leaq 0xc8(%rsp), %rdi
jmp 0x49e7f
jmp 0x49e86
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0xc984
leaq 0x88(%rsp), %rdi
jmp 0x49e7f
jmp 0x49e86
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0xc984
leaq 0xa8(%rsp), %rdi
callq 0xa558
jmp 0x49e89
movq %rax, %r14
leaq 0xa0(%rbx), %rdi
callq 0xc984
leaq 0x90(%rbx), %rdi
callq 0xc984
leaq 0x80(%rbx), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0x44e86
movq %r14, %rdi
callq 0xa500
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0xc984
leaq 0x70(%rsp), %rdi
callq 0xc984
leaq 0x80(%rsp), %rdi
callq 0xc984
jmp 0x49eb5
nop