// File: /workspace/github_cpp_makefile_star2_O1/menhits[P]phplus/src/Actions/BranchAction.cpp
// Function: branchAction(std::shared_ptr<ActionData>, std::shared_ptr<ActionData>, std::shared_ptr<ActionData>)
Action branchAction(Action leftInputIn, Action actionIn, Action rightInputIn)
{
	//return Action(new BranchAction(leftInputIn, actionIn, rightInputIn));
	
	
	if (leftInputIn->getReturnType()->isVoid())
	{
		if (rightInputIn->getReturnType()->isVoid())
		{
			return actionIn;
		}
		else
		{
			return Action(new RightBranchAction(actionIn, rightInputIn));
		}
	}
	else
	{
		if (rightInputIn->getReturnType()->isVoid())
		{
			return Action(new LeftBranchAction(leftInputIn, actionIn));
		}
		else
		{
			return Action(new BranchAction(leftInputIn, actionIn, rightInputIn));
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
movq (%rsi), %rax
movq 0x28(%rax), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movl %eax, %ebp
movq (%r15), %rax
movq 0x28(%rax), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testb %bpl, %bpl
je 0x61343
testb %al, %al
je 0x61380
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movups (%r12), %xmm0
movq %rax, 0x8(%r12)
movups %xmm0, (%rbx)
movq %rax, (%r12)
jmp 0x61591
testb %al, %al
je 0x613b6
movl $0x98, %edi
callq 0xa2d0
movq %rax, %r14
movq (%r13), %rax
movq %rax, 0x48(%rsp)
movq 0x8(%r13), %rax
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x613ef
movq 0x37c32(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x613eb
incl 0x8(%rax)
jmp 0x613ef
movl $0x98, %edi
callq 0xa2d0
movq %rax, %r14
movq (%r12), %rax
movq %rax, 0x68(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x70(%rsp)
testq %rax, %rax
je 0x61420
movq 0x37bfc(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x6141c
incl 0x8(%rax)
jmp 0x61420
movl $0xa8, %edi
callq 0xa2d0
movq %rax, %r14
movq (%r13), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%r13), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x61453
movq 0x37bc7(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x6144f
incl 0x8(%rax)
jmp 0x61453
lock
incl 0x8(%rax)
movq (%r12), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x6148b
movq 0x37b96(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x61487
incl 0x8(%rax)
jmp 0x6148b
lock
incl 0x8(%rax)
movq (%r15), %rax
movq %rax, 0x58(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x614ce
movq 0x37b67(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x614ca
incl 0x8(%rax)
jmp 0x614ce
lock
incl 0x8(%rax)
movq (%r12), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x6150e
movq 0x37b32(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x6150a
incl 0x8(%rax)
jmp 0x6150e
lock
incl 0x8(%rax)
movb $0x1, %bpl
leaq 0x48(%rsp), %rsi
leaq 0x38(%rsp), %rdx
movq %r14, %rdi
callq 0x61db0
movq %r14, (%rbx)
leaq 0x8(%rbx), %rdi
xorl %ebp, %ebp
movq %r14, %rsi
callq 0x6412c
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x614c0
callq 0xdcba
movq 0x50(%rsp), %rdi
jmp 0x61587
lock
incl 0x8(%rax)
movb $0x1, %bpl
leaq 0x68(%rsp), %rsi
leaq 0x58(%rsp), %rdx
movq %r14, %rdi
callq 0x6161a
movq %r14, (%rbx)
leaq 0x8(%rbx), %rdi
xorl %ebp, %ebp
movq %r14, %rsi
callq 0x64096
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x61503
callq 0xdcba
movq 0x70(%rsp), %rdi
jmp 0x61587
lock
incl 0x8(%rax)
movq (%r15), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x61539
movq 0x37a7d(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x61535
incl 0x8(%rax)
jmp 0x61539
lock
incl 0x8(%rax)
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
leaq 0x18(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r14, %rdi
callq 0x6253e
movq %r14, (%rbx)
leaq 0x8(%rbx), %rdi
xorl %ebp, %ebp
movq %r14, %rsi
callq 0x641c2
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x61573
callq 0xdcba
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x61582
callq 0xdcba
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x61591
callq 0xdcba
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x615b5
callq 0xdcba
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x615c4
callq 0xdcba
movq 0x30(%rsp), %rdi
jmp 0x615fb
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x615dd
callq 0xdcba
movq 0x70(%rsp), %rdi
jmp 0x615fb
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x615f6
callq 0xdcba
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x61605
callq 0xdcba
testb %bpl, %bpl
je 0x61612
movq %r14, %rdi
callq 0xa2b0
movq %rbx, %rdi
callq 0xa510