// File: 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:
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, 0x50(%rsp)
movq %rdx, 0x58(%rsp)
movq %rcx, 0x60(%rsp)
movq %rdi, 0x1a0(%rsp)
movq %rsi, 0x198(%rsp)
movq %rdx, 0x190(%rsp)
movq %rcx, 0x188(%rsp)
movq 0x1a0(%rsp), %rax
movq %rax, 0x70(%rsp)
movq %rdx, 0x168(%rsp)
movq %rcx, 0x170(%rsp)
leaq 0x178(%rsp), %rdi
movq %rdi, 0x78(%rsp)
leaq 0x168(%rsp), %rsi
callq 0xbb1a0
leaq 0x5de74(%rip), %rsi     # 0x1184a8
movq %rsi, 0x68(%rsp)
leaq 0x158(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0x1a920
movq 0x68(%rsp), %rsi
leaq 0x148(%rsp), %rdi
movq %rdi, 0x88(%rsp)
callq 0x1a920
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x88(%rsp), %rcx
callq 0xaf570
jmp 0xba689
leaq 0x148(%rsp), %rdi
callq 0x1a950
leaq 0x158(%rsp), %rdi
callq 0x1a950
leaq 0x178(%rsp), %rdi
callq 0x1a950
movq 0x70(%rsp), %rdi
leaq 0x5cfcc(%rip), %rax     # 0x117688
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x78, %rdi
movq %rdi, 0x38(%rsp)
callq 0x1bcc0
movq 0x70(%rsp), %rdi
addq $0x88, %rdi
movq %rdi, 0x40(%rsp)
callq 0x1bcc0
movq 0x70(%rsp), %rdi
addq $0x98, %rdi
movq %rdi, 0x48(%rsp)
callq 0x1bcc0
movq 0x70(%rsp), %rdi
movb $0x0, 0xa8(%rdi)
callq 0x1bed0
movq %rax, %rdi
leaq 0x5dd90(%rip), %rsi     # 0x1184a8
callq 0x1be90
movq 0x50(%rsp), %rsi
movq 0x70(%rsp), %rdi
andb $0x1, %al
movb %al, 0xa8(%rdi)
addq $0x78, %rdi
callq 0x1a510
movq 0x58(%rsp), %rsi
movq 0x70(%rsp), %rdi
addq $0x88, %rdi
callq 0x1a510
movq 0x60(%rsp), %rsi
movq 0x70(%rsp), %rdi
addq $0x98, %rdi
callq 0x1a510
movq 0x70(%rsp), %rdi
addq $0x78, %rdi
callq 0x1bb50
movq %rax, %rdi
callq 0x1bed0
movq %rax, %rdi
leaq 0x5dd44(%rip), %rsi     # 0x1184c8
callq 0x1be90
testb $0x1, %al
jne 0xba792
jmp 0xba8b7
leaq 0x117(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0xb690
movq 0x30(%rsp), %rdx
leaq 0x1cc23(%rip), %rsi     # 0xd73d3
leaq 0x118(%rsp), %rdi
callq 0xb4c0
jmp 0xba7bf
xorl %eax, %eax
movl %eax, %esi
leaq 0x100(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0xfbe0
movq 0x28(%rsp), %rcx
leaq 0x5dbe2(%rip), %rdi     # 0x1183c3
leaq 0x118(%rsp), %rsi
movl $0x3, %edx
callq 0x34c70
jmp 0xba7f5
leaq 0x100(%rsp), %rdi
callq 0xfc00
leaq 0x118(%rsp), %rdi
callq 0xb6e8
leaq 0x117(%rsp), %rdi
callq 0xb3f0
jmp 0xba8b7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
leaq 0x148(%rsp), %rdi
callq 0x1a950
leaq 0x158(%rsp), %rdi
callq 0x1a950
leaq 0x178(%rsp), %rdi
callq 0x1a950
jmp 0xbab5c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0xba8a5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
leaq 0x100(%rsp), %rdi
callq 0xfc00
leaq 0x118(%rsp), %rdi
callq 0xb6e8
leaq 0x117(%rsp), %rdi
callq 0xb3f0
jmp 0xbab34
movq 0x70(%rsp), %rdi
addq $0x78, %rdi
callq 0x1bb50
movq %rax, %rdi
callq 0x3f060
movq %rax, %rdi
leaq 0x5dbd1(%rip), %rsi     # 0x1184a8
callq 0x1be90
testb $0x1, %al
jne 0xba90e
movq 0x70(%rsp), %rdi
addq $0x78, %rdi
callq 0x1bb50
movq %rax, %rdi
callq 0x3f070
movq %rax, %rdi
leaq 0x5dba8(%rip), %rsi     # 0x1184a8
callq 0x1be90
testb $0x1, %al
jne 0xba90e
jmp 0xba9f0
leaq 0xdf(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xb690
movq 0x20(%rsp), %rdx
leaq 0x1caec(%rip), %rsi     # 0xd7418
leaq 0xe0(%rsp), %rdi
callq 0xb4c0
jmp 0xba93b
xorl %eax, %eax
movl %eax, %esi
leaq 0xc8(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xfbe0
movq 0x18(%rsp), %rcx
leaq 0x5da66(%rip), %rdi     # 0x1183c3
leaq 0xe0(%rsp), %rsi
movl $0x3, %edx
callq 0x34c70
jmp 0xba971
leaq 0xc8(%rsp), %rdi
callq 0xfc00
leaq 0xe0(%rsp), %rdi
callq 0xb6e8
leaq 0xdf(%rsp), %rdi
callq 0xb3f0
jmp 0xba9f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0xba9de
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
leaq 0xc8(%rsp), %rdi
callq 0xfc00
leaq 0xe0(%rsp), %rdi
callq 0xb6e8
leaq 0xdf(%rsp), %rdi
callq 0xb3f0
jmp 0xbab34
movq 0x70(%rsp), %rdi
addq $0x88, %rdi
callq 0x1bb50
movq %rax, %rdi
callq 0x3f060
movq %rax, %rdi
leaq 0x5da95(%rip), %rsi     # 0x1184a8
callq 0x1be90
testb $0x1, %al
jne 0xbaa4d
movq 0x70(%rsp), %rdi
addq $0x88, %rdi
callq 0x1bb50
movq %rax, %rdi
callq 0x3f070
movq %rax, %rdi
leaq 0x5da69(%rip), %rsi     # 0x1184a8
callq 0x1be90
testb $0x1, %al
jne 0xbaa4d
jmp 0xbab2c
leaq 0xa7(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xb690
movq 0x10(%rsp), %rdx
leaq 0x1ca01(%rip), %rsi     # 0xd746c
leaq 0xa8(%rsp), %rdi
callq 0xb4c0
jmp 0xbaa7a
xorl %eax, %eax
movl %eax, %esi
leaq 0x90(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xfbe0
movq 0x8(%rsp), %rcx
leaq 0x5d927(%rip), %rdi     # 0x1183c3
leaq 0xa8(%rsp), %rsi
movl $0x3, %edx
callq 0x34c70
jmp 0xbaab0
leaq 0x90(%rsp), %rdi
callq 0xfc00
leaq 0xa8(%rsp), %rdi
callq 0xb6e8
leaq 0xa7(%rsp), %rdi
callq 0xb3f0
jmp 0xbab2c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0xbab1d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
leaq 0x90(%rsp), %rdi
callq 0xfc00
leaq 0xa8(%rsp), %rdi
callq 0xb6e8
leaq 0xa7(%rsp), %rdi
callq 0xb3f0
jmp 0xbab34
addq $0x1a8, %rsp            # imm = 0x1A8
retq
movq 0x48(%rsp), %rdi
callq 0x1acc0
movq 0x40(%rsp), %rdi
callq 0x1acc0
movq 0x38(%rsp), %rdi
callq 0x1acc0
movq 0x70(%rsp), %rdi
callq 0xb0270
movq 0x140(%rsp), %rdi
callq 0xb680
nopl (%rax)