// File: /workspace/github_cpp_makefile_star2_O3/NovaGL[P]HarmonyHubControl/HarmonyHubControl.cpp
// Function: main
int main(int argc, char * argv[])
{

     ifstream myFile("HarmonyHub.AuthorizationToken");
	if (myFile.fail()) {
		ofstream auth("HarmonyHub.AuthorizationToken");
		auth << ("KsRE6VVA3xrhtbqFbh0jWn8YTiweDeB/b94Qeqf3ofWGM79zLSr62XQh8geJxw/V");
	}
	
    if (argc < 2)
    {
	      const char *suffix = "";
	#if _WIN32
        	suffix = ".exe";
	#endif
        printf("Syntax:\n");
        printf("HarmonyHubControl%s [harmony_ip] [command (optional)]\n", suffix);        
	printf("    where command can be any of the following:\n");
        printf("        list_activities\n");
        printf("        list_activities_raw\n");
        printf("        get_current_activity_id\n");
        printf("        get_current_activity_id_raw\n");
        printf("        start_activity [ID]\n");
        printf("        list_devices\n");
        printf("        list_devices_raw\n");
        printf("        list_device_commands [deviceId]\n");
        printf("        list_device_commands_raw [deviceId]\n");
        printf("        issue_device_command [deviceId] [command]\n");
        printf("        get_config\n");
        printf("        get_config_raw\n");
        printf("\n");
        return 0;
    }

    std::string strUserEmail = "guest@x.com";
    std::string strUserPassword = "guest";
    std::string strHarmonyIP = argv[1];
    std::string strCommand;
    std::string strCommandParameterPrimary;
    std::string strCommandParameterSecondary;
    std::string strCommandParameterThird;
    std::string strCommandParameterFourth;
    
    int harmonyPortNumber = HARMONY_COMMUNICATION_PORT;

    // User requested an action to be performed
    if(argc >= 3)
    {
        strCommand = argv[2];
    }
    if(argc>=4)
    {
        strCommandParameterPrimary = argv[3];
    }

    if(argc>=5)
    {
        strCommandParameterSecondary = argv[4];
    }

    if(argc>=6)
    {
        strCommandParameterThird = argv[5];
    }

    if(argc==7)
    {
        strCommandParameterFourth = argv[6];
    }

    bool bQuietMode = false;

    if(strCommand.length())
    {
        if( strCommand.find("_raw") != std::string::npos)
        {
            bQuietMode = true;
        }
    }

    // Read the token
    std::string strAuthorizationToken = ReadAuthorizationTokenFile();

    //printf("\nLogin Authorization Token is: %s\n\n", strAuthorizationToken.c_str());

    bool bAuthorizationComplete = false;

    if(strAuthorizationToken.length() > 0)
    {
        csocket authorizationcsocket;
        if(connectToHarmony(strHarmonyIP, harmonyPortNumber, authorizationcsocket) == 1)
        {
            log("HARMONY COMMUNICATION LOGIN    : FAILURE", false);
            printf("ERROR : %s\n", errorString.c_str());
            return 1;
        }

        if(swapAuthorizationToken(&authorizationcsocket, strAuthorizationToken) == 0)
        {
            // Authorization Token found in the file worked.  
            // Bypass authorization through Logitech's servers.
            log("LOGITECH WEB SERVICE LOGIN     : BYPASSED", bQuietMode);

            bAuthorizationComplete = true;
        }
        
    }

    
    if(bAuthorizationComplete == false)
    {
        // Log into the Logitech Web Service to retrieve the login authorization token
        if(harmonyWebServiceLogin(strUserEmail, strUserPassword, strAuthorizationToken) == 1)
        {
            log("LOGITECH WEB SERVICE LOGIN     : FAILURE", false);
            printf("ERROR : %s\n", errorString.c_str());
            return 1;
        }
        log("LOGITECH WEB SERVICE LOGIN     : SUCCESS", bQuietMode);

        //printf("\nLogin Authorization Token is: %s\n\n", strAuthorizationToken.c_str());

        // Write the Authorization Token to an Authorization Token file to bypass this step
        // on future sessions
        WriteAuthorizationTokenFile(strAuthorizationToken);

        // Log into the harmony hub to convert the login authorization token for a 
        // session authorization token
    
        csocket authorizationcsocket;
        if(connectToHarmony(strHarmonyIP, harmonyPortNumber, authorizationcsocket) == 1)
        {
            log("HARMONY COMMUNICATION LOGIN    : FAILURE", false);
            printf("ERROR : %s\n", errorString.c_str());
            return 1;
        }


        if(swapAuthorizationToken(&authorizationcsocket, strAuthorizationToken) == 1)
        {
            log("HARMONY COMMUNICATION LOGIN    : FAILURE", false);
            printf("ERROR : %s\n", errorString.c_str());
            return 1;
        }
    }

    log("HARMONY COMMUNICATION LOGIN    : SUCCESS", bQuietMode);


    //printf("\nSession Authorization Token is: %s\n\n", strAuthorizationToken.c_str());

    // We've successfully obtained our session authorization token from the harmony hub 
    // using the login authorization token we received earlier from the Logitech web service.
    // Now, disconnect from the harmony and reconnect using the mangled session token 
    // as our username and password to issue a command.


    csocket commandcsocket;
    if(connectToHarmony(strHarmonyIP, harmonyPortNumber, commandcsocket) == 1)
    {
        log("HARMONY COMMAND SUBMISSION     : FAILURE", false);
        printf("ERROR : %s\n", errorString.c_str());
        return 1;
    }

    std::string strUserName = strAuthorizationToken;
    //strUserName.append("@connect.logitech.com/gatorade.");
    std::string strPassword = strAuthorizationToken;
    
    if(startCommunication(&commandcsocket, strUserName, strPassword) == 1)
    {
        errorString = "Communication failure";
        return 1;
    }

    std::string lstrCommand = strCommand;

    if(strCommand == "list_activities"              || 
        strCommand == "list_activities_raw"         || 
        strCommand == "list_devices"                || 
        strCommand == "list_devices_raw"            || 
        strCommand == "list_commands"               || 
        strCommand == "list_device_commands"        || 
        strCommand == "list_device_commands_raw"    || 
        strCommand == "get_config")
    {
        lstrCommand = "get_config_raw";
    }

    if(submitCommand(&commandcsocket, strAuthorizationToken, lstrCommand, strCommandParameterPrimary, strCommandParameterSecondary, strCommandParameterThird, strCommandParameterFourth) == 1)
    {
        log("HARMONY COMMAND SUBMISSION     : FAILURE", false);
        printf("ERROR : %s\n", errorString.c_str());
        return 1;
    }

    log("HARMONY COMMAND SUBMISSION     : SUCCESS", bQuietMode);
    
    if(lstrCommand == "get_config_raw")
    {
        std::map< std::string, std::string> mapActivities;
        std::vector< Device > vecDevices;
        if(parseConfiguration(rawConfig, mapActivities, vecDevices) == 1)
        {
            log("PARSE ACTIVITIES AND DEVICES   : FAILURE", false);
            printf("ERROR : %s\n", errorString.c_str());		
            return 1;
        }

        if(strCommand == "list_activities" || strCommand == "list_activities_raw" )
        {
            resultString = "{";

            if(strCommand == "list_activities")
            {
                resultString = "Activities Available via Harmony : \n\n";
            }
        
            std::map< std::string, std::string>::iterator it = mapActivities.begin();
            std::map< std::string, std::string>::iterator ite = mapActivities.end();
            for(; it != ite; ++it)
            {
                resultString.append("\"");
                resultString.append(it->second);
                resultString.append("\":\"");
                resultString.append(it->first);
                resultString.append("\",");
            }
            resultString = resultString.substr(0, resultString.size() - 1);
            resultString.append("}");
            ofstream activities("activities.json");
            activities << ("%s\n\n", resultString.c_str());
        }

        if( strCommand == "list_devices" || strCommand == "list_devices_raw" )
        {
            
	        resultString ="{";
            if( strCommand == "list_devices" )
            {
                resultString = "Devices Controllable via Harmony : \n\n";
            }

            std::vector< Device >::iterator it = vecDevices.begin();
            std::vector< Device >::iterator ite = vecDevices.end();
            for(; it != ite; ++it)
            {
                resultString.append("\"");
		        resultString.append(it->m_strLabel );
                resultString.append("\":\"");
                resultString.append(it->m_strID );
		        resultString.append("\",");
            }
            resultString=resultString.substr(0, resultString.size()-1);
	        resultString.append("}");
		    ofstream devices("devices.json");
		    devices << ("%s\n\n", resultString.c_str());
        }

        if(strCommand == "list_commands" || strCommand == "list_commands_raw" )
        {
            resultString = "";
            
            if(strCommand == "list_commands")
            {
                resultString = "Devices Controllable via Harmony with Commands : \n\n";
            }
            std::vector< Device >::iterator it = vecDevices.begin();
            std::vector< Device >::iterator ite = vecDevices.end();
            for(; it != ite; ++it)
            {  
                resultString.append(it->toString());
                resultString.append("\n\n\n");
            }
        }

        if(strCommand == "list_device_commands" || strCommand == "list_device_commands_raw")
        {
            resultString = "{";
            
            if(strCommand == "list_device_commands")
            {
                resultString = "Harmony Commands for Device: \n\n";
            }
            
            std::vector< Device >::iterator it = vecDevices.begin();
            std::vector< Device >::iterator ite = vecDevices.end();
            for(; it != ite; ++it)
            {
                if(it->m_strID == strCommandParameterPrimary)
                {
                    if(strCommandParameterSecondary.length())
                    {
                        if(strCommandParameterSecondary == it->m_strID)
                        {
                            resultString.append("\"");    
			    resultString.append(it->toString());                         
                        }
                    }
                    else
                    {
     			  resultString.append("\"");                                 
			  resultString.append(it->toString()); 
                    }
                          resultString=resultString.substr(0, resultString.size()-1);
                          resultString.append("}" );
                    break;
                }
            }
			string filename;	
			filename = strCommandParameterPrimary;
			filename.append(".json"); 
			ofstream myfile( filename.c_str() );
			myfile << ("%s\n\n", resultString.c_str());
        }
        log("PARSE ACTIVITIES AND DEVICES   : SUCCESS", bQuietMode);
		ofstream config("config.json");
		config << rawConfig;
    }
	

    printf("%s\n\n", resultString.c_str());
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7d8, %rsp            # imm = 0x7D8
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x5eeb(%rip), %rsi      # 0xc989
leaq 0x5d0(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x34d0
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x5f0(%rsp,%rax)
je 0x6b2e
leaq 0x5ebe(%rip), %rsi      # 0xc989
leaq 0x378(%rsp), %rdi
movl $0x10, %edx
callq 0x32e0
leaq 0x5ec3(%rip), %rsi      # 0xc9a7
leaq 0x378(%rsp), %rdi
movl $0x40, %edx
callq 0x3310
movq 0xd4d3(%rip), %rax      # 0x13fd0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x380(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x378(%rsp,%rcx)
callq 0x3210
leaq 0x470(%rsp), %rdi
callq 0x3110
cmpl $0x1, %ebp
jg 0x6c06
leaq 0x8256(%rip), %rdi      # 0xed94
callq 0x3410
leaq 0x5e9e(%rip), %rdi      # 0xc9e8
leaq 0x6426(%rip), %rsi      # 0xcf77
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x3040
leaq 0x823a(%rip), %rdi      # 0xed9c
callq 0x3410
leaq 0x825d(%rip), %rdi      # 0xedcb
callq 0x3410
leaq 0x8269(%rip), %rdi      # 0xede3
callq 0x3410
leaq 0x8279(%rip), %rdi      # 0xedff
callq 0x3410
leaq 0x828d(%rip), %rdi      # 0xee1f
callq 0x3410
leaq 0x82a5(%rip), %rdi      # 0xee43
callq 0x3410
leaq 0x82b5(%rip), %rdi      # 0xee5f
callq 0x3410
leaq 0x82be(%rip), %rdi      # 0xee74
callq 0x3410
leaq 0x82cb(%rip), %rdi      # 0xee8d
callq 0x3410
leaq 0x82e7(%rip), %rdi      # 0xeeb5
callq 0x3410
leaq 0x8307(%rip), %rdi      # 0xeee1
callq 0x3410
leaq 0x832d(%rip), %rdi      # 0xef13
callq 0x3410
leaq 0x8334(%rip), %rdi      # 0xef26
callq 0x3410
movl $0xa, %edi
callq 0x33a0
jmp 0x7172
leaq 0x178(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5e06(%rip), %rsi      # 0xca1f
leaq 0x5e0a(%rip), %rdx      # 0xca2a
leaq 0x168(%rsp), %rdi
callq 0x8dc8
leaq 0x158(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x589e(%rip), %rsi      # 0xc4de
leaq 0x589c(%rip), %rdx      # 0xc4e3
leaq 0x148(%rsp), %rdi
callq 0x8dc8
movq 0x8(%rbx), %rsi
leaq 0xc8(%rsp), %rdi
leaq 0x378(%rsp), %rdx
callq 0x834e
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xb8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x138(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x1f8(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
cmpl $0x2, %ebp
je 0x6db3
movq 0x10(%rbx), %r14
movq %r14, %rdi
callq 0x3150
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r14, %rcx
movq %rax, %r8
callq 0x3420
cmpl $0x4, %ebp
jb 0x6db3
movq 0x18(%rbx), %r14
leaq 0x50(%rsp), %r15
movq 0x8(%r15), %r12
movq %r14, %rdi
callq 0x3150
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x3420
cmpl $0x4, %ebp
je 0x6db3
movq 0x20(%rbx), %r14
leaq 0xa8(%rsp), %r15
movq 0x8(%r15), %r12
movq %r14, %rdi
callq 0x3150
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x3420
cmpl $0x6, %ebp
jb 0x6db3
movq 0x28(%rbx), %r14
leaq 0x128(%rsp), %r15
movq 0x8(%r15), %r12
movq %r14, %rdi
callq 0x3150
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x3420
cmpl $0x7, %ebp
jne 0x6db3
movq 0x30(%rbx), %rbx
leaq 0x1e8(%rsp), %r14
movq 0x8(%r14), %r15
movq %rbx, %rdi
callq 0x3150
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x3420
cmpq $0x0, 0x10(%rsp)
je 0x6ddd
leaq 0x807c(%rip), %rsi      # 0xee3e
leaq 0x8(%rsp), %rdi
movl $0x4, %ecx
xorl %edx, %edx
callq 0x3490
cmpq $-0x1, %rax
setne %bpl
jmp 0x6ddf
xorl %ebp, %ebp
leaq 0x30(%rsp), %rdi
callq 0x690c
cmpq $0x0, 0x38(%rsp)
je 0x6e96
leaq 0x378(%rsp), %rdi
callq 0xb7c4
leaq 0x318(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xc8(%rsp), %rsi
movq 0xd0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x308(%rsp), %rdi
callq 0x8d32
leaq 0x308(%rsp), %rdi
leaq 0x378(%rsp), %rdx
movl $0x1466, %esi           # imm = 0x1466
callq 0x48ad
movl %eax, %ebx
movq 0x308(%rsp), %rdi
cmpq %r14, %rdi
je 0x6e67
movq 0x318(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
jne 0x7019
leaq 0x378(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x4ce2
testl %eax, %eax
je 0x7194
leaq 0x378(%rsp), %rdi
callq 0xb7ee
leaq 0x2f8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x168(%rsp), %rsi
movq 0x170(%rsp), %rdx
addq %rsi, %rdx
leaq 0x2e8(%rsp), %rdi
callq 0x8d32
leaq 0x2d8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x148(%rsp), %rsi
movq 0x150(%rsp), %rdx
addq %rsi, %rdx
leaq 0x2c8(%rsp), %rdi
callq 0x8d32
leaq 0x2e8(%rsp), %rdi
leaq 0x2c8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x43d7
movl %eax, %ebx
movq 0x2c8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6f27
movq 0x2d8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x2e8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6f44
movq 0x2f8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x6f6e
leaq 0x5b3b(%rip), %rdi      # 0xca8a
callq 0x3410
movq 0xd35d(%rip), %rsi      # 0x142b8
leaq 0x5af2(%rip), %rdi      # 0xca54
xorl %eax, %eax
callq 0x3040
jmp 0x7047
testb %bpl, %bpl
jne 0x6f7f
leaq 0x5b39(%rip), %rdi      # 0xcab3
callq 0x3410
leaq 0x30(%rsp), %rdi
callq 0x69cf
leaq 0x378(%rsp), %rdi
callq 0xb7c4
leaq 0x2b8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xc8(%rsp), %rsi
movq 0xd0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x2a8(%rsp), %rdi
callq 0x8d32
leaq 0x2a8(%rsp), %rdi
leaq 0x378(%rsp), %rdx
movl $0x1466, %esi           # imm = 0x1466
callq 0x48ad
movl %eax, %ebx
movq 0x2a8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6ffb
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
jne 0x7019
leaq 0x378(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x4ce2
testl %eax, %eax
je 0x71a5
leaq 0x5a0b(%rip), %rdi      # 0xca2b
callq 0x3410
movq 0xd28c(%rip), %rsi      # 0x142b8
leaq 0x5a21(%rip), %rdi      # 0xca54
xorl %eax, %eax
callq 0x3040
leaq 0x378(%rsp), %rdi
callq 0xb7ee
movl $0x1, %r14d
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7068
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7085
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
leaq 0x178(%rsp), %rbx
leaq 0x158(%rsp), %r15
je 0x70ba
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x70df
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x70fb
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7117
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7138
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x148(%rsp), %rdi
cmpq %r15, %rdi
je 0x7155
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x168(%rsp), %rdi
cmpq %rbx, %rdi
je 0x7172
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x5d0(%rsp), %rdi
callq 0x30d0
movl %r14d, %eax
addq $0x7d8, %rsp            # imm = 0x7D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb %bpl, %bpl
jne 0x71a5
leaq 0x58c0(%rip), %rdi      # 0xca60
callq 0x3410
leaq 0x378(%rsp), %rdi
callq 0xb7ee
testb %bpl, %bpl
jne 0x71c3
leaq 0x591e(%rip), %rdi      # 0xcadc
callq 0x3410
leaq 0x578(%rsp), %rdi
callq 0xb7c4
leaq 0x298(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xc8(%rsp), %rsi
movq 0xd0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x288(%rsp), %rdi
callq 0x8d32
leaq 0x288(%rsp), %rdi
leaq 0x578(%rsp), %rdx
movl $0x1466, %esi           # imm = 0x1466
callq 0x48ad
movl %eax, %ebx
movq 0x288(%rsp), %rdi
cmpq %r14, %rdi
je 0x7235
movq 0x298(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x7265
leaq 0x58c5(%rip), %rdi      # 0xcb05
callq 0x3410
movq 0xd06c(%rip), %rsi      # 0x142b8
leaq 0x5801(%rip), %rdi      # 0xca54
xorl %eax, %eax
callq 0x3040
movl $0x1, %r14d
jmp 0x7e99
leaq 0x118(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0x8d32
leaq 0xf8(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x8d32
leaq 0x278(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x108(%rsp), %rsi
movq 0x110(%rsp), %rdx
addq %rsi, %rdx
leaq 0x268(%rsp), %rdi
callq 0x8d32
leaq 0x258(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xe8(%rsp), %rsi
movq 0xf0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x248(%rsp), %rdi
callq 0x8d32
leaq 0x578(%rsp), %rdi
leaq 0x268(%rsp), %rsi
leaq 0x248(%rsp), %rdx
callq 0x4928
movl %eax, %ebx
movq 0x248(%rsp), %rdi
cmpq %r15, %rdi
je 0x7345
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x268(%rsp), %rdi
cmpq %r14, %rdi
je 0x7362
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x7393
movl $0x1, %r14d
movq 0xcf4d(%rip), %rdx      # 0x142c0
leaq 0xcf3e(%rip), %rdi      # 0x142b8
leaq 0x5186(%rip), %rcx      # 0xc507
movl $0x15, %r8d
xorl %esi, %esi
callq 0x3420
jmp 0x7e4f
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x8d32
leaq 0x7a13(%rip), %rsi      # 0xedd3
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7465
leaq 0x7a12(%rip), %rsi      # 0xedeb
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7465
leaq 0x7a79(%rip), %rsi      # 0xee67
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7465
leaq 0x7a79(%rip), %rsi      # 0xee7c
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7465
leaq 0x5716(%rip), %rsi      # 0xcb2e
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7465
leaq 0x570f(%rip), %rsi      # 0xcb3c
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7465
leaq 0x570f(%rip), %rsi      # 0xcb51
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7465
leaq 0x7ac4(%rip), %rsi      # 0xef1b
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x7485
leaq 0x88(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x7ab6(%rip), %rcx      # 0xef2e
movl $0xe, %r8d
xorl %esi, %esi
callq 0x3420
leaq 0x238(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
addq %rsi, %rdx
leaq 0x228(%rsp), %rdi
callq 0x8d32
leaq 0x1b8(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1a8(%rsp), %rdi
callq 0x8d32
leaq 0x198(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x188(%rsp), %rdi
callq 0x8d32
leaq 0x218(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x128(%rsp), %rsi
movq 0x130(%rsp), %rdx
addq %rsi, %rdx
leaq 0x208(%rsp), %rdi
callq 0x8d32
leaq 0x338(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x1e8(%rsp), %rsi
movq 0x1f0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x328(%rsp), %rbx
movq %rbx, %rdi
callq 0x8d32
movq %rbx, (%rsp)
leaq 0x578(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x228(%rsp), %rdx
leaq 0x1a8(%rsp), %rcx
leaq 0x188(%rsp), %r8
leaq 0x208(%rsp), %r9
callq 0x51fb
movl %eax, %ebx
movq 0x328(%rsp), %rdi
cmpq %r15, %rdi
je 0x75b4
movq 0x338(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x208(%rsp), %rdi
cmpq %r14, %rdi
leaq 0x198(%rsp), %r14
je 0x75d9
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x188(%rsp), %rdi
cmpq %r14, %rdi
leaq 0x1b8(%rsp), %r14
je 0x75fe
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1a8(%rsp), %rdi
cmpq %r14, %rdi
je 0x761b
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x228(%rsp), %rdi
cmpq %r12, %rdi
je 0x7638
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebx, %ebx
je 0x7661
leaq 0x54c2(%rip), %rdi      # 0xcb05
callq 0x3410
movl $0x1, %r14d
leaq 0x53ff(%rip), %rdi      # 0xca54
leaq 0xcc5c(%rip), %rcx      # 0x142b8
jmp 0x7e20
testb %bpl, %bpl
jne 0x7672
leaq 0x54fd(%rip), %rdi      # 0xcb6a
callq 0x3410
leaq 0x78b5(%rip), %rsi      # 0xef2e
leaq 0x88(%rsp), %rdi
callq 0x30f0
leaq 0x5250(%rip), %rdi      # 0xc8dd
leaq 0xcc44(%rip), %rcx      # 0x142d8
testl %eax, %eax
je 0x76a0
xorl %r14d, %r14d
jmp 0x7e20
leaq 0x350(%rsp), %rcx
movl $0x0, (%rcx)
xorl %eax, %eax
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x70(%rsp), %rdx
movq %rax, 0x10(%rdx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdx)
leaq 0xcc22(%rip), %rdi      # 0x142f8
leaq 0x348(%rsp), %rsi
callq 0x6283
movl %eax, 0x2c(%rsp)
cmpl $0x1, 0x2c(%rsp)
jne 0x771a
leaq 0x549e(%rip), %rdi      # 0xcb93
callq 0x3410
movq 0xcbb7(%rip), %rsi      # 0x142b8
leaq 0x534c(%rip), %rdi      # 0xca54
xorl %eax, %eax
callq 0x3040
movl $0x1, %r14d
jmp 0x7df1
leaq 0x76b2(%rip), %rsi      # 0xedd3
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7748
leaq 0x76b5(%rip), %rsi      # 0xedeb
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x78ae
leaq 0xcb89(%rip), %rdi      # 0x142d8
leaq 0x5194(%rip), %rsi      # 0xc8ea
callq 0x3370
leaq 0x7671(%rip), %rsi      # 0xedd3
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x7783
leaq 0xcb61(%rip), %rdi      # 0x142d8
leaq 0x543e(%rip), %rsi      # 0xcbbc
callq 0x3370
movq 0x360(%rsp), %r14
leaq 0x350(%rsp), %rax
cmpq %rax, %r14
je 0x780a
leaq 0xcb39(%rip), %r15      # 0x142d8
leaq 0x4953(%rip), %rbx      # 0xc0f9
leaq 0x5435(%rip), %r12      # 0xcbe2
movq %r15, %rdi
leaq 0x57a2(%rip), %rsi      # 0xcf59
callq 0x34f0
movq 0x40(%r14), %rsi
movq 0x48(%r14), %rdx
movq %r15, %rdi
callq 0x3100
movq %r15, %rdi
movq %rbx, %rsi
callq 0x34f0
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq %r15, %rdi
callq 0x3100
movq %r15, %rdi
movq %r12, %rsi
callq 0x34f0
movq %r14, %rdi
callq 0x31c0
movq %rax, %r14
leaq 0x350(%rsp), %rax
cmpq %rax, %r14
jne 0x77ad
leaq 0xcac7(%rip), %rsi      # 0x142d8
movq 0xcac8(%rip), %rcx      # 0x142e0
decq %rcx
leaq 0x378(%rsp), %rdi
xorl %edx, %edx
callq 0x32c0
leaq 0xcaa7(%rip), %rdi      # 0x142d8
leaq 0x378(%rsp), %r14
movq %r14, %rsi
callq 0x3330
movq (%r14), %rdi
leaq 0x388(%rsp), %rax
cmpq %rax, %rdi
je 0x7861
movq 0x388(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xca70(%rip), %rdi      # 0x142d8
leaq 0x488f(%rip), %rsi      # 0xc0fe
callq 0x34f0
leaq 0x536a(%rip), %rsi      # 0xcbe5
leaq 0x378(%rsp), %rdi
movl $0x10, %edx
callq 0x32e0
movq 0xca44(%rip), %rsi      # 0x142d8
leaq 0x378(%rsp), %rdi
callq 0x3260
leaq 0x378(%rsp), %rdi
callq 0x33f0
leaq 0x75b2(%rip), %rsi      # 0xee67
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x78dc
leaq 0x75b2(%rip), %rsi      # 0xee7c
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x7a2c
leaq 0xc9f5(%rip), %rdi      # 0x142d8
leaq 0x5000(%rip), %rsi      # 0xc8ea
callq 0x3370
leaq 0x7571(%rip), %rsi      # 0xee67
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x7917
leaq 0xc9cd(%rip), %rdi      # 0x142d8
leaq 0x52e3(%rip), %rsi      # 0xcbf5
callq 0x3370
movq 0x70(%rsp), %r15
movq 0x78(%rsp), %r12
cmpq %r12, %r15
je 0x7988
leaq 0xc9ab(%rip), %r14      # 0x142d8
leaq 0x52ae(%rip), %rbx      # 0xcbe2
movq %r14, %rdi
leaq 0x561b(%rip), %rsi      # 0xcf59
callq 0x34f0
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
movq %r14, %rdi
callq 0x3100
movq %r14, %rdi
leaq 0x479c(%rip), %rsi      # 0xc0f9
callq 0x34f0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x3100
movq %r14, %rdi
movq %rbx, %rsi
callq 0x34f0
addq $0xb8, %r15
cmpq %r12, %r15
jne 0x7934
leaq 0xc949(%rip), %rsi      # 0x142d8
movq 0xc94a(%rip), %rcx      # 0x142e0
decq %rcx
leaq 0x378(%rsp), %rdi
xorl %edx, %edx
callq 0x32c0
leaq 0xc929(%rip), %rdi      # 0x142d8
leaq 0x378(%rsp), %r14
movq %r14, %rsi
callq 0x3330
movq (%r14), %rdi
leaq 0x388(%rsp), %rax
cmpq %rax, %rdi
je 0x79df
movq 0x388(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xc8f2(%rip), %rdi      # 0x142d8
leaq 0x4711(%rip), %rsi      # 0xc0fe
callq 0x34f0
leaq 0x5222(%rip), %rsi      # 0xcc1b
leaq 0x378(%rsp), %rdi
movl $0x10, %edx
callq 0x32e0
movq 0xc8c6(%rip), %rsi      # 0x142d8
leaq 0x378(%rsp), %rdi
callq 0x3260
leaq 0x378(%rsp), %rdi
callq 0x33f0
leaq 0x50fb(%rip), %rsi      # 0xcb2e
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7a5a
leaq 0x51e0(%rip), %rsi      # 0xcc28
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x7b16
leaq 0xc877(%rip), %rdi      # 0x142d8
leaq 0x550f(%rip), %rsi      # 0xcf77
callq 0x3370
leaq 0x50ba(%rip), %rsi      # 0xcb2e
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x7a95
leaq 0xc84f(%rip), %rdi      # 0x142d8
leaq 0x51aa(%rip), %rsi      # 0xcc3a
callq 0x3370
movq 0x70(%rsp), %r14
movq 0x78(%rsp), %r15
cmpq %r15, %r14
je 0x7b16
leaq 0xc82d(%rip), %r12      # 0x142d8
leaq 0x51bc(%rip), %rbx      # 0xcc6e
leaq 0x378(%rsp), %rdi
movq %r14, %rsi
callq 0x87de
movq 0x378(%rsp), %rsi
movq 0x380(%rsp), %rdx
movq %r12, %rdi
callq 0x3100
movq 0x378(%rsp), %rdi
leaq 0x388(%rsp), %rax
cmpq %rax, %rdi
je 0x7aff
movq 0x388(%rsp), %rsi
incq %rsi
callq 0x3290
movq %r12, %rdi
movq %rbx, %rsi
callq 0x34f0
addq $0xb8, %r14
cmpq %r15, %r14
jne 0x7ab2
leaq 0x501f(%rip), %rsi      # 0xcb3c
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7b44
leaq 0x501f(%rip), %rsi      # 0xcb51
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x7d9c
leaq 0xc78d(%rip), %rdi      # 0x142d8
leaq 0x4d98(%rip), %rsi      # 0xc8ea
callq 0x3370
leaq 0x4fde(%rip), %rsi      # 0xcb3c
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x7b7f
leaq 0xc765(%rip), %rdi      # 0x142d8
leaq 0x50f8(%rip), %rsi      # 0xcc72
callq 0x3370
movq 0x70(%rsp), %r14
movq 0x78(%rsp), %rbx
cmpq %rbx, %r14
je 0x7d06
movq 0x50(%rsp), %r12
movq 0x58(%rsp), %r15
cmpq %r15, 0x8(%r14)
jne 0x7bb9
testq %r15, %r15
je 0x7bca
movq (%r14), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x32b0
testl %eax, %eax
je 0x7bca
addq $0xb8, %r14
cmpq %rbx, %r14
jne 0x7b9c
jmp 0x7d06
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0x7c3c
cmpq %r15, %rax
jne 0x7c9c
movq (%r14), %rsi
movq 0xa8(%rsp), %rdi
movq %r15, %rdx
callq 0x32b0
testl %eax, %eax
jne 0x7c9c
leaq 0xc6d6(%rip), %rdi      # 0x142d8
leaq 0x5350(%rip), %rsi      # 0xcf59
callq 0x34f0
leaq 0x378(%rsp), %rdi
movq %r14, %rsi
callq 0x87de
movq 0x378(%rsp), %rsi
movq 0x380(%rsp), %rdx
leaq 0xc6a3(%rip), %rdi      # 0x142d8
callq 0x3100
jmp 0x7c7b
leaq 0xc695(%rip), %rdi      # 0x142d8
leaq 0x530f(%rip), %rsi      # 0xcf59
callq 0x34f0
leaq 0x378(%rsp), %rdi
movq %r14, %rsi
callq 0x87de
movq 0x378(%rsp), %rsi
movq 0x380(%rsp), %rdx
leaq 0xc662(%rip), %rdi      # 0x142d8
callq 0x3100
leaq 0x388(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c9c
movq 0x388(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xc635(%rip), %rsi      # 0x142d8
movq 0xc636(%rip), %rcx      # 0x142e0
decq %rcx
leaq 0x378(%rsp), %rdi
xorl %edx, %edx
callq 0x32c0
leaq 0xc615(%rip), %rdi      # 0x142d8
leaq 0x378(%rsp), %r14
movq %r14, %rsi
callq 0x3330
movq (%r14), %rdi
leaq 0x388(%rsp), %rax
cmpq %rax, %rdi
je 0x7cf3
movq 0x388(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xc5de(%rip), %rdi      # 0x142d8
leaq 0x43fd(%rip), %rsi      # 0xc0fe
callq 0x34f0
leaq 0x1d8(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq 0x1c8(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x3180
leaq 0x4f8a(%rip), %rsi      # 0xccc1
leaq 0x1c8(%rsp), %rdi
callq 0x34f0
movq 0x1c8(%rsp), %rsi
leaq 0x378(%rsp), %rdi
movl $0x10, %edx
callq 0x32e0
movq 0xc573(%rip), %rsi      # 0x142d8
leaq 0x378(%rsp), %rdi
callq 0x3260
leaq 0x378(%rsp), %rdi
callq 0x33f0
movq 0x1c8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7d9c
movq 0x1d8(%rsp), %rsi
incq %rsi
callq 0x3290
testb %bpl, %bpl
jne 0x7dad
leaq 0x4eea(%rip), %rdi      # 0xcc92
callq 0x3410
leaq 0x4f07(%rip), %rsi      # 0xccbb
leaq 0x378(%rsp), %rdi
movl $0x10, %edx
callq 0x32e0
movq 0xc52b(%rip), %rsi      # 0x142f8
movq 0xc52c(%rip), %rdx      # 0x14300
leaq 0x378(%rsp), %rdi
callq 0x3310
leaq 0x378(%rsp), %rdi
callq 0x33f0
xorl %r14d, %r14d
leaq 0x70(%rsp), %rdi
callq 0x89b4
leaq 0x348(%rsp), %rdi
callq 0x8ca0
cmpl $0x1, 0x2c(%rsp)
je 0x7e2a
xorl %r14d, %r14d
leaq 0x4ac4(%rip), %rdi      # 0xc8dd
leaq 0xc4b8(%rip), %rcx      # 0x142d8
movq (%rcx), %rsi
xorl %eax, %eax
callq 0x3040
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x7e4f
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x7e74
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x7e99
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x578(%rsp), %rdi
callq 0xb7ee
jmp 0x704d
jmp 0x7eb2
jmp 0x808f
movq %rax, %rbx
leaq 0x388(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x7f65
jmp 0x808f
jmp 0x808f
jmp 0x808f
movq %rax, %rbx
leaq 0x378(%rsp), %rdi
callq 0x33f0
jmp 0x7f28
jmp 0x7f25
jmp 0x7f0b
jmp 0x808f
jmp 0x808f
jmp 0x808f
jmp 0x7f0b
jmp 0x808f
jmp 0x808f
jmp 0x808f
movq %rax, %rbx
leaq 0x378(%rsp), %rdi
callq 0x33f0
jmp 0x8092
jmp 0x808f
movq %rax, %rbx
movq 0x1c8(%rsp), %rdi
cmpq %r14, %rdi
je 0x8092
movq 0x1d8(%rsp), %rsi
jmp 0x7f76
jmp 0x808f
jmp 0x808f
jmp 0x808f
movq %rax, %rbx
movq 0x378(%rsp), %rdi
leaq 0x388(%rsp), %rax
cmpq %rax, %rdi
je 0x8092
movq 0x388(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x8092
movq %rax, %rbx
movq 0x328(%rsp), %rdi
cmpq %r15, %rdi
je 0x7fa8
movq 0x338(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7fa8
movq %rax, %rbx
movq 0x208(%rsp), %rdi
cmpq %r14, %rdi
je 0x7fca
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7fca
movq %rax, %rbx
movq 0x188(%rsp), %rdi
leaq 0x198(%rsp), %rax
cmpq %rax, %rdi
je 0x7ff4
movq 0x198(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7ff4
movq %rax, %rbx
movq 0x1a8(%rsp), %rdi
leaq 0x1b8(%rsp), %rax
cmpq %rax, %rdi
je 0x801e
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x801e
movq %rax, %rbx
movq 0x228(%rsp), %rdi
cmpq %r12, %rdi
je 0x80a9
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x80a9
jmp 0x80d0
movq %rax, %rbx
jmp 0x80a9
movq %rax, %rbx
movq 0x248(%rsp), %rdi
cmpq %r15, %rdi
je 0x806c
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x806c
movq %rax, %rbx
movq 0x268(%rsp), %rdi
cmpq %r14, %rdi
je 0x80d3
movq 0x278(%rsp), %rsi
jmp 0x80c6
movq %rax, %rbx
jmp 0x80f8
jmp 0x8139
jmp 0x808f
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x89b4
leaq 0x348(%rsp), %rdi
callq 0x8ca0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x80d3
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x80d3
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x80f8
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x813c
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x813c
movq %rax, %rbx
movq 0x288(%rsp), %rdi
cmpq %r14, %rdi
je 0x813c
movq 0x298(%rsp), %rsi
jmp 0x8115
movq %rax, %rbx
leaq 0x578(%rsp), %rdi
jmp 0x81e4
jmp 0x81d4
movq %rax, %rbx
movq 0x2a8(%rsp), %rdi
cmpq %r14, %rdi
je 0x81dc
movq 0x2b8(%rsp), %rsi
jmp 0x81c8
jmp 0x81d4
jmp 0x81d9
movq %rax, %rbx
movq 0x2c8(%rsp), %rdi
cmpq %r15, %rdi
je 0x8191
movq 0x2d8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x8191
movq %rax, %rbx
movq 0x2e8(%rsp), %rdi
cmpq %r14, %rdi
je 0x81e9
movq 0x2f8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x81e9
movq %rax, %rbx
movq 0x308(%rsp), %rdi
cmpq %r14, %rdi
je 0x81dc
movq 0x318(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x81dc
jmp 0x81d4
movq %rax, %rbx
jmp 0x81e9
movq %rax, %rbx
leaq 0x378(%rsp), %rdi
callq 0xb7ee
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x820b
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x820b
jmp 0x8208
movq %rax, %rbx
movq 0x1e8(%rsp), %rdi
cmpq %r13, %rdi
je 0x8228
movq 0x1f8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x824d
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x8272
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x828e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x82aa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x82d0
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x82d0
movq %rax, %rbx
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x82f5
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x8338
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x8338
movq %rax, %rbx
jmp 0x82f5
jmp 0x8335
movq %rax, %rbx
leaq 0x378(%rsp), %rdi
callq 0x33f0
jmp 0x8338
movq %rax, %rbx
leaq 0x5d0(%rsp), %rdi
callq 0x30d0
movq %rbx, %rdi
callq 0x34a0
nop