// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/Actions/BranchAction.cpp
// Function: RightBranchAction::RightBranchAction(std::shared_ptr<ActionData>, std::shared_ptr<ActionData>)
RightBranchAction(Action actionIn, Action rightInputIn)
		:ActionData(actionIn->getReturnType(), Void, Void)
	{
		if (!actionIn)
			throw PhplusError(string() + "branch action created sent null action", INTERNAL_ERROR);
			
		if (!rightInputIn)
			throw PhplusError(string() + "branch action created sent null rightInput", INTERNAL_ERROR);
		
		action=actionIn;
		rightInput=rightInputIn;
		
		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 (!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 $0x198, %rsp            # imm = 0x198
movq %rdx, 0x28(%rsp)
movq %rsi, %r13
movq %rdi, %r15
movq (%rsi), %rsi
addq $0x28, %rsi
leaq 0x80(%rsp), %r14
movq %r14, %rdi
callq 0x12c0a
leaq 0x33c0a(%rip), %r12     # 0x7a3e0
leaq 0x70(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x12c0a
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x12c0a
movq %r15, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x44704
leaq 0x68(%rsp), %rdi
callq 0xc984
leaq 0x78(%rsp), %rdi
callq 0xc984
leaq 0x88(%rsp), %rdi
callq 0xc984
leaq 0x32b81(%rip), %rax     # 0x793b0
movq %rax, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%r15)
movups %xmm0, 0x88(%r15)
cmpq $0x0, (%r13)
movq %r15, 0x20(%rsp)
je 0x46945
movq 0x28(%rsp), %rbx
cmpq $0x0, (%rbx)
je 0x469b8
leaq 0x78(%r15), %r14
leaq 0x88(%r15), %r12
movq %r14, %rdi
movq %r13, %rsi
callq 0x12bbe
movq %r12, %rdi
movq %rbx, %rsi
callq 0x12bbe
movq (%r12), %rax
movq 0x38(%rax), %rbx
leaq 0x33b4f(%rip), %rsi     # 0x7a3e0
leaq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0x12c0a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3de4c
testb %al, %al
je 0x46a2b
movq (%r12), %rax
movq 0x48(%rax), %rbx
leaq 0x33b20(%rip), %rsi     # 0x7a3e0
leaq 0x50(%rsp), %r15
movq %r15, %rdi
callq 0x12c0a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3de4c
movl %eax, %ebp
leaq 0x58(%rsp), %rdi
callq 0xc984
leaq 0x38(%rsp), %rdi
callq 0xc984
testb %bpl, %bpl
je 0x46a35
movq (%r12), %rax
movq 0x28(%rax), %rbx
movq (%r14), %rsi
addq $0x48, %rsi
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x12c0a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3de4c
movl %eax, %ebp
leaq 0x48(%rsp), %rdi
callq 0xc984
testb %bpl, %bpl
je 0x46aa4
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
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 0x12df7(%rip), %rdx     # 0x5975f
leaq 0x178(%rsp), %rdi
movq %rsp, %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0xc0(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x178(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x30bf4(%rip), %rsi     # 0x77598
leaq -0x35319(%rip), %rdx    # 0x11692
movq %r15, %rdi
callq 0xa4e0
jmp 0x46b3c
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 0x12dab(%rip), %rdx     # 0x59786
leaq 0x158(%rsp), %rdi
movq %rsp, %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0xb0(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x158(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x30b81(%rip), %rsi     # 0x77598
leaq -0x3538c(%rip), %rdx    # 0x11692
movq %r15, %rdi
callq 0xa4e0
jmp 0x46b3c
leaq 0x38(%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 0x12d5d(%rip), %rdx     # 0x597b1
leaq 0x138(%rsp), %rdi
movq %rsp, %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0xa0(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x138(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x30b08(%rip), %rsi     # 0x77598
leaq -0x35405(%rip), %rdx    # 0x11692
movq %r15, %rdi
callq 0xa4e0
jmp 0x46b3c
pushq $0x38
popq %rdi
callq 0xa1b0
movq %rax, %r15
movq (%r12), %rsi
movq (%rsi), %rax
leaq 0xf8(%rsp), %rdi
callq *0x18(%rax)
leaq 0x12d1e(%rip), %rdx     # 0x597e6
movq %rsp, %rdi
leaq 0xf8(%rsp), %rsi
callq 0xc882
movq (%r14), %rsi
movq (%rsi), %rax
leaq 0xd8(%rsp), %rdi
callq *0x18(%rax)
leaq 0x118(%rsp), %rdi
movq %rsp, %rsi
leaq 0xd8(%rsp), %rdx
callq 0x1205e
xorps %xmm0, %xmm0
leaq 0x90(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bl
leaq 0x118(%rsp), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x19f06
xorl %ebx, %ebx
leaq 0x30a6b(%rip), %rsi     # 0x77598
leaq -0x354a2(%rip), %rdx    # 0x11692
movq %r15, %rdi
callq 0xa4e0
movq %rax, %r14
leaq 0x98(%rsp), %rdi
callq 0xc984
leaq 0x118(%rsp), %rdi
callq 0xa558
jmp 0x46b60
movq %rax, %r14
movb $0x1, %bl
leaq 0xd8(%rsp), %rdi
callq 0xa558
jmp 0x46b74
movq %rax, %r14
movb $0x1, %bl
movq %rsp, %rdi
callq 0xa558
jmp 0x46b83
movq %rax, %r14
movb $0x1, %bl
leaq 0xf8(%rsp), %rdi
jmp 0x46bee
jmp 0x46c03
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
callq 0xc984
leaq 0x138(%rsp), %rdi
jmp 0x46bdf
jmp 0x46be6
movq %rax, %r14
leaq 0xb8(%rsp), %rdi
callq 0xc984
leaq 0x158(%rsp), %rdi
jmp 0x46bdf
jmp 0x46be6
movq %rax, %r14
leaq 0xc8(%rsp), %rdi
callq 0xc984
leaq 0x178(%rsp), %rdi
callq 0xa558
jmp 0x46beb
movq %rax, %r14
movb $0x1, %bl
movq %rsp, %rdi
callq 0xa558
testb %bl, %bl
jne 0x46c06
jmp 0x46c2c
movq %rax, %r14
leaq 0x48(%rsp), %rdi
jmp 0x46c27
movq %rax, %r14
movq %r15, %rdi
callq 0xa230
jmp 0x46c2c
movq %rax, %r14
leaq 0x58(%rsp), %rdi
callq 0xc984
jmp 0x46c22
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0xc984
movq 0x20(%rsp), %rbx
leaq 0x90(%rbx), %rdi
callq 0xc984
leaq 0x80(%rbx), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0x44e86
movq %r14, %rdi
callq 0xa500
movq %rax, %r14
leaq 0x68(%rsp), %rdi
callq 0xc984
leaq 0x78(%rsp), %rdi
callq 0xc984
leaq 0x88(%rsp), %rdi
callq 0xc984
jmp 0x46c51
nop