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

// Assembly:
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, 0x70(%rsp)
movq %rdx, 0x78(%rsp)
movq %rdi, 0x1a0(%rsp)
movq %rsi, 0x198(%rsp)
movq %rdx, 0x190(%rsp)
movq 0x1a0(%rsp), %rax
movq %rax, 0x88(%rsp)
leaq 0x5e468(%rip), %rsi     # 0x1184a8
movq %rsi, 0x80(%rsp)
leaq 0x180(%rsp), %rdi
movq %rdi, 0x90(%rsp)
callq 0x1a920
movq 0x80(%rsp), %rsi
leaq 0x170(%rsp), %rdi
movq %rdi, 0x98(%rsp)
callq 0x1a920
movq 0x80(%rsp), %rsi
leaq 0x160(%rsp), %rdi
movq %rdi, 0xa0(%rsp)
callq 0x1a920
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0xa0(%rsp), %rcx
callq 0xaf570
jmp 0xba0be
leaq 0x160(%rsp), %rdi
callq 0x1a950
leaq 0x170(%rsp), %rdi
callq 0x1a950
leaq 0x180(%rsp), %rdi
callq 0x1a950
movq 0x88(%rsp), %rdi
leaq 0x5d54c(%rip), %rax     # 0x117640
movq %rax, (%rdi)
addq $0x78, %rdi
movq %rdi, 0x60(%rsp)
callq 0x1bcc0
movq 0x88(%rsp), %rdi
addq $0x88, %rdi
movq %rdi, 0x58(%rsp)
callq 0x1bcc0
movq 0x70(%rsp), %rsi
movq 0x60(%rsp), %rdi
callq 0x1a510
movq 0x58(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0x1a510
movq 0x60(%rsp), %rdi
callq 0x1bb50
movq %rax, %rdi
callq 0x1bed0
movq %rax, 0x68(%rsp)
jmp 0xba155
movq 0x68(%rsp), %rdi
leaq 0x5e367(%rip), %rsi     # 0x1184c8
callq 0x1be90
testb $0x1, %al
jne 0xba16f
jmp 0xba2ad
leaq 0x12f(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0xb690
movq 0x50(%rsp), %rdx
leaq 0x1d16d(%rip), %rsi     # 0xd72fa
leaq 0x130(%rsp), %rdi
callq 0xb4c0
jmp 0xba19c
xorl %eax, %eax
movl %eax, %esi
leaq 0x118(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0xfbe0
movq 0x48(%rsp), %rcx
leaq 0x5e205(%rip), %rdi     # 0x1183c3
leaq 0x130(%rsp), %rsi
movl $0x3, %edx
callq 0x34c70
jmp 0xba1d2
leaq 0x118(%rsp), %rdi
callq 0xfc00
leaq 0x130(%rsp), %rdi
callq 0xb6e8
leaq 0x12f(%rsp), %rdi
callq 0xb3f0
jmp 0xba2ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x158(%rsp)
movl %eax, 0x154(%rsp)
leaq 0x160(%rsp), %rdi
callq 0x1a950
leaq 0x170(%rsp), %rdi
callq 0x1a950
leaq 0x180(%rsp), %rdi
callq 0x1a950
jmp 0xba57b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x158(%rsp)
movl %eax, 0x154(%rsp)
jmp 0xba55a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x158(%rsp)
movl %eax, 0x154(%rsp)
jmp 0xba29b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x158(%rsp)
movl %eax, 0x154(%rsp)
leaq 0x118(%rsp), %rdi
callq 0xfc00
leaq 0x130(%rsp), %rdi
callq 0xb6e8
leaq 0x12f(%rsp), %rdi
callq 0xb3f0
jmp 0xba55a
movq 0x88(%rsp), %rdi
addq $0x78, %rdi
callq 0x1bb50
movq %rax, %rdi
callq 0x3f060
movq %rax, 0x40(%rsp)
jmp 0xba2cd
movq 0x40(%rsp), %rdi
leaq 0x5e1cf(%rip), %rsi     # 0x1184a8
callq 0x1be90
testb $0x1, %al
jne 0xba31c
movq 0x88(%rsp), %rdi
addq $0x78, %rdi
callq 0x1bb50
movq %rax, %rdi
callq 0x3f070
movq %rax, 0x38(%rsp)
jmp 0xba302
movq 0x38(%rsp), %rdi
leaq 0x5e19a(%rip), %rsi     # 0x1184a8
callq 0x1be90
testb $0x1, %al
jne 0xba31c
jmp 0xba3fe
leaq 0xf7(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0xb690
movq 0x30(%rsp), %rdx
leaq 0x1d001(%rip), %rsi     # 0xd733b
leaq 0xf8(%rsp), %rdi
callq 0xb4c0
jmp 0xba349
xorl %eax, %eax
movl %eax, %esi
leaq 0xe0(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0xfbe0
movq 0x28(%rsp), %rcx
leaq 0x5e058(%rip), %rdi     # 0x1183c3
leaq 0xf8(%rsp), %rsi
movl $0x3, %edx
callq 0x34c70
jmp 0xba37f
leaq 0xe0(%rsp), %rdi
callq 0xfc00
leaq 0xf8(%rsp), %rdi
callq 0xb6e8
leaq 0xf7(%rsp), %rdi
callq 0xb3f0
jmp 0xba3fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x158(%rsp)
movl %eax, 0x154(%rsp)
jmp 0xba3ec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x158(%rsp)
movl %eax, 0x154(%rsp)
leaq 0xe0(%rsp), %rdi
callq 0xfc00
leaq 0xf8(%rsp), %rdi
callq 0xb6e8
leaq 0xf7(%rsp), %rdi
callq 0xb3f0
jmp 0xba55a
movq 0x88(%rsp), %rdi
addq $0x88, %rdi
callq 0x1bb50
movq %rax, %rdi
callq 0x3f060
movq %rax, 0x20(%rsp)
jmp 0xba421
movq 0x20(%rsp), %rdi
leaq 0x5e07b(%rip), %rsi     # 0x1184a8
callq 0x1be90
testb $0x1, %al
jne 0xba473
movq 0x88(%rsp), %rdi
addq $0x88, %rdi
callq 0x1bb50
movq %rax, %rdi
callq 0x3f070
movq %rax, 0x18(%rsp)
jmp 0xba459
movq 0x18(%rsp), %rdi
leaq 0x5e043(%rip), %rsi     # 0x1184a8
callq 0x1be90
testb $0x1, %al
jne 0xba473
jmp 0xba552
leaq 0xbf(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xb690
movq 0x10(%rsp), %rdx
leaq 0x1cef9(%rip), %rsi     # 0xd738a
leaq 0xc0(%rsp), %rdi
callq 0xb4c0
jmp 0xba4a0
xorl %eax, %eax
movl %eax, %esi
leaq 0xa8(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xfbe0
movq 0x8(%rsp), %rcx
leaq 0x5df01(%rip), %rdi     # 0x1183c3
leaq 0xc0(%rsp), %rsi
movl $0x3, %edx
callq 0x34c70
jmp 0xba4d6
leaq 0xa8(%rsp), %rdi
callq 0xfc00
leaq 0xc0(%rsp), %rdi
callq 0xb6e8
leaq 0xbf(%rsp), %rdi
callq 0xb3f0
jmp 0xba552
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x158(%rsp)
movl %eax, 0x154(%rsp)
jmp 0xba543
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x158(%rsp)
movl %eax, 0x154(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0xfc00
leaq 0xc0(%rsp), %rdi
callq 0xb6e8
leaq 0xbf(%rsp), %rdi
callq 0xb3f0
jmp 0xba55a
addq $0x1a8, %rsp            # imm = 0x1A8
retq
movq 0x58(%rsp), %rdi
callq 0x1acc0
movq 0x60(%rsp), %rdi
callq 0x1acc0
movq 0x88(%rsp), %rdi
callq 0xb0270
movq 0x158(%rsp), %rdi
callq 0xb680
nopl (%rax,%rax)