// File: /workspace/github_c_makefile_star2_O0/FirestonnneTFM[P]tfm_key_parser/src/main_sniffer.cpp
// Function: find_login()
static void find_login() {
	class_info *c = abc_file::get_class(0);
	c->do_static_init();
	method_info *target = nullptr;
	for (auto trait : c->traits) {
		if (trait.kind == Trait_Method) {
			method_info *method = abc_file::get_method(trait.vindex);
			if (method->param_type.length() == 0
				&& streq(method->return_type->str, "int")) {
				target = method;
			}
		}
	}
	if (target == nullptr)
		fatal("Could not find key login");
	executer exec(target);
	assert(exec.step() == OP_getlocal_0);
	assert(exec.step() == OP_pushscope);
	assert(exec.step() == OP_getlocal_0);
	assert(exec.step() == OP_getproperty);
	assert(exec.step() == OP_convert_i);
	while (exec.step() == OP_setlocal_1) {
		assert(exec.step() == OP_getlocal_1);
		uint8_t op = exec.next();
		if (op == OP_returnvalue)
			break;
		assert(op == OP_getlex);
		int32_t a = exec.get_lex_int();
		op = exec.next();
		if (op == OP_bitxor) {
			key.login ^= a;
			continue;
		}
		assert(op == OP_getlex);
 		int32_t b = exec.get_lex_int();
		assert(exec.step() == OP_lshift);
		assert(exec.step() == OP_bitxor);
		key.login ^= a << b;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
xorl %edi, %edi
callq 0x36b0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4f90
movq $0x0, -0x10(%rbp)
movq -0x8(%rbp), %rax
addq $0x68, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5520
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xade0
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
je 0x9b0c
movq -0x20(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x40(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
movzbl -0x38(%rbp), %eax
cmpl $0x1, %eax
jne 0x9afc
movl -0x34(%rbp), %edi
callq 0x3680
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0xae00
cmpl $0x0, %eax
jne 0x9afa
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rdi
leaq 0x1ce5(%rip), %rsi      # 0xb7cd
callq 0x2230
cmpl $0x0, %eax
jne 0x9afa
movq -0x48(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x9afc
jmp 0x9afe
movq -0x20(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x20(%rbp)
jmp 0x9a8d
cmpq $0x0, -0x10(%rbp)
jne 0x9b6f
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x80(%rbp)
leaq 0x1ca3(%rip), %rsi      # 0xb7d1
leaq 0x1ba6(%rip), %rdx      # 0xb6db
movl $0x11c, %ecx            # imm = 0x11C
callq 0x2f40
jmp 0x9b41
movq -0x80(%rbp), %rdi
leaq 0x723c(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
movq -0x10(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0xad00
leaq -0x68(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0xd0, %eax
je 0x9bf4
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x88(%rbp)
leaq 0x1b43(%rip), %rsi      # 0xb6f0
leaq 0x1b27(%rip), %rdx      # 0xb6db
movl $0x11e, %ecx            # imm = 0x11E
callq 0x2f40
jmp 0x9bc0
movq -0x88(%rbp), %rdi
leaq 0x71ba(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0x88(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
jmp 0x9bf6
jmp 0x9bf8
leaq -0x68(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0x30, %eax
je 0x9c6e
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x90(%rbp)
leaq 0x1ac9(%rip), %rsi      # 0xb6f0
leaq 0x1aad(%rip), %rdx      # 0xb6db
movl $0x11f, %ecx            # imm = 0x11F
callq 0x2f40
jmp 0x9c3a
movq -0x90(%rbp), %rdi
leaq 0x7140(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0x90(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
jmp 0x9c70
jmp 0x9c72
leaq -0x68(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0xd0, %eax
je 0x9cea
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x98(%rbp)
leaq 0x1a4d(%rip), %rsi      # 0xb6f0
leaq 0x1a31(%rip), %rdx      # 0xb6db
movl $0x120, %ecx            # imm = 0x120
callq 0x2f40
jmp 0x9cb6
movq -0x98(%rbp), %rdi
leaq 0x70c4(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0x98(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
jmp 0x9cec
jmp 0x9cee
leaq -0x68(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0x66, %eax
je 0x9d64
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xa0(%rbp)
leaq 0x19d3(%rip), %rsi      # 0xb6f0
leaq 0x19b7(%rip), %rdx      # 0xb6db
movl $0x121, %ecx            # imm = 0x121
callq 0x2f40
jmp 0x9d30
movq -0xa0(%rbp), %rdi
leaq 0x704a(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xa0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
jmp 0x9d66
jmp 0x9d68
leaq -0x68(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0x73, %eax
je 0x9dde
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xa8(%rbp)
leaq 0x1959(%rip), %rsi      # 0xb6f0
leaq 0x193d(%rip), %rdx      # 0xb6db
movl $0x122, %ecx            # imm = 0x122
callq 0x2f40
jmp 0x9daa
movq -0xa8(%rbp), %rdi
leaq 0x6fd0(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xa8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
jmp 0x9de0
jmp 0x9de2
leaq -0x68(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0xd5, %eax
jne 0xa0c2
jmp 0x9dfb
leaq -0x68(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0xd1, %eax
je 0x9e73
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xb0(%rbp)
leaq 0x18c4(%rip), %rsi      # 0xb6f0
leaq 0x18a8(%rip), %rdx      # 0xb6db
movl $0x124, %ecx            # imm = 0x124
callq 0x2f40
jmp 0x9e3f
movq -0xb0(%rbp), %rdi
leaq 0x6f3b(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xb0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
jmp 0x9e75
leaq -0x68(%rbp), %rdi
callq 0x42e0
movb %al, -0x69(%rbp)
movzbl -0x69(%rbp), %eax
cmpl $0x48, %eax
jne 0x9e8f
jmp 0xa0c2
jmp 0x9e91
movzbl -0x69(%rbp), %eax
cmpl $0x60, %eax
je 0x9eff
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xb8(%rbp)
leaq 0x1838(%rip), %rsi      # 0xb6f0
leaq 0x181c(%rip), %rdx      # 0xb6db
movl $0x128, %ecx            # imm = 0x128
callq 0x2f40
jmp 0x9ecb
movq -0xb8(%rbp), %rdi
leaq 0x6eaf(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xb8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
jmp 0x9f01
leaq -0x68(%rbp), %rdi
callq 0x8f50
movl %eax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x42e0
movb %al, -0x69(%rbp)
movzbl -0x69(%rbp), %eax
cmpl $0xaa, %eax
jne 0x9f38
movl -0x70(%rbp), %eax
xorl 0x7abb(%rip), %eax      # 0x119e8
movl %eax, 0x7ab5(%rip)      # 0x119e8
jmp 0x9de2
jmp 0x9f3a
movzbl -0x69(%rbp), %eax
cmpl $0x60, %eax
je 0x9fa8
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xc0(%rbp)
leaq 0x178f(%rip), %rsi      # 0xb6f0
leaq 0x1773(%rip), %rdx      # 0xb6db
movl $0x12f, %ecx            # imm = 0x12F
callq 0x2f40
jmp 0x9f74
movq -0xc0(%rbp), %rdi
leaq 0x6e06(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
jmp 0x9faa
leaq -0x68(%rbp), %rdi
callq 0x8f50
movl %eax, -0x74(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0xa5, %eax
je 0xa02e
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xc8(%rbp)
leaq 0x1709(%rip), %rsi      # 0xb6f0
leaq 0x16ed(%rip), %rdx      # 0xb6db
movl $0x131, %ecx            # imm = 0x131
callq 0x2f40
jmp 0x9ffa
movq -0xc8(%rbp), %rdi
leaq 0x6d80(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xc8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
jmp 0xa030
jmp 0xa032
leaq -0x68(%rbp), %rdi
callq 0x2b10
movzbl %al, %eax
cmpl $0xaa, %eax
je 0xa0a7
movl $0x18, %edi
callq 0x20e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xd0(%rbp)
leaq 0x168d(%rip), %rsi      # 0xb6f0
leaq 0x1671(%rip), %rdx      # 0xb6db
movl $0x132, %ecx            # imm = 0x132
callq 0x2f40
jmp 0xa076
movq -0xd0(%rbp), %rdi
leaq 0x6d04(%rip), %rsi      # 0x10d88
xorl %eax, %eax
movl %eax, %edx
callq 0x22a0
movq -0xd0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x2110
jmp 0xa0cb
jmp 0xa0a9
movl -0x70(%rbp), %eax
movl -0x74(%rbp), %ecx
shll %cl, %eax
xorl 0x7931(%rip), %eax      # 0x119e8
movl %eax, 0x792b(%rip)      # 0x119e8
jmp 0x9de2
addq $0xd0, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x22d0
nopw %cs:(%rax,%rax)