// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
movq %rsi, %rdi
movq %r15, %rsi
callq 0x30a0
movl (%r15), %edi
callq 0x2ebe
movq %rax, 0x38(%rbx)
cmpq $0x0, 0x18(%rax)
je 0x356a
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x3570
movq %r15, %rdi
callq 0x20e0
movq 0x5a73(%rip), %rdi      # 0x8fd0
movq %r15, %rsi
movq %rax, %rdx
callq 0x2230
jmp 0x358e
movq %rbx, 0x18(%rax)
jmp 0x35d0
movq 0x5a59(%rip), %rax      # 0x8fd0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x22c0
movq 0x5a3b(%rip), %r15      # 0x8fd0
leaq 0x2b60(%rip), %rsi      # 0x60fc
movl $0xe, %edx
movq %r15, %rdi
callq 0x2230
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movl (%r15), %edi
callq 0x2ebe
movq %rax, 0x40(%rbx)
leaq 0x48(%rbx), %rsi
movq %r14, %rdi
callq 0x307a
testb $0x8, 0x48(%rbx)
je 0x3609
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x30a0
leaq 0x4(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movl (%r15), %r15d
testq %r15, %r15
je 0x3665
movq %r15, %rdi
shlq $0x3, %rdi
callq 0x2030
movl %r15d, 0x50(%rbx)
movq %rax, 0x58(%rbx)
xorl %r12d, %r12d
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movl (%rsp), %edi
callq 0x2ebe
movq 0x58(%rbx), %rcx
movslq %r12d, %r12
movq %rax, (%rcx,%r12,8)
incl %r12d
cmpl 0x4(%rsp), %r12d
jb 0x363b
jmp 0x3671
movl %r15d, 0x50(%rbx)
movq $0x0, 0x58(%rbx)
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movl (%r15), %edi
callq 0x2f02
movq %rax, 0x60(%rbx)
leaq 0x4(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movl (%r15), %r15d
testq %r15, %r15
je 0x3712
movq %r15, %rax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rdi
callq 0x2030
movl %r15d, 0x68(%rbx)
movq %rax, 0x70(%rbx)
leaq 0x8(%rbx), %r15
xorl %r13d, %r13d
xorl %ebp, %ebp
movslq %ebp, %rbp
leaq (,%rbp,8), %rax
leaq (%rax,%rax,2), %r12
movq 0x70(%rbx), %rdi
addq %r12, %rdi
movq %r14, %rsi
callq 0x4d34
movq 0x70(%rbx), %rax
movq (%rax,%r12), %rcx
addq %r13, %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3bae
incl %ebp
addq $0x18, %r13
cmpl 0x4(%rsp), %ebp
jb 0x36c4
jmp 0x371e
movl %r15d, 0x68(%rbx)
movq $0x0, 0x70(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop