// File: /workspace/github_c_makefile_star2_O2/FirestonnneTFM[P]tfm_key_parser/src/abc_file.cpp
// Function: abc_file::process(unsigned char*&)
void abc_file::process(uint8_t *&data) {
	data += 4;
	data += strlen((char*)data) + 1;
	abc_stream stream(data);
	
	stream >> version.minor;
	stream >> version.major;
	
	if (version.suspicious()) {
		version.print();
		fatal("Suspicious abc version");
	}
	constant_pool.load(stream);
	uint32_t count;
	stream >> count;
	methods = Array<method_info>(count);
	for (unsigned i = 0; i < count; ++i) {
		methods[i].load_header(stream);
	}
	stream >> count;
	for (unsigned i = 0; i < count; ++i) {
		uint32_t dummy1, dummy2, len;
		stream >> dummy1;
		stream >> len;
		for (unsigned j = 0; i < len; ++j) {
			stream >> dummy1;
			stream >> dummy2;
		}
	}
	stream >> count;
	classes = Array<class_info>(count);
	for (unsigned i = 0; i < count; ++i) {
		classes[i].load_inst(stream);
	}
	for (unsigned i = 0; i < count; ++i) {
		classes[i].load_static(stream);
	}
	stream >> count;
	scripts = Array<script_info>(count);
	for (unsigned i = 0; i < count; ++i) {
		scripts[i].load(stream);
	}
	stream >> count;
	for (unsigned i = 0; i < count; ++i) {
		uint32_t which;
		stream >> which;
		methods[which].load_body(stream);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %r15
leaq 0x4(%r15), %rdi
movq %rdi, (%rsi)
callq 0x20d0
leaq (%r15,%rax), %rsi
addq $0x5, %rsi
movq %rsi, (%r14)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x2ff8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3046
leaq 0x2(%rbx), %rsi
movq %r14, %rdi
callq 0x3046
movq %rbx, %rdi
callq 0x31d2
testb %al, %al
jne 0x2c8b
leaq 0x8(%rbx), %rdi
leaq 0x10(%rsp), %r14
movq %r14, %rsi
callq 0x3c24
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
movl (%r15), %esi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x2dda
movups (%r15), %xmm0
movups %xmm0, 0x78(%rbx)
xorl %ebp, %ebp
cmpl 0x8(%rsp), %ebp
jae 0x2b15
movslq %ebp, %rax
imulq $0x68, %rax, %rdi
addq 0x80(%rbx), %rdi
movq %r14, %rsi
callq 0x418c
incl %ebp
jmp 0x2af5
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x305c
xorl %ebp, %ebp
leaq 0x20(%rsp), %r15
leaq 0x34(%rsp), %r13
cmpl 0x8(%rsp), %ebp
jae 0x2b61
leaq 0xc(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
movq %r14, %rdi
movq %r12, %rsi
callq 0x305c
movq %r13, %r12
cmpl 0xc(%rsp), %ebp
jb 0x2b3e
incl %ebp
jmp 0x2b33
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
movl (%r15), %esi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x2e3c
movups (%r15), %xmm0
movups %xmm0, 0x88(%rbx)
xorl %ebp, %ebp
movl 0x8(%rsp), %eax
cmpl %eax, %ebp
jae 0x2bb8
movslq %ebp, %rax
imulq $0x90, %rax, %rdi
addq 0x90(%rbx), %rdi
movq %r14, %rsi
callq 0x3458
incl %ebp
jmp 0x2b93
xorl %ebp, %ebp
leaq 0x10(%rsp), %r14
cmpl %eax, %ebp
jae 0x2be4
movslq %ebp, %rax
imulq $0x90, %rax, %rdi
addq 0x90(%rbx), %rdi
movq %r14, %rsi
callq 0x35e0
incl %ebp
movl 0x8(%rsp), %eax
jmp 0x2bbf
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
movl (%r15), %esi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x2eea
movups (%r15), %xmm0
movups %xmm0, 0x98(%rbx)
xorl %ebp, %ebp
cmpl 0x8(%rsp), %ebp
jae 0x2c36
movslq %ebp, %rax
imulq $0x18, %rax, %rdi
addq 0xa0(%rbx), %rdi
movq %r14, %rsi
callq 0x45ac
incl %ebp
jmp 0x2c16
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x305c
xorl %ebp, %ebp
leaq 0x20(%rsp), %r15
cmpl 0x8(%rsp), %ebp
jae 0x2c7c
movq %r14, %rdi
movq %r15, %rsi
callq 0x305c
movslq 0x20(%rsp), %rax
imulq $0x68, %rax, %rdi
addq 0x80(%rbx), %rdi
movq %r14, %rsi
callq 0x429c
incl %ebp
jmp 0x2c4f
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x3190
pushq $0x18
popq %rdi
callq 0x20f0
movl $0x46, (%rax)
leaq 0x33f9(%rip), %rcx      # 0x60a1
movq %rcx, 0x8(%rax)
leaq 0x33d7(%rip), %rcx      # 0x608a
movq %rcx, 0x10(%rax)
leaq 0x60d2(%rip), %rsi      # 0x8d90
movq %rax, %rdi
xorl %edx, %edx
callq 0x2280