// File: /workspace/github_c_makefile_star2_O1/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 0x3062
movzbl (%rbx), %eax
addl $-0x7, %eax
cmpl $0x16, %eax
ja 0x45dd
leaq 0x1cfa(%rip), %rcx      # 0x61a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3088
movl (%r15), %edi
callq 0x2ebc
movq 0x8(%rax), %rax
movq %rax, 0x8(%rbx)
jmp 0x44e5
xorl %edi, %edi
callq 0x2e5a
movq %rax, 0x8(%rbx)
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3088
movl (%r15), %edi
jmp 0x4502
xorl %edi, %edi
callq 0x2e5a
movq %rax, 0x8(%rbx)
xorl %edi, %edi
callq 0x2e5a
movl $0x10, %ecx
jmp 0x4579
xorl %edi, %edi
callq 0x2e5a
movq %rax, 0x8(%rbx)
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3088
movl (%r15), %edi
callq 0x2e5a
movq %rax, 0x10(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3088
jmp 0x4564
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3088
xorl %edi, %edi
callq 0x2e5a
movq %rax, 0x10(%rbx)
xorl %edi, %edi
callq 0x2e5a
movq %rax, 0x8(%rbx)
movl (%r15), %edi
callq 0x2ece
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 0x3088
movl (%r15), %edi
callq 0x2ea6
movq 0x10(%rax), %rax
movq %rax, 0x10(%rbx)
xorl %ebp, %ebp
xorl %edi, %edi
callq 0x2e5a
movq %rax, 0x8(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3088
cmpl $0x0, (%r15)
je 0x457d
leaq 0x4(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3088
incl %ebp
cmpl (%rsp), %ebp
jb 0x45c9
jmp 0x457d
movq 0x49ec(%rip), %rdi      # 0x8fd0
leaq 0x1c19(%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 0x1c13(%rip), %rcx      # 0x622d
movq %rcx, 0x8(%rax)
leaq 0x1bf1(%rip), %rcx      # 0x6216
movq %rcx, 0x10(%rax)
leaq 0x4760(%rip), %rsi      # 0x8d90
movq %rax, %rdi
xorl %edx, %edx
callq 0x22d0
nop