// File: /workspace/github_cpp_makefile_star2_O3/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 0x620eb
testb %al, %al
je 0x62128
movups (%r12), %xmm0
xorl %eax, %eax
movq %rax, 0x8(%r12)
movups %xmm0, (%rbx)
movq %rax, (%r12)
jmp 0x62339
testb %al, %al
je 0x6215e
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 0x62197
movq 0x37e8a(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x62193
incl 0x8(%rax)
jmp 0x62197
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 0x621c8
movq 0x37e54(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x621c4
incl 0x8(%rax)
jmp 0x621c8
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 0x621fb
movq 0x37e1f(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x621f7
incl 0x8(%rax)
jmp 0x621fb
lock
incl 0x8(%rax)
movq (%r12), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x62233
movq 0x37dee(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x6222f
incl 0x8(%rax)
jmp 0x62233
lock
incl 0x8(%rax)
movq (%r15), %rax
movq %rax, 0x58(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x62276
movq 0x37dbf(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x62272
incl 0x8(%rax)
jmp 0x62276
lock
incl 0x8(%rax)
movq (%r12), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x622b6
movq 0x37d8a(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x622b2
incl 0x8(%rax)
jmp 0x622b6
lock
incl 0x8(%rax)
movb $0x1, %bpl
leaq 0x48(%rsp), %rsi
leaq 0x38(%rsp), %rdx
movq %r14, %rdi
callq 0x62b84
movq %r14, (%rbx)
leaq 0x8(%rbx), %rdi
xorl %ebp, %ebp
movq %r14, %rsi
callq 0x64f94
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x62268
callq 0xdce4
movq 0x50(%rsp), %rdi
jmp 0x6232f
lock
incl 0x8(%rax)
movb $0x1, %bpl
leaq 0x68(%rsp), %rsi
leaq 0x58(%rsp), %rdx
movq %r14, %rdi
callq 0x623c2
movq %r14, (%rbx)
leaq 0x8(%rbx), %rdi
xorl %ebp, %ebp
movq %r14, %rsi
callq 0x64efe
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x622ab
callq 0xdce4
movq 0x70(%rsp), %rdi
jmp 0x6232f
lock
incl 0x8(%rax)
movq (%r15), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%r15), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x622e1
movq 0x37cd5(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x622dd
incl 0x8(%rax)
jmp 0x622e1
lock
incl 0x8(%rax)
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
leaq 0x18(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r14, %rdi
callq 0x6333c
movq %r14, (%rbx)
leaq 0x8(%rbx), %rdi
xorl %ebp, %ebp
movq %r14, %rsi
callq 0x6502a
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x6231b
callq 0xdce4
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x6232a
callq 0xdce4
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x62339
callq 0xdce4
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 0x6235d
callq 0xdce4
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x6236c
callq 0xdce4
movq 0x30(%rsp), %rdi
jmp 0x623a3
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x62385
callq 0xdce4
movq 0x70(%rsp), %rdi
jmp 0x623a3
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x6239e
callq 0xdce4
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x623ad
callq 0xdce4
testb %bpl, %bpl
je 0x623ba
movq %r14, %rdi
callq 0xa2b0
movq %rbx, %rdi
callq 0xa510