// File: 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:
subq $0x3e8, %rsp            # imm = 0x3E8
movq %rsi, 0x90(%rsp)
movq %rdx, 0x98(%rsp)
movq %rdi, 0x3e0(%rsp)
movq %rsi, 0x3d8(%rsp)
movq %rdx, 0x3d0(%rsp)
movq 0x3e0(%rsp), %rdi
movq %rdi, 0xa0(%rsp)
addq $0x30, %rdi
callq 0x1d730
movb %al, %cl
movb $0x0, 0x3bf(%rsp)
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0xaf(%rsp)
jne 0x3a4c2
jmp 0x3a50b
movq 0xa0(%rsp), %rdi
addq $0x30, %rdi
callq 0x1a6a0
movq %rax, %rsi
leaq 0x3c0(%rsp), %rdi
callq 0x1bb10
movq 0xa0(%rsp), %rsi
movb $0x1, 0x3bf(%rsp)
addq $0x40, %rsi
leaq 0x3c0(%rsp), %rdi
callq 0x3ea40
movb %al, 0xaf(%rsp)
movb 0xaf(%rsp), %al
movb %al, 0x8f(%rsp)
testb $0x1, 0x3bf(%rsp)
jne 0x3a525
jmp 0x3a532
leaq 0x3c0(%rsp), %rdi
callq 0x1bb40
movb 0x8f(%rsp), %al
testb $0x1, %al
jne 0x3a542
jmp 0x3a6c9
leaq 0x357(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0xb690
movq 0x80(%rsp), %rdx
leaq 0x97ce1(%rip), %rsi     # 0xd2247
leaq 0x358(%rsp), %rdi
callq 0xb4c0
jmp 0x3a575
leaq 0x97cc3(%rip), %rsi     # 0xd223f
leaq 0x378(%rsp), %rdi
leaq 0x358(%rsp), %rdx
callq 0x1bcf0
jmp 0x3a593
leaq 0x97cb6(%rip), %rdx     # 0xd2250
leaq 0x398(%rsp), %rdi
leaq 0x378(%rsp), %rsi
callq 0xfa60
jmp 0x3a5b1
xorl %eax, %eax
movl %eax, %esi
leaq 0x330(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0xfbe0
movq 0x78(%rsp), %rcx
leaq 0xdddf0(%rip), %rdi     # 0x1183c3
leaq 0x398(%rsp), %rsi
movl $0x3, %edx
callq 0x34c70
jmp 0x3a5e7
leaq 0x330(%rsp), %rdi
callq 0xfc00
leaq 0x398(%rsp), %rdi
callq 0xb6e8
leaq 0x378(%rsp), %rdi
callq 0xb6e8
leaq 0x358(%rsp), %rdi
callq 0xb6e8
leaq 0x357(%rsp), %rdi
callq 0xb3f0
jmp 0x3b133
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3a6b7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3a6aa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3a69d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0x330(%rsp), %rdi
callq 0xfc00
leaq 0x398(%rsp), %rdi
callq 0xb6e8
leaq 0x378(%rsp), %rdi
callq 0xb6e8
leaq 0x358(%rsp), %rdi
callq 0xb6e8
leaq 0x357(%rsp), %rdi
callq 0xb3f0
jmp 0x3b13b
movq 0xa0(%rsp), %rdi
addq $0x40, %rdi
callq 0x3ea80
movq 0x90(%rsp), %rsi
movq %rax, 0x60(%rsp)
leaq 0x320(%rsp), %rdi
movq %rdi, 0x68(%rsp)
callq 0x1a920
movq 0x98(%rsp), %rsi
leaq 0x310(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0x1a920
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0x9bc60
jmp 0x3a729
leaq 0x310(%rsp), %rdi
callq 0x1a950
leaq 0x320(%rsp), %rdi
callq 0x1a950
movq 0x90(%rsp), %rdi
callq 0x1a660
movq %rax, %rdi
movq (%rdi), %rax
callq *0x20(%rax)
testb $0x1, %al
jne 0x3a762
jmp 0x3ac57
leaq 0x2ef(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0xb690
movq 0x58(%rsp), %rdx
leaq 0x976f9(%rip), %rsi     # 0xd1e79
leaq 0x2f0(%rsp), %rdi
callq 0xb4c0
jmp 0x3a78f
leaq 0x2ef(%rsp), %rdi
callq 0xb3f0
movq 0xa0(%rsp), %rdi
addq $0x40, %rdi
callq 0x3ea80
movq %rax, %rdi
callq 0x9c290
movq %rax, 0x50(%rsp)
jmp 0x3a7bc
movq 0x90(%rsp), %rsi
movq 0x50(%rsp), %rax
movq %rax, 0x2e0(%rsp)
movq 0x2e0(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x2c0(%rsp), %rdi
callq 0x1a920
leaq 0x2a0(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0xb1a0
jmp 0x3a802
movq 0x48(%rsp), %rsi
leaq 0x2d0(%rsp), %rdi
leaq 0x2c0(%rsp), %rdx
leaq 0x2a0(%rsp), %rcx
callq 0xc4b90
jmp 0x3a826
leaq 0x2a0(%rsp), %rdi
callq 0xb6e8
leaq 0x2c0(%rsp), %rdi
callq 0x1a950
movq 0x90(%rsp), %rsi
movq 0x2e0(%rsp), %rax
movq %rax, 0x40(%rsp)
leaq 0x280(%rsp), %rdi
callq 0x1a920
leaq 0x260(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0xb1a0
jmp 0x3a879
movq 0x40(%rsp), %rsi
leaq 0x290(%rsp), %rdi
leaq 0x280(%rsp), %rdx
leaq 0x260(%rsp), %rcx
callq 0xc4cc0
jmp 0x3a89d
leaq 0x260(%rsp), %rdi
callq 0xb6e8
leaq 0x280(%rsp), %rdi
callq 0x1a950
leaq 0x240(%rsp), %rdi
movq %rdi, 0x38(%rsp)
leaq 0x2d0(%rsp), %rsi
callq 0x1ac60
movq 0x38(%rsp), %rsi
leaq 0x250(%rsp), %rdi
callq 0x3ea90
jmp 0x3a8e5
leaq 0x258(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x3ec50
leaq 0x220(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0xb1a0
jmp 0x3a911
movq 0xa0(%rsp), %rdi
leaq 0x258(%rsp), %rsi
leaq 0x220(%rsp), %rdx
callq 0x3b150
jmp 0x3a930
leaq 0x220(%rsp), %rdi
callq 0xb6e8
leaq 0x258(%rsp), %rdi
callq 0x1b3f0
leaq 0x250(%rsp), %rdi
callq 0x3ecb0
leaq 0x240(%rsp), %rdi
callq 0x1acc0
leaq 0x200(%rsp), %rdi
movq %rdi, 0x30(%rsp)
leaq 0x290(%rsp), %rsi
callq 0x1ac60
movq 0x30(%rsp), %rsi
leaq 0x210(%rsp), %rdi
callq 0x3ea90
jmp 0x3a992
leaq 0x218(%rsp), %rdi
leaq 0x210(%rsp), %rsi
callq 0x3ec50
leaq 0x1e0(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0xb1a0
jmp 0x3a9be
movq 0xa0(%rsp), %rdi
leaq 0x218(%rsp), %rsi
leaq 0x1e0(%rsp), %rdx
callq 0x3b150
jmp 0x3a9dd
leaq 0x1e0(%rsp), %rdi
callq 0xb6e8
leaq 0x218(%rsp), %rdi
callq 0x1b3f0
leaq 0x210(%rsp), %rdi
callq 0x3ecb0
leaq 0x200(%rsp), %rdi
callq 0x1acc0
leaq 0x290(%rsp), %rdi
callq 0x1acc0
leaq 0x2d0(%rsp), %rdi
callq 0x1acc0
leaq 0x2f0(%rsp), %rdi
callq 0xb6e8
jmp 0x3ac57
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0x310(%rsp), %rdi
callq 0x1a950
leaq 0x320(%rsp), %rdi
callq 0x1a950
jmp 0x3b13b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0x2ef(%rsp), %rdi
callq 0xb3f0
jmp 0x3b13b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3ac45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3aae6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0x2a0(%rsp), %rdi
callq 0xb6e8
leaq 0x2c0(%rsp), %rdi
callq 0x1a950
jmp 0x3ac45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3ab2f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0x260(%rsp), %rdi
callq 0xb6e8
leaq 0x280(%rsp), %rdi
callq 0x1a950
jmp 0x3ac38
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3aba8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3ab8e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0x220(%rsp), %rdi
callq 0xb6e8
leaq 0x258(%rsp), %rdi
callq 0x1b3f0
leaq 0x250(%rsp), %rdi
callq 0x3ecb0
leaq 0x240(%rsp), %rdi
callq 0x1acc0
jmp 0x3ac2b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3ac1e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3ac04
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0x1e0(%rsp), %rdi
callq 0xb6e8
leaq 0x218(%rsp), %rdi
callq 0x1b3f0
leaq 0x210(%rsp), %rdi
callq 0x3ecb0
leaq 0x200(%rsp), %rdi
callq 0x1acc0
leaq 0x290(%rsp), %rdi
callq 0x1acc0
leaq 0x2d0(%rsp), %rdi
callq 0x1acc0
leaq 0x2f0(%rsp), %rdi
callq 0xb6e8
jmp 0x3b13b
movq 0x98(%rsp), %rdi
callq 0x1a660
movq %rax, %rdi
movq (%rdi), %rax
callq *0x20(%rax)
testb $0x1, %al
jne 0x3ac76
jmp 0x3b133
leaq 0x1bf(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0xb690
movq 0x28(%rsp), %rdx
leaq 0x971e9(%rip), %rsi     # 0xd1e7d
leaq 0x1c0(%rsp), %rdi
callq 0xb4c0
jmp 0x3aca3
leaq 0x1bf(%rsp), %rdi
callq 0xb3f0
movq 0xa0(%rsp), %rdi
addq $0x40, %rdi
callq 0x3ea80
movq %rax, %rdi
callq 0x9c390
movq %rax, 0x20(%rsp)
jmp 0x3acd0
movq 0x98(%rsp), %rsi
movq 0x20(%rsp), %rax
movq %rax, 0x1b0(%rsp)
movq 0x1b0(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x190(%rsp), %rdi
callq 0x1a920
leaq 0x170(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
callq 0xb1a0
jmp 0x3ad16
movq 0x18(%rsp), %rsi
leaq 0x1a0(%rsp), %rdi
leaq 0x190(%rsp), %rdx
leaq 0x170(%rsp), %rcx
callq 0xc4b90
jmp 0x3ad3a
leaq 0x170(%rsp), %rdi
callq 0xb6e8
leaq 0x190(%rsp), %rdi
callq 0x1a950
movq 0x98(%rsp), %rsi
movq 0x1b0(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x150(%rsp), %rdi
callq 0x1a920
leaq 0x130(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
callq 0xb1a0
jmp 0x3ad8d
movq 0x10(%rsp), %rsi
leaq 0x160(%rsp), %rdi
leaq 0x150(%rsp), %rdx
leaq 0x130(%rsp), %rcx
callq 0xc4cc0
jmp 0x3adb1
leaq 0x130(%rsp), %rdi
callq 0xb6e8
leaq 0x150(%rsp), %rdi
callq 0x1a950
leaq 0x110(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0x1a0(%rsp), %rsi
callq 0x1ac60
movq 0x8(%rsp), %rsi
leaq 0x120(%rsp), %rdi
callq 0x3ea90
jmp 0x3adf9
leaq 0x128(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x3ec50
leaq 0xf0(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
callq 0xb1a0
jmp 0x3ae25
movq 0xa0(%rsp), %rdi
leaq 0x128(%rsp), %rsi
leaq 0xf0(%rsp), %rdx
callq 0x3b150
jmp 0x3ae44
leaq 0xf0(%rsp), %rdi
callq 0xb6e8
leaq 0x128(%rsp), %rdi
callq 0x1b3f0
leaq 0x120(%rsp), %rdi
callq 0x3ecb0
leaq 0x110(%rsp), %rdi
callq 0x1acc0
leaq 0xd0(%rsp), %rdi
movq %rdi, (%rsp)
leaq 0x160(%rsp), %rsi
callq 0x1ac60
movq (%rsp), %rsi
leaq 0xe0(%rsp), %rdi
callq 0x3ea90
jmp 0x3aea4
leaq 0xe8(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x3ec50
leaq 0xb0(%rsp), %rdi
leaq 0x1c0(%rsp), %rsi
callq 0xb1a0
jmp 0x3aed0
movq 0xa0(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
callq 0x3b150
jmp 0x3aeef
leaq 0xb0(%rsp), %rdi
callq 0xb6e8
leaq 0xe8(%rsp), %rdi
callq 0x1b3f0
leaq 0xe0(%rsp), %rdi
callq 0x3ecb0
leaq 0xd0(%rsp), %rdi
callq 0x1acc0
leaq 0x160(%rsp), %rdi
callq 0x1acc0
leaq 0x1a0(%rsp), %rdi
callq 0x1acc0
leaq 0x1c0(%rsp), %rdi
callq 0xb6e8
jmp 0x3b133
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0x1bf(%rsp), %rdi
callq 0xb3f0
jmp 0x3b13b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3b124
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3afc5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0x170(%rsp), %rdi
callq 0xb6e8
leaq 0x190(%rsp), %rdi
callq 0x1a950
jmp 0x3b124
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3b00e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0x130(%rsp), %rdi
callq 0xb6e8
leaq 0x150(%rsp), %rdi
callq 0x1a950
jmp 0x3b117
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3b087
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3b06d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0xb6e8
leaq 0x128(%rsp), %rdi
callq 0x1b3f0
leaq 0x120(%rsp), %rdi
callq 0x3ecb0
leaq 0x110(%rsp), %rdi
callq 0x1acc0
jmp 0x3b10a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3b0fd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
jmp 0x3b0e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x348(%rsp)
movl %eax, 0x344(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0xb6e8
leaq 0xe8(%rsp), %rdi
callq 0x1b3f0
leaq 0xe0(%rsp), %rdi
callq 0x3ecb0
leaq 0xd0(%rsp), %rdi
callq 0x1acc0
leaq 0x160(%rsp), %rdi
callq 0x1acc0
leaq 0x1a0(%rsp), %rdi
callq 0x1acc0
leaq 0x1c0(%rsp), %rdi
callq 0xb6e8
jmp 0x3b13b
addq $0x3e8, %rsp            # imm = 0x3E8
retq
movq 0x348(%rsp), %rdi
callq 0xb680
nopl (%rax,%rax)