// File: /workspace/github_cpp_makefile_star2_O1/menhits[P]phplus/src/Namespace.cpp
// Function: NamespaceData::getType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, std::shared_ptr<TokenData>)
Type NamespaceData::getType(string name, bool throwSourceError, Token tokenForError)
{
	vector<AstNodeBase*> results;
	
	types.get(name, results);
	
	if (results.empty())
	{
		if (parent)
			return parent->getType(name, throwSourceError, tokenForError);
		else if (throwSourceError)
			throw PhplusError("'"+name+"' type tidak ditemukan", SOURCE_ERROR);
		else
			return nullptr;
	}
	else if (results.size()!=1)
	{
		throw PhplusError("namespace has multiple defenitions of the same type '"+name+"'", INTERNAL_ERROR);
	}
	else if (results[0]->getReturnType()->getType()!=TypeBase::METATYPE)
	{
		throw PhplusError("node returning non meta type stored in namespace type map for type '"+name+"'", INTERNAL_ERROR);
	}
	else
	{
		return results[0]->getReturnType()->getSubType();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %r8, %r14
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
leaq 0xe0(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0xdde2
leaq 0xf8(%r12), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x219b6
movq 0xd0(%rsp), %rdi
cmpq %r13, %rdi
je 0x24149
callq 0xa2b0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq %rcx, %rax
je 0x241c9
subq %rax, %rcx
cmpq $0x8, %rcx
jne 0x24293
movq (%rax), %rsi
movq %rsp, %rdi
callq 0x14dfe
movq (%rsp), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movl %eax, %ebp
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2418b
callq 0xdcba
cmpl $0x9, %ebp
jne 0x242ec
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movq %rsp, %rdi
callq 0x14dfe
movq (%rsp), %rsi
movq (%rsi), %rax
movq %rbx, %rdi
callq *0x48(%rax)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2426f
callq 0xdcba
jmp 0x2426f
movq 0x30(%r12), %r12
testq %r12, %r12
je 0x2421d
leaq 0xc0(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0xdde2
movq (%r14), %rax
movq %rax, 0x40(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0x24232
movq 0x74d95(%rip), %rcx     # 0x98fa8
cmpb $0x0, (%rcx)
je 0x2422e
incl 0x8(%rax)
jmp 0x24232
testb %bpl, %bpl
jne 0x24342
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
jmp 0x2426f
lock
incl 0x8(%rax)
movzbl %bpl, %ecx
leaq 0xb0(%rsp), %rdx
leaq 0x40(%rsp), %r8
movq %rbx, %rdi
movq %r12, %rsi
callq 0x240ca
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2425d
callq 0xdcba
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x2426f
callq 0xa2b0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x2427e
callq 0xa2b0
movq %rbx, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x52f76(%rip), %rsi     # 0x7721d
movq %rsp, %rdi
movq %r15, %rdx
callq 0xdbef
leaq 0x56ff1(%rip), %rsi     # 0x7b2aa
movq %rsp, %rdi
callq 0xa560
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x2439b
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x243ab
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x52f53(%rip), %rsi     # 0x77253
movq %rsp, %rdi
movq %r15, %rdx
callq 0xdbef
leaq 0x56f98(%rip), %rsi     # 0x7b2aa
movq %rsp, %rdi
callq 0xa560
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x24402
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x2440f
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x56f54(%rip), %rsi     # 0x7b2aa
movq %rsp, %rdi
movq %r15, %rdx
callq 0xdbef
leaq 0x52e9e(%rip), %rsi     # 0x77206
movq %rsp, %rdi
callq 0xa560
leaq 0xa0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x24463
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x24476
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
movq 0x8(%rax), %rdx
leaq 0x70(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
leaq 0x100(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bpl
movq %r14, %rdi
movl $0x3, %edx
callq 0x200e4
xorl %ebp, %ebp
leaq 0x7224a(%rip), %rsi     # 0x96638
leaq -0xfafd(%rip), %rdx     # 0x148f8
movq %r14, %rdi
callq 0xa4f0
jmp 0x244c8
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
movq 0x8(%rax), %rdx
leaq 0x50(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
leaq 0xf0(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bpl
movq %r14, %rdi
movl $0x3, %edx
callq 0x200e4
xorl %ebp, %ebp
leaq 0x721e6(%rip), %rsi     # 0x96638
leaq -0xfb61(%rip), %rdx     # 0x148f8
movq %r14, %rdi
callq 0xa4f0
jmp 0x244c8
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
movq 0x8(%rax), %rdx
leaq 0x90(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
leaq 0x110(%rsp), %rcx
movaps %xmm0, (%rcx)
movb $0x1, %bpl
movq %r14, %rdi
xorl %edx, %edx
callq 0x200e4
xorl %ebp, %ebp
leaq 0x7217f(%rip), %rsi     # 0x96638
leaq -0xfbc8(%rip), %rdx     # 0x148f8
movq %r14, %rdi
callq 0xa4f0
movq %rax, %rbx
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x244dd
callq 0xdcba
movq 0x90(%rsp), %rdi
jmp 0x24523
jmp 0x2452f
jmp 0x24568
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x24500
callq 0xdcba
movq 0x50(%rsp), %rdi
jmp 0x24523
jmp 0x2452f
movq %rax, %rbx
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x2451e
callq 0xdcba
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x24535
callq 0xa2b0
jmp 0x24535
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2456e
callq 0xa2b0
jmp 0x2456e
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2455c
callq 0xdcba
movq 0xb0(%rsp), %rdi
jmp 0x245a2
jmp 0x24568
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x245b1
movq %r14, %rdi
callq 0xa240
jmp 0x245b1
jmp 0x24581
jmp 0x245ae
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x245b1
callq 0xdcba
jmp 0x245b1
jmp 0x245ae
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %r13, %rdi
je 0x245b1
callq 0xa2b0
jmp 0x245b1
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x245c0
callq 0xa2b0
movq %rbx, %rdi
callq 0xa510