// File: /workspace/github_cpp_makefile_star2_O3/menhits[P]phplus/src/CppProgram.cpp
// Function: CppProgram::declareVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::shared_ptr<TypeBase>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void CppProgram::declareVar(const string& nameIn, Type typeIn, string initialValue)
{
	/*
	CppNameContainer* names=&*activeFunc->namespaceStack.back();
	
	while (names)
	{
		if (names->hasPpMe(nameIn))
			return;
		
		names=names->getParent();
	}
	*/
	
	if (isMain())
	{
		declareGlobal(nameIn, typeIn, initialValue);
		return;
	}
	
	if (activeFunc->namespaceStack.back()->hasPp(nameIn))
	{
		return;
	}
	
	activeFunc->namespaceStack.back()->addPp(nameIn);
	activeFunc->namespaceStack[0]->reserveCpp(ppToCpp(nameIn), true);
	
	activeFunc->varDeclareSource+=getTypeCode(typeIn)+" "+ppToCpp(nameIn);
	if (!initialValue.empty())
	{
		activeFunc->varDeclareSource+=" = "+initialValue;
	}
	activeFunc->varDeclareSource+=";\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movq 0xb8(%rdi), %rax
subq 0xb0(%rdi), %rax
cmpq $0x20, %rax
jne 0x1c43d
movq (%r12), %rax
movq %rax, 0x58(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x1c543
movq 0x7db7c(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x1c53f
incl 0x8(%rax)
jmp 0x1c543
movq 0xa0(%rbx), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rax), %r13
leaq 0x38(%r13), %rdi
movq %r15, %rsi
callq 0x1ec04
leaq 0x40(%r13), %rcx
cmpq %rcx, %rax
jne 0x1c7ac
movq 0x68(%r13), %r13
testq %r13, %r13
jne 0x1c44f
movq 0xa0(%rbx), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rax), %r13
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x5b4b2(%rip), %rsi     # 0x77945
leaq 0x5b4d0(%rip), %rdx     # 0x7796a
leaq 0x8(%rsp), %rdi
callq 0xdfa8
leaq 0x8(%rsp), %rdx
movq %r13, %rdi
movq %r15, %rsi
callq 0x17b94
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1c4c3
callq 0xa2b0
movq 0xa0(%rbx), %rax
movq 0x98(%rax), %rcx
movq (%rcx), %r13
movq 0xa0(%rax), %rax
movq -0x10(%rax), %rsi
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rdx
callq 0x18386
leaq 0x28(%rsp), %rdx
movq %r13, (%rdx)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x1efba
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x1c516
callq 0xa2b0
movq (%r12), %rax
movq %rax, 0x48(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x1c5ad
movq 0x7da73(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x1c5a9
incl 0x8(%rax)
jmp 0x1c5ad
lock
incl 0x8(%rax)
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0xde0c
leaq 0x58(%rsp), %rdx
leaq 0x88(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1c898
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c591
callq 0xa2b0
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x1c7ac
callq 0xdce4
jmp 0x1c7ac
lock
incl 0x8(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
movq %rbx, %rsi
callq 0x1aab2
leaq 0x5b4d3(%rip), %rsi     # 0x77a9c
leaq 0xa8(%rsp), %rdi
callq 0xa560
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1c5fe
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x1c606
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xa0(%rbx), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rax), %rsi
leaq 0x68(%rsp), %rdi
movq %r15, %rdx
callq 0x18386
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x1c65f
movq 0x38(%rsp), %rdi
movq 0x68(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x1c682
leaq 0x78(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x1c67d
movq 0x78(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x1c68e
leaq 0x28(%rsp), %rdi
callq 0xa110
jmp 0x1c69c
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa310
movq %r13, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x1c6bc
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1c6c4
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0xa0(%rbx), %rdi
addq $0x30, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0xa110
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1c70a
callq 0xa2b0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c71d
callq 0xa2b0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c72c
callq 0xa2b0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c742
callq 0xa2b0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x1c751
callq 0xdce4
cmpq $0x0, 0x8(%r14)
je 0x1c795
leaq 0x5e1dc(%rip), %rsi     # 0x7a93b
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xdc11
movq 0xa0(%rbx), %rdi
addq $0x30, %rdi
movq (%r15), %rsi
movq 0x8(%r15), %rdx
callq 0xa110
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1c795
callq 0xa2b0
movq 0xa0(%rbx), %rdi
addq $0x30, %rdi
leaq 0x5df15(%rip), %rsi     # 0x7a6bc
callq 0xa560
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
jne 0x1c85a
jmp 0x1c88f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1c7eb
callq 0xa2b0
jmp 0x1c7eb
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c803
callq 0xa2b0
jmp 0x1c803
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c817
callq 0xa2b0
jmp 0x1c817
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c832
callq 0xa2b0
jmp 0x1c832
movq %rax, %rbx
movq 0x50(%rsp), %rdi
jmp 0x1c885
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
jne 0x1c85a
jmp 0x1c88f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1c88f
callq 0xa2b0
jmp 0x1c88f
movq %rax, %rbx
jmp 0x1c88f
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c880
callq 0xa2b0
jmp 0x1c880
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x1c88f
callq 0xdce4
movq %rbx, %rdi
callq 0xa510
nop