// File: /workspace/github_cpp_makefile_star2_O3/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 0x674f5
movq 0x32ac1(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x674f1
incl 0x8(%rax)
jmp 0x674f5
lock
incl 0x8(%rax)
leaq 0x30(%rsp), %rsi
callq 0x55538
testb %al, %al
je 0x6750d
movq (%r12), %rax
addq $0x28, %rax
jmp 0x67514
leaq 0x32eec(%rip), %rax     # 0x9a400
movq (%rax), %rcx
movq %rcx, 0x20(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
testq %rax, %rax
je 0x6753f
movq 0x32a77(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x6753b
incl 0x8(%rax)
jmp 0x6753f
lock
incl 0x8(%rax)
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x6754e
callq 0xdce4
leaq 0x32eab(%rip), %rbp     # 0x9a400
movq (%rbp), %rax
movq 0x8(%rbp), %rdx
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
testq %rdx, %rdx
je 0x6757d
movq 0x32a35(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x6758c
incl 0x8(%rdx)
jmp 0x67594
movq %rax, (%rsp)
movq $0x0, 0x8(%rsp)
jmp 0x675b4
lock
incl 0x8(%rdx)
movq (%rbp), %rax
movq 0x8(%rbp), %rdx
movq %rax, (%rsp)
movq %rdx, 0x8(%rsp)
testq %rdx, %rdx
je 0x675b4
cmpb $0x0, (%rcx)
je 0x675b0
incl 0x8(%rdx)
jmp 0x675b4
lock
incl 0x8(%rdx)
leaq 0x20(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rsp, %rcx
movq %rbx, %rdi
callq 0x5f40c
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x675d8
callq 0xdce4
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x675e7
callq 0xdce4
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x675f6
callq 0xdce4
leaq 0x3209b(%rip), %rax     # 0x99698
movq %rax, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%rbx)
movups %xmm0, 0x88(%rbx)
movups %xmm0, 0x98(%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 0xdea2
movq (%r12), %rax
movq %rax, 0x88(%rbx)
leaq 0x90(%rbx), %r15
addq $0x8, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xdea2
movq (%r13), %rax
movq %rax, 0x98(%rbx)
leaq 0xa0(%rbx), %r12
addq $0x8, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0xdea2
movq 0x78(%rbx), %rax
movq 0x28(%rax), %rax
leaq 0x32d8e(%rip), %rcx     # 0x9a420
cmpq (%rcx), %rax
je 0x67703
leaq 0xc8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x154f9(%rip), %rsi     # 0x7cba3
leaq 0x15536(%rip), %rdx     # 0x7cbe7
leaq 0xb8(%rsp), %rdi
callq 0xdfa8
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x32c43(%rip), %rdi     # 0x9a313
leaq 0xb8(%rsp), %rsi
movl $0x3, %edx
callq 0x1fc46
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x676f1
callq 0xdce4
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x67703
callq 0xa2b0
leaq 0x78(%rbx), %rax
movq (%rax), %rax
movq 0x38(%rax), %rcx
cmpq (%rbp), %rcx
jne 0x6771a
cmpq %rcx, 0x48(%rax)
je 0x67786
leaq 0xa8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x154bb(%rip), %rsi     # 0x7cbe8
leaq 0x15507(%rip), %rdx     # 0x7cc3b
leaq 0x98(%rsp), %rdi
callq 0xdfa8
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x32bc0(%rip), %rdi     # 0x9a313
leaq 0x98(%rsp), %rsi
movl $0x3, %edx
callq 0x1fc46
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x67774
callq 0xdce4
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x67786
callq 0xa2b0
movq 0x88(%rbx), %rax
movq 0x38(%rax), %rcx
cmpq (%rbp), %rcx
jne 0x6779d
cmpq %rcx, 0x48(%rax)
je 0x67800
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1548c(%rip), %rsi     # 0x7cc3c
leaq 0x154cd(%rip), %rdx     # 0x7cc84
leaq 0x78(%rsp), %rdi
callq 0xdfa8
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x32b40(%rip), %rdi     # 0x9a313
leaq 0x78(%rsp), %rsi
movl $0x3, %edx
callq 0x1fc46
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x677f1
callq 0xdce4
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0x67800
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 0x67824
callq 0xdce4
movq 0xb8(%rsp), %rdi
jmp 0x67865
jmp 0x67871
movq %rax, %rbp
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x67842
callq 0xdce4
movq 0x78(%rsp), %rdi
jmp 0x67865
jmp 0x67871
movq %rax, %rbp
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x6785d
callq 0xdce4
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x67874
callq 0xa2b0
jmp 0x67874
movq %rax, %rbp
movq (%r12), %rdi
testq %rdi, %rdi
je 0x67882
callq 0xdce4
movq (%r15), %rdi
testq %rdi, %rdi
je 0x6788f
callq 0xdce4
movq (%r14), %rdi
testq %rdi, %rdi
je 0x6789c
callq 0xdce4
movq %rbx, %rdi
callq 0x600b4
movq %rbp, %rdi
callq 0xa510
movq %rax, %rbp
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x678be
callq 0xdce4
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x678cd
callq 0xdce4
movq 0x28(%rsp), %rdi
jmp 0x678dc
movq %rax, %rbp
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x678a4
callq 0xdce4
jmp 0x678a4