// File: /workspace/github_cpp_makefile_star2_O1/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 0x5ef5c
movq 0x3a05a(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x5ef58
incl 0x8(%rax)
jmp 0x5ef5c
lock
incl 0x8(%rax)
movq (%rsi), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rsi), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x5ef87
movq 0x3a02f(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x5ef83
incl 0x8(%rax)
jmp 0x5ef87
lock
incl 0x8(%rax)
movq (%rdx), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rdx), %rax
movq %rax, 0x30(%rsp)
testq %rax, %rax
je 0x5efb2
movq 0x3a004(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x5efae
incl 0x8(%rax)
jmp 0x5efb2
lock
incl 0x8(%rax)
leaq 0x48(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movq %rbx, %rdi
callq 0x5e6ec
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x5efd8
callq 0xdcba
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x5efe7
callq 0xdcba
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x5eff6
callq 0xdcba
movq 0xb0(%rsp), %r14
leaq 0x390db(%rip), %rax     # 0x980e0
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 0x5f067
movq %r15, %rdi
movq %r13, %rsi
callq 0x5f5bc
jmp 0x5f0a0
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xdde2
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x5f556
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5f0a0
callq 0xa2b0
cmpq $0x0, 0x10(%r12)
je 0x5f0b6
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x5f688
jmp 0x5f0ef
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0xdde2
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x5f622
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x5f0ef
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 0xdde2
leaq 0x58(%rbx), %rdi
leaq 0x58(%rsp), %rsi
callq 0xa1d0
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x5f129
callq 0xa2b0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5f13c
jmp 0x5f18e
movq %rax, %r12
movq 0x8(%rsp), %rdi
jmp 0x5f150
jmp 0x5f18e
movq %rax, %r12
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x5f191
callq 0xa2b0
jmp 0x5f191
movq %rax, %r12
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x5f16e
callq 0xdcba
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x5f17d
callq 0xdcba
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x5f1dd
callq 0xdcba
jmp 0x5f1dd
movq %rax, %r12
movq 0xb8(%rbx), %rdi
cmpq %rbp, %rdi
je 0x5f1a2
callq 0xa2b0
movq 0xa8(%rbx), %rax
testq %rax, %rax
je 0x5f1bb
movq %r15, %rdi
movq %r15, %rsi
movl $0x3, %edx
callq *%rax
movq 0x88(%rbx), %rax
testq %rax, %rax
je 0x5f1d5
movq (%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x5f370
movq %r12, %rdi
callq 0xa510
jmp 0x5f1e7
movq %rax, %rdi
callq 0xdcaf
nop