// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/Actions/Action.cpp
// Function: LambdaAction::LambdaAction(std::shared_ptr<TypeBase>, std::shared_ptr<TypeBase>, std::shared_ptr<TypeBase>, std::function<void* (void*, void*)>, std::function<void (std::shared_ptr<ActionData>, std::shared_ptr<ActionData>, CppProgram*)>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
LambdaAction(Type inLeftTypeIn, Type inRightTypeIn, Type returnTypeIn,
		function<void*(void*,void*)> lambdaIn,
		function<void(Action inLeft, Action inRight, CppProgram* prog)> cppWriterIn,
		string textIn)
			: ActionData(returnTypeIn, inLeftTypeIn, inRightTypeIn)
	{
		if (cppWriterIn==nullptr)
		{
			cppWriter=[=](Action inLeft, Action inRight, CppProgram* prog)
			{
				prog->comment("lambda action '"+textIn+"' has not yet been implemented for C++");
			};
		}
		else
		{
			cppWriter=cppWriterIn;
		}
		
		if (lambdaIn==nullptr)
		{
			lambdaIn=[=](void* inLeft, void* inRight)->void*
			{
				throw PhplusError("action '"+textIn+"' has not yet been implemented for the interpreter", RUNTIME_ERROR);
			};
		}
		else
		{
			lambda=lambdaIn;
		}
		
		setDescription(textIn);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %r13
movq %r8, %r12
movq %rdi, %rbx
movq (%rcx), %rax
movq %rax, 0x48(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x5fc7e
movq 0x3a338(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x5fc7a
incl 0x8(%rax)
jmp 0x5fc7e
lock
incl 0x8(%rax)
movq (%rsi), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rsi), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x5fca9
movq 0x3a30d(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x5fca5
incl 0x8(%rax)
jmp 0x5fca9
lock
incl 0x8(%rax)
movq (%rdx), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rdx), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x5fcd4
movq 0x3a2e2(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x5fcd0
incl 0x8(%rax)
jmp 0x5fcd4
lock
incl 0x8(%rax)
leaq 0x48(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movq %rbx, %rdi
callq 0x5f40c
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x5fcfa
callq 0xdce4
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x5fd09
callq 0xdce4
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x5fd18
callq 0xdce4
movq 0xb0(%rsp), %r14
leaq 0x393b9(%rip), %rax     # 0x990e0
movq %rax, (%rbx)
leaq 0x78(%rbx), %rax
movq %rax, (%rsp)
leaq 0x98(%rbx), %r15
leaq 0xc8(%rbx), %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x78(%rbx)
movups %xmm0, 0x88(%rbx)
movups %xmm0, 0x98(%rbx)
movups %xmm0, 0xa8(%rbx)
movq %rbp, 0xb8(%rbx)
movq $0x0, 0xc0(%rbx)
movb $0x0, 0xc8(%rbx)
cmpq $0x0, 0x10(%r13)
je 0x5fd89
movq %r15, %rdi
movq %r13, %rsi
callq 0x60300
jmp 0x5fdc2
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xde0c
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x6029a
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5fdc2
callq 0xa2b0
cmpq $0x0, 0x10(%r12)
je 0x5fdd8
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x603cc
jmp 0x5fe11
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xde0c
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x60366
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5fe11
callq 0xa2b0
leaq 0x68(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0xde0c
leaq 0x58(%rbx), %rdi
leaq 0x58(%rsp), %rsi
callq 0xa1d0
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x5fe4b
callq 0xa2b0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5fe5e
jmp 0x5feb0
movq %rax, %r12
movq 0x8(%rsp), %rdi
jmp 0x5fe72
jmp 0x5feb0
movq %rax, %r12
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x5feb3
callq 0xa2b0
jmp 0x5feb3
movq %rax, %r12
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x5fe90
callq 0xdce4
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x5fe9f
callq 0xdce4
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x5feff
callq 0xdce4
jmp 0x5feff
movq %rax, %r12
movq 0xb8(%rbx), %rdi
cmpq %rbp, %rdi
je 0x5fec4
callq 0xa2b0
movq 0xa8(%rbx), %rax
testq %rax, %rax
je 0x5fedd
movq %r15, %rdi
movq %r15, %rsi
movl $0x3, %edx
callq *%rax
movq 0x88(%rbx), %rax
testq %rax, %rax
je 0x5fef7
movq (%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x600b4
movq %r12, %rdi
callq 0xa510
jmp 0x5ff09
movq %rax, %rdi
callq 0xdcd8
nop