// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/Actions/MakeTupleAction.cpp
// Function: MakeTupleAction::MakeTupleAction(std::vector<std::shared_ptr<ActionData>, std::allocator<std::shared_ptr<ActionData>>> const&)
MakeTupleAction(const vector<Action>& sourceActionsIn):
		ActionData(
			[&]() -> Type
			{
				TupleTypeMaker tuple;
				
				for (auto i=sourceActionsIn.begin(); i!=sourceActionsIn.end(); ++i)
				{
					tuple.add((*i)->getReturnType());
				}
				
				return tuple.get(true);
			}(),
			
			Void, Void
		)
	{
		if (sourceActionsIn.size()<=0)
		{
			error.log("MakeTupleAction created with empty list", INTERNAL_ERROR);
		}
		
		sourceActions=sourceActionsIn;
		
		for (auto i=sourceActions.begin(); i!=sourceActions.end(); ++i)
		{
			if (!(*i)->getInLeftType()->matches(Void) || !(*i)->getInRightType()->matches(Void))
			{
				error.log((*i)->getDescription() + " put into tuple creation even though its inputs are not void", INTERNAL_ERROR);
			}
			
			if ((*i)->getReturnType()->matches(Void))
			{
				error.log((*i)->getDescription() + " put into tuple creation even though its output is void", INTERNAL_ERROR);
			}
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %rbx
movq %rdi, %rbp
leaq 0xa8(%rsp), %rsi
movq %rbx, (%rsi)
leaq 0x98(%rsp), %r14
movq %r14, %rdi
callq 0x4cab8
leaq 0x2e0d9(%rip), %r15     # 0x7a3e0
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x12c0a
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x12c0a
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x44704
leaq 0x80(%rsp), %rdi
callq 0xc984
leaq 0x90(%rsp), %rdi
callq 0xc984
leaq 0xa0(%rsp), %rdi
callq 0xc984
leaq 0x2d587(%rip), %rax     # 0x798f0
movq %rax, (%rbp)
leaq 0x78(%rbp), %r14
xorps %xmm0, %xmm0
andq $0x0, 0x88(%rbp)
movups %xmm0, 0x78(%rbp)
movq 0x8(%rbx), %rax
cmpq (%rbx), %rax
movq %rbp, %r13
jne 0x4c3e1
leaq 0xdb74(%rip), %rsi      # 0x59f07
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
callq 0xa150
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x2df41(%rip), %rdi     # 0x7a2fb
leaq 0xc8(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0x19a6e
leaq 0x48(%rsp), %rdi
callq 0xc984
leaq 0xc8(%rsp), %rdi
callq 0xa558
movq %r14, 0x8(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4b1ee
movq 0x78(%r13), %r14
leaq 0xa8(%rsp), %rbp
leaq 0xe8(%rsp), %r12
cmpq 0x80(%r13), %r14
je 0x4c587
movq %r13, %r15
movq (%r14), %rax
movq 0x38(%rax), %r13
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
leaq 0x2dfb5(%rip), %rsi     # 0x7a3e0
callq 0x12c0a
movq %r13, %rdi
movq %rbx, %rsi
callq 0x3de4c
testb %al, %al
je 0x4c483
movq (%r14), %rax
movq 0x48(%rax), %r13
leaq 0x68(%rsp), %rbx
movq %rbx, %rdi
leaq 0x2df8b(%rip), %rsi     # 0x7a3e0
callq 0x12c0a
movq %r13, %rdi
movq %rbx, %rsi
callq 0x3de4c
movl %eax, %r13d
leaq 0x70(%rsp), %rdi
callq 0xc984
leaq 0x38(%rsp), %rdi
callq 0xc984
testb %r13b, %r13b
je 0x4c48d
jmp 0x4c4ec
leaq 0x38(%rsp), %rdi
callq 0xc984
movq (%r14), %rsi
movq (%rsi), %rax
movq %rbp, %rdi
callq *0x18(%rax)
leaq 0x108(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
leaq 0xda81(%rip), %rdx      # 0x59f2f
callq 0xc882
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
leaq 0x2de39(%rip), %rdi     # 0x7a2fb
movq %rbx, %rsi
pushq $0x3
popq %rdx
leaq 0x20(%rsp), %rcx
callq 0x19a6e
leaq 0x28(%rsp), %rdi
callq 0xc984
movq %rbx, %rdi
callq 0xa558
movq %rbp, %rdi
callq 0xa558
movq (%r14), %rax
movq 0x28(%rax), %r13
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
leaq 0x2dede(%rip), %rsi     # 0x7a3e0
callq 0x12c0a
movq %r13, %rdi
movq %rbx, %rsi
callq 0x3de4c
movl %eax, %r13d
leaq 0x60(%rsp), %rdi
callq 0xc984
testb %r13b, %r13b
movq %r15, %r13
je 0x4c57e
movq (%r14), %rsi
movq (%rsi), %rax
movq %rbp, %rdi
callq *0x18(%rax)
movq %r12, %rdi
movq %rbp, %rsi
leaq 0xda2c(%rip), %rdx      # 0x59f6c
callq 0xc882
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
leaq 0x2dda7(%rip), %rdi     # 0x7a2fb
movq %r12, %rsi
pushq $0x3
popq %rdx
leaq 0x10(%rsp), %rcx
callq 0x19a6e
leaq 0x18(%rsp), %rdi
callq 0xc984
movq %r12, %rdi
callq 0xa558
movq %rbp, %rdi
callq 0xa558
addq $0x10, %r14
jmp 0x4c405
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0xc984
leaq 0xc8(%rsp), %rdi
callq 0xa558
jmp 0x4c670
movq %rax, %rbx
jmp 0x4c670
jmp 0x4c602
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0xc984
leaq 0x90(%rsp), %rdi
callq 0xc984
leaq 0xa0(%rsp), %rdi
callq 0xc984
jmp 0x4c680
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xc984
jmp 0x4c65e
jmp 0x4c63a
movq %rax, %rbx
jmp 0x4c66b
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xc984
leaq 0xe8(%rsp), %rdi
jmp 0x4c633
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xc984
leaq 0x108(%rsp), %rdi
callq 0xa558
jmp 0x4c63d
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0xa558
jmp 0x4c668
movq %rax, %rbx
jmp 0x4c668
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
jmp 0x4c663
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xc984
movq %r15, %r13
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x119e8
movq %r13, %rdi
callq 0x44e86
movq %rbx, %rdi
callq 0xa500