// File: /workspace/github_cpp_makefile_star2_O3/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 0xc87e
cmpl $0x96, %eax
jne 0x7c91
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 0x7b5d
movq 0x18442(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x18427(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xf87f(%rip), %rsi      # 0x17437
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 0xc87e
addq $0x8, %r13
leaq 0xf83d(%rip), %rdx      # 0x1745a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %r12, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0xbbb8
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 0x5a4e
leaq 0x1c8(%rsp), %rsi
movq %r14, %rdi
callq 0xfc4c
movq 0x1c8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7c91
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0xaf, %eax
jne 0x80d7
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %r13
movq (%rcx,%r13,8), %r14
movq 0x50(%r14), %rax
cmpb $0x0, 0x10(%rax)
jne 0x7ca5
movq (%rsp), %r15
movq 0x8(%rsp), %r12
cmpq %r15, %r12
je 0x7cf6
movq %r15, %r14
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
addq $0x20, %r14
cmpq %r12, %r14
jne 0x7cd8
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 0x5a4e
leaq 0x40(%rsp), %rdi
leaq 0x1a8(%rsp), %rdx
movq %r14, %rsi
callq 0xf940
movq 0x10(%rsp), %rax
leaq 0x40(%rsp), %r14
movaps (%r14), %xmm0
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
leaq 0x20(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
callq 0xb4a6
movq %r14, %rdi
callq 0xb4a6
movq 0x1a8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7d98
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x8(%rsp), %rax
subq (%rsp), %rax
cmpq $0x21, %rax
jb 0x8f04
movq 0x58(%rbx), %rax
cmpl $0x0, 0x18(%rax)
jle 0x7eb6
movl $0x2, %r14d
xorl %ebp, %ebp
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0x20(%rsp), %rdi
callq 0xb164
movslq %r14d, %rsi
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x8ead
shlq $0x5, %rsi
addq %rsi, %rdi
callq 0x13990
leaq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0xb164
movq 0x28(%rsp), %rdx
cmpq 0x48(%rsp), %rdx
jne 0x7e3b
movq 0x40(%rsp), %r12
testq %rdx, %rdx
je 0x7e45
movq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x32d0
testl %eax, %eax
sete %r15b
jmp 0x7e48
movq 0x40(%rsp), %r12
xorl %r15d, %r15d
jmp 0x7e48
movb $0x1, %r15b
leaq 0x50(%rsp), %rax
cmpq %rax, %r12
je 0x7e62
movq 0x50(%rsp), %rsi
incq %rsi
movq %r12, %rdi
callq 0x32c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x7e7e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32c0
testb %r15b, %r15b
je 0x7ea2
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %r12
cmpb $0x0, 0x10(%r12)
je 0x7ef0
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 0x7dc1
movq 0x38(%rbx), %rdi
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0xf684(%rip), %rdx      # 0x17555
xorl %eax, %eax
callq 0xbbb8
movq 0x180e9(%rip), %rdi     # 0x1ffc8
leaq 0xf685(%rip), %rsi      # 0x1756b
callq 0x3290
jmp 0x8b1a
movq 0x38(%rbx), %r14
movq 0x58(%rbx), %rdi
callq 0xc87e
addq $0x8, %r12
leaq 0xf3fc(%rip), %rdx      # 0x17304
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %ecx
xorl %eax, %eax
callq 0xbbb8
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 0x1808a(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x1806f(%rip), %r14     # 0x1ffc8
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r15
leaq 0xf5cc(%rip), %rsi      # 0x1753f
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 0x7fa7
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x17fe1(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xf439(%rip), %rsi      # 0x17437
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 0xc87e
addq $0x8, %r13
leaq 0xf3f7(%rip), %rdx      # 0x1745a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %r12, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0xbbb8
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 0x5a4e
leaq 0x188(%rsp), %rsi
movq %r14, %rdi
callq 0xfc4c
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
je 0x80d7
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0xe1, %eax
jl 0x8753
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0xe1, %eax
jne 0x85f4
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %r15
movq (%rcx,%r15,8), %r14
movq 0x50(%r14), %rax
cmpb $0x0, 0x10(%rax)
jne 0x8110
movq (%rsp), %r12
movq 0x8(%rsp), %r13
cmpq %r12, %r13
je 0x8161
movq %r12, %r14
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
addq $0x20, %r14
cmpq %r13, %r14
jne 0x8143
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 0x5a4e
leaq 0x40(%rsp), %rdi
leaq 0x168(%rsp), %rdx
movq %r14, %rsi
callq 0xf940
movq 0x10(%rsp), %rax
leaq 0x40(%rsp), %r14
movaps (%r14), %xmm0
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
leaq 0x20(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
callq 0xb4a6
movq %r14, %rdi
callq 0xb4a6
movq 0x168(%rsp), %rdi
cmpq %r15, %rdi
je 0x8203
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x8(%rsp), %rax
subq (%rsp), %rax
cmpq $0x41, %rax
jb 0x8f78
movl $0x2, %r12d
movl $0x0, 0x84(%rsp)
leaq 0x20(%rsp), %r14
leaq 0x40(%rsp), %r15
movl $0x0, 0x88(%rsp)
movq 0x58(%rbx), %rax
cmpl $0x0, 0x18(%rax)
je 0x8380
xorl %eax, %eax
movq 0x48(%rbx), %rcx
cltq
movq (%rcx,%rax,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
movq %r14, %rdi
callq 0xb164
movslq %r12d, %rsi
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0x8e9f
shlq $0x5, %rsi
addq %rsi, %rdi
callq 0x13990
movq %r15, %rdi
movq %rax, %rsi
callq 0xb164
movq 0x28(%rsp), %rdx
cmpq 0x48(%rsp), %rdx
jne 0x82c4
movq 0x40(%rsp), %rbp
testq %rdx, %rdx
je 0x82ce
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x32d0
testl %eax, %eax
sete %r13b
jmp 0x82d1
movq 0x40(%rsp), %rbp
xorl %r13d, %r13d
jmp 0x82d1
movb $0x1, %r13b
leaq 0x50(%rsp), %rax
cmpq %rax, %rbp
je 0x82eb
movq 0x50(%rsp), %rsi
incq %rsi
movq %rbp, %rdi
callq 0x32c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8307
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32c0
movl 0x88(%rsp), %eax
testb %r13b, %r13b
je 0x8333
movslq %eax, %rcx
movq 0x48(%rbx), %rdx
movq (%rdx,%rcx,8), %rcx
movq 0x50(%rcx), %rcx
cmpb $0x0, 0x10(%rcx)
je 0x834b
xorl %ecx, %ecx
testl %r12d, %r12d
setg %cl
subl %ecx, %r12d
incl %eax
movl %eax, 0x88(%rsp)
movq 0x58(%rbx), %rcx
cmpl 0x18(%rcx), %eax
jne 0x824c
jmp 0x8380
movq 0x68(%rsp), %rsi
cmpq 0x70(%rsp), %rsi
je 0x8364
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x68(%rsp)
jmp 0x8376
leaq 0x60(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0xba30
decl %r12d
incl 0x84(%rsp)
cmpl $0x2, 0x84(%rsp)
jne 0x8231
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
testl %edx, %edx
jle 0x84c0
movb $0x1, %r13b
movq 0x17c17(%rip), %r12     # 0x1ffc8
xorl %r14d, %r14d
cmpq %r14, %rdx
jbe 0x8ee0
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 0xc87e
addq $0x8, %r15
movq %rbp, %rdi
movq %r15, %rsi
leaq 0xef19(%rip), %rdx      # 0x17304
movl %eax, %ecx
xorl %eax, %eax
callq 0xbbb8
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %r14, %rdx
jbe 0x8ee0
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 0xf0d3(%rip), %rsi      # 0x1753f
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 0x60(%rsp), %rax
movq 0x68(%rsp), %rcx
subq %rax, %rcx
movq %rcx, %rdx
sarq $0x2, %rdx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r14
jl 0x83b4
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 0x84c0
movq 0x17adf(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x17ac4(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xef1c(%rip), %rsi      # 0x17437
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 0xc87e
addq $0x8, %r13
leaq 0xeeda(%rip), %rdx      # 0x1745a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %r12, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0xbbb8
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 0x5a4e
leaq 0x148(%rsp), %rsi
movq %r14, %rdi
callq 0xfc4c
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x85f4
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0x113, %eax            # imm = 0x113
jne 0x873c
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 0x8608
movq 0x17997(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x1797c(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xedd4(%rip), %rsi      # 0x17437
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 0xc87e
addq $0x8, %r13
leaq 0xed92(%rip), %rdx      # 0x1745a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %r12, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0xbbb8
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 0x5a4e
leaq 0x128(%rsp), %rsi
movq %r14, %rdi
callq 0xfc4c
movq 0x128(%rsp), %rdi
cmpq %r15, %rdi
je 0x873c
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x8753
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0x11d, %eax            # imm = 0x11D
jne 0x8d13
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %r13
movq (%rcx,%r13,8), %r14
movq 0x50(%r14), %rax
cmpb $0x0, 0x10(%rax)
jne 0x8767
movq (%rsp), %r15
movq 0x8(%rsp), %r12
cmpq %r15, %r12
je 0x87b8
movq %r15, %r14
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
addq $0x20, %r14
cmpq %r12, %r14
jne 0x879a
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 0x5a4e
leaq 0x40(%rsp), %rdi
leaq 0x108(%rsp), %rdx
movq %r14, %rsi
callq 0xf940
movq 0x10(%rsp), %rax
leaq 0x40(%rsp), %r14
movaps (%r14), %xmm0
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rsp)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
leaq 0x20(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
callq 0xb4a6
movq %r14, %rdi
callq 0xb4a6
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x885a
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
cmpl $0x0, 0x18(%rdi)
jle 0x8ae5
xorl %r12d, %r12d
leaq 0x40(%rsp), %r15
movq 0x48(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x50(%rax), %rsi
cmpb $0x0, 0x10(%rsi)
jne 0x8ad5
addq $0x8, %rsi
leaq 0x20(%rsp), %rdi
callq 0xb164
movq (%rsp), %rdi
cmpq %rdi, 0x8(%rsp)
je 0x8ebb
callq 0x13990
movq %r15, %rdi
movq %rax, %rsi
callq 0xb164
movq 0x28(%rsp), %rdx
cmpq 0x48(%rsp), %rdx
jne 0x88e2
movq 0x40(%rsp), %rbp
testq %rdx, %rdx
je 0x89eb
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x32d0
testl %eax, %eax
je 0x89eb
movq 0x48(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0x60(%rsp), %rdi
callq 0xb164
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq $0x1, %rdx
jbe 0x8ecd
addq $0x20, %rdi
callq 0x13990
leaq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0xb164
movq 0x68(%rsp), %rdx
cmpq 0x90(%rsp), %rdx
jne 0x8964
movq 0x88(%rsp), %rbp
testq %rdx, %rdx
je 0x8a00
movq 0x60(%rsp), %rdi
movq %rbp, %rsi
callq 0x32d0
testl %eax, %eax
je 0x8a00
movq 0x48(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0xa8(%rsp), %rdi
callq 0xb164
movq (%rsp), %rdi
movq 0x8(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq $0x2, %rdx
jbe 0x8ef1
addq $0x40, %rdi
callq 0x13990
leaq 0x1e8(%rsp), %rdi
movq %rax, %rsi
callq 0xb164
movq 0xb0(%rsp), %rdx
cmpq 0x1f0(%rsp), %rdx
jne 0x89f3
movq 0x1e8(%rsp), %rbp
testq %rdx, %rdx
je 0x8a05
movq 0xa8(%rsp), %rdi
movq %rbp, %rsi
callq 0x32d0
testl %eax, %eax
setne %r14b
jmp 0x8a08
xorl %r14d, %r14d
jmp 0x8a96
movb $0x1, %r14b
movq 0x1e8(%rsp), %rbp
jmp 0x8a08
xorl %r14d, %r14d
jmp 0x8a55
xorl %r14d, %r14d
leaq 0x1f8(%rsp), %rax
cmpq %rax, %rbp
je 0x8a28
movq 0x1f8(%rsp), %rsi
incq %rsi
movq %rbp, %rdi
callq 0x32c0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x8a4d
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x88(%rsp), %rbp
leaq 0x98(%rsp), %rax
cmpq %rax, %rbp
je 0x8a75
movq 0x98(%rsp), %rsi
incq %rsi
movq %rbp, %rdi
callq 0x32c0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x8a91
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x40(%rsp), %rbp
leaq 0x50(%rsp), %rax
cmpq %rax, %rbp
je 0x8ab0
movq 0x50(%rsp), %rsi
incq %rsi
movq %rbp, %rdi
callq 0x32c0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x8acc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
testb %r14b, %r14b
jne 0x8b24
incq %r12
movslq 0x18(%rdi), %rax
cmpq %rax, %r12
jl 0x8870
movq 0x38(%rbx), %rdi
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0xeb2d(%rip), %rdx      # 0x1762d
xorl %eax, %eax
callq 0xbbb8
movq 0x174ba(%rip), %rdi     # 0x1ffc8
leaq 0xeb3b(%rip), %rsi      # 0x17650
callq 0x3290
movl $0x1, %edi
callq 0x3370
movq 0x38(%rbx), %r14
movq 0x48(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x50(%rax), %r15
callq 0xc87e
addq $0x8, %r15
leaq 0xe7c0(%rip), %rdx      # 0x17304
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %ecx
xorl %eax, %eax
callq 0xbbb8
movq 0x48(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x50(%rax), %rax
movb $0x1, %cl
movb %cl, 0x10(%rax)
movq 0x40(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x20(%rax), %rax
movb %cl, 0x10(%rax)
movq 0x1744e(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x17433(%rip), %r14     # 0x1ffc8
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r15
leaq 0xea64(%rip), %rsi      # 0x17613
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 0x8be3
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x173a5(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xe7fd(%rip), %rsi      # 0x17437
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 0xc87e
addq $0x8, %r13
leaq 0xe7bb(%rip), %rdx      # 0x1745a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %r12, %r8
movl %eax, %r9d
xorl %eax, %eax
callq 0xbbb8
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 0x5a4e
leaq 0xe8(%rsp), %rsi
movq %r14, %rdi
callq 0xfc4c
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x8d13
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0x11d, %eax            # imm = 0x11D
jne 0x8e85
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xe6d0(%rip), %rsi      # 0x17407
leaq 0xe6d3(%rip), %rdx      # 0x17411
leaq 0x20(%rsp), %rdi
callq 0xb5ee
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 0x8d48
movq 0x17257(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x1723c(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xe8dc(%rip), %rsi      # 0x1767f
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 0xc87e
addq $0x8, %r12
leaq 0xe8a5(%rip), %rdx      # 0x176a5
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rcx
movl %eax, %r8d
xorl %eax, %eax
callq 0xbbb8
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 0x5a4e
leaq 0xc8(%rsp), %rsi
movq %rbx, %rdi
callq 0xfc4c
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x8e6e
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x8e85
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32c0
movq %rsp, %rdi
callq 0xb4a6
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe8c8(%rip), %rdi      # 0x1776e
xorl %eax, %eax
callq 0x3410
leaq 0xe8ba(%rip), %rdi      # 0x1776e
xorl %eax, %eax
callq 0x3410
leaq 0xe8ac(%rip), %rdi      # 0x1776e
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x3410
leaq 0xe89a(%rip), %rdi      # 0x1776e
movl $0x1, %esi
xorl %eax, %eax
callq 0x3410
leaq 0xe887(%rip), %rdi      # 0x1776e
movq %r14, %rsi
xorl %eax, %eax
callq 0x3410
leaq 0xe876(%rip), %rdi      # 0x1776e
movl $0x2, %esi
xorl %eax, %eax
callq 0x3410
movq 0x170bd(%rip), %rdi     # 0x1ffc8
callq 0x3130
movq %rax, %r14
leaq 0xe56d(%rip), %rsi      # 0x17487
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 0xe576(%rip), %rdx      # 0x174e2
xorl %eax, %eax
callq 0xbbb8
jmp 0x8b1a
movq 0x17049(%rip), %rdi     # 0x1ffc8
callq 0x3130
movq %rax, %rbx
leaq 0xe5ff(%rip), %rsi      # 0x1758d
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 0xe78f(%rip), %rsi      # 0x17749
movl $0x17, %edx
movq %rax, %rdi
callq 0x3310
movq %rbx, %rdi
callq 0x3130
jmp 0x8b1a
movq %rax, %rbx
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x9230
movq 0x158(%rsp), %rsi
jmp 0x9228
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r15, %rdi
je 0x9230
movq 0x138(%rsp), %rsi
jmp 0x9228
movq %rax, %rbx
movq 0x168(%rsp), %rdi
cmpq %r15, %rdi
je 0x9230
movq 0x178(%rsp), %rsi
jmp 0x9228
jmp 0x920a
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9247
movq 0xf8(%rsp), %rsi
jmp 0x9200
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x9126
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x9126
jmp 0x9205
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x9247
movq 0x118(%rsp), %rsi
jmp 0x9200
jmp 0x9205
movq %rax, %rbx
movq 0x188(%rsp), %rdi
cmpq %r15, %rdi
je 0x9247
movq 0x198(%rsp), %rsi
jmp 0x9200
movq %rax, %rbx
movq 0x1c8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9247
movq 0x1d8(%rsp), %rsi
jmp 0x9200
movq %rax, %rbx
movq 0x1a8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9247
movq 0x1b8(%rsp), %rsi
jmp 0x9200
jmp 0x9205
jmp 0x920a
jmp 0x9205
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
jne 0x91fb
jmp 0x9247
jmp 0x920a
jmp 0x9151
movq %rax, %rbx
jmp 0x9179
jmp 0x920a
movq %rax, %rbx
jmp 0x91c3
jmp 0x91a4
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x9179
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x91a7
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x91a7
jmp 0x9205
jmp 0x91e9
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x91c3
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x91ec
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0x91ec
jmp 0x91e9
jmp 0x9205
jmp 0x91e9
jmp 0x920a
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x9247
movq 0x30(%rsp), %rsi
incq %rsi
jmp 0x9242
movq %rax, %rbx
jmp 0x9247
movq %rax, %rbx
jmp 0x9230
jmp 0x9211
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x9230
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x9247
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq %rsp, %rdi
callq 0xb4a6
movq %rbx, %rdi
callq 0x34b0
nop