// File: /workspace/github_c_makefile_star2_O3/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 0x20e0
leaq (%r15,%rax), %rsi
addq $0x5, %rsi
movq %rsi, (%r14)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x303c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x308a
leaq 0x2(%rbx), %rsi
movq %r14, %rdi
callq 0x308a
movq %rbx, %rdi
callq 0x3290
testb %al, %al
jne 0x2df7
leaq 0x8(%rbx), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x3cf8
leaq 0x4(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movl (%r15), %esi
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x2f4e
movups (%r14), %xmm0
movups %xmm0, 0x78(%rbx)
cmpl $0x0, (%r15)
je 0x2c07
xorl %r15d, %r15d
leaq 0x8(%rsp), %r14
movslq %r15d, %r15
imulq $0x68, %r15, %rdi
addq 0x80(%rbx), %rdi
movq %r14, %rsi
callq 0x41fc
incl %r15d
cmpl 0x4(%rsp), %r15d
jb 0x2be7
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %r14
movq %r14, %rsi
callq 0x30a0
cmpl $0x0, (%r14)
je 0x2c6c
xorl %ebp, %ebp
leaq 0x8(%rsp), %r14
leaq 0x20(%rsp), %r15
leaq 0x1c(%rsp), %r12
leaq 0x34(%rsp), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movq %r14, %rdi
movq %r12, %rsi
callq 0x30a0
cmpl 0x1c(%rsp), %ebp
jae 0x2c64
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movq %r14, %rdi
movq %r13, %rsi
jmp 0x2c46
incl %ebp
cmpl 0x4(%rsp), %ebp
jb 0x2c35
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %r14
movq %r14, %rsi
callq 0x30a0
movl (%r14), %esi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x2fac
movups (%r15), %xmm0
movups %xmm0, 0x88(%rbx)
cmpl $0x0, (%r14)
je 0x2cfd
xorl %r15d, %r15d
leaq 0x8(%rsp), %r14
movslq %r15d, %r15
leaq (%r15,%r15,8), %rdi
shlq $0x4, %rdi
addq 0x90(%rbx), %rdi
movq %r14, %rsi
callq 0x3510
incl %r15d
movl 0x4(%rsp), %eax
cmpl %eax, %r15d
jb 0x2ca7
testl %eax, %eax
je 0x2cfd
xorl %r15d, %r15d
leaq 0x8(%rsp), %r14
movslq %r15d, %r15
leaq (%r15,%r15,8), %rdi
shlq $0x4, %rdi
addq 0x90(%rbx), %rdi
movq %r14, %rsi
callq 0x372e
incl %r15d
cmpl 0x4(%rsp), %r15d
jb 0x2cd9
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %r14
movq %r14, %rsi
callq 0x30a0
movl (%r14), %r15d
testq %r15, %r15
je 0x2d87
movq %r15, %rax
shlq $0x3, %rax
leaq (%rax,%rax,2), %r14
movq %r14, %rdi
callq 0x2030
xorl %ecx, %ecx
movl $0x0, 0x8(%rax,%rcx)
movq $0x0, 0x10(%rax,%rcx)
addq $0x18, %rcx
cmpq %rcx, %r14
jne 0x2d2c
movl %r15d, 0x98(%rbx)
movq %rax, 0xa0(%rbx)
testl %r15d, %r15d
je 0x2d99
xorl %r15d, %r15d
leaq 0x8(%rsp), %r14
movslq %r15d, %r15
leaq (%r15,%r15,2), %rdi
shlq $0x3, %rdi
addq 0xa0(%rbx), %rdi
movq %r14, %rsi
callq 0x4660
incl %r15d
cmpl 0x4(%rsp), %r15d
jb 0x2d61
jmp 0x2d99
movl %r15d, 0x98(%rbx)
movq $0x0, 0xa0(%rbx)
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %r14
movq %r14, %rsi
callq 0x30a0
cmpl $0x0, (%r14)
je 0x2de8
xorl %ebp, %ebp
leaq 0x8(%rsp), %r14
leaq 0x20(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x30a0
movslq 0x20(%rsp), %rax
imulq $0x68, %rax, %rdi
addq 0x80(%rbx), %rdi
movq %r14, %rsi
callq 0x433c
incl %ebp
cmpl 0x4(%rsp), %ebp
jb 0x2dbd
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x3210
movl $0x18, %edi
callq 0x2100
movl $0x46, (%rax)
leaq 0x328b(%rip), %rcx      # 0x60a1
movq %rcx, 0x8(%rax)
leaq 0x3269(%rip), %rcx      # 0x608a
movq %rcx, 0x10(%rax)
leaq 0x5f64(%rip), %rsi      # 0x8d90
movq %rax, %rdi
xorl %edx, %edx
callq 0x22d0