// File: /workspace/github_c_makefile_star2_O1/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 0x3024
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3072
leaq 0x2(%rbx), %rsi
movq %r14, %rdi
callq 0x3072
movq %rbx, %rdi
callq 0x3270
testb %al, %al
jne 0x2dde
leaq 0x8(%rbx), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x3cf4
leaq 0x4(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3088
movl (%r15), %esi
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x2f36
movups (%r14), %xmm0
movups %xmm0, 0x78(%rbx)
cmpl $0x0, (%r15)
je 0x2bfb
xorl %r15d, %r15d
leaq 0x8(%rsp), %r14
movslq %r15d, %r15
imulq $0x68, %r15, %rdi
addq 0x80(%rbx), %rdi
movq %r14, %rsi
callq 0x41e8
incl %r15d
cmpl 0x4(%rsp), %r15d
jb 0x2bdb
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %r14
movq %r14, %rsi
callq 0x3088
cmpl $0x0, (%r14)
je 0x2c60
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 0x3088
movq %r14, %rdi
movq %r12, %rsi
callq 0x3088
cmpl 0x1c(%rsp), %ebp
jae 0x2c58
movq %r14, %rdi
movq %r15, %rsi
callq 0x3088
movq %r14, %rdi
movq %r13, %rsi
jmp 0x2c3a
incl %ebp
cmpl 0x4(%rsp), %ebp
jb 0x2c29
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %r14
movq %r14, %rsi
callq 0x3088
movl (%r14), %esi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x2f94
movups (%r15), %xmm0
movups %xmm0, 0x88(%rbx)
cmpl $0x0, (%r14)
je 0x2cbf
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 0x34f0
incl %r15d
cmpl 0x4(%rsp), %r15d
jb 0x2c9b
cmpl $0x0, 0x4(%rsp)
je 0x2cf2
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 0x370a
incl %r15d
cmpl 0x4(%rsp), %r15d
jb 0x2cce
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %r14
movq %r14, %rsi
callq 0x3088
movl (%r14), %r15d
testq %r15, %r15
je 0x2d3d
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 0x2d21
jmp 0x2d3f
xorl %eax, %eax
movl %r15d, 0x98(%rbx)
movq %rax, 0xa0(%rbx)
cmpl $0x0, 0x4(%rsp)
je 0x2d80
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 0x463c
incl %r15d
cmpl 0x4(%rsp), %r15d
jb 0x2d5c
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %r14
movq %r14, %rsi
callq 0x3088
cmpl $0x0, (%r14)
je 0x2dcf
xorl %ebp, %ebp
leaq 0x8(%rsp), %r14
leaq 0x20(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x3088
movslq 0x20(%rsp), %rax
imulq $0x68, %rax, %rdi
addq 0x80(%rbx), %rdi
movq %r14, %rsi
callq 0x4324
incl %ebp
cmpl 0x4(%rsp), %ebp
jb 0x2da4
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x31f0
movl $0x18, %edi
callq 0x2100
movl $0x46, (%rax)
leaq 0x32a4(%rip), %rcx      # 0x60a1
movq %rcx, 0x8(%rax)
leaq 0x3282(%rip), %rcx      # 0x608a
movq %rcx, 0x10(%rax)
leaq 0x5f7d(%rip), %rsi      # 0x8d90
movq %rax, %rdi
xorl %edx, %edx
callq 0x22d0
nop