// File: /workspace/github_cpp_makefile_star2_O1/tonymuu[P]distributed-kv-store/Application.cpp
// Function: Application::readTest()
void Application::readTest() {

	// Step 0. Key to be read
	// This key is used for all read tests
	map<string, string>::iterator it = testKVPairs.begin();
	int number;
	vector<Node> replicas;
	int replicaIdToFail = TERTIARY;
	int nodeToFail;
	bool failedOneNode = false;

	/**
 	 * Test 1: Test if value of a single read operation is read correctly in quorum number of nodes
 	 */
	if ( par->getcurrtime() == TEST_TIME ) {
		// Step 1.a. Find a node that is alive
		number = findARandomNodeThatIsAlive();

		// Step 1.b Do a read operation
		cout<<endl<<"Reading a valid key.... ... .. . ."<<endl;
		log->LOG(&mp2[number]->getMemberNode()->addr, "READ OPERATION KEY: %s VALUE: %s at time: %d", it->first.c_str(), it->second.c_str(), par->getcurrtime());
		mp2[number]->clientRead(it->first);
	}

	/** end of test1 **/

	/**
	 * Test 2: FAIL ONE REPLICA. Test if value is read correctly in quorum number of nodes after ONE OF THE REPLICAS IS FAILED
	 */
	if ( par->getcurrtime() == (TEST_TIME + FIRST_FAIL_TIME) ) {
		// Step 2.a Find a node that is alive and assign it as number
		number = findARandomNodeThatIsAlive();

		// Step 2.b Find the replicas of this key
		replicas.clear();
		replicas = mp2[number]->findNodes(it->first);
		// if less than quorum replicas are found then exit
		if ( replicas.size() < (RF-1) ) {
			cout<<endl<<"Could not find at least quorum replicas for this key. Exiting!!! size of replicas vector: "<<replicas.size()<<endl;
			log->LOG(&mp2[number]->getMemberNode()->addr, "Could not find at least quorum replicas for this key. Exiting!!! size of replicas vector: %d", replicas.size());
			exit(1);
		}

		// Step 2.c Fail a replica
		for ( int i = 0; i < par->EN_GPSZ; i++ ) {
			if ( mp2[i]->getMemberNode()->addr.getAddress() == replicas.at(replicaIdToFail).getAddress()->getAddress() ) {
				if ( !mp2[i]->getMemberNode()->bFailed ) {
					nodeToFail = i;
					failedOneNode = true;
					break;
				}
				else {
					// Since we fail at most two nodes, one of the replicas must be alive
					if ( replicaIdToFail > 0 ) {
						replicaIdToFail--;
					}
					else {
						failedOneNode = false;
					}
				}
			}
		}
		if ( failedOneNode ) {
			log->LOG(&mp2[nodeToFail]->getMemberNode()->addr, "Node failed at time=%d", par->getcurrtime());
			mp2[nodeToFail]->getMemberNode()->bFailed = true;
			mp1[nodeToFail]->getMemberNode()->bFailed = true;
			cout<<endl<<"Failed a replica node"<<endl;
		}
		else {
			// The code can never reach here
			log->LOG(&mp2[number]->getMemberNode()->addr, "Could not fail a node");
			cout<<"Could not fail a node. Exiting!!!";
			exit(1);
		}

		number = findARandomNodeThatIsAlive();

		// Step 2.d Issue a read
		cout<<endl<<"Reading a valid key.... ... .. . ."<<endl;
		log->LOG(&mp2[number]->getMemberNode()->addr, "READ OPERATION KEY: %s VALUE: %s at time: %d", it->first.c_str(), it->second.c_str(), par->getcurrtime());
		mp2[number]->clientRead(it->first);

		failedOneNode = false;
	}

	/** end of test 2 **/

	/**
	 * Test 3 part 1: Fail two replicas. Test if value is read correctly in quorum number of nodes after TWO OF THE REPLICAS ARE FAILED
	 */
	// Wait for STABILIZE_TIME and fail two replicas
	if ( par->getcurrtime() >= (TEST_TIME + FIRST_FAIL_TIME + STABILIZE_TIME) ) {
		vector<int> nodesToFail;
		nodesToFail.clear();
		int count = 0;

		if ( par->getcurrtime() == (TEST_TIME + FIRST_FAIL_TIME + STABILIZE_TIME) ) {
			// Step 3.a. Find a node that is alive
			number = findARandomNodeThatIsAlive();

			// Get the keys replicas
			replicas.clear();
			replicas = mp2[number]->findNodes(it->first);

			// Step 3.b. Fail two replicas
			//cout<<"REPLICAS SIZE: "<<replicas.size();
			if ( replicas.size() > 2 ) {
				replicaIdToFail = TERTIARY;
				while ( count != 2 ) {
					int i = 0;
					while ( i != par->EN_GPSZ ) {
						if ( mp2[i]->getMemberNode()->addr.getAddress() == replicas.at(replicaIdToFail).getAddress()->getAddress() ) {
							if ( !mp2[i]->getMemberNode()->bFailed ) {
								nodesToFail.emplace_back(i);
								replicaIdToFail--;
								count++;
								break;
							}
							else {
								// Since we fail at most two nodes, one of the replicas must be alive
								if ( replicaIdToFail > 0 ) {
									replicaIdToFail--;
								}
							}
						}
						i++;
					}
				}
			}
			else {
				// If the code reaches here. Test your stabilization protocol
				cout<<endl<<"Not enough replicas to fail two nodes. Number of replicas of this key: " <<replicas.size() <<". Exiting test case !! "<<endl;
				exit(1);
			}
			if ( count == 2 ) {
				for ( int i = 0; i < (int)nodesToFail.size(); i++ ) {
					// Fail a node
					log->LOG(&mp2[nodesToFail.at(i)]->getMemberNode()->addr, "Node failed at time=%d", par->getcurrtime());
					mp2[nodesToFail.at(i)]->getMemberNode()->bFailed = true;
					mp1[nodesToFail.at(i)]->getMemberNode()->bFailed = true;
					cout<<endl<<"Failed a replica node"<<endl;
				}
			}
			else {
				// The code can never reach here
				log->LOG(&mp2[number]->getMemberNode()->addr, "Could not fail two nodes");
				//cout<<"COUNT: " <<count;
				cout<<"Could not fail two nodes. Exiting!!!";
				exit(1);
			}

			number = findARandomNodeThatIsAlive();

			// Step 3.c Issue a read
			cout<<endl<<"Reading a valid key.... ... .. . ."<<endl;
			log->LOG(&mp2[number]->getMemberNode()->addr, "READ OPERATION KEY: %s VALUE: %s at time: %d", it->first.c_str(), it->second.c_str(), par->getcurrtime());
			// This read should fail since at least quorum nodes are not alive
			mp2[number]->clientRead(it->first);
		}

		/**
		 * TEST 3 part 2: After failing two replicas and waiting for STABILIZE_TIME, issue a read
		 */
		// Step 3.d Wait for stabilization protocol to kick in
		if ( par->getcurrtime() == (TEST_TIME + FIRST_FAIL_TIME + STABILIZE_TIME + STABILIZE_TIME) ) {
			number = findARandomNodeThatIsAlive();
			// Step 3.e Issue a read
			cout<<endl<<"Reading a valid key.... ... .. . ."<<endl;
			log->LOG(&mp2[number]->getMemberNode()->addr, "READ OPERATION KEY: %s VALUE: %s at time: %d", it->first.c_str(), it->second.c_str(), par->getcurrtime());
			// This read should be successful
			mp2[number]->clientRead(it->first);
		}
	}

	/** end of test 3 **/

	/**
	 * Test 4: FAIL A NON-REPLICA. Test if value is read correctly in quorum number of nodes after a NON-REPLICA IS FAILED
	 */
	if ( par->getcurrtime() == (TEST_TIME + FIRST_FAIL_TIME + STABILIZE_TIME + STABILIZE_TIME + LAST_FAIL_TIME ) ) {
		// Step 4.a. Find a node that is alive
		number = findARandomNodeThatIsAlive();

		// Step 4.b Find a non - replica for this key
		replicas.clear();
		replicas = mp2[number]->findNodes(it->first);
		for ( int i = 0; i < par->EN_GPSZ; i++ ) {
			if ( !mp2[i]->getMemberNode()->bFailed ) {
				if ( mp2[i]->getMemberNode()->addr.getAddress() != replicas.at(PRIMARY).getAddress()->getAddress() &&
					 mp2[i]->getMemberNode()->addr.getAddress() != replicas.at(SECONDARY).getAddress()->getAddress() &&
					 mp2[i]->getMemberNode()->addr.getAddress() != replicas.at(TERTIARY).getAddress()->getAddress() ) {
					// Step 4.c Fail a non-replica node
					log->LOG(&mp2[i]->getMemberNode()->addr, "Node failed at time=%d", par->getcurrtime());
					mp2[i]->getMemberNode()->bFailed = true;
					mp1[i]->getMemberNode()->bFailed = true;
					failedOneNode = true;
					cout<<endl<<"Failed a non-replica node"<<endl;
					break;
				}
			}
		}
		if ( !failedOneNode ) {
			// The code can never reach here
			log->LOG(&mp2[number]->getMemberNode()->addr, "Could not fail a node(non-replica)");
			cout<<"Could not fail a node(non-replica). Exiting!!!";
			exit(1);
		}

		number = findARandomNodeThatIsAlive();

		// Step 4.d Issue a read operation
		cout<<endl<<"Reading a valid key.... ... .. . ."<<endl;
		log->LOG(&mp2[number]->getMemberNode()->addr, "READ OPERATION KEY: %s VALUE: %s at time: %d", it->first.c_str(), it->second.c_str(), par->getcurrtime());
		// This read should fail since at least quorum nodes are not alive
		mp2[number]->clientRead(it->first);
	}

	/** end of test 4 **/

	/**
	 * Test 5: Read a non-existent key.
	 */
	if ( par->getcurrtime() == (TEST_TIME + FIRST_FAIL_TIME + STABILIZE_TIME + STABILIZE_TIME + LAST_FAIL_TIME ) ) {
		string invalidKey = "invalidKey";

		// Step 5.a Find a node that is alive
		number = findARandomNodeThatIsAlive();

		// Step 5.b Issue a read operation
		cout<<endl<<"Reading an invalid key.... ... .. . ."<<endl;
		log->LOG(&mp2[number]->getMemberNode()->addr, "READ OPERATION KEY: %s at time: %d", invalidKey.c_str(), par->getcurrtime());
		// This read should fail since at least quorum nodes are not alive
		mp2[number]->clientRead(invalidKey);
	}

	/** end of test 5 **/

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
movq 0x78(%rdi), %rax
movq %rax, 0x18(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x58(%rdi), %rdi
callq 0xc962
cmpl $0x96, %eax
jne 0x7ca7
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %rbp
movq (%rcx,%rbp,8), %rax
movq 0x50(%rax), %rax
cmpb $0x0, 0x10(%rax)
jne 0x7b73
movq 0x1942c(%rip), %rdi     # 0x20fc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x19411(%rip), %rdi     # 0x20fc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0x10869(%rip), %rsi     # 0x18437
movl $0x22, %edx
movq %rax, %rdi
callq 0x3310
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq 0x38(%rbx), %r14
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %r13
movq 0x18(%rsp), %rax
movq 0x20(%rax), %r15
movq 0x40(%rax), %r12
movq 0x58(%rbx), %rdi
callq 0xc962
addq $0x8, %r13
leaq 0x10827(%rip), %rdx     # 0x1845a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %r12, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0xbc4c
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %r14
leaq 0x1d8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x1c8(%rsp), %rdi
callq 0x5a48
leaq 0x1c8(%rsp), %rsi
movq %r14, %rdi
callq 0xff50
movq 0x1c8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7ca7
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc962
cmpl $0xaf, %eax
jne 0x80f0
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %r13
movq (%rcx,%r13,8), %rax
movq 0x50(%rax), %rax
cmpb $0x0, 0x10(%rax)
jne 0x7cbb
movq (%rsp), %r15
movq 0x8(%rsp), %r12
cmpq %r15, %r12
je 0x7d04
movq %r15, %r14
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
addq $0x20, %r14
cmpq %r12, %r14
jne 0x7cee
movq %r15, 0x8(%rsp)
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %r14
leaq 0x1b8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x1a8(%rsp), %rdi
callq 0x5a48
leaq 0x60(%rsp), %rdi
leaq 0x1a8(%rsp), %rdx
movq %r14, %rsi
callq 0xfc44
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps (%rsp), %xmm0
movq 0x10(%rsp), %rax
leaq 0x60(%rsp), %r14
movups (%r14), %xmm1
movaps %xmm1, (%rsp)
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movups %xmm1, (%r14)
movq $0x0, 0x10(%r14)
callq 0xb544
movq %r14, %rdi
callq 0xb544
movq 0x1a8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7db4
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x8(%rsp), %rax
subq (%rsp), %rax
cmpq $0x21, %rax
jb 0x8f48
movq 0x58(%rbx), %rax
cmpl $0x0, 0x18(%rax)
jle 0x7ecf
movl $0x2, %r14d
xorl %ebp, %ebp
leaq 0x60(%rsp), %r15
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0x20(%rsp), %rdi
callq 0xb200
movslq %r14d, %rsi
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x8eb2
shlq $0x5, %rsi
addq %rsi, %rdi
callq 0x13c6c
movq %r15, %rdi
movq %rax, %rsi
callq 0xb200
movq 0x28(%rsp), %rdx
cmpq 0x68(%rsp), %rdx
jne 0x7e57
testq %rdx, %rdx
je 0x7e5c
movq 0x60(%rsp), %rsi
movq 0x20(%rsp), %rdi
callq 0x32d0
testl %eax, %eax
sete %r12b
jmp 0x7e5f
xorl %r12d, %r12d
jmp 0x7e5f
movb $0x1, %r12b
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x7e7b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x7e97
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32c0
testb %r12b, %r12b
je 0x7ebb
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %r12
cmpb $0x0, 0x10(%r12)
je 0x7f09
xorl %eax, %eax
testl %r14d, %r14d
setg %al
subl %eax, %r14d
incq %rbp
movq 0x58(%rbx), %rax
movslq 0x18(%rax), %rax
cmpq %rax, %rbp
jl 0x7de2
movq 0x38(%rbx), %rdi
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0x1066b(%rip), %rdx     # 0x18555
xorl %eax, %eax
callq 0xbc4c
movq 0x190d0(%rip), %rdi     # 0x20fc8
leaq 0x1066c(%rip), %rsi     # 0x1856b
callq 0x3290
jmp 0x8ef5
movq 0x38(%rbx), %r14
movq 0x58(%rbx), %rdi
callq 0xc962
addq $0x8, %r12
leaq 0x103e3(%rip), %rdx     # 0x18304
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %ecx
xorl %eax, %eax
callq 0xbc4c
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %rax
movb $0x1, %cl
movb %cl, 0x10(%rax)
movq 0x40(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x20(%rax), %rax
movb %cl, 0x10(%rax)
movq 0x19071(%rip), %rdi     # 0x20fc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x19056(%rip), %r14     # 0x20fc8
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r15
leaq 0x105b3(%rip), %rsi     # 0x1853f
movl $0x15, %edx
movq %rax, %rdi
callq 0x3310
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %rbp
movq (%rcx,%rbp,8), %rax
movq 0x50(%rax), %rax
cmpb $0x0, 0x10(%rax)
jne 0x7fc0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x18fc8(%rip), %rdi     # 0x20fc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0x10420(%rip), %rsi     # 0x18437
movl $0x22, %edx
movq %rax, %rdi
callq 0x3310
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq 0x38(%rbx), %r14
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %r13
movq 0x18(%rsp), %rax
movq 0x20(%rax), %r15
movq 0x40(%rax), %r12
movq 0x58(%rbx), %rdi
callq 0xc962
addq $0x8, %r13
leaq 0x103de(%rip), %rdx     # 0x1845a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %r12, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0xbc4c
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %r14
leaq 0x198(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x188(%rsp), %rdi
callq 0x5a48
leaq 0x188(%rsp), %rsi
movq %r14, %rdi
callq 0xff50
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
je 0x80f0
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc962
cmpl $0xe1, %eax
jl 0x8781
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x8126
movq $0x0, 0x48(%rsp)
movq 0x58(%rbx), %rdi
callq 0xc962
cmpl $0xe1, %eax
jne 0x8622
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %r15
movq (%rcx,%r15,8), %rax
movq 0x50(%rax), %rax
cmpb $0x0, 0x10(%rax)
jne 0x813a
movq (%rsp), %r12
movq 0x8(%rsp), %r13
cmpq %r12, %r13
je 0x8183
movq %r12, %r14
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
addq $0x20, %r14
cmpq %r13, %r14
jne 0x816d
movq %r12, 0x8(%rsp)
movq 0x48(%rbx), %rax
movq (%rax,%r15,8), %r14
leaq 0x178(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x168(%rsp), %rdi
callq 0x5a48
leaq 0x60(%rsp), %rdi
leaq 0x168(%rsp), %rdx
movq %r14, %rsi
callq 0xfc44
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps (%rsp), %xmm0
movq 0x10(%rsp), %rax
leaq 0x60(%rsp), %r14
movups (%r14), %xmm1
movaps %xmm1, (%rsp)
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movups %xmm1, (%r14)
movq $0x0, 0x10(%r14)
callq 0xb544
movq %r14, %rdi
callq 0xb544
movq 0x168(%rsp), %rdi
cmpq %r15, %rdi
je 0x8233
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x8(%rsp), %rax
subq (%rsp), %rax
cmpq $0x41, %rax
jb 0x8fbc
leaq 0x70(%rsp), %r12
movl $0x2, %r13d
movl $0x0, 0x84(%rsp)
leaq 0x20(%rsp), %r14
leaq 0x60(%rsp), %r15
movl $0x0, 0x88(%rsp)
movq 0x58(%rbx), %rax
cmpl $0x0, 0x18(%rax)
je 0x83ae
xorl %eax, %eax
movq 0x48(%rbx), %rcx
cltq
movq (%rcx,%rax,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
movq %r14, %rdi
callq 0xb200
movslq %r13d, %rsi
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x8ea4
shlq $0x5, %rsi
addq %rsi, %rdi
callq 0x13c6c
movq %r15, %rdi
movq %rax, %rsi
callq 0xb200
movq 0x28(%rsp), %rdx
cmpq 0x68(%rsp), %rdx
jne 0x82f6
testq %rdx, %rdx
je 0x82fa
movq 0x60(%rsp), %rsi
movq 0x20(%rsp), %rdi
callq 0x32d0
testl %eax, %eax
sete %bpl
jmp 0x82fd
xorl %ebp, %ebp
jmp 0x82fd
movb $0x1, %bpl
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x8314
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8330
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32c0
testb %bpl, %bpl
je 0x835a
movq 0x48(%rbx), %rcx
movslq 0x88(%rsp), %rax
movq (%rcx,%rax,8), %rcx
movq 0x50(%rcx), %rcx
cmpb $0x0, 0x10(%rcx)
je 0x8379
xorl %eax, %eax
testl %r13d, %r13d
setg %al
subl %eax, %r13d
movl 0x88(%rsp), %eax
incl %eax
movl %eax, 0x88(%rsp)
movq 0x58(%rbx), %rcx
cmpl 0x18(%rcx), %eax
jne 0x8281
jmp 0x83ae
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x8392
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x48(%rsp)
jmp 0x83a4
leaq 0x40(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0xbac2
decl %r13d
incl 0x84(%rsp)
cmpl $0x2, 0x84(%rsp)
jne 0x8266
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
testl %edx, %edx
jle 0x84ee
movb $0x1, %r13b
movq 0x18be9(%rip), %r12     # 0x20fc8
xorl %r14d, %r14d
cmpq %r14, %rdx
jbe 0x8f11
movq 0x38(%rbx), %rbp
movslq (%rax,%r14,4), %rax
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rdi
movq (%rcx,%rax,8), %rax
movq 0x50(%rax), %r15
callq 0xc962
addq $0x8, %r15
movq %rbp, %rdi
movq %r15, %rsi
leaq 0xfeeb(%rip), %rdx      # 0x18304
movl %eax, %ecx
xorl %eax, %eax
callq 0xbc4c
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %r14, %rdx
jbe 0x8f11
movq 0x48(%rbx), %rcx
movslq (%rax,%r14,4), %rax
movq (%rcx,%rax,8), %rcx
movq 0x50(%rcx), %rcx
movb %r13b, 0x10(%rcx)
movq 0x40(%rbx), %rcx
movq (%rcx,%rax,8), %rax
movq 0x20(%rax), %rax
movb %r13b, 0x10(%rax)
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %rbp
movl $0x15, %edx
movq %rax, %rdi
leaq 0x100a5(%rip), %rsi     # 0x1853f
callq 0x3310
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %rbp, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
incq %r14
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
subq %rax, %rcx
movq %rcx, %rdx
sarq $0x2, %rdx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r14
jl 0x83e2
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %rbp
movq (%rcx,%rbp,8), %rax
movq 0x50(%rax), %rax
cmpb $0x0, 0x10(%rax)
jne 0x84ee
movq 0x18ab1(%rip), %rdi     # 0x20fc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x18a96(%rip), %rdi     # 0x20fc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xfeee(%rip), %rsi      # 0x18437
movl $0x22, %edx
movq %rax, %rdi
callq 0x3310
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq 0x38(%rbx), %r14
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %r13
movq 0x18(%rsp), %rax
movq 0x20(%rax), %r15
movq 0x40(%rax), %r12
movq 0x58(%rbx), %rdi
callq 0xc962
addq $0x8, %r13
leaq 0xfeac(%rip), %rdx      # 0x1845a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %r12, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0xbc4c
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %r14
leaq 0x158(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %rdi
callq 0x5a48
leaq 0x148(%rsp), %rsi
movq %r14, %rdi
callq 0xff50
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x8622
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc962
cmpl $0x113, %eax            # imm = 0x113
jne 0x876a
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %rbp
movq (%rcx,%rbp,8), %rax
movq 0x50(%rax), %rax
cmpb $0x0, 0x10(%rax)
jne 0x8636
movq 0x18969(%rip), %rdi     # 0x20fc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x1894e(%rip), %rdi     # 0x20fc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xfda6(%rip), %rsi      # 0x18437
movl $0x22, %edx
movq %rax, %rdi
callq 0x3310
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq 0x38(%rbx), %r14
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %r13
movq 0x18(%rsp), %rax
movq 0x20(%rax), %r15
movq 0x40(%rax), %r12
movq 0x58(%rbx), %rdi
callq 0xc962
addq $0x8, %r13
leaq 0xfd64(%rip), %rdx      # 0x1845a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %r12, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0xbc4c
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %r14
leaq 0x138(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x128(%rsp), %rdi
callq 0x5a48
leaq 0x128(%rsp), %rsi
movq %r14, %rdi
callq 0xff50
movq 0x128(%rsp), %rdi
cmpq %r15, %rdi
je 0x876a
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x8781
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc962
cmpl $0x11d, %eax            # imm = 0x11D
jne 0x8d18
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %r13
movq (%rcx,%r13,8), %rax
movq 0x50(%rax), %rax
cmpb $0x0, 0x10(%rax)
jne 0x8795
movq (%rsp), %r15
movq 0x8(%rsp), %r12
cmpq %r15, %r12
je 0x87de
movq %r15, %r14
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
addq $0x20, %r14
cmpq %r12, %r14
jne 0x87c8
movq %r15, 0x8(%rsp)
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %r14
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0x5a48
leaq 0x60(%rsp), %rdi
leaq 0x108(%rsp), %rdx
movq %r14, %rsi
callq 0xfc44
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps (%rsp), %xmm0
movq 0x10(%rsp), %rax
leaq 0x60(%rsp), %r14
movups (%r14), %xmm1
movaps %xmm1, (%rsp)
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movups %xmm1, (%r14)
movq $0x0, 0x10(%r14)
callq 0xb544
movq %r14, %rdi
callq 0xb544
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x888e
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rax
cmpl $0x0, 0x18(%rax)
jle 0x8ec0
xorl %ebp, %ebp
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rcx
movq 0x50(%rcx), %rcx
cmpb $0x0, 0x10(%rcx)
jne 0x8b04
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0x20(%rsp), %rdi
callq 0xb200
movq (%rsp), %rdi
cmpq %rdi, 0x8(%rsp)
je 0x8eff
callq 0x13c6c
leaq 0x60(%rsp), %rdi
movq %rax, %rsi
callq 0xb200
movq 0x28(%rsp), %rdx
movb $0x1, %r12b
cmpq 0x68(%rsp), %rdx
jne 0x8919
testq %rdx, %rdx
je 0x8916
movq 0x60(%rsp), %rsi
movq 0x20(%rsp), %rdi
callq 0x32d0
testl %eax, %eax
setne %r12b
jmp 0x8919
xorl %r12d, %r12d
testb %r12b, %r12b
je 0x8a2c
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0x40(%rsp), %rdi
callq 0xb200
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq $0x1, %rdx
jbe 0x8f22
addq $0x20, %rdi
callq 0x13c6c
leaq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0xb200
movq 0x48(%rsp), %rdx
cmpq 0x90(%rsp), %rdx
jne 0x89a1
testq %rdx, %rdx
je 0x8a2c
movq 0x88(%rsp), %rsi
movq 0x40(%rsp), %rdi
callq 0x32d0
testl %eax, %eax
je 0x8a2c
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0xa8(%rsp), %rdi
callq 0xb200
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq $0x2, %rdx
jbe 0x8f35
addq $0x40, %rdi
callq 0x13c6c
leaq 0x1e8(%rsp), %rdi
movq %rax, %rsi
callq 0xb200
movq 0xb0(%rsp), %rdx
movb $0x1, %r15b
cmpq 0x1f0(%rsp), %rdx
jne 0x8b1d
testq %rdx, %rdx
je 0x8a2f
movq 0x1e8(%rsp), %rsi
movq 0xa8(%rsp), %rdi
callq 0x32d0
testl %eax, %eax
setne %r14b
jmp 0x8a32
xorl %r15d, %r15d
xorl %r14d, %r14d
testb %r15b, %r15b
je 0x8a81
movq 0x1e8(%rsp), %rdi
leaq 0x1f8(%rsp), %rax
cmpq %rax, %rdi
je 0x8a5c
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x8a81
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x32c0
testb %r12b, %r12b
je 0x8ac7
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x8aab
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x8ac7
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x8ae3
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8aff
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32c0
testb %r14b, %r14b
jne 0x8b25
incq %rbp
movq 0x58(%rbx), %rax
movslq 0x18(%rax), %rax
cmpq %rax, %rbp
jl 0x889e
jmp 0x8ec0
movb $0x1, %r14b
jmp 0x8a32
movq 0x38(%rbx), %r14
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %r15
movq 0x58(%rbx), %rdi
callq 0xc962
addq $0x8, %r15
leaq 0xf7bb(%rip), %rdx      # 0x18304
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %ecx
xorl %eax, %eax
callq 0xbc4c
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %rax
movb $0x1, %cl
movb %cl, 0x10(%rax)
movq 0x40(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x20(%rax), %rax
movb %cl, 0x10(%rax)
movq 0x18449(%rip), %rdi     # 0x20fc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x1842e(%rip), %r14     # 0x20fc8
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r15
leaq 0xfa5f(%rip), %rsi      # 0x18613
movl $0x19, %edx
movq %rax, %rdi
callq 0x3310
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r15, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %rbp
movq (%rcx,%rbp,8), %rax
movq 0x50(%rax), %rax
cmpb $0x0, 0x10(%rax)
jne 0x8be8
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x183a0(%rip), %rdi     # 0x20fc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xf7f8(%rip), %rsi      # 0x18437
movl $0x22, %edx
movq %rax, %rdi
callq 0x3310
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq 0x38(%rbx), %r14
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %r13
movq 0x18(%rsp), %rax
movq 0x20(%rax), %r15
movq 0x40(%rax), %r12
movq 0x58(%rbx), %rdi
callq 0xc962
addq $0x8, %r13
leaq 0xf7b6(%rip), %rdx      # 0x1845a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %r12, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0xbc4c
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %r14
leaq 0xf8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x5a48
leaq 0xe8(%rsp), %rsi
movq %r14, %rdi
callq 0xff50
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x8d18
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc962
cmpl $0x11d, %eax            # imm = 0x11D
jne 0x8e8a
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xf6cb(%rip), %rsi      # 0x18407
leaq 0xf6ce(%rip), %rdx      # 0x18411
leaq 0x20(%rsp), %rdi
callq 0xb686
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %rbp
movq (%rcx,%rbp,8), %rax
movq 0x50(%rax), %rax
cmpb $0x0, 0x10(%rax)
jne 0x8d4d
movq 0x18252(%rip), %rdi     # 0x20fc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x18237(%rip), %rdi     # 0x20fc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xf8d7(%rip), %rsi      # 0x1867f
movl $0x25, %edx
movq %rax, %rdi
callq 0x3310
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq 0x38(%rbx), %r14
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %r12
movq 0x20(%rsp), %r15
movq 0x58(%rbx), %rdi
callq 0xc962
addq $0x8, %r12
leaq 0xf8a0(%rip), %rdx      # 0x186a5
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rcx
movl %eax, %r8d
xorl %eax, %eax
callq 0xbc4c
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rbx
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0x5a48
leaq 0xc8(%rsp), %rsi
movq %rbx, %rdi
callq 0xff50
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x8e73
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x8e8a
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32c0
movq %rsp, %rdi
callq 0xb544
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf8c3(%rip), %rdi      # 0x1876e
xorl %eax, %eax
callq 0x3410
leaq 0xf8b5(%rip), %rdi      # 0x1876e
xorl %eax, %eax
callq 0x3410
movq 0x38(%rbx), %rdi
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0xf752(%rip), %rdx      # 0x1862d
xorl %eax, %eax
callq 0xbc4c
movq 0x180df(%rip), %rdi     # 0x20fc8
leaq 0xf760(%rip), %rsi      # 0x18650
callq 0x3290
movl $0x1, %edi
callq 0x3370
leaq 0xf868(%rip), %rdi      # 0x1876e
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x3410
leaq 0xf856(%rip), %rdi      # 0x1876e
movq %r14, %rsi
xorl %eax, %eax
callq 0x3410
leaq 0xf845(%rip), %rdi      # 0x1876e
movl $0x1, %esi
xorl %eax, %eax
callq 0x3410
leaq 0xf832(%rip), %rdi      # 0x1876e
movl $0x2, %esi
xorl %eax, %eax
callq 0x3410
movq 0x18079(%rip), %rdi     # 0x20fc8
callq 0x3130
movq %rax, %r14
leaq 0xf529(%rip), %rsi      # 0x18487
movl $0x5a, %edx
movq %rax, %rdi
callq 0x3310
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x5, %rsi
movq %r14, %rdi
callq 0x31b0
movq %rax, %rdi
callq 0x3130
movq 0x38(%rbx), %rdi
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
movq 0x8(%rsp), %rcx
subq (%rsp), %rcx
sarq $0x5, %rcx
leaq 0xf532(%rip), %rdx      # 0x184e2
xorl %eax, %eax
callq 0xbc4c
jmp 0x8ef5
movq 0x18005(%rip), %rdi     # 0x20fc8
callq 0x3130
movq %rax, %rbx
leaq 0xf5bb(%rip), %rsi      # 0x1858d
movl $0x47, %edx
movq %rax, %rdi
callq 0x3310
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x5, %rsi
movq %rbx, %rdi
callq 0x31b0
movq %rax, %rbx
leaq 0xf74b(%rip), %rsi      # 0x18749
movl $0x17, %edx
movq %rax, %rdi
callq 0x3310
movq %rbx, %rdi
callq 0x3130
jmp 0x8ef5
movq %rax, %rbx
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x9274
movq 0x158(%rsp), %rsi
jmp 0x926c
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r15, %rdi
je 0x9274
movq 0x138(%rsp), %rsi
jmp 0x926c
movq %rax, %rbx
movq 0x168(%rsp), %rdi
cmpq %r15, %rdi
je 0x9274
movq 0x178(%rsp), %rsi
jmp 0x926c
jmp 0x924e
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x928b
movq 0xf8(%rsp), %rsi
jmp 0x9244
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x916a
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x916a
jmp 0x9249
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x928b
movq 0x118(%rsp), %rsi
jmp 0x9244
jmp 0x9249
movq %rax, %rbx
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
je 0x928b
movq 0x198(%rsp), %rsi
jmp 0x9244
movq %rax, %rbx
movq 0x1c8(%rsp), %rdi
cmpq %r15, %rdi
je 0x928b
movq 0x1d8(%rsp), %rsi
jmp 0x9244
movq %rax, %rbx
movq 0x1a8(%rsp), %rdi
cmpq %r15, %rdi
je 0x928b
movq 0x1b8(%rsp), %rsi
jmp 0x9244
jmp 0x9249
jmp 0x924e
jmp 0x9249
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
jne 0x923f
jmp 0x928b
jmp 0x9195
movq %rax, %rbx
jmp 0x91bd
jmp 0x924e
jmp 0x91e8
movq %rax, %rbx
jmp 0x9207
jmp 0x924e
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x91bd
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x91eb
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x91eb
jmp 0x922d
jmp 0x9249
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x9207
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x9230
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x9230
jmp 0x922d
jmp 0x9249
jmp 0x922d
jmp 0x924e
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x928b
movq 0x30(%rsp), %rsi
incq %rsi
jmp 0x9286
movq %rax, %rbx
jmp 0x928b
movq %rax, %rbx
jmp 0x9274
jmp 0x9255
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x9274
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x928b
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq %rsp, %rdi
callq 0xb544
movq %rbx, %rdi
callq 0x34b0
nop