// File: /workspace/github_c_makefile_star2_O2/FirestonnneTFM[P]tfm_key_parser/src/multiname_info.cpp
// Function: multiname_info::load(abc_stream&)
void multiname_info::load(abc_stream &stream) {
	target = nullptr;
	stream >> kind;
	uint32_t index;
	switch (kind) {
	case CONSTANT_QName:
	case CONSTANT_QNameA:
		stream >> index;
		ns_str = abc_file::get_namespace(index)->str;
		stream >> index;
		str = abc_file::get_str(index);
		break;
	case CONSTANT_RTQName:
	case CONSTANT_RTQNameA:
		ns_str = abc_file::get_str(0);
		stream >> index;
		str = abc_file::get_str(index);
		break;
	case CONSTANT_RTQNameL:
	case CONSTANT_RTQNameLA:
		ns_str = abc_file::get_str(0);
		str = abc_file::get_str(0);
		break;
	case CONSTANT_Multiname:
	case CONSTANT_MultinameA:
		ns_str = abc_file::get_str(0);
		stream >> index;
		str = abc_file::get_str(index);
		stream >> index;
		mns = abc_file::get_namespace_set(index);
		break;
	case CONSTANT_MultinameL:
	case CONSTANT_MultinameLA:
		stream >> index;
		str = abc_file::get_str(0);
		ns_str = abc_file::get_str(0);
		mns = abc_file::get_namespace_set(index);
		break;
	case CONSTANT_Typename:
		stream >> index;
		str = abc_file::get_multiname(index)->str;
		ns_str = abc_file::get_str(0);
		stream >> index;
		for (unsigned i = 0; i < index; ++i) {
			uint32_t dummy;
			stream >> dummy;
		}
		break;
	default:
		std::cout << "multiname kind = " << +kind << std::endl;
		fatal("Illegal multiname kind");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
andq $0x0, 0x18(%rdi)
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x3036
movzbl (%rbx), %eax
addl $-0x7, %eax
cmpl $0x16, %eax
ja 0x454f
leaq 0x1d7d(%rip), %rcx      # 0x61a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
movl (%r15), %edi
callq 0x2d66
movq 0x8(%rax), %rax
movq %rax, 0x8(%rbx)
jmp 0x4462
xorl %edi, %edi
callq 0x2d08
movq %rax, 0x8(%rbx)
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
movl (%r15), %edi
jmp 0x447f
xorl %edi, %edi
callq 0x2d08
movq %rax, 0x8(%rbx)
xorl %edi, %edi
callq 0x2d08
pushq $0x10
jmp 0x44f0
xorl %edi, %edi
callq 0x2d08
movq %rax, 0x8(%rbx)
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
movl (%r15), %edi
callq 0x2d08
movq %rax, 0x10(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
jmp 0x44de
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
xorl %edi, %edi
callq 0x2d08
movq %rax, 0x10(%rbx)
xorl %edi, %edi
callq 0x2d08
movq %rax, 0x8(%rbx)
movl (%r15), %edi
callq 0x2d78
movl %eax, %ecx
movq %rdx, %rax
movl %ecx, 0x20(%rbx)
pushq $0x28
popq %rcx
movq %rax, (%rbx,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
movl (%r15), %edi
callq 0x2d54
movq 0x10(%rax), %rax
movq %rax, 0x10(%rbx)
xorl %ebp, %ebp
xorl %edi, %edi
callq 0x2d08
movq %rax, 0x8(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
leaq 0x4(%rsp), %rbx
cmpl (%rsp), %ebp
jae 0x44f5
movq %r14, %rdi
movq %rbx, %rsi
callq 0x305c
incl %ebp
jmp 0x453b
movq 0x4a7a(%rip), %rdi      # 0x8fd0
leaq 0x1ca7(%rip), %rsi      # 0x6204
callq 0x2180
movzbl (%rbx), %esi
movq %rax, %rdi
callq 0x2290
movq %rax, %rdi
callq 0x20e0
pushq $0x18
popq %rdi
callq 0x20f0
movl $0x42, (%rax)
leaq 0x1ca3(%rip), %rcx      # 0x622d
movq %rcx, 0x8(%rax)
leaq 0x1c81(%rip), %rcx      # 0x6216
movq %rcx, 0x10(%rax)
leaq 0x47f0(%rip), %rsi      # 0x8d90
movq %rax, %rdi
xorl %edx, %edx
callq 0x2280
nop