// File: /workspace/github_c_makefile_star2_O1/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, %rbx
movq %rdi, %r14
leaq 0x4(%rsp), %r15
movq %rsi, %rdi
movq %r15, %rsi
callq 0x3088
movl (%r15), %edi
callq 0x2ea6
movq %rax, 0x38(%r14)
cmpq $0x0, 0x18(%rax)
je 0x354c
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x3552
movq %r15, %rdi
callq 0x20e0
movq 0x5a91(%rip), %rdi      # 0x8fd0
movq %r15, %rsi
movq %rax, %rdx
callq 0x2230
jmp 0x3570
movq %r14, 0x18(%rax)
jmp 0x35b2
movq 0x5a77(%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 0x5a59(%rip), %r15      # 0x8fd0
leaq 0x2b7e(%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
leaq 0x4(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3088
movl (%r15), %edi
callq 0x2ea6
movq %rax, 0x40(%r14)
leaq 0x48(%r14), %rsi
movq %rbx, %rdi
callq 0x3062
testb $0x8, 0x48(%r14)
je 0x35ee
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x3088
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3088
movl (%r15), %r15d
testq %r15, %r15
je 0x3612
movq %r15, %rdi
shlq $0x3, %rdi
callq 0x2030
jmp 0x3614
xorl %eax, %eax
movl %r15d, 0x50(%r14)
movq %rax, 0x58(%r14)
cmpl $0x0, (%rsp)
je 0x3652
xorl %r12d, %r12d
leaq 0x4(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3088
movl 0x4(%rsp), %edi
callq 0x2ea6
movq 0x58(%r14), %rcx
movslq %r12d, %r12
movq %rax, (%rcx,%r12,8)
incl %r12d
cmpl (%rsp), %r12d
jb 0x362a
leaq 0x4(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3088
movl (%r15), %edi
callq 0x2eea
movq %rax, 0x60(%r14)
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3088
movl (%r15), %r15d
testq %r15, %r15
je 0x3696
movq %r15, %rax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rdi
callq 0x2030
jmp 0x3698
xorl %eax, %eax
movl %r15d, 0x68(%r14)
movq %rax, 0x70(%r14)
cmpl $0x0, (%rsp)
je 0x36fa
leaq 0x8(%r14), %r15
xorl %r13d, %r13d
xorl %ebp, %ebp
movslq %ebp, %rbp
leaq (,%rbp,8), %rax
leaq (%rax,%rax,2), %r12
movq 0x70(%r14), %rdi
addq %r12, %rdi
movq %rbx, %rsi
callq 0x4d54
movq 0x70(%r14), %rax
movq (%rax,%r12), %rcx
addq %r13, %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3baa
incl %ebp
addq $0x18, %r13
cmpl (%rsp), %ebp
jb 0x36af
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop