// File: /workspace/github_cpp_makefile_star2_O1/menhits[P]phplus/src/Namespace.cpp
// Function: NamespaceData::addVar(std::shared_ptr<TypeBase>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Action NamespaceData::addVar(Type type, string name)
{
	size_t offset=stackFrame->getSize();
	stackFrame->addMember(type);
	
	Action getAction;
	Action setAction;
	Action copyAction;
	
	Namespace top=shared_from_this();
	
	while(top->parent)
	{
		top=top->parent;
	}
	
	if (stackFrame!=top->stackFrame)
	{
		getAction=varGetAction(offset, type, name);
		setAction=varSetAction(offset, type, name);
	}
	else
	{
		getAction=globalGetAction(offset, type, name);
		setAction=globalSetAction(offset, type, name);
	}
	
	copyAction=getCopier(type);
	
	if (copyAction)
	{
		dynamicActions.add(name, AstActionWrapper::make(branchAction(voidAction, copyAction, getAction)));
	}
	else
	{
		dynamicActions.add(name, AstActionWrapper::make(getAction));
	}
	
	dynamicActions.add(name, AstActionWrapper::make(setAction));
	
	Action destructor=getDestroyer(type);
	
	if (destructor)
	{
		destructorActions.push_back(branchAction(voidAction, destructor, getAction));
	}
	
	return setAction;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rcx, %rbp
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, 0x20(%rsp)
movq 0x40(%rsi), %rdi
movq 0x18(%rdi), %rbx
movq (%rdx), %rax
movq %rax, 0x138(%rsp)
movq 0x8(%rdx), %rax
movq %rax, 0x140(%rsp)
testq %rax, %rax
je 0x231a8
movq 0x75e0e(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x231a4
incl 0x8(%rax)
jmp 0x231a8
lock
incl 0x8(%rax)
leaq 0x138(%rsp), %rsi
callq 0x524b8
movq 0x140(%rsp), %rdi
testq %rdi, %rdi
je 0x231c7
callq 0xdcba
xorps %xmm0, %xmm0
movq 0x20(%rsp), %rax
movups %xmm0, (%rax)
leaq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0x26902
movq 0x48(%rsp), %rsi
movq 0x30(%rsi), %rax
testq %rax, %rax
je 0x23211
leaq 0x50(%rsp), %r14
movq %rax, 0x48(%rsp)
addq $0x38, %rsi
movq %r14, %rdi
callq 0xde72
movq 0x48(%rsp), %rsi
movq 0x30(%rsi), %rax
testq %rax, %rax
jne 0x231f2
movq 0x40(%r15), %rax
cmpq 0x40(%rsi), %rax
je 0x23249
movq (%r13), %rax
movq %rax, 0x128(%rsp)
movq 0x8(%r13), %rax
movq %rax, 0x130(%rsp)
testq %rax, %rax
je 0x23286
movq 0x75d69(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x23282
incl 0x8(%rax)
jmp 0x23286
movq (%r13), %rax
movq %rax, 0x108(%rsp)
movq 0x8(%r13), %rax
movq %rax, 0x110(%rsp)
testq %rax, %rax
je 0x233d3
movq 0x75d37(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x233cf
incl 0x8(%rax)
jmp 0x233d3
lock
incl 0x8(%rax)
leaq 0x238(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x228(%rsp), %rdi
callq 0xdde2
movq %rsp, %rdi
leaq 0x128(%rsp), %rdx
leaq 0x228(%rsp), %rcx
movq %rbx, %rsi
callq 0x6c498
movq (%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x8(%rsp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x232ea
callq 0xdcba
movq 0x228(%rsp), %rdi
cmpq %r12, %rdi
je 0x232fc
callq 0xa2b0
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x2330e
callq 0xdcba
movq (%r13), %rax
movq %rax, 0x118(%rsp)
movq 0x8(%r13), %rax
movq %rax, 0x120(%rsp)
testq %rax, %rax
je 0x23340
movq 0x75c76(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2333c
incl 0x8(%rax)
jmp 0x23340
lock
incl 0x8(%rax)
leaq 0x218(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x208(%rsp), %rdi
callq 0xdde2
movq %rsp, %rdi
leaq 0x118(%rsp), %rdx
leaq 0x208(%rsp), %rcx
movq %rbx, %rsi
callq 0x6c5a8
movaps (%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rdi
movups %xmm0, (%rax)
testq %rdi, %rdi
je 0x233a1
callq 0xdcba
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x233b0
callq 0xdcba
movq 0x208(%rsp), %rdi
cmpq %r12, %rdi
je 0x233c2
callq 0xa2b0
movq 0x120(%rsp), %rdi
jmp 0x23517
lock
incl 0x8(%rax)
leaq 0x1f8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x1e8(%rsp), %rdi
callq 0xdde2
movq %rsp, %rdi
leaq 0x108(%rsp), %rdx
leaq 0x1e8(%rsp), %rcx
movq %rbx, %rsi
callq 0x6c6b8
movq (%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x8(%rsp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x23437
callq 0xdcba
movq 0x1e8(%rsp), %rdi
cmpq %r12, %rdi
je 0x23449
callq 0xa2b0
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x2345b
callq 0xdcba
movq (%r13), %rax
movq %rax, 0xf8(%rsp)
movq 0x8(%r13), %rax
movq %rax, 0x100(%rsp)
testq %rax, %rax
je 0x2348d
movq 0x75b29(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x23489
incl 0x8(%rax)
jmp 0x2348d
lock
incl 0x8(%rax)
leaq 0x1d8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x1c8(%rsp), %rdi
callq 0xdde2
movq %rsp, %rdi
leaq 0xf8(%rsp), %rdx
leaq 0x1c8(%rsp), %rcx
movq %rbx, %rsi
callq 0x6c7c8
movaps (%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, (%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rdi
movups %xmm0, (%rax)
testq %rdi, %rdi
je 0x234ee
callq 0xdcba
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x234fd
callq 0xdcba
movq 0x1c8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2350f
callq 0xa2b0
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x23521
callq 0xdcba
movq (%r13), %rax
movq %rax, 0xe8(%rsp)
movq 0x8(%r13), %rax
movq %rax, 0xf0(%rsp)
testq %rax, %rax
je 0x23553
movq 0x75a63(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2354f
incl 0x8(%rax)
jmp 0x23553
lock
incl 0x8(%rax)
movq %rsp, %rdi
leaq 0xe8(%rsp), %rdx
movq %r15, %rsi
callq 0x23dba
movq (%rsp), %r12
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2358a
callq 0xdcba
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x2359c
callq 0xdcba
leaq 0x88(%r15), %rbx
testq %r12, %r12
je 0x23600
leaq 0x178(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rdi
callq 0xdde2
leaq 0x75d9d(%rip), %rax     # 0x99370
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0xd8(%rsp)
movq %rax, 0xe0(%rsp)
testq %rax, %rax
je 0x23660
movq 0x759b2(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2365c
incl 0x8(%rax)
jmp 0x23660
leaq 0x1b8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x1a8(%rsp), %rdi
callq 0xdde2
movq 0x40(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq %r14, 0xb0(%rsp)
testq %r14, %r14
je 0x23a57
movq 0x7595e(%rip), %rax     # 0x98fa8
cmpb $0x0, (%rax)
je 0x23a52
incl 0x8(%r14)
jmp 0x23a57
lock
incl 0x8(%rax)
movq %r12, 0xc8(%rsp)
movq 0x18(%rsp), %rcx
movq %rcx, 0xd0(%rsp)
testq %rcx, %rcx
je 0x2368f
movq 0x75927(%rip), %rax     # 0x98fa8
cmpb $0x0, (%rax)
je 0x2368b
incl 0x8(%rcx)
jmp 0x2368f
lock
incl 0x8(%rcx)
movq 0x40(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq %r14, 0xc0(%rsp)
testq %r14, %r14
je 0x236c0
movq 0x758f8(%rip), %rax     # 0x98fa8
cmpb $0x0, (%rax)
je 0x236bb
incl 0x8(%r14)
jmp 0x236c0
lock
incl 0x8(%r14)
leaq 0x158(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
leaq 0xb8(%rsp), %rcx
callq 0x612e8
movq %rsp, %rdi
leaq 0x158(%rsp), %rsi
callq 0x25d58
movq (%rsp), %rax
movq $0x0, (%rsp)
leaq 0x38(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x168(%rsp), %rsi
movq %rbx, %rdi
callq 0x218f4
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0x2372d
leaq 0x38(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x38(%rsp)
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x23747
movq %rsp, %rdi
callq 0x26030
movq $0x0, (%rsp)
movq 0x160(%rsp), %rdi
testq %rdi, %rdi
je 0x23761
callq 0xdcba
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x23773
callq 0xdcba
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x23785
callq 0xdcba
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x23797
callq 0xdcba
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x237b1
callq 0xa2b0
leaq 0x198(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x188(%rsp), %rdi
callq 0xdde2
movq 0x20(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x98(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0xa0(%rsp)
testq %rax, %rax
je 0x2380c
movq 0x757aa(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x23808
incl 0x8(%rax)
jmp 0x2380c
lock
incl 0x8(%rax)
movq %rsp, %rdi
leaq 0x98(%rsp), %rsi
callq 0x25d58
movq (%rsp), %rax
movq $0x0, (%rsp)
leaq 0x28(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x188(%rsp), %rsi
movq %rbx, %rdi
callq 0x218f4
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x23854
leaq 0x28(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x28(%rsp)
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x2386e
movq %rsp, %rdi
callq 0x26030
movq $0x0, (%rsp)
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x23888
callq 0xdcba
movq 0x188(%rsp), %rdi
cmpq %r12, %rdi
je 0x2389a
callq 0xa2b0
movq (%r13), %rax
movq %rax, 0x88(%rsp)
movq 0x8(%r13), %rax
movq %rax, 0x90(%rsp)
testq %rax, %rax
movq 0x18(%rsp), %rbx
je 0x238d1
movq 0x756e5(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x238cd
incl 0x8(%rax)
jmp 0x238d1
lock
incl 0x8(%rax)
movq %rsp, %rdi
leaq 0x88(%rsp), %rdx
movq %r15, %rsi
callq 0x23f42
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x238f6
callq 0xdcba
cmpq $0x0, (%rsp)
je 0x23a03
leaq 0x75a68(%rip), %rax     # 0x99370
movq (%rax), %rcx
movq 0x8(%rax), %rax
movq %rcx, 0x78(%rsp)
movq %rax, 0x80(%rsp)
testq %rax, %rax
je 0x23936
movq 0x75680(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x23932
incl 0x8(%rax)
jmp 0x23936
lock
incl 0x8(%rax)
movq (%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x68(%rsp)
movq %rax, 0x70(%rsp)
testq %rax, %rax
je 0x23963
movq 0x75653(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2395f
incl 0x8(%rax)
jmp 0x23963
lock
incl 0x8(%rax)
movq 0x40(%rsp), %rax
movq %rax, 0x58(%rsp)
movq %r14, 0x60(%rsp)
testq %r14, %r14
je 0x2398e
movq 0x7562a(%rip), %rax     # 0x98fa8
cmpb $0x0, (%rax)
je 0x23989
incl 0x8(%r14)
jmp 0x2398e
lock
incl 0x8(%r14)
leaq 0x148(%rsp), %rdi
leaq 0x78(%rsp), %rsi
leaq 0x68(%rsp), %rdx
leaq 0x58(%rsp), %rcx
callq 0x612e8
addq $0x130, %r15            # imm = 0x130
leaq 0x148(%rsp), %rsi
movq %r15, %rdi
callq 0x174f8
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0x239d3
callq 0xdcba
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x239e2
callq 0xdcba
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x239f1
callq 0xdcba
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x23a03
callq 0xdcba
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x23a12
callq 0xdcba
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x23a21
callq 0xdcba
testq %rbx, %rbx
je 0x23a2e
movq %rbx, %rdi
callq 0xdcba
testq %r14, %r14
je 0x23a3b
movq %r14, %rdi
callq 0xdcba
movq 0x20(%rsp), %rax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
lock
incl 0x8(%r14)
movq %rsp, %rdi
leaq 0xa8(%rsp), %rsi
callq 0x25d58
movq (%rsp), %rax
movq $0x0, (%rsp)
leaq 0x30(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x1a8(%rsp), %rsi
movq %rbx, %rdi
callq 0x218f4
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0x23a9f
leaq 0x30(%rsp), %rdi
callq 0x168f8
movq $0x0, 0x30(%rsp)
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x23ab9
movq %rsp, %rdi
callq 0x26030
movq $0x0, (%rsp)
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x23ad3
callq 0xdcba
movq 0x1a8(%rsp), %rdi
cmpq %r12, %rdi
jne 0x237ac
jmp 0x237b1
movq %rax, %r15
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0x23b00
leaq 0x30(%rsp), %rdi
callq 0x168f8
leaq 0x30(%rsp), %rdi
movq %rsp, %rsi
callq 0xa703
jmp 0x23b12
movq %rax, %r15
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x23b24
callq 0xdcba
movq 0x1a8(%rsp), %rdi
jmp 0x23d23
movq %rax, %r15
movq 0x1c8(%rsp), %rdi
cmpq %r12, %rdi
je 0x23b4b
callq 0xa2b0
jmp 0x23b4b
movq %rax, %r15
movq 0x100(%rsp), %rdi
jmp 0x23d3a
movq %rax, %r15
movq 0x1e8(%rsp), %rdi
cmpq %r12, %rdi
je 0x23b72
callq 0xa2b0
jmp 0x23b72
movq %rax, %r15
movq 0x110(%rsp), %rdi
jmp 0x23cb0
movq %rax, %r15
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0x23b99
callq 0xdcba
jmp 0x23b99
movq %rax, %r15
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x23ba8
callq 0xdcba
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x23bb7
callq 0xdcba
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x23bc9
callq 0xdcba
movq 0x8(%rsp), %rdi
jmp 0x23ccd
movq %rax, %r15
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0x23bea
leaq 0x38(%rsp), %rdi
callq 0x168f8
leaq 0x38(%rsp), %rdi
movq %rsp, %rsi
callq 0xa6e5
jmp 0x23bfc
movq %rax, %r15
movq 0x160(%rsp), %rdi
testq %rdi, %rdi
je 0x23c13
callq 0xdcba
jmp 0x23c13
movq %rax, %r15
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x23c25
callq 0xdcba
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x23c37
callq 0xdcba
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x23c49
callq 0xdcba
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
jne 0x23d28
jmp 0x23d70
movq %rax, %r15
movq 0x208(%rsp), %rdi
cmpq %r12, %rdi
je 0x23c81
callq 0xa2b0
jmp 0x23c81
movq %rax, %r15
movq 0x120(%rsp), %rdi
jmp 0x23d3a
movq %rax, %r15
movq 0x228(%rsp), %rdi
cmpq %r12, %rdi
je 0x23ca8
callq 0xa2b0
jmp 0x23ca8
movq %rax, %r15
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x23cba
callq 0xdcba
xorl %r14d, %r14d
jmp 0x23d44
movq %rax, %r15
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x23d70
callq 0xdcba
jmp 0x23d70
movq %rax, %r15
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x23cf7
leaq 0x28(%rsp), %rdi
callq 0x168f8
leaq 0x28(%rsp), %rdi
movq %rsp, %rsi
callq 0xa721
jmp 0x23d09
movq %rax, %r15
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x23d1b
callq 0xdcba
movq 0x188(%rsp), %rdi
cmpq %r12, %rdi
je 0x23d70
callq 0xa2b0
jmp 0x23d70
movq %rax, %r15
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x23d44
callq 0xdcba
movq $0x0, 0x18(%rsp)
jmp 0x23d70
movq %rax, %r15
xorl %r14d, %r14d
movq $0x0, 0x18(%rsp)
jmp 0x23d7f
movq %rax, %r15
movq 0x140(%rsp), %r14
jmp 0x23da4
movq %rax, %r15
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x23d7f
callq 0xdcba
cmpq $0x0, 0x18(%rsp)
je 0x23d91
movq 0x18(%rsp), %rdi
callq 0xdcba
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0x23da4
callq 0xdcba
testq %r14, %r14
je 0x23db1
movq %r14, %rdi
callq 0xdcba
movq %r15, %rdi
callq 0xa510
nop