// File: /workspace/github_cpp_makefile_star2_O1/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 0x1c129
movq (%r12), %rax
movq %rax, 0x58(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x1c21d
movq 0x7ce90(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x1c219
incl 0x8(%rax)
jmp 0x1c21d
movq 0xa0(%rbx), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rax), %rdi
movq %r15, %rsi
callq 0x17f98
testb %al, %al
jne 0x1c487
movq 0xa0(%rbx), %rax
movq 0xa0(%rax), %rax
movq -0x10(%rax), %r13
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x5a7d8(%rip), %rsi     # 0x76945
leaq 0x5a7f6(%rip), %rdx     # 0x7696a
leaq 0x8(%rsp), %rdi
callq 0xdf6a
leaq 0x8(%rsp), %rdx
movq %r13, %rdi
movq %r15, %rsi
callq 0x1790e
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1c19d
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 0x180c6
leaq 0x28(%rsp), %rdx
movq %r13, (%rdx)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x1ec52
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x1c1f0
callq 0xa2b0
movq (%r12), %rax
movq %rax, 0x48(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x1c287
movq 0x7cd99(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x1c283
incl 0x8(%rax)
jmp 0x1c287
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 0xdde2
leaq 0x58(%rsp), %rdx
leaq 0x88(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1c572
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c26b
callq 0xa2b0
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x1c487
callq 0xdcba
jmp 0x1c487
lock
incl 0x8(%rax)
leaq 0xa8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
movq %rbx, %rsi
callq 0x1a7f4
leaq 0x5a7f9(%rip), %rsi     # 0x76a9c
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 0x1c2d8
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x1c2e0
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 0x180c6
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x1c339
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x1c358
leaq 0x78(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x1c353
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x1c369
movq 0x68(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0xa110
jmp 0x1c377
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 0x1c397
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1c39f
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 0x1c3e5
callq 0xa2b0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c3f8
callq 0xa2b0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c407
callq 0xa2b0
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c41d
callq 0xa2b0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x1c42c
callq 0xdcba
cmpq $0x0, 0x8(%r14)
je 0x1c470
leaq 0x5d541(%rip), %rsi     # 0x7997b
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xdbef
movq 0xa0(%rbx), %rdi
addq $0x30, %rdi
movq (%r15), %rsi
movq 0x8(%r15), %rdx
callq 0xa110
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1c470
callq 0xa2b0
movq 0xa0(%rbx), %rdi
addq $0x30, %rdi
leaq 0x5d27a(%rip), %rsi     # 0x796fc
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 0x1c535
jmp 0x1c56a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1c4c6
callq 0xa2b0
jmp 0x1c4c6
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c4de
callq 0xa2b0
jmp 0x1c4de
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c4f2
callq 0xa2b0
jmp 0x1c4f2
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c50d
callq 0xa2b0
jmp 0x1c50d
movq %rax, %rbx
movq 0x50(%rsp), %rdi
jmp 0x1c560
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
jne 0x1c535
jmp 0x1c56a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1c56a
callq 0xa2b0
jmp 0x1c56a
movq %rax, %rbx
jmp 0x1c56a
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x1c55b
callq 0xa2b0
jmp 0x1c55b
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x1c56a
callq 0xdcba
movq %rbx, %rdi
callq 0xa510