// File: /workspace/github_cpp_makefile_star2_O1/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 $0xd8, %rsp
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdx), %rax
movq 0x28(%rax), %rdi
movq (%rcx), %rax
movq 0x28(%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x30(%rax), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x6666f
movq 0x32947(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x6666b
incl 0x8(%rax)
jmp 0x6666f
lock
incl 0x8(%rax)
leaq 0x30(%rsp), %rsi
callq 0x548ce
testb %al, %al
je 0x66687
movq (%r12), %rax
addq $0x28, %rax
jmp 0x6668e
leaq 0x32d72(%rip), %rax     # 0x99400
movq (%rax), %rcx
movq %rcx, 0x20(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x666b9
movq 0x328fd(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x666b5
incl 0x8(%rax)
jmp 0x666b9
lock
incl 0x8(%rax)
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x666c8
callq 0xdcba
leaq 0x32d31(%rip), %rbp     # 0x99400
movq (%rbp), %rcx
movq 0x8(%rbp), %rax
movq %rcx, 0x10(%rsp)
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x666fb
movq 0x328bb(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x666f7
incl 0x8(%rax)
jmp 0x666fb
lock
incl 0x8(%rax)
movq (%rbp), %rcx
movq 0x8(%rbp), %rax
movq %rcx, (%rsp)
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x66726
movq 0x32890(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x66722
incl 0x8(%rax)
jmp 0x66726
lock
incl 0x8(%rax)
leaq 0x20(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rsp, %rcx
movq %rbx, %rdi
callq 0x5e6ec
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6674a
callq 0xdcba
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x66759
callq 0xdcba
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x66768
callq 0xdcba
leaq 0x31f29(%rip), %rax     # 0x98698
movq %rax, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%rbx)
movups %xmm0, 0x88(%rbx)
movups %xmm0, 0x98(%rbx)
movb $0x0, 0xa8(%rbx)
movq 0x28(%rbx), %rax
cmpq (%rbp), %rax
setne 0xa8(%rbx)
movq (%r15), %rax
movq %rax, 0x78(%rbx)
leaq 0x80(%rbx), %r14
addq $0x8, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xde72
movq (%r12), %rax
movq %rax, 0x88(%rbx)
leaq 0x90(%rbx), %r15
addq $0x8, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xde72
movq (%r13), %rax
movq %rax, 0x98(%rbx)
leaq 0xa0(%rbx), %r12
addq $0x8, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0xde72
movq 0x78(%rbx), %rax
movq 0x28(%rax), %rax
leaq 0x32c15(%rip), %rcx     # 0x99420
cmpq (%rcx), %rax
je 0x6687c
leaq 0xc8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x153c0(%rip), %rsi     # 0x7bbe3
leaq 0x153fd(%rip), %rdx     # 0x7bc27
leaq 0xb8(%rsp), %rdi
callq 0xdf6a
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x32aca(%rip), %rdi     # 0x99313
leaq 0xb8(%rsp), %rsi
movl $0x3, %edx
callq 0x1f926
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x6686a
callq 0xdcba
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x6687c
callq 0xa2b0
leaq 0x78(%rbx), %rax
movq (%rax), %rax
movq (%rbp), %rcx
cmpq %rcx, 0x38(%rax)
jne 0x66893
cmpq %rcx, 0x48(%rax)
je 0x668ff
leaq 0xa8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x15382(%rip), %rsi     # 0x7bc28
leaq 0x153ce(%rip), %rdx     # 0x7bc7b
leaq 0x98(%rsp), %rdi
callq 0xdf6a
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x32a47(%rip), %rdi     # 0x99313
leaq 0x98(%rsp), %rsi
movl $0x3, %edx
callq 0x1f926
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x668ed
callq 0xdcba
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x668ff
callq 0xa2b0
movq 0x88(%rbx), %rax
movq (%rbp), %rcx
cmpq %rcx, 0x38(%rax)
jne 0x66916
cmpq %rcx, 0x48(%rax)
je 0x66979
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x15353(%rip), %rsi     # 0x7bc7c
leaq 0x15394(%rip), %rdx     # 0x7bcc4
leaq 0x78(%rsp), %rdi
callq 0xdf6a
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x329c7(%rip), %rdi     # 0x99313
leaq 0x78(%rsp), %rsi
movl $0x3, %edx
callq 0x1f926
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x6696a
callq 0xdcba
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x66979
callq 0xa2b0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbp
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x6699d
callq 0xdcba
movq 0xb8(%rsp), %rdi
jmp 0x669de
jmp 0x669ea
movq %rax, %rbp
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x669bb
callq 0xdcba
movq 0x78(%rsp), %rdi
jmp 0x669de
jmp 0x669ea
movq %rax, %rbp
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x669d6
callq 0xdcba
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x669ed
callq 0xa2b0
jmp 0x669ed
movq %rax, %rbp
movq (%r12), %rdi
testq %rdi, %rdi
je 0x669fb
callq 0xdcba
movq (%r15), %rdi
testq %rdi, %rdi
je 0x66a08
callq 0xdcba
movq (%r14), %rdi
testq %rdi, %rdi
je 0x66a15
callq 0xdcba
movq %rbx, %rdi
callq 0x5f370
movq %rbp, %rdi
callq 0xa510
movq %rax, %rbp
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x66a37
callq 0xdcba
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x66a46
callq 0xdcba
movq 0x28(%rsp), %rdi
jmp 0x66a55
movq %rax, %rbp
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x66a1d
callq 0xdcba
jmp 0x66a1d
nop