// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/Actions/BranchAction.cpp
// Function: BranchAction::BranchAction(std::shared_ptr<ActionData>, std::shared_ptr<ActionData>, std::shared_ptr<ActionData>)
BranchAction(Action leftInputIn, Action actionIn, Action rightInputIn)
			:ActionData(actionIn->getReturnType(), Void, Void)
	{
		if (!actionIn)
			throw PhplusError(string() + "branch action created sent null action", INTERNAL_ERROR);
		
		if (!leftInputIn)
			throw PhplusError(string() + "branch action created sent null leftInput", INTERNAL_ERROR);
		
		if (!rightInputIn)
			throw PhplusError(string() + "branch action created sent null rightInput", INTERNAL_ERROR);
		
		action=actionIn;
		leftInput=leftInputIn;
		rightInput=rightInputIn;
		
		if (!leftInput->getInLeftType()->matches(Void) || !leftInput->getInRightType()->matches(Void))
		{
			throw PhplusError(leftInput->getDescription() + " put into branch even though its inputs are not void", INTERNAL_ERROR);
		}
		
		if (!rightInput->getInLeftType()->matches(Void) || !rightInput->getInRightType()->matches(Void))
		{
			throw PhplusError(rightInput->getDescription() + " put into branch even though its inputs are not void", INTERNAL_ERROR);
		}
		
		if (!leftInput->getReturnType()->matches(action->getInLeftType()))
		{
			throw PhplusError(leftInput->getDescription() + " return type is not the same as the left input of " + action->getDescription(), INTERNAL_ERROR);
		}
		
		if (!rightInput->getReturnType()->matches(action->getInRightType()))
		{
			throw PhplusError(rightInput->getDescription() + " return type is not the same as the right input of " + action->getDescription(), INTERNAL_ERROR);
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rcx, 0x28(%rsp)
movq %rdx, %rbx
movq %rsi, 0x20(%rsp)
movq %rdi, %rbp
movq (%rdx), %rsi
addq $0x28, %rsi
leaq 0xf0(%rsp), %r14
movq %r14, %rdi
callq 0x12c0a
leaq 0x3323d(%rip), %r15     # 0x7a3e0
leaq 0xe0(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x12c0a
leaq 0xd0(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %rbp, %r15
callq 0x12c0a
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x44704
leaq 0xd8(%rsp), %rdi
callq 0xc984
leaq 0xe8(%rsp), %rdi
callq 0xc984
leaq 0xf8(%rsp), %rdi
callq 0xc984
leaq 0x32255(%rip), %rax     # 0x79460
movq %rax, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%r15)
movups %xmm0, 0x88(%r15)
movups %xmm0, 0x98(%r15)
cmpq $0x0, (%rbx)
je 0x47406
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
movq 0x28(%rsp), %r13
je 0x4747c
cmpq $0x0, (%r13)
je 0x474f2
leaq 0x78(%r15), %r14
leaq 0x88(%r15), %r12
movq %r15, %rbp
addq $0x98, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x12bbe
movq %r12, %rdi
movq 0x20(%rsp), %rsi
callq 0x12bbe
movq %r15, %rdi
movq %r13, %rsi
callq 0x12bbe
movq (%r12), %rax
movq 0x38(%rax), %rbx
leaq 0x3314a(%rip), %rsi     # 0x7a3e0
leaq 0x40(%rsp), %r13
movq %r13, %rdi
callq 0x12c0a
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3de4c
testb %al, %al
je 0x47568
movq (%r12), %rax
movq 0x48(%rax), %rbx
leaq 0x3311b(%rip), %rsi     # 0x7a3e0
leaq 0xc0(%rsp), %r13
movq %r13, %rdi
callq 0x12c0a
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3de4c
movl %eax, %ebx
leaq 0xc8(%rsp), %rdi
callq 0xc984
leaq 0x48(%rsp), %rdi
callq 0xc984
testb %bl, %bl
je 0x47572
movq (%r15), %rax
movq 0x38(%rax), %rbx
leaq 0x330d1(%rip), %rsi     # 0x7a3e0
leaq 0x30(%rsp), %r13
movq %r13, %rdi
callq 0x12c0a
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3de4c
testb %al, %al
je 0x475e1
movq (%r15), %rax
movq 0x48(%rax), %rbx
leaq 0x330a3(%rip), %rsi     # 0x7a3e0
leaq 0xb0(%rsp), %r13
movq %r13, %rdi
callq 0x12c0a
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3de4c
movl %eax, %ebx
leaq 0xb8(%rsp), %rdi
callq 0xc984
leaq 0x38(%rsp), %rdi
callq 0xc984
testb %bl, %bl
je 0x475eb
movq (%r12), %rax
movq 0x28(%rax), %rbx
movq (%r14), %rsi
addq $0x38, %rsi
leaq 0xa0(%rsp), %r13
movq %r13, %rdi
callq 0x12c0a
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3de4c
movl %eax, %ebx
leaq 0xa8(%rsp), %rdi
callq 0xc984
testb %bl, %bl
je 0x47659
movq (%r15), %rax
movq 0x28(%rax), %rbx
movq (%r14), %rsi
addq $0x48, %rsi
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0x12c0a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3de4c
movl %eax, %ebx
leaq 0x58(%rsp), %rdi
callq 0xc984
testb %bl, %bl
je 0x476f0
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rbp
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r15
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x12333(%rip), %rdx     # 0x5975f
leaq 0x238(%rsp), %rdi
movq %rsp, %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0x160(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x238(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x30130(%rip), %rsi     # 0x77598
leaq -0x35ddd(%rip), %rdx    # 0x11692
movq %r15, %rdi
callq 0xa4e0
jmp 0x47781
movq %r15, %rbp
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r15
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x12393(%rip), %rdx     # 0x59835
leaq 0x218(%rsp), %rdi
movq %rsp, %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0x150(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x218(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x300ba(%rip), %rsi     # 0x77598
leaq -0x35e53(%rip), %rdx    # 0x11692
movq %r15, %rdi
callq 0xa4e0
jmp 0x47781
movq %r15, %rbp
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r15
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x1226e(%rip), %rdx     # 0x59786
leaq 0x1f8(%rsp), %rdi
movq %rsp, %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0x140(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x1f8(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x30044(%rip), %rsi     # 0x77598
leaq -0x35ec9(%rip), %rdx    # 0x11692
movq %r15, %rdi
callq 0xa4e0
jmp 0x47781
leaq 0x48(%rsp), %rdi
callq 0xc984
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r15
movq (%r12), %rsi
movq (%rsi), %rax
movq %rsp, %rdi
callq *0x18(%rax)
leaq 0x12220(%rip), %rdx     # 0x597b1
leaq 0x1d8(%rsp), %rdi
movq %rsp, %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0x130(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x1d8(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x2ffcb(%rip), %rsi     # 0x77598
leaq -0x35f42(%rip), %rdx    # 0x11692
movq %r15, %rdi
callq 0xa4e0
jmp 0x47781
leaq 0x38(%rsp), %rdi
callq 0xc984
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r12
movq (%r15), %rsi
movq (%rsi), %rax
movq %rsp, %rdi
callq *0x18(%rax)
leaq 0x121a8(%rip), %rdx     # 0x597b1
leaq 0x1b8(%rsp), %rdi
movq %rsp, %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0x120(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x1b8(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r12, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x2ff53(%rip), %rsi     # 0x77598
leaq -0x35fba(%rip), %rdx    # 0x11692
movq %r12, %rdi
callq 0xa4e0
jmp 0x47781
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r15
movq (%r12), %rsi
movq (%rsi), %rax
leaq 0x80(%rsp), %rdi
callq *0x18(%rax)
leaq 0x121e2(%rip), %rdx     # 0x5985f
movq %rsp, %rdi
leaq 0x80(%rsp), %rsi
callq 0xc882
movq (%r14), %rsi
movq (%rsi), %rax
leaq 0x60(%rsp), %rdi
callq *0x18(%rax)
leaq 0x198(%rsp), %rdi
movq %rsp, %rsi
leaq 0x60(%rsp), %rdx
callq 0x1205e
xorps %xmm0, %xmm0
leaq 0x110(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x198(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x2febc(%rip), %rsi     # 0x77598
leaq -0x36051(%rip), %rdx    # 0x11692
movq %r15, %rdi
callq 0xa4e0
jmp 0x47781
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r12
movq (%r15), %rsi
movq (%rsi), %rax
leaq 0x80(%rsp), %rdi
callq *0x18(%rax)
leaq 0x120d3(%rip), %rdx     # 0x597e6
movq %rsp, %rdi
leaq 0x80(%rsp), %rsi
callq 0xc882
movq (%r14), %rsi
movq (%rsi), %rax
leaq 0x60(%rsp), %rdi
callq *0x18(%rax)
leaq 0x178(%rsp), %rdi
movq %rsp, %rsi
leaq 0x60(%rsp), %rdx
callq 0x1205e
xorps %xmm0, %xmm0
leaq 0x100(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x178(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r12, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x2fe26(%rip), %rsi     # 0x77598
leaq -0x360e7(%rip), %rdx    # 0x11692
movq %r12, %rdi
callq 0xa4e0
movq %rax, %r14
leaq 0x108(%rsp), %rdi
callq 0xc984
leaq 0x178(%rsp), %rdi
callq 0xa558
jmp 0x477a5
movq %rax, %r14
movb $0x1, %bl
leaq 0x60(%rsp), %rdi
callq 0xa558
jmp 0x477e6
movq %rax, %r14
leaq 0x118(%rsp), %rdi
callq 0xc984
leaq 0x198(%rsp), %rdi
callq 0xa558
jmp 0x477d5
movq %rax, %r14
movb $0x1, %bl
leaq 0x60(%rsp), %rdi
callq 0xa558
jmp 0x477f5
movq %rax, %r14
movb $0x1, %bl
movq %rsp, %rdi
callq 0xa558
jmp 0x47804
movq %rax, %r14
movb $0x1, %bl
movq %rsp, %rdi
callq 0xa558
jmp 0x47813
movq %rax, %r14
movb $0x1, %bl
leaq 0x80(%rsp), %rdi
jmp 0x47851
movq %rax, %r14
movb $0x1, %bl
leaq 0x80(%rsp), %rdi
jmp 0x478de
jmp 0x47900
jmp 0x47924
movq %rax, %r14
leaq 0x128(%rsp), %rdi
callq 0xc984
leaq 0x1b8(%rsp), %rdi
callq 0xa558
jmp 0x4784e
movq %rax, %r14
movb $0x1, %bl
movq %rsp, %rdi
callq 0xa558
testb %bl, %bl
jne 0x47903
jmp 0x47950
movq %rax, %r14
leaq 0x138(%rsp), %rdi
callq 0xc984
leaq 0x1d8(%rsp), %rdi
jmp 0x478cf
jmp 0x478d6
movq %rax, %r14
leaq 0x148(%rsp), %rdi
callq 0xc984
leaq 0x1f8(%rsp), %rdi
jmp 0x478cf
jmp 0x478d6
movq %rax, %r14
leaq 0x158(%rsp), %rdi
callq 0xc984
leaq 0x218(%rsp), %rdi
jmp 0x478cf
jmp 0x478d6
movq %rax, %r14
leaq 0x168(%rsp), %rdi
callq 0xc984
leaq 0x238(%rsp), %rdi
callq 0xa558
jmp 0x478db
movq %rax, %r14
movb $0x1, %bl
movq %rsp, %rdi
callq 0xa558
testb %bl, %bl
jne 0x47927
jmp 0x47950
movq %rax, %r14
leaq 0x58(%rsp), %rdi
jmp 0x4794b
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
jmp 0x4794b
movq %rax, %r14
movq %r12, %rdi
jmp 0x4792a
movq %rax, %r14
leaq 0xb8(%rsp), %rdi
callq 0xc984
jmp 0x4791d
movq %rax, %r14
leaq 0x38(%rsp), %rdi
jmp 0x4794b
movq %rax, %r14
movq %r15, %rdi
callq 0xa230
jmp 0x47950
movq %rax, %r14
leaq 0xc8(%rsp), %rdi
callq 0xc984
jmp 0x47946
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0xc984
leaq 0xa0(%rbp), %rdi
callq 0xc984
leaq 0x90(%rbp), %rdi
callq 0xc984
leaq 0x80(%rbp), %rdi
callq 0xc984
movq %rbp, %rdi
callq 0x44e86
movq %r14, %rdi
callq 0xa500
movq %rax, %r14
leaq 0xd8(%rsp), %rdi
callq 0xc984
leaq 0xe8(%rsp), %rdi
callq 0xc984
leaq 0xf8(%rsp), %rdi
callq 0xc984
jmp 0x4797c