// File: /workspace/github_c_makefile_star2_O0/FirestonnneTFM[P]tfm_key_parser/src/class_info.cpp
// Function: class_info::load_inst(abc_stream&)
void class_info::load_inst(abc_stream &stream) {
	uint32_t index, count;
	stream >> index;
	name = abc_file::get_multiname(index);
	if (name->target != nullptr) {
		std::cout << name->str << " is duplicated" << std::endl;
	} else {
		name->target = this;
	}
	stream >> index;
	super_name = abc_file::get_multiname(index);
	stream >> flags;
	if (flags & CONSTANT_ClassProtectedNs) {
		uint32_t dummy;
		stream >> dummy;
	}
	stream >> count;
	interfaces = Array<multiname_info*>(count);
	for (unsigned i = 0; i < count; ++i) {
		stream >> index;
		interfaces[i] = abc_file::get_multiname(index);
	}
	stream >> index;
	ctor = abc_file::get_method(index);
	stream >> count;
	traits = Array<traits_info>(count);
	for (unsigned i = 0; i < count; ++i) {
		traits[i].load(stream);
		ordered_trait.insert({ traits[i].name, traits.begin() + i });
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl -0x14(%rbp), %edi
callq 0x35d0
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, 0x38(%rax)
movq 0x38(%rax), %rax
cmpq $0x0, 0x18(%rax)
je 0x4c8e
movq -0x80(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rax), %rsi
movq 0xa367(%rip), %rdi      # 0xefd0
callq 0x2170
movq %rax, %rdi
leaq 0x57d0(%rip), %rsi      # 0xa448
callq 0x2170
movq %rax, %rdi
movq 0xa339(%rip), %rsi      # 0xefc0
callq 0x21c0
jmp 0x4c9a
movq -0x80(%rbp), %rcx
movq 0x38(%rcx), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl -0x14(%rbp), %edi
callq 0x35d0
movq -0x80(%rbp), %rsi
movq %rax, 0x40(%rsi)
movq -0x10(%rbp), %rdi
addq $0x48, %rsi
callq 0x4370
movq -0x80(%rbp), %rax
movzbl 0x48(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x4ce1
movq -0x10(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0x43d0
movq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x43d0
movl -0x18(%rbp), %esi
leaq -0x30(%rbp), %rdi
callq 0x53b0
movq -0x80(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0x50(%rax)
movq -0x28(%rbp), %rcx
movq %rcx, 0x58(%rax)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x18(%rbp), %eax
jae 0x4d5e
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl -0x14(%rbp), %edi
callq 0x35d0
movq -0x80(%rbp), %rdi
movq %rax, -0x88(%rbp)
addq $0x50, %rdi
movl -0x34(%rbp), %esi
callq 0x5420
movq -0x88(%rbp), %rcx
movq %rcx, (%rax)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x4d15
movq -0x10(%rbp), %rdi
leaq -0x14(%rbp), %rsi
callq 0x43d0
movl -0x14(%rbp), %edi
callq 0x3670
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x43d0
movl -0x18(%rbp), %esi
leaq -0x48(%rbp), %rdi
callq 0x5440
movq -0x80(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, 0x68(%rax)
movq -0x40(%rbp), %rcx
movq %rcx, 0x70(%rax)
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x18(%rbp), %eax
jae 0x4e53
movq -0x80(%rbp), %rdi
addq $0x68, %rdi
movl -0x4c(%rbp), %esi
callq 0x54b0
movq %rax, %rdi
movq -0x10(%rbp), %rsi
callq 0x8af0
movq -0x80(%rbp), %rdi
movq %rdi, %rax
addq $0x8, %rax
movq %rax, -0x90(%rbp)
addq $0x68, %rdi
movl -0x4c(%rbp), %esi
callq 0x54b0
movq -0x80(%rbp), %rdi
movq %rax, -0x98(%rbp)
addq $0x68, %rdi
callq 0x5510
movq -0x98(%rbp), %rsi
movl -0x4c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x68(%rbp), %rdx
callq 0x5530
movq -0x90(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x54d0
movq %rax, -0x78(%rbp)
movb %dl, -0x70(%rbp)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x4db2
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax)