// File: /workspace/github_c_makefile_star2_O3/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
movq $0x0, 0x18(%rdi)
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x307a
movzbl (%rbx), %eax
addl $-0x7, %eax
cmpl $0x16, %eax
ja 0x4601
leaq 0x1cd6(%rip), %rcx      # 0x61a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movl (%r15), %edi
callq 0x2ed4
movq 0x8(%rax), %rax
movq %rax, 0x8(%rbx)
jmp 0x4509
xorl %edi, %edi
callq 0x2e72
movq %rax, 0x8(%rbx)
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movl (%r15), %edi
jmp 0x4526
xorl %edi, %edi
callq 0x2e72
movq %rax, 0x8(%rbx)
xorl %edi, %edi
callq 0x2e72
movl $0x10, %ecx
jmp 0x459d
xorl %edi, %edi
callq 0x2e72
movq %rax, 0x8(%rbx)
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movl (%r15), %edi
callq 0x2e72
movq %rax, 0x10(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
jmp 0x4588
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
xorl %edi, %edi
callq 0x2e72
movq %rax, 0x10(%rbx)
xorl %edi, %edi
callq 0x2e72
movq %rax, 0x8(%rbx)
movl (%r15), %edi
callq 0x2ee6
movl %eax, %ecx
movq %rdx, %rax
movl %ecx, 0x20(%rbx)
movl $0x28, %ecx
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 0x30a0
movl (%r15), %edi
callq 0x2ebe
movq 0x10(%rax), %rax
movq %rax, 0x10(%rbx)
xorl %ebp, %ebp
xorl %edi, %edi
callq 0x2e72
movq %rax, 0x8(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
cmpl $0x0, (%r15)
je 0x45a1
leaq 0x4(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x30a0
incl %ebp
cmpl (%rsp), %ebp
jb 0x45ed
jmp 0x45a1
movq 0x49c8(%rip), %rdi      # 0x8fd0
leaq 0x1bf5(%rip), %rsi      # 0x6204
callq 0x21c0
movzbl (%rbx), %esi
movq %rax, %rdi
callq 0x22e0
movq %rax, %rdi
callq 0x20f0
movl $0x18, %edi
callq 0x2100
movl $0x42, (%rax)
leaq 0x1bef(%rip), %rcx      # 0x622d
movq %rcx, 0x8(%rax)
leaq 0x1bcd(%rip), %rcx      # 0x6216
movq %rcx, 0x10(%rax)
leaq 0x473c(%rip), %rsi      # 0x8d90
movq %rax, %rdi
xorl %edx, %edx
callq 0x22d0
nop