// File: /workspace/github_cpp_makefile_star2_O3/tonymuu[P]distributed-kv-store/Application.cpp
// Function: Application::updateTest()
void Application::updateTest() {
	// Step 0. Key to be updated
	// This key is used for all update tests
	map<string, string>::iterator it = testKVPairs.begin();
	it++;
	string newValue = "newValue";
	int number;
	vector<Node> replicas;
	int replicaIdToFail = TERTIARY;
	int nodeToFail;
	bool failedOneNode = false;

	/**
	 * Test 1: Test if value is updated 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 update operation
		cout<<endl<<"Updating a valid key.... ... .. . ."<<endl;
		log->LOG(&mp2[number]->getMemberNode()->addr, "UPDATE OPERATION KEY: %s VALUE: %s at time: %d", it->first.c_str(), newValue.c_str(), par->getcurrtime());
		mp2[number]->clientUpdate(it->first, newValue);
	}

	/** end of test 1 **/

	/**
	 * Test 2: FAIL ONE REPLICA. Test if value is updated 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 quorum replicas are not found then exit
		if ( replicas.size() < RF-1 ) {
			log->LOG(&mp2[number]->getMemberNode()->addr, "Could not find at least quorum replicas for this key. Exiting!!! size of replicas vector: %d", replicas.size());
			cout<<endl<<"Could not find at least quorum replicas for this key. Exiting!!! size of replicas vector: "<<replicas.size()<<endl;
			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 update
		cout<<endl<<"Updating a valid key.... ... .. . ."<<endl;
		log->LOG(&mp2[number]->getMemberNode()->addr, "UPDATE OPERATION KEY: %s VALUE: %s at time: %d", it->first.c_str(), newValue.c_str(), par->getcurrtime());
		mp2[number]->clientUpdate(it->first, newValue);

		failedOneNode = false;
	}

	/** end of test 2 **/

	/**
	 * Test 3 part 1: Fail two replicas. Test if value is updated correctly in quorum number of nodes after TWO OF THE REPLICAS ARE FAILED
	 */
	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
			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. Exiting test case !! "<<endl;
			}
			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<<"Could not fail two nodes. Exiting!!!";
				exit(1);
			}

			number = findARandomNodeThatIsAlive();

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

		/**
		 * TEST 3 part 2: After failing two replicas and waiting for STABILIZE_TIME, issue an update
		 */
		// 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 update
			cout<<endl<<"Updating a valid key.... ... .. . ."<<endl;
			log->LOG(&mp2[number]->getMemberNode()->addr, "UPDATE OPERATION KEY: %s VALUE: %s at time: %d", it->first.c_str(), newValue.c_str(), par->getcurrtime());
			// This update should be successful
			mp2[number]->clientUpdate(it->first, newValue);
		}
	}

	/** 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 update operation
		cout<<endl<<"Updating a valid key.... ... .. . ."<<endl;
		log->LOG(&mp2[number]->getMemberNode()->addr, "UPDATE OPERATION KEY: %s VALUE: %s at time: %d", it->first.c_str(), newValue.c_str(), par->getcurrtime());
		// This read should fail since at least quorum nodes are not alive
		mp2[number]->clientUpdate(it->first, newValue);
	}

	/** end of test 4 **/

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

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

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

	/** end of test 5 **/

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
movq %rdi, %rbx
movq 0x78(%rdi), %rdi
callq 0x31d0
movq %rax, 0x8(%rsp)
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xe43b(%rip), %rsi      # 0x176c8
leaq 0xe43c(%rip), %rdx      # 0x176d0
leaq 0x98(%rsp), %rdi
callq 0xb5ee
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0x96, %eax
jne 0x9450
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 0x92c6
movq 0x16cd9(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x16cbe(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xe3b0(%rip), %rsi      # 0x176d1
movl $0x23, %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 0x8(%rsp), %rax
movq 0x20(%rax), %r15
movq 0x98(%rsp), %r12
movq 0x58(%rbx), %rdi
callq 0xc87e
addq $0x8, %r13
leaq 0xe36b(%rip), %rdx      # 0x176f5
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 0x2c8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x2b8(%rsp), %rdi
callq 0x5a4e
leaq 0x2a8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x298(%rsp), %rdi
callq 0x5a4e
leaq 0x2b8(%rsp), %rsi
leaq 0x298(%rsp), %rdx
movq %r14, %rdi
callq 0x10006
movq 0x298(%rsp), %rdi
cmpq %r12, %rdi
je 0x9433
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x2b8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9450
movq 0x2c8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0xaf, %eax
jne 0x98f5
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 0x9464
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %r12
cmpq %r15, %r12
je 0x94b6
movq %r15, %r14
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
addq $0x20, %r14
cmpq %r12, %r14
jne 0x9498
movq %r15, 0x18(%rsp)
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %r14
leaq 0x288(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x278(%rsp), %rdi
callq 0x5a4e
leaq 0x50(%rsp), %rdi
leaq 0x278(%rsp), %rdx
movq %r14, %rsi
callq 0xf940
movq 0x20(%rsp), %rax
leaq 0x50(%rsp), %r14
movaps (%r14), %xmm0
movq 0x10(%r14), %rcx
movq %rcx, 0x20(%rsp)
movaps 0x10(%rsp), %xmm1
movaps %xmm0, 0x10(%rsp)
leaq 0x30(%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 0x278(%rsp), %rdi
cmpq %r15, %rdi
je 0x955a
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x18(%rsp), %rcx
subq 0x10(%rsp), %rcx
sarq $0x5, %rcx
cmpq $0x2, %rcx
jb 0xa8fb
movq 0x58(%rbx), %rax
cmpl $0x0, 0x18(%rax)
jle 0x967e
movl $0x2, %r14d
xorl %ebp, %ebp
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0x30(%rsp), %rdi
callq 0xb164
movslq %r14d, %rsi
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0xa8a4
shlq $0x5, %rsi
addq %rsi, %rdi
callq 0x13990
leaq 0x50(%rsp), %rdi
movq %rax, %rsi
callq 0xb164
movq 0x38(%rsp), %rdx
cmpq 0x58(%rsp), %rdx
jne 0x9603
movq 0x50(%rsp), %r12
testq %rdx, %rdx
je 0x960d
movq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x32d0
testl %eax, %eax
sete %r15b
jmp 0x9610
movq 0x50(%rsp), %r12
xorl %r15d, %r15d
jmp 0x9610
movb $0x1, %r15b
leaq 0x60(%rsp), %rax
cmpq %rax, %r12
je 0x962a
movq 0x60(%rsp), %rsi
incq %rsi
movq %r12, %rdi
callq 0x32c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x9646
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32c0
testb %r15b, %r15b
je 0x966a
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %r12
cmpb $0x0, 0x10(%r12)
je 0x96b8
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 0x9588
movq 0x38(%rbx), %rdi
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0xdebc(%rip), %rdx      # 0x17555
xorl %eax, %eax
callq 0xbbb8
movq 0x16921(%rip), %rdi     # 0x1ffc8
leaq 0xdebd(%rip), %rsi      # 0x1756b
callq 0x3290
jmp 0xa3ff
movq 0x38(%rbx), %r14
movq 0x58(%rbx), %rdi
callq 0xc87e
addq $0x8, %r12
leaq 0xdc34(%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 0x168c2(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x168a7(%rip), %r14     # 0x1ffc8
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r15
leaq 0xde04(%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 0x976f
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x16819(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xdf0b(%rip), %rsi      # 0x176d1
movl $0x23, %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 0x8(%rsp), %rax
movq 0x20(%rax), %r15
movq 0x98(%rsp), %r12
movq 0x58(%rbx), %rdi
callq 0xc87e
addq $0x8, %r13
leaq 0xdec6(%rip), %rdx      # 0x176f5
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 0x268(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x258(%rsp), %rdi
callq 0x5a4e
leaq 0x248(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x238(%rsp), %rdi
callq 0x5a4e
leaq 0x258(%rsp), %rsi
leaq 0x238(%rsp), %rdx
movq %r14, %rdi
callq 0x10006
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x98d8
movq 0x248(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x258(%rsp), %rdi
cmpq %r15, %rdi
je 0x98f5
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0xe1, %eax
jl 0xa02c
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0xe1, %eax
jne 0x9e74
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 0x9931
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %r13
cmpq %r12, %r13
je 0x9983
movq %r12, %r14
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
addq $0x20, %r14
cmpq %r13, %r14
jne 0x9965
movq %r12, 0x18(%rsp)
movq 0x48(%rbx), %rax
movq (%rax,%r15,8), %r14
leaq 0x228(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x218(%rsp), %rdi
callq 0x5a4e
leaq 0x50(%rsp), %rdi
leaq 0x218(%rsp), %rdx
movq %r14, %rsi
callq 0xf940
movq 0x20(%rsp), %rax
leaq 0x50(%rsp), %r14
movaps (%r14), %xmm0
movq 0x10(%r14), %rcx
movq %rcx, 0x20(%rsp)
movaps 0x10(%rsp), %xmm1
movaps %xmm0, 0x10(%rsp)
leaq 0x30(%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 0x218(%rsp), %rdi
cmpq %r12, %rdi
je 0x9a28
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
cmpq $0x41, %rax
jb 0xa963
movl $0x2, %r12d
movl $0x0, 0x94(%rsp)
leaq 0x30(%rsp), %r14
leaq 0x50(%rsp), %r15
movl $0x0, 0xb8(%rsp)
movq 0x58(%rbx), %rax
cmpl $0x0, 0x18(%rax)
je 0x9baa
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 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq %rsi, %rdx
jbe 0xa896
shlq $0x5, %rsi
addq %rsi, %rdi
callq 0x13990
movq %r15, %rdi
movq %rax, %rsi
callq 0xb164
movq 0x38(%rsp), %rdx
cmpq 0x58(%rsp), %rdx
jne 0x9aeb
movq 0x50(%rsp), %rbp
testq %rdx, %rdx
je 0x9af5
movq 0x30(%rsp), %rdi
movq %rbp, %rsi
callq 0x32d0
testl %eax, %eax
sete %r13b
jmp 0x9af8
movq 0x50(%rsp), %rbp
xorl %r13d, %r13d
jmp 0x9af8
movb $0x1, %r13b
leaq 0x60(%rsp), %rax
cmpq %rax, %rbp
je 0x9b12
movq 0x60(%rsp), %rsi
incq %rsi
movq %rbp, %rdi
callq 0x32c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x9b2e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32c0
movl 0xb8(%rsp), %eax
testb %r13b, %r13b
je 0x9b5a
movslq %eax, %rcx
movq 0x48(%rbx), %rdx
movq (%rdx,%rcx,8), %rcx
movq 0x50(%rcx), %rcx
cmpb $0x0, 0x10(%rcx)
je 0x9b72
xorl %ecx, %ecx
testl %r12d, %r12d
setg %cl
subl %ecx, %r12d
incl %eax
movl %eax, 0xb8(%rsp)
movq 0x58(%rbx), %rcx
cmpl 0x18(%rcx), %eax
jne 0x9a72
jmp 0x9baa
movq 0x78(%rsp), %rsi
cmpq 0x80(%rsp), %rsi
je 0x9b8e
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x78(%rsp)
jmp 0x9ba0
leaq 0x70(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
callq 0xba30
decl %r12d
incl 0x94(%rsp)
cmpl $0x2, 0x94(%rsp)
jne 0x9a57
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
testl %edx, %edx
jle 0x9cea
movb $0x1, %r13b
movq 0x163ed(%rip), %r12     # 0x1ffc8
xorl %r14d, %r14d
cmpq %r14, %rdx
jbe 0xa8d7
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 0xd6ef(%rip), %rdx      # 0x17304
movl %eax, %ecx
xorl %eax, %eax
callq 0xbbb8
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %r14, %rdx
jbe 0xa8d7
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 0xd8a9(%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 0x70(%rsp), %rax
movq 0x78(%rsp), %rcx
subq %rax, %rcx
movq %rcx, %rdx
sarq $0x2, %rdx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r14
jl 0x9bde
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 0x9cea
movq 0x162b5(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x1629a(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xd98c(%rip), %rsi      # 0x176d1
movl $0x23, %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 0x8(%rsp), %rax
movq 0x20(%rax), %r15
movq 0x98(%rsp), %r12
movq 0x58(%rbx), %rdi
callq 0xc87e
addq $0x8, %r13
leaq 0xd947(%rip), %rdx      # 0x176f5
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 0x208(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %rdi
callq 0x5a4e
leaq 0x1e8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1d8(%rsp), %rdi
callq 0x5a4e
leaq 0x1f8(%rsp), %rsi
leaq 0x1d8(%rsp), %rdx
movq %r14, %rdi
callq 0x10006
movq 0x1d8(%rsp), %rdi
cmpq %r12, %rdi
je 0x9e57
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x1f8(%rsp), %rdi
cmpq %r15, %rdi
je 0x9e74
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0x113, %eax            # imm = 0x113
jne 0xa012
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 0x9e88
movq 0x16117(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x160fc(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xd7ee(%rip), %rsi      # 0x176d1
movl $0x23, %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 0x8(%rsp), %rax
movq 0x20(%rax), %r15
movq 0x98(%rsp), %r12
movq 0x58(%rbx), %rdi
callq 0xc87e
addq $0x8, %r13
leaq 0xd7a9(%rip), %rdx      # 0x176f5
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 0x1c8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x1b8(%rsp), %rdi
callq 0x5a4e
leaq 0x1a8(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x198(%rsp), %rdi
callq 0x5a4e
leaq 0x1b8(%rsp), %rsi
leaq 0x198(%rsp), %rdx
movq %r14, %rdi
callq 0x10006
movq 0x198(%rsp), %rdi
cmpq %r12, %rdi
je 0x9ff5
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x1b8(%rsp), %rdi
cmpq %r15, %rdi
je 0xa012
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xa02c
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0x11d, %eax            # imm = 0x11D
jne 0xa64e
callq 0x30a0
movq 0x48(%rbx), %rcx
movq 0x58(%rbx), %rsi
cltd
idivl 0x18(%rsi)
movslq %edx, %rbp
movq (%rcx,%rbp,8), %r14
movq 0x50(%r14), %rax
cmpb $0x0, 0x10(%rax)
jne 0xa040
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %r12
cmpq %r15, %r12
je 0xa092
movq %r15, %r14
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
addq $0x20, %r14
cmpq %r12, %r14
jne 0xa074
movq %r15, 0x18(%rsp)
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %r14
leaq 0x188(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x178(%rsp), %rdi
callq 0x5a4e
leaq 0x50(%rsp), %rdi
leaq 0x178(%rsp), %rdx
movq %r14, %rsi
callq 0xf940
movq 0x20(%rsp), %rax
leaq 0x50(%rsp), %r14
movaps (%r14), %xmm0
movq 0x10(%r14), %rcx
movq %rcx, 0x20(%rsp)
movaps 0x10(%rsp), %xmm1
movaps %xmm0, 0x10(%rsp)
leaq 0x30(%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 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0xa136
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
cmpl $0x0, 0x18(%rdi)
jle 0xa3ca
xorl %r13d, %r13d
leaq 0x50(%rsp), %r12
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %rsi
cmpb $0x0, 0x10(%rsi)
jne 0xa3ba
addq $0x8, %rsi
leaq 0x30(%rsp), %rdi
callq 0xb164
movq 0x10(%rsp), %rdi
cmpq %rdi, 0x18(%rsp)
je 0xa8b2
callq 0x13990
movq %r12, %rdi
movq %rax, %rsi
callq 0xb164
movq 0x38(%rsp), %rdx
cmpq 0x58(%rsp), %rdx
jne 0xa1bf
movq 0x50(%rsp), %r14
testq %rdx, %rdx
je 0xa2ca
movq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x32d0
testl %eax, %eax
je 0xa2ca
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0x70(%rsp), %rdi
callq 0xb164
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq $0x1, %rdx
jbe 0xa8c4
addq $0x20, %rdi
callq 0x13990
leaq 0xb8(%rsp), %rdi
movq %rax, %rsi
callq 0xb164
movq 0x78(%rsp), %rdx
cmpq 0xc0(%rsp), %rdx
jne 0xa242
movq 0xb8(%rsp), %r14
testq %rdx, %rdx
je 0xa2df
movq 0x70(%rsp), %rdi
movq %r14, %rsi
callq 0x32d0
testl %eax, %eax
je 0xa2df
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0xd8(%rsp), %rdi
callq 0xb164
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
cmpq $0x2, %rdx
jbe 0xa8e8
addq $0x40, %rdi
callq 0x13990
leaq 0x2d8(%rsp), %rdi
movq %rax, %rsi
callq 0xb164
movq 0xe0(%rsp), %rdx
cmpq 0x2e0(%rsp), %rdx
jne 0xa2d2
movq 0x2d8(%rsp), %r14
testq %rdx, %rdx
je 0xa2e4
movq 0xd8(%rsp), %rdi
movq %r14, %rsi
callq 0x32d0
testl %eax, %eax
setne %r15b
jmp 0xa2e7
xorl %r15d, %r15d
jmp 0xa37b
movb $0x1, %r15b
movq 0x2d8(%rsp), %r14
jmp 0xa2e7
xorl %r15d, %r15d
jmp 0xa334
xorl %r15d, %r15d
leaq 0x2e8(%rsp), %rax
cmpq %rax, %r14
je 0xa307
movq 0x2e8(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x32c0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0xa32c
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0xb8(%rsp), %r14
leaq 0xc8(%rsp), %rax
cmpq %rax, %r14
je 0xa354
movq 0xc8(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x32c0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xa376
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x50(%rsp), %r14
leaq 0x60(%rsp), %rax
cmpq %rax, %r14
je 0xa395
movq 0x60(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x32c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xa3b1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
testb %r15b, %r15b
jne 0xa409
incq %r13
movslq 0x18(%rdi), %rax
cmpq %rax, %r13
jl 0xa14c
movq 0x38(%rbx), %rdi
movq 0x48(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0xd248(%rip), %rdx      # 0x1762d
xorl %eax, %eax
callq 0xbbb8
movq 0x15bd5(%rip), %rdi     # 0x1ffc8
leaq 0xd256(%rip), %rsi      # 0x17650
callq 0x3290
movl $0x1, %edi
callq 0x3370
movq 0x38(%rbx), %r14
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %r15
callq 0xc87e
addq $0x8, %r15
leaq 0xcedb(%rip), %rdx      # 0x17304
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %ecx
xorl %eax, %eax
callq 0xbbb8
movq 0x48(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x50(%rax), %rax
movb $0x1, %cl
movb %cl, 0x10(%rax)
movq 0x40(%rbx), %rax
movq (%rax,%r13,8), %rax
movq 0x20(%rax), %rax
movb %cl, 0x10(%rax)
movq 0x15b69(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x15b4e(%rip), %r14     # 0x1ffc8
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r15
leaq 0xd17f(%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 0xa4c8
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x15ac0(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xd1b2(%rip), %rsi      # 0x176d1
movl $0x23, %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 0x8(%rsp), %rax
movq 0x20(%rax), %r15
movq 0x98(%rsp), %r12
movq 0x58(%rbx), %rdi
callq 0xc87e
addq $0x8, %r13
leaq 0xd16d(%rip), %rdx      # 0x176f5
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 0x168(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0x5a4e
leaq 0x148(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0x5a4e
leaq 0x158(%rsp), %rsi
leaq 0x138(%rsp), %rdx
movq %r14, %rdi
callq 0x10006
movq 0x138(%rsp), %rdi
cmpq %r12, %rdi
je 0xa631
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0xa64e
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x58(%rbx), %rdi
callq 0xc87e
cmpl $0x11d, %eax            # imm = 0x11D
jne 0xa855
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xcd95(%rip), %rsi      # 0x17407
leaq 0xcd98(%rip), %rdx      # 0x17411
leaq 0x30(%rsp), %rdi
callq 0xb5ee
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xd0ce(%rip), %rsi      # 0x17761
leaq 0xd0d3(%rip), %rdx      # 0x1776d
leaq 0x50(%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 0xa6a4
movq 0x158fb(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x158e0(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xcfd2(%rip), %rsi      # 0x176d1
movl $0x23, %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 0x30(%rsp), %r15
movq 0x50(%rsp), %r12
movq 0x58(%rbx), %rdi
callq 0xc87e
addq $0x8, %r13
leaq 0xcf94(%rip), %rdx      # 0x176f5
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), %rbx
leaq 0x128(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x118(%rsp), %rdi
callq 0x5a4e
leaq 0x108(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %rdi
callq 0x5a4e
leaq 0x118(%rsp), %rsi
leaq 0xf8(%rsp), %rdx
movq %rbx, %rdi
callq 0x10006
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0xa800
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
leaq 0x40(%rsp), %rbx
leaq 0x60(%rsp), %r14
je 0xa827
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0xa83e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0xa855
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32c0
leaq 0x10(%rsp), %rdi
callq 0xb4a6
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0xa884
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x32c0
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xced1(%rip), %rdi      # 0x1776e
xorl %eax, %eax
callq 0x3410
leaq 0xcec3(%rip), %rdi      # 0x1776e
xorl %eax, %eax
callq 0x3410
leaq 0xceb5(%rip), %rdi      # 0x1776e
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x3410
leaq 0xcea3(%rip), %rdi      # 0x1776e
movl $0x1, %esi
xorl %eax, %eax
callq 0x3410
leaq 0xce90(%rip), %rdi      # 0x1776e
movq %r14, %rsi
xorl %eax, %eax
callq 0x3410
leaq 0xce7f(%rip), %rdi      # 0x1776e
movl $0x2, %esi
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 0xcbcc(%rip), %rdx      # 0x174e2
xorl %eax, %eax
callq 0xbbb8
movq 0x156a4(%rip), %rdi     # 0x1ffc8
callq 0x3130
movq %rax, %rbx
leaq 0xcb54(%rip), %rsi      # 0x17487
movl $0x5a, %edx
movq %rax, %rdi
callq 0x3310
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x5, %rsi
movq %rbx, %rdi
callq 0x31b0
movq %rax, %rdi
callq 0x3130
jmp 0xa3ff
movq 0x1565e(%rip), %rdi     # 0x1ffc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %esi
movq 0x15643(%rip), %rdi     # 0x1ffc8
callq 0x3030
movq %rax, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0xcd88(%rip), %rsi      # 0x17724
movl $0x3c, %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), %rdi
movq 0x48(%rbx), %rax
movq (%rax,%r15,8), %rax
movq 0x50(%rax), %rsi
addq $0x8, %rsi
leaq 0xcbea(%rip), %rdx      # 0x175d5
xorl %eax, %eax
callq 0xbbb8
movq 0x155cf(%rip), %rdi     # 0x1ffc8
leaq 0xcbee(%rip), %rsi      # 0x175ee
callq 0x3290
jmp 0xa3ff
movq %rax, %rbx
movq 0x1d8(%rsp), %rdi
cmpq %r12, %rdi
je 0xaa2f
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0xaa2f
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
cmpq %r15, %rdi
je 0xad21
movq 0x208(%rsp), %rsi
jmp 0xad19
movq %rax, %rbx
movq 0x198(%rsp), %rdi
cmpq %r12, %rdi
je 0xaa72
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0xaa72
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
cmpq %r15, %rdi
je 0xad21
movq 0x1c8(%rsp), %rsi
jmp 0xad19
movq %rax, %rbx
movq 0x218(%rsp), %rdi
cmpq %r12, %rdi
je 0xad21
movq 0x228(%rsp), %rsi
jmp 0xad19
jmp 0xacfb
movq %rax, %rbx
movq 0x138(%rsp), %rdi
cmpq %r12, %rdi
je 0xaadb
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0xaadb
movq %rax, %rbx
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0xad3b
movq 0x168(%rsp), %rsi
jmp 0xacf1
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0xab1e
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0xab1e
movq %rax, %rbx
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
je 0xacb4
movq 0x128(%rsp), %rsi
jmp 0xacac
jmp 0xacda
jmp 0xacf6
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0xad3b
movq 0x188(%rsp), %rsi
jmp 0xacf1
jmp 0xacf6
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0xab91
movq 0x248(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0xab91
movq %rax, %rbx
movq 0x258(%rsp), %rdi
cmpq %r15, %rdi
je 0xad3b
movq 0x268(%rsp), %rsi
jmp 0xacf1
movq %rax, %rbx
movq 0x298(%rsp), %rdi
cmpq %r12, %rdi
je 0xabd4
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0xabd4
movq %rax, %rbx
movq 0x2b8(%rsp), %rdi
cmpq %r15, %rdi
je 0xad3b
movq 0x2c8(%rsp), %rsi
jmp 0xacf1
movq %rax, %rbx
movq 0x278(%rsp), %rdi
cmpq %r15, %rdi
je 0xad3b
movq 0x288(%rsp), %rsi
jmp 0xacf1
jmp 0xacf6
jmp 0xacfb
jmp 0xacf6
jmp 0xac35
jmp 0xacfb
jmp 0xac3c
movq %rax, %rbx
jmp 0xac64
jmp 0xacfb
movq %rax, %rbx
jmp 0xacb4
jmp 0xac8f
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0xac64
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0xac92
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0xac92
jmp 0xacf6
jmp 0xacda
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xacb4
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xacdd
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x32c0
jmp 0xacdd
jmp 0xacda
jmp 0xacf6
jmp 0xacda
jmp 0xacfb
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xad3b
movq 0x40(%rsp), %rsi
incq %rsi
jmp 0xad36
movq %rax, %rbx
jmp 0xad3b
movq %rax, %rbx
jmp 0xad21
jmp 0xad02
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xad21
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32c0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xad3b
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
leaq 0x10(%rsp), %rdi
callq 0xb4a6
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0xad6a
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x32c0
movq %rbx, %rdi
callq 0x34b0