// File: /workspace/github_c_makefile_star2_O0/FirestonnneTFM[P]tfm_key_parser/src/main_sniffer.cpp
// Function: find_hash()
static void find_hash() {
	key_hash_output = key.hash;
	method_info *mark[5];
	class_info *c = abc_file::get_class(0);
	mark[0] = c->ctor;
	mark[1] = nullptr;
	mark[2] = nullptr;
	mark[3] = nullptr;
	mark[4] = nullptr;
	for (auto trait : c->traits) {
		if (trait.kind == Trait_Method) {
			method_info *method = abc_file::get_method(trait.vindex);
			if (is_mark1(method)) {
				if (mark[1])
					fatal("mark1 not unique");
				mark[1] = method;
			}
			if (method->param_type.length() == 0
				&& streq(method->return_type->str, "void")) {
				if (streq(trait.name->str, "Initialisation")) {
					if (mark[3])
						fatal("mark3 not unique");
					mark[3] = method;
				}
			}
			if (method->code.length() > 100 && method->code.length() < 220) {
				executer exec(method);
				if (exec.step() != OP_getlocal_0)
					continue;
				if (exec.step() != OP_pushscope)
					continue;
				if (exec.step() == OP_findpropstrict) {
					if (mark[2])
						fatal("mark2 not unique");
					mark[2] = method;
				}
				if (method->max_stack == 6 && method->local_count == 4 && method->param_type.length() == 0) {
					if (mark[4])
						fatal("mark4 not unique");
					mark[4] = method;
				}
			}
		}
	}
	for (unsigned i = 0; i < 5; ++i) {
		if (mark[i] == nullptr) {
			std::cout << "mark" << i << " is null" << std::endl;
			fatal("mark not found");
		}
	}
	do_mark0(mark[0]);
	do_mark1(mark[1]);
	do_mark2(mark[2]);
	do_mark3(mark[3]);
	do_mark4(mark[4]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
leaq 0x74b2(%rip), %rax      # 0x119e4
addq $0x8, %rax
movq %rax, 0x74db(%rip)      # 0x11a18
xorl %edi, %edi
callq 0x36b0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x30(%rbp)
movq $0x0, -0x28(%rbp)
movq $0x0, -0x20(%rbp)
movq $0x0, -0x18(%rbp)
movq $0x0, -0x10(%rbp)
movq -0x38(%rbp), %rax
addq $0x68, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5520
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0xade0
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x50(%rbp), %rax
je 0xa8d0
movq -0x48(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x68(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x60(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x58(%rbp)
movzbl -0x60(%rbp), %eax
cmpl $0x1, %eax
jne 0xa8bd
movl -0x5c(%rbp), %edi
callq 0x3680
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
callq 0xa9f0
testb $0x1, %al
jne 0xa5eb
jmp 0xa65f
cmpq $0x0, -0x28(%rbp)
je 0xa657
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xa0(%rbp)
leaq 0x122a(%rip), %rsi      # 0xb83a
leaq 0x10c4(%rip), %rdx      # 0xb6db
movl $0xb3, %ecx
callq 0x2f40
jmp 0xa623
movq -0xa0(%rbp), %rdi
leaq 0x6757(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xa0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
callq 0x2110
jmp 0xa9e6
movq -0x70(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x70(%rbp), %rdi
callq 0xae00
cmpl $0x0, %eax
jne 0xa721
movq -0x70(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rdi
leaq 0x11c7(%rip), %rsi      # 0xb84b
callq 0x2230
cmpl $0x0, %eax
jne 0xa721
movq -0x68(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x11af(%rip), %rsi      # 0xb850
callq 0x2230
cmpl $0x0, %eax
jne 0xa71f
cmpq $0x0, -0x18(%rbp)
je 0xa717
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xa8(%rbp)
leaq 0x118f(%rip), %rsi      # 0xb85f
leaq 0x1004(%rip), %rdx      # 0xb6db
movl $0xba, %ecx
callq 0x2f40
jmp 0xa6e3
movq -0xa8(%rbp), %rdi
leaq 0x6697(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xa8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
callq 0x2110
jmp 0xa9e6
movq -0x70(%rbp), %rax
movq %rax, -0x18(%rbp)
jmp 0xa721
movq -0x70(%rbp), %rdi
addq $0x38, %rdi
callq 0xae10
cmpl $0x64, %eax
jbe 0xa8bb
movq -0x70(%rbp), %rdi
addq $0x38, %rdi
callq 0xae10
cmpl $0xdc, %eax
jae 0xa8bb
movq -0x70(%rbp), %rsi
leaq -0x90(%rbp), %rdi
callq 0xad00
leaq -0x90(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0xd0, %eax
je 0xa77a
jmp 0xa8bf
leaq -0x90(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0x30, %eax
je 0xa793
jmp 0xa8bf
leaq -0x90(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0x5d, %eax
jne 0xa81b
cmpq $0x0, -0x20(%rbp)
je 0xa813
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xb0(%rbp)
leaq 0x10a4(%rip), %rsi      # 0xb870
leaq 0xf08(%rip), %rdx       # 0xb6db
movl $0xc6, %ecx
callq 0x2f40
jmp 0xa7df
movq -0xb0(%rbp), %rdi
leaq 0x659b(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xb0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
callq 0x2110
jmp 0xa9e6
movq -0x70(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x70(%rbp), %rax
cmpl $0x6, 0x24(%rax)
jne 0xa8b9
movq -0x70(%rbp), %rax
cmpl $0x4, 0x28(%rax)
jne 0xa8b9
movq -0x70(%rbp), %rdi
callq 0xae00
cmpl $0x0, %eax
jne 0xa8b9
cmpq $0x0, -0x10(%rbp)
je 0xa8b1
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xb8(%rbp)
leaq 0x1017(%rip), %rsi      # 0xb881
leaq 0xe6a(%rip), %rdx       # 0xb6db
movl $0xcb, %ecx
callq 0x2f40
jmp 0xa87d
movq -0xb8(%rbp), %rdi
leaq 0x64fd(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xb8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
callq 0x2110
jmp 0xa9e6
movq -0x70(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0xa8bb
jmp 0xa8bd
jmp 0xa8bf
movq -0x48(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x48(%rbp)
jmp 0xa59a
movl $0x0, -0x94(%rbp)
cmpl $0x5, -0x94(%rbp)
jae 0xa9b0
movl -0x94(%rbp), %eax
cmpq $0x0, -0x30(%rbp,%rax,8)
jne 0xa99a
movq 0x66d0(%rip), %rdi      # 0x10fd0
leaq 0xf8b(%rip), %rsi       # 0xb892
callq 0x2160
movq %rax, %rdi
movl -0x94(%rbp), %esi
callq 0x2220
movq %rax, %rdi
leaq 0xf73(%rip), %rsi       # 0xb897
callq 0x2160
movq %rax, %rdi
movq 0x668d(%rip), %rsi      # 0x10fc0
callq 0x21b0
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xc0(%rbp)
leaq 0xf4a(%rip), %rsi       # 0xb8a0
leaq 0xd7e(%rip), %rdx       # 0xb6db
movl $0xd4, %ecx
callq 0x2f40
jmp 0xa969
movq -0xc0(%rbp), %rdi
leaq 0x6411(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
callq 0x2110
jmp 0xa9e6
jmp 0xa99c
movl -0x94(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x94(%rbp)
jmp 0xa8da
movq -0x30(%rbp), %rdi
callq 0xaac0
movq -0x28(%rbp), %rdi
callq 0xab10
movq -0x20(%rbp), %rdi
callq 0xab70
movq -0x18(%rbp), %rdi
callq 0xabb0
movq -0x10(%rbp), %rdi
callq 0xabf0
addq $0xc0, %rsp
popq %rbp
retq
movq -0x78(%rbp), %rdi
callq 0x22d0
nop