// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0x60(%rbp)
movq $0x0, 0x18(%rsi)
movq -0x10(%rbp), %rdi
callq 0x4370
movq -0x60(%rbp), %rax
movzbl (%rax), %eax
addl $-0x7, %eax
movl %eax, %ecx
movq %rcx, -0x58(%rbp)
subl $0x16, %eax
ja 0x74e2
movq -0x58(%rbp), %rax
leaq 0x3203(%rip), %rcx      # 0xa500
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl -0x14(%rbp), %edi
callq 0x3600
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl -0x14(%rbp), %edi
callq 0x3510
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x756c
xorl %edi, %edi
callq 0x3510
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl -0x14(%rbp), %edi
callq 0x3510
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x756c
xorl %edi, %edi
callq 0x3510
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x8(%rax)
xorl %edi, %edi
callq 0x3510
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x756c
xorl %edi, %edi
callq 0x3510
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl -0x14(%rbp), %edi
callq 0x3510
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl -0x14(%rbp), %edi
callq 0x3630
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, -0x28(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x28(%rbp), %rcx
movq %rcx, 0x20(%rax)
movq -0x20(%rbp), %rcx
movq %rcx, 0x28(%rax)
jmp 0x756c
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
xorl %edi, %edi
callq 0x3510
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x10(%rax)
xorl %edi, %edi
callq 0x3510
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x14(%rbp), %edi
callq 0x3630
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movq -0x38(%rbp), %rcx
movq %rcx, 0x20(%rax)
movq -0x30(%rbp), %rcx
movq %rcx, 0x28(%rax)
jmp 0x756c
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl -0x14(%rbp), %edi
callq 0x35d0
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
xorl %edi, %edi
callq 0x3510
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x74dd
movq -0x10(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x43d0
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x74bd
jmp 0x756c
movq 0x7ae7(%rip), %rdi      # 0xefd0
leaq 0x306c(%rip), %rsi      # 0xa55c
callq 0x2170
movq %rax, %rdi
movq -0x60(%rbp), %rax
movzbl (%rax), %esi
callq 0x22c0
movq %rax, %rdi
movq 0x7ab2(%rip), %rsi      # 0xefc0
callq 0x21c0
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x68(%rbp)
leaq 0x3040(%rip), %rsi      # 0xa56e
leaq 0x3050(%rip), %rdx      # 0xa585
movl $0x42, %ecx
callq 0x2f30
jmp 0x7541
movq -0x68(%rbp), %rdi
leaq 0x783c(%rip), %rsi      # 0xed88
xorl %eax, %eax
movl %eax, %edx
callq 0x22b0
movq -0x68(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
callq 0x2110
jmp 0x7572
addq $0x70, %rsp
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x22e0
nopl (%rax,%rax)