// File: /workspace/github_cpp_makefile_star2_O2/menhits[P]phplus/src/Namespace.cpp
// Function: NamespaceData::setInput(std::shared_ptr<TypeBase>, std::shared_ptr<TypeBase>)
void NamespaceData::setInput(Type left, Type right)
{
	if (parent && parent->getStackFrame()==stackFrame)
	{
		error.log("called "+FUNC+" on namespace that is not the root of a stack frame, thus it can not get input", INTERNAL_ERROR);
		return;
	}
	
	stackFrame->setInput(left, right);
	
	//if (!left->isVoid())
	if (left->isCreatable())
	{
		string leftName="me";
		size_t leftOffset=stackFrame->getLeftOffset();
		Action leftGetAction=varGetAction(leftOffset, left, leftName);
		Action leftSetAction=varSetAction(leftOffset, left, leftName);
		addNode(AstActionWrapper::make(leftGetAction), leftName);
		addNode(AstActionWrapper::make(leftSetAction), leftName);
	}
	
	//if (!right->isVoid())
	if (right->isCreatable())
	{
		string rightName="in";
		size_t rightOffset=stackFrame->getRightOffset();
		Action rightGetAction=varGetAction(rightOffset, right, rightName);
		Action rightSetAction=varSetAction(rightOffset, right, rightName);
		addNode(AstActionWrapper::make(rightGetAction), rightName);
		addNode(AstActionWrapper::make(rightSetAction), rightName);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq 0x30(%rdi), %rsi
testq %rsi, %rsi
je 0x1b9ba
addq $0x40, %rsi
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x12e1a
movq (%rbx), %rbx
movq 0x40(%r14), %r13
leaq 0x18(%rsp), %rdi
callq 0xc984
cmpq %r13, %rbx
je 0x1be54
movq 0x40(%r14), %rbx
leaq 0x128(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x12c0a
leaq 0x118(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x12c0a
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x3c7d6
leaq 0x58(%rsp), %rbx
leaq 0x120(%rsp), %rdi
callq 0xc984
leaq 0x130(%rsp), %rdi
callq 0xc984
movq (%r12), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
testb %al, %al
je 0x1bc33
leaq 0x3944f(%rip), %rsi     # 0x54e79
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0xa150
movq 0x40(%r14), %rdi
callq 0x3cb20
movq %rax, %r13
leaq 0xb8(%rsp), %rbp
leaq 0xb0(%rsp), %rdi
movq %r12, %rsi
callq 0x12c0a
leaq 0x218(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xa3b0
leaq 0x60(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
leaq 0x218(%rsp), %rcx
movq %r13, %rsi
callq 0x4e170
leaq 0xa8(%rsp), %rbp
leaq 0x218(%rsp), %rdi
callq 0xa558
leaq 0xb8(%rsp), %rdi
callq 0xc984
leaq 0xa0(%rsp), %rdi
movq %r12, %rsi
callq 0x12c0a
leaq 0x1f8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xa3b0
leaq 0x50(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
leaq 0x1f8(%rsp), %rcx
movq %r13, %rsi
callq 0x4e237
leaq 0x1f8(%rsp), %rdi
callq 0xa558
leaq 0xa8(%rsp), %rdi
callq 0xc984
leaq 0x108(%rsp), %r12
leaq 0x60(%rsp), %rsi
movq %r12, %rdi
callq 0x12c1e
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x1df64
movq 0x8(%rsp), %rax
andq $0x0, 0x8(%rsp)
movq %rax, 0x48(%rsp)
leaq 0x1d8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xa3b0
leaq 0x48(%rsp), %rsi
leaq 0x1d8(%rsp), %rdx
movq %r14, %rdi
callq 0x1c0f2
leaq 0x1d8(%rsp), %rdi
callq 0xa558
leaq 0x48(%rsp), %rdi
callq 0x11c58
leaq 0x8(%rsp), %rdi
callq 0x1e016
leaq 0x110(%rsp), %rdi
callq 0xc984
leaq 0xf8(%rsp), %r12
leaq 0x50(%rsp), %rsi
movq %r12, %rdi
callq 0x12c1e
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x1df64
movq 0x8(%rsp), %rax
andq $0x0, 0x8(%rsp)
movq %rax, 0x40(%rsp)
leaq 0x1b8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xa3b0
leaq 0x40(%rsp), %rsi
leaq 0x1b8(%rsp), %rdx
movq %r14, %rdi
callq 0x1c0f2
leaq 0x1b8(%rsp), %rdi
callq 0xa558
leaq 0x40(%rsp), %rdi
callq 0x11c58
leaq 0x8(%rsp), %rdi
callq 0x1e016
leaq 0x100(%rsp), %rdi
callq 0xc984
leaq 0x58(%rsp), %rdi
callq 0xc984
leaq 0x68(%rsp), %rdi
callq 0xc984
leaq 0x10(%rsp), %rdi
callq 0xa558
movq (%r15), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
testb %al, %al
je 0x1beec
leaq 0x39232(%rip), %rsi     # 0x54e7d
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0xa150
movq 0x40(%r14), %rdi
callq 0x3cba2
movq %rax, %r12
leaq 0x98(%rsp), %r13
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
callq 0x12c0a
leaq 0x198(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xa3b0
leaq 0x60(%rsp), %rdi
leaq 0x90(%rsp), %rdx
leaq 0x198(%rsp), %rcx
movq %r12, %rsi
callq 0x4e170
leaq 0x88(%rsp), %r13
leaq 0x198(%rsp), %rdi
callq 0xa558
leaq 0x98(%rsp), %rdi
callq 0xc984
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x12c0a
leaq 0x178(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xa3b0
leaq 0x50(%rsp), %rdi
leaq 0x80(%rsp), %rdx
leaq 0x178(%rsp), %rcx
movq %r12, %rsi
callq 0x4e237
leaq 0x178(%rsp), %rdi
callq 0xa558
leaq 0x88(%rsp), %rdi
callq 0xc984
leaq 0xe8(%rsp), %r15
leaq 0x60(%rsp), %rsi
movq %r15, %rdi
callq 0x12c1e
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x1df64
movq 0x8(%rsp), %rax
andq $0x0, 0x8(%rsp)
movq %rax, 0x38(%rsp)
leaq 0x158(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xa3b0
leaq 0x38(%rsp), %rsi
leaq 0x158(%rsp), %rdx
movq %r14, %rdi
callq 0x1c0f2
leaq 0x158(%rsp), %rdi
callq 0xa558
leaq 0x38(%rsp), %rdi
callq 0x11c58
leaq 0x8(%rsp), %rdi
callq 0x1e016
leaq 0xf0(%rsp), %rdi
callq 0xc984
leaq 0xd8(%rsp), %r15
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
callq 0x12c1e
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x1df64
movq 0x8(%rsp), %rax
andq $0x0, 0x8(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xa3b0
leaq 0x30(%rsp), %rsi
leaq 0x138(%rsp), %rdx
movq %r14, %rdi
callq 0x1c0f2
leaq 0x138(%rsp), %rdi
callq 0xa558
leaq 0x30(%rsp), %rdi
callq 0x11c58
leaq 0x8(%rsp), %rdi
callq 0x1e016
leaq 0xe0(%rsp), %rdi
callq 0xc984
leaq 0x58(%rsp), %rdi
callq 0xc984
leaq 0x68(%rsp), %rdi
callq 0xc984
leaq 0x10(%rsp), %rdi
jmp 0x1bee7
leaq 0x393ec(%rip), %rsi     # 0x55247
leaq 0x60(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0xa150
leaq 0x393ce(%rip), %rsi     # 0x5523f
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x11ff8
leaq 0x393c9(%rip), %rdx     # 0x55250
leaq 0x238(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xc882
xorps %xmm0, %xmm0
leaq 0xc0(%rsp), %rcx
movaps %xmm0, (%rcx)
leaq 0x5e44d(%rip), %rdi     # 0x7a2fb
leaq 0x238(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0x19a6e
leaq 0xc8(%rsp), %rdi
callq 0xc984
leaq 0x238(%rsp), %rdi
callq 0xa558
leaq 0x10(%rsp), %rdi
callq 0xa558
leaq 0x60(%rsp), %rdi
callq 0xa558
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0xc8(%rsp), %rdi
callq 0xc984
leaq 0x238(%rsp), %rdi
callq 0xa558
jmp 0x1bf20
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0xa558
jmp 0x1bf2f
movq %rax, %r14
leaq 0x60(%rsp), %rdi
jmp 0x1c0a5
jmp 0x1c0ce
movq %rax, %r14
leaq 0x138(%rsp), %rdi
callq 0xa558
jmp 0x1bf53
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x11c58
leaq 0x8(%rsp), %rdi
callq 0x1e016
jmp 0x1bf6c
movq %rax, %r14
leaq 0xe0(%rsp), %rdi
jmp 0x1bfac
movq %rax, %r14
leaq 0x158(%rsp), %rdi
callq 0xa558
jmp 0x1bf8b
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x11c58
leaq 0x8(%rsp), %rdi
callq 0x1e016
jmp 0x1bfa4
movq %rax, %r14
leaq 0xf0(%rsp), %rdi
callq 0xc984
jmp 0x1bfdd
movq %rax, %r14
leaq 0x178(%rsp), %rdi
callq 0xa558
jmp 0x1bfda
movq %rax, %r14
leaq 0x1b8(%rsp), %rdi
callq 0xa558
jmp 0x1bff5
movq %rax, %r14
movq %r13, %rbx
leaq 0x68(%rsp), %r13
movq %rbx, %rdi
callq 0xc984
movq %r13, %rdi
jmp 0x1c09b
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x11c58
leaq 0x8(%rsp), %rdi
callq 0x1e016
jmp 0x1c020
movq %rax, %r14
leaq 0x198(%rsp), %rdi
callq 0xa558
jmp 0x1bfea
movq %rax, %r14
leaq 0x100(%rsp), %rdi
jmp 0x1c06c
movq %rax, %r14
jmp 0x1bfea
movq %rax, %r14
leaq 0x1d8(%rsp), %rdi
callq 0xa558
jmp 0x1c049
jmp 0x1c0c9
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x11c58
leaq 0x8(%rsp), %rdi
callq 0x1e016
jmp 0x1c064
jmp 0x1c0ce
movq %rax, %r14
leaq 0x110(%rsp), %rdi
callq 0xc984
jmp 0x1c08b
movq %rax, %r14
leaq 0x1f8(%rsp), %rdi
callq 0xa558
jmp 0x1c088
movq %rax, %r14
movq %rbp, %rbx
leaq 0x68(%rsp), %rbp
movq %rbx, %rdi
callq 0xc984
movq %rbp, %rdi
callq 0xc984
leaq 0x10(%rsp), %rdi
callq 0xa558
movq %r14, %rdi
callq 0xa500
movq %rax, %r14
leaq 0x218(%rsp), %rdi
callq 0xa558
jmp 0x1c098
movq %rax, %r14
jmp 0x1c098
movq %rax, %r14
jmp 0x1c0a0
movq %rax, %r14
jmp 0x1c0aa
movq %rax, %r14
leaq 0x120(%rsp), %rdi
callq 0xc984
leaq 0x130(%rsp), %rdi
callq 0xc984
jmp 0x1c0aa