// File: /workspace/github_cpp_makefile_star2_O3/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 0xde0c
leaq 0xf8(%r12), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x21c40
movq 0xd0(%rsp), %rdi
cmpq %r13, %rdi
je 0x2435d
callq 0xa2b0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq %rcx, %rax
je 0x243dd
subq %rax, %rcx
cmpq $0x8, %rcx
jne 0x244a7
movq (%rax), %rsi
movq %rsp, %rdi
callq 0x15058
movq (%rsp), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movl %eax, %ebp
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2439f
callq 0xdce4
cmpl $0x9, %ebp
jne 0x24500
movq 0x20(%rsp), %rax
movq (%rax), %rsi
movq %rsp, %rdi
callq 0x15058
movq (%rsp), %rsi
movq (%rsi), %rax
movq %rbx, %rdi
callq *0x48(%rax)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x24483
callq 0xdce4
jmp 0x24483
movq 0x30(%r12), %r12
testq %r12, %r12
je 0x24431
leaq 0xc0(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0xde0c
movq (%r14), %rax
movq %rax, 0x40(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0x24446
movq 0x75b81(%rip), %rcx     # 0x99fa8
cmpb $0x0, (%rcx)
je 0x24442
incl 0x8(%rax)
jmp 0x24446
testb %bpl, %bpl
jne 0x24556
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
jmp 0x24483
lock
incl 0x8(%rax)
movzbl %bpl, %ecx
leaq 0xb0(%rsp), %rdx
leaq 0x40(%rsp), %r8
movq %rbx, %rdi
movq %r12, %rsi
callq 0x242de
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x24471
callq 0xdce4
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x24483
callq 0xa2b0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x24492
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 0x53d62(%rip), %rsi     # 0x7821d
movq %rsp, %rdi
movq %r15, %rdx
callq 0xdc11
leaq 0x57d9d(%rip), %rsi     # 0x7c26a
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 0x245af
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x245bf
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x53d3f(%rip), %rsi     # 0x78253
movq %rsp, %rdi
movq %r15, %rdx
callq 0xdc11
leaq 0x57d44(%rip), %rsi     # 0x7c26a
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 0x24616
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x24623
movl $0x38, %edi
callq 0xa1b0
movq %rax, %r14
leaq 0x57d00(%rip), %rsi     # 0x7c26a
movq %rsp, %rdi
movq %r15, %rdx
callq 0xdc11
leaq 0x53c8a(%rip), %rsi     # 0x78206
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 0x24677
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x2468a
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 0x203f4
xorl %ebp, %ebp
leaq 0x73036(%rip), %rsi     # 0x97638
leaq -0xfae3(%rip), %rdx     # 0x14b26
movq %r14, %rdi
callq 0xa4f0
jmp 0x246dc
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 0x203f4
xorl %ebp, %ebp
leaq 0x72fd2(%rip), %rsi     # 0x97638
leaq -0xfb47(%rip), %rdx     # 0x14b26
movq %r14, %rdi
callq 0xa4f0
jmp 0x246dc
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 0x203f4
xorl %ebp, %ebp
leaq 0x72f6b(%rip), %rsi     # 0x97638
leaq -0xfbae(%rip), %rdx     # 0x14b26
movq %r14, %rdi
callq 0xa4f0
movq %rax, %rbx
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x246f1
callq 0xdce4
movq 0x90(%rsp), %rdi
jmp 0x2473a
jmp 0x2475e
jmp 0x24794
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x24717
callq 0xdce4
movq 0x50(%rsp), %rdi
jmp 0x2473a
jmp 0x2475e
movq %rax, %rbx
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x24735
callq 0xdce4
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0x24744
callq 0xa2b0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24757
callq 0xa2b0
testb %bpl, %bpl
jne 0x24797
jmp 0x247d5
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24797
callq 0xa2b0
jmp 0x24797
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x24788
callq 0xdce4
movq 0xb0(%rsp), %rdi
jmp 0x247c6
jmp 0x24794
movq %rax, %rbx
movq %r14, %rdi
callq 0xa240
jmp 0x247d5
jmp 0x247a5
jmp 0x247d2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x247d5
callq 0xdce4
jmp 0x247d5
jmp 0x247d2
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %r13, %rdi
je 0x247d5
callq 0xa2b0
jmp 0x247d5
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x247e4
callq 0xa2b0
movq %rbx, %rdi
callq 0xa510