// File: /workspace/github_cpp_makefile_star2_O1/asdfz1346[P]MyServer/MyServer.cpp
// Function: MyServer::worker_thread_proc(void*)
void *MyServer::worker_thread_proc(void *args){

	MyServer *pthis =((ARG*)args)->p;
	//StoC stoc;
	char rcv_buf[SND_BUF_SIZE];
	char snd_buf[RCV_BUF_SIZE];
	while(pthis->nstop){
		pthread_mutex_lock(&pthis->clientlist_mutex);
		if(!pthis->clientlist.empty()){
       			MYSQL *m_conn = mysql_init(NULL);
	        	MYSQL *m_sql = mysql_real_connect(m_conn,"localhost","root","a123456","PARKING",0,NULL,0);
		        if(!m_sql)
			        printf("connect mysql fail\n");
			
			memset(rcv_buf,0,sizeof rcv_buf);
			memset(snd_buf, 0,sizeof snd_buf);
			/*lock clientlist*/

			int fd = pthis->clientlist.front();
			pthis->clientlist.pop_front();
			pthread_mutex_unlock(&pthis->clientlist_mutex);
			
			/*recv CtoS msg*/
			int num_rcv=0;
			int allnum_rcv=0;
			while((num_rcv=recv(fd,&rcv_buf,sizeof rcv_buf,0))>=0){
        			allnum_rcv+=num_rcv;	
        			CtoS ctos;
        			memset(&ctos,0,sizeof ctos);
        			memcpy(&ctos,rcv_buf,sizeof rcv_buf);
        			//printf("fd:%d cmd:%dparkid:%dcarid:%s\n",fd,ctos.cmd,ctos.parkid,ctos.carid);
        			StoC stoc;
        			memset(&stoc,0,sizeof stoc);

				if(ctos.cmd==0){//==0
        				pthread_mutex_lock(&pthis->clientset_mutex);
        				pthis->clientset.erase(fd);
        				pthread_mutex_unlock(&pthis->clientset_mutex);
       					struct epoll_event e;
       					memset (&e,0,sizeof e);
       					e.data.fd = fd;
					e.events=EPOLLIN;
       					epoll_ctl(pthis->epollfd, EPOLL_CTL_DEL, fd,&e);
       					close(fd);
					printf("duanlian");
				}
        			/*putin*/
        			if(ctos.cmd==PUTIN){
        				/*putin(1,'S3','S4');*/
        				std::string S1 = "call putin(";
        				std::string S2 = std::to_string(ctos.parkid);
        				std::string S3 = ctos.carid;
        				std::string S4 = ctos.tele;
        				S1 = S1+S2+",'"+S3+"','"+S4+"');";
        
        				if(!mysql_query(m_sql,const_cast<char *>(S1.c_str()))){
        					stoc.cmd =PUTINSUCCESS;
        					memcpy(snd_buf,&stoc,sizeof stoc);
        					send(fd,&snd_buf,sizeof snd_buf,0);
        					//printf("putinsuccess\n");
        				}
        				else{
						//call putinupdate(1,'345');
						S1 = "call putinupdate(";
						S1 += std::to_string(ctos.parkid);
						S1+=",'";
						S1 += ctos.carid;
						S1 +="');";
						mysql_close(m_sql);
						MYSQL *m_conn = mysql_init(NULL);
						MYSQL *m_sql = mysql_real_connect(m_conn,"localhost","root","a123456","PARKING",0,NULL,0);

						if(!mysql_query(m_sql,const_cast<char *>(S1.c_str()))){
							std::cout << S1.c_str()<<std::endl;
							stoc.cmd =PUTINSUCCESS;
                                        	        memcpy(snd_buf,&stoc,sizeof stoc);
	   						send(fd,&snd_buf,sizeof snd_buf,0);
						}else{
        						stoc.cmd =PUTINFAIL;
        						memcpy(snd_buf,&stoc,sizeof snd_buf);
        						send(fd,&snd_buf,sizeof snd_buf,0);
        						//printf("putinfail\n");
						}
        				}
        
        				//sql_res = mysql_store_result(&m_sql);
        			}
        			if(ctos.cmd==PUTOUT){
        				//putout(1,'carid');
        				std::string S1 = "call putout(";
        				std::string S2 = std::to_string(ctos.parkid);
        				std::string S3 = ctos.carid;
        				S1 = S1+S2+",'"+S3+"');";
					stoc.cmd = PUTOUTFAIL;
        				if(!mysql_query(m_sql,const_cast<char *>(S1.c_str()))){
        					MYSQL_RES *result;
        					MYSQL_ROW row;
        					result = mysql_store_result(m_sql);
        					if(result!=NULL) {
        						//int num;
        						//num= mysql_num_fields(result);	
        						while((row = mysql_fetch_row(result))){
        							stoc.cmd = PUTOUTSUCCESS;
        							memcpy(stoc.carid, ctos.carid,sizeof ctos.carid);
        							if(row[0]!=NULL)
        								memcpy(stoc.ordertime,row[0],16);
        							if(row[1]!=NULL)
        								memcpy(stoc.intime,row[1],16);
        							if(row[2]!=NULL)
        								memcpy(stoc.outtime,row[2],16);
        							memcpy(snd_buf,&stoc,sizeof snd_buf); 
        						}
        						mysql_free_result(result);
        					}
        
        				}
        				else{	
        					memcpy(snd_buf,&stoc,sizeof snd_buf);
        				}
        				send(fd,&snd_buf,sizeof snd_buf,0);
        
        			}
        			if(ctos.cmd==ORDER){
        				//call porder(1,'carid','tele');
        				std::string S1 = "call porder(";
                                        std::string S2 = std::to_string(ctos.parkid);
                                        std::string S3 = ctos.carid;
                                        std::string S4 = ctos.tele;
                                        S1 = S1+S2+",'"+S3+"','"+S4+"');";
        				if(!mysql_query(m_sql,const_cast<char *>(S1.c_str()))){  
        					stoc.cmd = ORDERSUCCESS;
        				}else
        					stoc.cmd = ORDERFAIL;
        				memcpy(snd_buf,&stoc,sizeof stoc);
        				send(fd,&stoc,sizeof stoc,0);
        			}
        			if(ctos.cmd==RESET){
        				//call reset(1);
        				std::string S1 = "call reset(";
        				std::string S2 =std::to_string(ctos.parkid);
        				std::string S3 = ");";
        				S1 = S1+S2+S3;
        				if(!mysql_query(m_sql,const_cast<char *>(S1.c_str()))){
        					stoc.cmd = RESETSUCCESS;
        				}else
        					stoc.cmd = RESETFAIL;
        				memcpy(snd_buf,&stoc,sizeof stoc);
        				send(fd,&stoc,sizeof stoc,0);
        			}
        			if(ctos.cmd ==QUERY){
        				//SELECT * FROM PARKING-LOT-1;
        				std::string S1 ="SELECT * FROM parking_lot_";
        				std::string S2 = std::to_string(ctos.parkid);
        				S1 = S1+S2+" ;";
        				if(!mysql_query(m_sql,const_cast<char *>(S1.c_str()))){
        					MYSQL_RES *result;
        					MYSQL_ROW row;
        					result = mysql_store_result(m_sql);
        					while((row = mysql_fetch_row(result))){
        						memset(&stoc,0,sizeof stoc);
        						stoc.cmd=QUERYBACK;
        						if(row[0]!=NULL)//carid
        							memcpy(stoc.carid,row[0],sizeof stoc.carid );
        						if(row[1]!=NULL)//tele
        							memcpy(stoc.tele,row[1],sizeof stoc.tele);
        						if(row[2]!=NULL)//ordertime
        							memcpy(stoc.ordertime,row[2],sizeof stoc.ordertime);
        						if(row[3]!=NULL)//intime
        							memcpy(stoc.intime,row[3],sizeof stoc.intime);
        						if(row[4]!=NULL)//outtime
        							memcpy(stoc.outtime,row[4],sizeof stoc.outtime);
        						memset(snd_buf,0,sizeof snd_buf);
        						memcpy(snd_buf,&stoc,sizeof snd_buf);
							send(fd,&snd_buf,sizeof snd_buf,0);
							
        					}
						if(result!=NULL)
							mysql_free_result(result);
						stoc.cmd = QUERYOUT;
						memcpy(snd_buf,&stoc,sizeof stoc);
					        send(fd,&snd_buf,sizeof snd_buf,0);	
        				}
        				else{
        					stoc.cmd = QUERYFAIL;
        					send(fd,&snd_buf,sizeof snd_buf,0);
        				}
        			}
				if(ctos.cmd == registe){
					std::string S1 = "INSERT INTO user (user_id,user_password) VALUE ('";
					S1+=ctos.carid;
					S1+="','";
					S1+=ctos.tele;
					S1+="');";
					mysql_query(m_sql,const_cast<char *>(S1.c_str()));
				}
				if(ctos.cmd==login){
					std::string S1 = "SELECT user_password from user where user_id='";
					S1+= ctos.carid;
					S1+="';";
					mysql_query(m_sql,const_cast<char *>(S1.c_str()));
					MYSQL_RES *result;
					MYSQL_ROW row;			
					result = mysql_store_result(m_sql);
					stoc.cmd= loginfail;
					if(row = mysql_fetch_row(result)){
					if(row[0]!=NULL){
							std::string SA=ctos.tele;
							std::string SB=row[0];
							if(SA==SB){
								stoc.cmd=loginsuccess;
							}
						}
					}
					memcpy(snd_buf,&stoc,sizeof stoc);
					send(fd,&snd_buf,sizeof snd_buf,0);
				}
				if(ctos.cmd==user_query){
					std::string S1 ="select * from parking_lot_info;";
					mysql_query(m_sql,const_cast<char *>(S1.c_str()));
					MYSQL_RES *result;
					MYSQL_ROW row;
					result = mysql_store_result(m_sql);
					while((row = mysql_fetch_row(result))){
        					memset(&stoc,0,sizeof stoc);
        					stoc.cmd=QUERYBACK;
        					if(row[0]!=NULL)//parkid
        						memcpy(stoc.carid,row[0], strlen(row[0]) );
        					if(row[1]!=NULL)//tele
        						memcpy(stoc.tele,row[1],strlen(row[1]));
        					if(row[2]!=NULL)//allnum
        						memcpy(stoc.ordertime,row[2],strlen(row[2]));
        					if(row[3]!=NULL)//nownum
        						memcpy(stoc.intime,row[3],strlen(row[3]));
        					if(row[4]!=NULL)//addr
        						memcpy(stoc.outtime,row[4],strlen(row[4]));
        					memset(snd_buf,0,sizeof snd_buf);
        					memcpy(snd_buf,&stoc,sizeof snd_buf);
						send(fd,&snd_buf,sizeof snd_buf,0);	
        				}
				}
			}
        		mysql_close(m_sql);

		}
		else {
			pthread_mutex_unlock(&pthis->clientlist_mutex);
			sleep(0.1);
		}
	}
	return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq (%rdi), %rax
movq %rax, -0x1e8(%rbp)
cmpb $0x1, 0x118(%rax)
jne 0x4586
movq -0x1e8(%rbp), %rax
leaq 0xc0(%rax), %rbx
leaq 0x28(%rax), %rcx
movq %rcx, -0x218(%rbp)
leaq 0x98(%rax), %rcx
movq %rcx, -0x228(%rbp)
addq $0x40, %rax
movq %rax, -0x220(%rbp)
leaq -0x40(%rbp), %r13
leaq -0x90(%rbp), %r14
leaq -0xd8(%rbp), %r12
movq %rbx, -0x210(%rbp)
movq %rbx, %rdi
callq 0x2300
movq -0x218(%rbp), %rax
cmpq %rax, (%rax)
je 0x455c
xorl %edi, %edi
callq 0x2100
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq %rax, %rdi
leaq 0x255b(%rip), %rsi      # 0x507f
leaq 0x255e(%rip), %rdx      # 0x5089
leaq 0x255c(%rip), %rcx      # 0x508e
leaq 0x255d(%rip), %r8       # 0x5096
xorl %r9d, %r9d
callq 0x2130
movq %rax, %r15
testq %rax, %rax
jne 0x2b55
leaq 0x26bb(%rip), %rdi      # 0x520b
callq 0x2330
xorps %xmm0, %xmm0
movaps %xmm0, -0x290(%rbp)
movaps %xmm0, -0x2a0(%rbp)
movaps %xmm0, -0x280(%rbp)
movaps %xmm0, -0x270(%rbp)
movaps %xmm0, -0x260(%rbp)
movaps %xmm0, -0x250(%rbp)
movaps %xmm0, -0x240(%rbp)
movq $0x0, -0x230(%rbp)
movq -0x1e8(%rbp), %rcx
movq 0x28(%rcx), %rbx
movl 0x10(%rbx), %eax
movl %eax, -0x2c(%rbp)
decq 0x38(%rcx)
movq %rbx, %rdi
callq 0x2350
movl $0x18, %esi
movq %rbx, %rdi
callq 0x2250
movq -0x210(%rbp), %rdi
callq 0x21d0
movl -0x2c(%rbp), %edi
movl $0x20, %edx
leaq -0x2a0(%rbp), %rsi
xorl %ecx, %ecx
callq 0x20d0
testl %eax, %eax
js 0x4552
movq %r15, -0x98(%rbp)
movaps -0x2a0(%rbp), %xmm0
movaps -0x290(%rbp), %xmm1
movaps %xmm1, -0x150(%rbp)
movaps %xmm0, -0x160(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x1a0(%rbp)
movaps %xmm0, -0x1b0(%rbp)
movaps %xmm0, -0x1c0(%rbp)
movaps %xmm0, -0x1d0(%rbp)
movaps %xmm0, -0x1e0(%rbp)
movq $0x0, -0x190(%rbp)
cmpl $0x0, -0x160(%rbp)
jne 0x2ccf
movq -0x228(%rbp), %rbx
movq %rbx, %rdi
callq 0x2300
movq -0x220(%rbp), %r15
movq %r15, %rdi
leaq -0x2c(%rbp), %rsi
callq 0x4cf8
movq %r15, %rdi
movq -0x98(%rbp), %r15
movq %rax, %rsi
callq 0x4d74
movq %rbx, %rdi
callq 0x21d0
movq $0x0, -0x50(%rbp)
movl $0x0, -0x48(%rbp)
movl -0x2c(%rbp), %edx
movl %edx, -0x4c(%rbp)
movl $0x1, -0x50(%rbp)
movq -0x1e8(%rbp), %rax
movl 0x1c(%rax), %edi
movl $0x2, %esi
leaq -0x50(%rbp), %rcx
callq 0x22f0
movl -0x2c(%rbp), %edi
callq 0x23e0
leaq 0x23d6(%rip), %rdi      # 0x509e
xorl %eax, %eax
callq 0x2050
cmpl $0x1, -0x160(%rbp)
jne 0x33a9
movq %r13, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
leaq 0x23bc(%rip), %rsi      # 0x50a7
leaq 0x23c0(%rip), %rdx      # 0x50b2
callq 0x4e32
movl -0x15c(%rbp), %r15d
movl %r15d, %r13d
negl %r13d
cmovsl %r15d, %r13d
movl $0x1, %ebx
cmpl $0xa, %r13d
jb 0x2d55
movl $0x4, %ebx
movl %r13d, %eax
cmpl $0x63, %eax
jbe 0x2d4e
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x2d53
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x2d55
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x2d1b
addl $-0x3, %ebx
jmp 0x2d55
addl $-0x2, %ebx
jmp 0x2d55
decl %ebx
shrl $0x1f, %r15d
leal (%rbx,%r15), %esi
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x70(%rbp), %rdi
movl $0x2d, %edx
callq 0x22c0
addq -0x70(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x4b5d
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x158(%rbp), %rbx
movq %rbx, %rdi
callq 0x20f0
leaq (%rax,%rbx), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4e32
leaq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq -0x14c(%rbp), %rbx
movq %rbx, %rdi
callq 0x20f0
leaq (%rax,%rbx), %rdx
movq %r12, %rdi
movq %rbx, %rsi
leaq -0x40(%rbp), %r13
callq 0x4e32
movq -0x98(%rbp), %r15
leaq -0x208(%rbp), %rbx
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0x4a8d
movq %rbx, %rdi
leaq 0x22af(%rip), %rsi      # 0x50b4
callq 0x23d0
leaq -0x128(%rbp), %rsi
movq %rsi, -0x138(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2e3a
movq %rdx, -0x138(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x128(%rbp)
jmp 0x2e40
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x130(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
leaq -0x138(%rbp), %rdi
callq 0x20b0
leaq -0x170(%rbp), %rsi
movq %rsi, -0x180(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2ea4
movq %rdx, -0x180(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x170(%rbp)
jmp 0x2eaa
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x178(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x180(%rbp), %rdi
leaq 0x21e1(%rip), %rsi      # 0x50b3
callq 0x23d0
leaq -0x108(%rbp), %rsi
movq %rsi, -0x118(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0x118(%rbp), %rdi
je 0x2f0e
movq %rdx, -0x118(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x108(%rbp)
jmp 0x2f14
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x110(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
callq 0x20b0
leaq -0xe8(%rbp), %rsi
movq %rsi, -0xf8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2f71
movq %rdx, -0xf8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe8(%rbp)
jmp 0x2f77
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xf0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xf8(%rbp), %rdi
leaq 0x2118(%rip), %rsi      # 0x50b7
callq 0x23d0
leaq -0xa8(%rbp), %rbx
movq %rbx, -0xb8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0xb8(%rbp), %rsi
je 0x2fdb
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x2fe1
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0xb0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x50(%rbp), %rdi
callq 0x22d0
movq -0xb8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x301f
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x3041
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x3063
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0x3085
movq -0x170(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x30a7
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x208(%rbp), %rdi
leaq -0x1f8(%rbp), %rax
cmpq %rax, %rdi
je 0x30c9
movq -0x1f8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x50(%rbp), %rsi
movq %r15, %rdi
callq 0x2180
testl %eax, %eax
je 0x314c
movq -0x48(%rbp), %rdx
movl $0x11, %r8d
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
leaq 0x1fcb(%rip), %rcx      # 0x50bb
callq 0x2340
movl -0x15c(%rbp), %r15d
movl %r15d, %r13d
negl %r13d
cmovsl %r15d, %r13d
movl $0x1, %ebx
cmpl $0xa, %r13d
jb 0x318c
movl $0x4, %ebx
movl %r13d, %eax
cmpl $0x63, %eax
jbe 0x3185
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x318a
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x318c
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x3119
addl $-0x3, %ebx
jmp 0x318c
movl $0x1, -0x1e0(%rbp)
movl $0x16, %ecx
leaq -0x280(%rbp), %rax
movq %rax, %rdi
leaq -0x1e0(%rbp), %rsi
rep  movsl (%rsi), %es:(%rdi)
movl -0x2c(%rbp), %edi
movl $0x58, %edx
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x2120
jmp 0x333d
addl $-0x2, %ebx
jmp 0x318c
decl %ebx
shrl $0x1f, %r15d
leal (%rbx,%r15), %esi
leaq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0xb8(%rbp), %rdi
movl $0x2d, %edx
callq 0x22c0
addq -0xb8(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x4b5d
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
leaq -0x50(%rbp), %rdi
callq 0x20b0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
leaq -0x40(%rbp), %r13
movq -0x98(%rbp), %r15
je 0x320b
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2250
leaq -0x50(%rbp), %rdi
leaq 0x1e9e(%rip), %rsi      # 0x50b4
callq 0x23d0
leaq -0x50(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0x23d0
leaq -0x50(%rbp), %rdi
leaq 0x1e81(%rip), %rsi      # 0x50b7
callq 0x23d0
movq %r15, %rdi
callq 0x22e0
xorl %edi, %edi
callq 0x2100
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq %rax, %rdi
leaq 0x1e24(%rip), %rsi      # 0x507f
leaq 0x1e27(%rip), %rdx      # 0x5089
leaq 0x1e25(%rip), %rcx      # 0x508e
leaq 0x1e26(%rip), %r8       # 0x5096
xorl %r9d, %r9d
callq 0x2130
movq -0x50(%rbp), %rsi
movq %rax, %rdi
callq 0x2180
testl %eax, %eax
je 0x3294
movl $0x0, -0x1e0(%rbp)
jmp 0x3313
movq -0x50(%rbp), %rbx
testq %rbx, %rbx
je 0x32b9
movq %rbx, %rdi
callq 0x20f0
movq 0x3d2c(%rip), %rdi      # 0x6fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x22a0
jmp 0x32d7
movq 0x3d18(%rip), %rcx      # 0x6fd8
movq (%rcx), %rax
movq -0x18(%rax), %rax
leaq (%rcx,%rax), %rdi
movl 0x20(%rcx,%rax), %esi
orl $0x1, %esi
callq 0x2360
movq 0x3cfa(%rip), %rcx      # 0x6fd8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq 0x3cdc(%rip), %rdi      # 0x6fd8
callq 0x2040
movq %rax, %rdi
callq 0x21a0
movl $0x1, -0x1e0(%rbp)
movl $0x16, %ecx
leaq -0x280(%rbp), %rax
movq %rax, %rdi
leaq -0x1e0(%rbp), %rsi
rep  movsl (%rsi), %es:(%rdi)
movl -0x2c(%rbp), %edi
movl $0x58, %edx
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x2120
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x335f
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x337b
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3394
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x33a9
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2250
cmpl $0x2, -0x160(%rbp)
leaq -0x50(%rbp), %rdi
jne 0x37a2
movq %r13, -0x50(%rbp)
leaq 0x1d08(%rip), %rsi      # 0x50cd
leaq 0x1d0d(%rip), %rdx      # 0x50d9
callq 0x4e32
movl -0x15c(%rbp), %r15d
movl %r15d, %r13d
negl %r13d
cmovsl %r15d, %r13d
movl $0x1, %ebx
cmpl $0xa, %r13d
jb 0x342f
movl $0x4, %ebx
movl %r13d, %eax
cmpl $0x63, %eax
jbe 0x3428
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x342d
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x342f
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x33f5
addl $-0x3, %ebx
jmp 0x342f
addl $-0x2, %ebx
jmp 0x342f
decl %ebx
shrl $0x1f, %r15d
leal (%rbx,%r15), %esi
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x70(%rbp), %rdi
movl $0x2d, %edx
callq 0x22c0
addq -0x70(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x4b5d
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x158(%rbp), %rbx
movq %rbx, %rdi
callq 0x20f0
leaq (%rax,%rbx), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4e32
leaq -0x118(%rbp), %rbx
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x70(%rbp), %rdx
leaq -0x40(%rbp), %r13
callq 0x4a8d
movq -0x98(%rbp), %r15
movq %rbx, %rdi
leaq 0x1c01(%rip), %rsi      # 0x50b4
callq 0x23d0
leaq -0xe8(%rbp), %rsi
movq %rsi, -0xf8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x34e8
movq %rdx, -0xf8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe8(%rbp)
jmp 0x34ee
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xf0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
leaq -0xf8(%rbp), %rdi
callq 0x20b0
leaq -0xa8(%rbp), %rsi
movq %rsi, -0xb8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3552
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x3558
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xb0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xb8(%rbp), %rdi
leaq 0x1b37(%rip), %rsi      # 0x50b7
callq 0x23d0
leaq -0xc8(%rbp), %rbx
movq %rbx, -0xd8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x35b5
movq %rdx, -0xd8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xc8(%rbp)
jmp 0x35bb
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0xd0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x50(%rbp), %rdi
movq %r12, %rsi
callq 0x22d0
movq -0xd8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x35fc
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x361e
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x3640
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x3662
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x2250
movl $0x3, -0x1e0(%rbp)
movq -0x50(%rbp), %rsi
movq %r15, %rdi
callq 0x2180
testl %eax, %eax
je 0x3696
movl $0x16, %ecx
leaq -0x280(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
rep  movsl (%rsi), %es:(%rdi)
jmp 0x373e
movq %r15, %rdi
callq 0x2140
movq %rax, %rbx
testq %rax, %rax
je 0x373e
movq %rbx, %rdi
callq 0x2260
testq %rax, %rax
je 0x3736
movl $0x2, -0x1e0(%rbp)
leaq -0x158(%rbp), %rdx
movl 0x8(%rdx), %ecx
leaq -0x1dc(%rbp), %rsi
movl %ecx, 0x8(%rsi)
movq (%rdx), %rcx
movq %rcx, (%rsi)
movq (%rax), %rcx
testq %rcx, %rcx
je 0x36f0
movups (%rcx), %xmm0
leaq -0x19c(%rbp), %rcx
movups %xmm0, (%rcx)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x3706
movups (%rcx), %xmm0
leaq -0x1c4(%rbp), %rcx
movups %xmm0, (%rcx)
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x371c
movups (%rax), %xmm0
leaq -0x1b0(%rbp), %rax
movups %xmm0, (%rax)
movl $0x16, %ecx
leaq -0x280(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
rep  movsl (%rsi), %es:(%rdi)
jmp 0x36aa
movq %rbx, %rdi
callq 0x2240
movl -0x2c(%rbp), %edi
movl $0x58, %edx
leaq -0x280(%rbp), %rsi
xorl %ecx, %ecx
callq 0x2120
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x3770
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3789
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x379e
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2250
leaq -0x50(%rbp), %rdi
cmpl $0x3, -0x160(%rbp)
jne 0x3c4f
movq %r13, -0x50(%rbp)
leaq 0x1920(%rip), %rsi      # 0x50da
leaq 0x1925(%rip), %rdx      # 0x50e6
callq 0x4e32
movl -0x15c(%rbp), %r15d
movl %r15d, %r13d
negl %r13d
cmovsl %r15d, %r13d
movl $0x1, %ebx
cmpl $0xa, %r13d
jb 0x3824
movl $0x4, %ebx
movl %r13d, %eax
cmpl $0x63, %eax
jbe 0x381d
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x3822
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x3824
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x37ea
addl $-0x3, %ebx
jmp 0x3824
addl $-0x2, %ebx
jmp 0x3824
decl %ebx
shrl $0x1f, %r15d
leal (%rbx,%r15), %esi
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x70(%rbp), %rdi
movl $0x2d, %edx
callq 0x22c0
addq -0x70(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x4b5d
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x158(%rbp), %rbx
movq %rbx, %rdi
callq 0x20f0
leaq (%rax,%rbx), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4e32
leaq -0xc8(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq -0x14c(%rbp), %rbx
movq %rbx, %rdi
callq 0x20f0
leaq (%rax,%rbx), %rdx
movq %r12, %rdi
movq %rbx, %rsi
leaq -0x40(%rbp), %r13
callq 0x4e32
movq -0x98(%rbp), %r15
leaq -0x208(%rbp), %rbx
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0x4a8d
movq %rbx, %rdi
leaq 0x17e0(%rip), %rsi      # 0x50b4
callq 0x23d0
leaq -0x128(%rbp), %rsi
movq %rsi, -0x138(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3909
movq %rdx, -0x138(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x128(%rbp)
jmp 0x390f
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x130(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
leaq -0x138(%rbp), %rdi
callq 0x20b0
leaq -0x170(%rbp), %rsi
movq %rsi, -0x180(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3973
movq %rdx, -0x180(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x170(%rbp)
jmp 0x3979
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x178(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x180(%rbp), %rdi
leaq 0x1712(%rip), %rsi      # 0x50b3
callq 0x23d0
leaq -0x108(%rbp), %rsi
movq %rsi, -0x118(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0x118(%rbp), %rdi
je 0x39dd
movq %rdx, -0x118(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x108(%rbp)
jmp 0x39e3
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x110(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
callq 0x20b0
leaq -0xe8(%rbp), %rsi
movq %rsi, -0xf8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3a40
movq %rdx, -0xf8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xe8(%rbp)
jmp 0x3a46
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xf0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xf8(%rbp), %rdi
leaq 0x1649(%rip), %rsi      # 0x50b7
callq 0x23d0
leaq -0xa8(%rbp), %rbx
movq %rbx, -0xb8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq -0xb8(%rbp), %rsi
je 0x3aaa
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x3ab0
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0xb0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x50(%rbp), %rdi
callq 0x22d0
movq -0xb8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3aee
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x3b10
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x3b32
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0x3b54
movq -0x170(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x138(%rbp), %rdi
leaq -0x128(%rbp), %rax
cmpq %rax, %rdi
je 0x3b76
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x208(%rbp), %rdi
leaq -0x1f8(%rbp), %rax
cmpq %rax, %rdi
je 0x3b98
movq -0x1f8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x50(%rbp), %rsi
movq %r15, %rdi
callq 0x2180
cmpl $0x1, %eax
movl $0x5, %eax
sbbl $0x0, %eax
movl %eax, -0x1e0(%rbp)
movl $0x16, %ecx
leaq -0x280(%rbp), %rdi
leaq -0x1e0(%rbp), %rax
movq %rax, %rsi
rep  movsl (%rsi), %es:(%rdi)
movl -0x2c(%rbp), %edi
movl $0x58, %edx
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x2120
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x3c01
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x3c1d
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3c36
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x3c4b
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2250
leaq -0x50(%rbp), %rdi
cmpl $0x4, -0x160(%rbp)
jne 0x3e87
movq %r13, -0x50(%rbp)
leaq 0x1480(%rip), %rsi      # 0x50e7
leaq 0x1484(%rip), %rdx      # 0x50f2
callq 0x4e32
movl -0x15c(%rbp), %r15d
movl %r15d, %r13d
negl %r13d
cmovsl %r15d, %r13d
movl $0x1, %ebx
cmpl $0xa, %r13d
jb 0x3cd1
movl $0x4, %ebx
movl %r13d, %eax
cmpl $0x63, %eax
jbe 0x3cca
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x3ccf
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x3cd1
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x3c97
addl $-0x3, %ebx
jmp 0x3cd1
addl $-0x2, %ebx
jmp 0x3cd1
decl %ebx
shrl $0x1f, %r15d
leal (%rbx,%r15), %esi
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x70(%rbp), %rdi
movl $0x2d, %edx
callq 0x22c0
addq -0x70(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x4b5d
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
movq %r14, %rdi
leaq 0x13a3(%rip), %rsi      # 0x50b8
leaq 0x139e(%rip), %rdx      # 0x50ba
callq 0x4e32
leaq -0xb8(%rbp), %rbx
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
leaq -0x70(%rbp), %rdx
leaq -0x40(%rbp), %r13
callq 0x4a8d
movq -0x98(%rbp), %r15
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
movq %rbx, %rdi
callq 0x20b0
leaq -0xc8(%rbp), %rbx
movq %rbx, -0xd8(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3d89
movq %rdx, -0xd8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xc8(%rbp)
jmp 0x3d8f
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0xd0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x50(%rbp), %rdi
movq %r12, %rsi
callq 0x22d0
movq -0xd8(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3dd0
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x3df2
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x50(%rbp), %rsi
movq %r15, %rdi
callq 0x2180
cmpl $0x1, %eax
movl $0x7, %eax
sbbl $0x0, %eax
movl %eax, -0x1e0(%rbp)
movl $0x16, %ecx
leaq -0x280(%rbp), %rdi
leaq -0x1e0(%rbp), %rax
movq %rax, %rsi
rep  movsl (%rsi), %es:(%rdi)
movl -0x2c(%rbp), %edi
movl $0x58, %edx
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x2120
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x3e55
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x3e6e
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x3e83
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2250
leaq -0x50(%rbp), %rdi
cmpl $0x5, -0x160(%rbp)
jne 0x41c2
movq %r13, -0x50(%rbp)
leaq 0x1254(%rip), %rsi      # 0x50f3
leaq 0x1267(%rip), %rdx      # 0x510d
callq 0x4e32
movl -0x15c(%rbp), %r15d
movl %r15d, %r13d
negl %r13d
cmovsl %r15d, %r13d
movl $0x1, %ebx
cmpl $0xa, %r13d
jb 0x3f09
movl $0x4, %ebx
movl %r13d, %eax
cmpl $0x63, %eax
jbe 0x3f02
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x3f07
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x3f09
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x3ecf
addl $-0x3, %ebx
jmp 0x3f09
addl $-0x2, %ebx
jmp 0x3f09
decl %ebx
shrl $0x1f, %r15d
leal (%rbx,%r15), %esi
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x70(%rbp), %r14
movq %r14, %rdi
movl $0x2d, %edx
callq 0x22c0
addq -0x70(%rbp), %r15
movq %r15, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x4b5d
movq %r12, %rbx
movq %r12, %rdi
leaq -0x50(%rbp), %rsi
movq %r14, %rdx
callq 0x4a8d
movq %rbx, %rdi
leaq 0x11b7(%rip), %rsi      # 0x510e
leaq -0x40(%rbp), %r13
callq 0x23d0
leaq -0x90(%rbp), %r14
movq -0x98(%rbp), %r15
leaq -0x80(%rbp), %rbx
movq %rbx, -0x90(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3f98
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x3f9e
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x88(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x50(%rbp), %rdi
movq %r14, %rsi
callq 0x22d0
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x3fdc
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x3ffe
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x50(%rbp), %rsi
movq %r15, %rdi
callq 0x2180
testl %eax, %eax
je 0x4033
movl $0x9, -0x1e0(%rbp)
movl -0x2c(%rbp), %edi
movl $0x58, %edx
leaq -0x280(%rbp), %rsi
xorl %ecx, %ecx
callq 0x2120
jmp 0x4189
movq -0x98(%rbp), %rdi
callq 0x2140
movq %rax, %r15
movq %r15, %rdi
callq 0x2260
testq %rax, %rax
je 0x4148
xorps %xmm0, %xmm0
movaps %xmm0, -0x1e0(%rbp)
movaps %xmm0, -0x1a0(%rbp)
movaps %xmm0, -0x1b0(%rbp)
movaps %xmm0, -0x1c0(%rbp)
movaps %xmm0, -0x1d0(%rbp)
movq $0x0, -0x190(%rbp)
movl $0xa, -0x1e0(%rbp)
movq (%rax), %rcx
testq %rcx, %rcx
je 0x40a9
movl 0x8(%rcx), %edx
leaq -0x1dc(%rbp), %rsi
movl %edx, 0x8(%rsi)
movq (%rcx), %rcx
movq %rcx, (%rsi)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x40c5
movl 0x8(%rcx), %edx
leaq -0x1d0(%rbp), %rsi
movl %edx, 0x8(%rsi)
movq (%rcx), %rcx
movq %rcx, (%rsi)
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x40e1
movl 0x10(%rcx), %edx
leaq -0x19c(%rbp), %rsi
movl %edx, 0x10(%rsi)
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x18(%rax), %rcx
testq %rcx, %rcx
je 0x40fd
movl 0x10(%rcx), %edx
leaq -0x1c4(%rbp), %rsi
movl %edx, 0x10(%rsi)
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x4119
movl 0x10(%rax), %ecx
leaq -0x1b0(%rbp), %rdx
movl %ecx, 0x10(%rdx)
movups (%rax), %xmm0
movups %xmm0, (%rdx)
movl $0x16, %ecx
leaq -0x280(%rbp), %rax
movq %rax, %rdi
leaq -0x1e0(%rbp), %rsi
rep  movsl (%rsi), %es:(%rdi)
movl -0x2c(%rbp), %edi
movl $0x58, %edx
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x2120
jmp 0x4042
testq %r15, %r15
je 0x4155
movq %r15, %rdi
callq 0x2240
movl $0xb, -0x1e0(%rbp)
movl $0x16, %ecx
leaq -0x280(%rbp), %rax
movq %rax, %rdi
leaq -0x1e0(%rbp), %rsi
rep  movsl (%rsi), %es:(%rdi)
movl -0x2c(%rbp), %edi
movl $0x58, %edx
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x2120
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x41a2
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
movq -0x98(%rbp), %r15
je 0x41be
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2250
leaq -0x50(%rbp), %rdi
cmpl $0xd, -0x160(%rbp)
jne 0x4246
movq %r13, -0x50(%rbp)
leaq 0xf3b(%rip), %rsi       # 0x5111
leaq 0xf65(%rip), %rdx       # 0x5142
movq %rdi, %rbx
callq 0x4e32
movq %rbx, %rdi
leaq -0x158(%rbp), %rsi
callq 0x23d0
movq %rbx, %rdi
leaq 0xeb5(%rip), %rsi       # 0x50b3
callq 0x23d0
movq %rbx, %rdi
leaq -0x14c(%rbp), %rsi
callq 0x23d0
movq %rbx, %rdi
leaq 0xe9b(%rip), %rsi       # 0x50b7
callq 0x23d0
movq -0x50(%rbp), %rsi
movq %r15, %rdi
callq 0x2180
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x4242
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2250
leaq -0x50(%rbp), %rdi
cmpl $0xc, -0x160(%rbp)
jne 0x43ac
movq %r13, -0x50(%rbp)
leaq 0xee5(%rip), %rsi       # 0x5143
leaq 0xf0c(%rip), %rdx       # 0x5171
movq %rdi, %rbx
callq 0x4e32
movq %rbx, %rdi
leaq -0x158(%rbp), %rsi
callq 0x23d0
leaq -0x50(%rbp), %rdi
leaq 0xeeb(%rip), %rsi       # 0x5172
callq 0x23d0
movq -0x50(%rbp), %rsi
movq %r15, %rdi
callq 0x2180
movq %r15, %rdi
callq 0x2140
movl $0xf, -0x1e0(%rbp)
movq %rax, %rdi
callq 0x2260
movq %rax, %rbx
testq %rax, %rax
je 0x4369
cmpq $0x0, (%rbx)
je 0x4369
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x14c(%rbp), %r15
movq %r15, %rdi
callq 0x20f0
leaq (%rax,%r15), %rdx
leaq -0x70(%rbp), %rdi
movq %r15, %rsi
callq 0x4e32
movq (%rbx), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0x4a50
movq -0x68(%rbp), %rdx
cmpq -0x88(%rbp), %rdx
movq -0x98(%rbp), %r15
jne 0x4334
testq %rdx, %rdx
je 0x432a
movq -0x90(%rbp), %rsi
movq -0x70(%rbp), %rdi
callq 0x2270
testl %eax, %eax
jne 0x4334
movl $0xe, -0x1e0(%rbp)
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x4350
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x4369
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2250
movl $0x16, %ecx
leaq -0x280(%rbp), %rax
movq %rax, %rdi
leaq -0x1e0(%rbp), %rsi
rep  movsl (%rsi), %es:(%rdi)
movl -0x2c(%rbp), %edi
movl $0x58, %edx
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x2120
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x43a8
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2250
leaq -0x50(%rbp), %rdi
cmpl $0x6, -0x160(%rbp)
jne 0x4534
movq %r13, -0x50(%rbp)
leaq 0xdb1(%rip), %rsi       # 0x5175
leaq 0xdc9(%rip), %rdx       # 0x5194
callq 0x4e32
movq -0x50(%rbp), %rsi
movq %r15, %rdi
callq 0x2180
movq %r15, %rdi
callq 0x2140
movq %rax, %r15
movq %r15, %rdi
callq 0x2260
movq %rax, %r13
testq %rax, %rax
je 0x4514
xorps %xmm0, %xmm0
movaps %xmm0, -0x1e0(%rbp)
movaps %xmm0, -0x1a0(%rbp)
movaps %xmm0, -0x1b0(%rbp)
movaps %xmm0, -0x1c0(%rbp)
movaps %xmm0, -0x1d0(%rbp)
movq $0x0, -0x190(%rbp)
movl $0xa, -0x1e0(%rbp)
movq (%r13), %rbx
testq %rbx, %rbx
je 0x4459
movq %rbx, %rdi
callq 0x20f0
leaq -0x1dc(%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21e0
movq 0x8(%r13), %rbx
testq %rbx, %rbx
je 0x447c
movq %rbx, %rdi
callq 0x20f0
leaq -0x1d0(%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21e0
movq 0x10(%r13), %rbx
testq %rbx, %rbx
je 0x449f
movq %rbx, %rdi
callq 0x20f0
leaq -0x19c(%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21e0
movq 0x18(%r13), %rbx
testq %rbx, %rbx
je 0x44c2
movq %rbx, %rdi
callq 0x20f0
leaq -0x1c4(%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21e0
movq 0x20(%r13), %rbx
testq %rbx, %rbx
je 0x44e5
movq %rbx, %rdi
callq 0x20f0
leaq -0x1b0(%rbp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x21e0
movl $0x16, %ecx
leaq -0x280(%rbp), %rax
movq %rax, %rdi
leaq -0x1e0(%rbp), %rsi
rep  movsl (%rsi), %es:(%rdi)
movl -0x2c(%rbp), %edi
movl $0x58, %edx
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x2120
jmp 0x43e7
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %r13
cmpq %r13, %rdi
je 0x452d
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x98(%rbp), %r15
movl -0x2c(%rbp), %edi
movl $0x20, %edx
leaq -0x2a0(%rbp), %rsi
xorl %ecx, %ecx
callq 0x20d0
testl %eax, %eax
jns 0x2bef
movq %r15, %rdi
callq 0x22e0
jmp 0x456b
movq %rbx, %rdi
callq 0x21d0
xorl %edi, %edi
callq 0x21c0
movq -0x1e8(%rbp), %rax
cmpb $0x0, 0x118(%rax)
movq -0x210(%rbp), %rbx
jne 0x2af4
xorl %eax, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x48ac
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2250
jmp 0x48ac
jmp 0x48a9
jmp 0x486a
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x45f3
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2250
jmp 0x45f3
movq %rax, %rbx
leaq -0x40(%rbp), %r13
jmp 0x4841
jmp 0x483e
jmp 0x488b
jmp 0x4865
jmp 0x46c3
jmp 0x46c3
jmp 0x46c3
jmp 0x4865
jmp 0x46c3
jmp 0x486a
jmp 0x46c3
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x488e
movq -0xc8(%rbp), %rsi
jmp 0x4881
jmp 0x46a0
jmp 0x46f0
jmp 0x46ad
jmp 0x483e
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x486d
movq -0xa8(%rbp), %rsi
jmp 0x485b
jmp 0x48a9
movq %rax, %rbx
jmp 0x4721
jmp 0x46c3
jmp 0x48a9
jmp 0x46f0
jmp 0x46f0
movq %rax, %rbx
jmp 0x4790
jmp 0x483e
movq %rax, %rbx
leaq -0x128(%rbp), %r14
jmp 0x47ec
jmp 0x48a9
jmp 0x46c3
movq %rax, %rbx
jmp 0x48c5
jmp 0x476b
jmp 0x48a9
jmp 0x47c0
movq %rax, %rbx
jmp 0x4743
jmp 0x486a
jmp 0x4809
jmp 0x46f0
jmp 0x486a
movq %rax, %rbx
leaq -0x40(%rbp), %r13
jmp 0x488e
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x4721
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x2250
leaq -0xe8(%rbp), %rax
movq -0xf8(%rbp), %rdi
cmpq %rax, %rdi
je 0x4743
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2250
leaq -0x108(%rbp), %rax
movq -0x118(%rbp), %rdi
cmpq %rax, %rdi
je 0x486d
movq -0x108(%rbp), %rsi
jmp 0x485b
jmp 0x48a9
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x4790
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2250
leaq -0x128(%rbp), %r14
movq -0x118(%rbp), %rdi
leaq -0x108(%rbp), %rax
cmpq %rax, %rdi
je 0x47ca
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x2250
jmp 0x47ca
jmp 0x486a
movq %rax, %rbx
leaq -0x128(%rbp), %r14
movq -0x180(%rbp), %rdi
leaq -0x170(%rbp), %rax
cmpq %rax, %rdi
je 0x47ec
movq -0x170(%rbp), %rsi
incq %rsi
callq 0x2250
movq -0x138(%rbp), %rdi
cmpq %r14, %rdi
je 0x480c
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x2250
jmp 0x480c
movq %rax, %rbx
movq -0x208(%rbp), %rdi
leaq -0x1f8(%rbp), %rax
cmpq %rax, %rdi
je 0x4841
movq -0x1f8(%rbp), %rsi
incq %rsi
callq 0x2250
jmp 0x4841
jmp 0x488b
jmp 0x486a
jmp 0x483e
jmp 0x486a
jmp 0x483e
jmp 0x4865
jmp 0x4865
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x486d
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x2250
jmp 0x486d
movq %rax, %rbx
jmp 0x48b0
movq %rax, %rbx
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x488e
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2250
jmp 0x488e
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x48b0
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2250
jmp 0x48b0
movq %rax, %rbx
leaq -0x40(%rbp), %r13
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x48c5
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x2380
nop