// File: /workspace/github_cpp_makefile_star2_O1/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 $0x7e8, %rsp            # imm = 0x7E8
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x64e1(%rip), %rsi      # 0xc989
leaq 0x5e0(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x34d0
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x600(%rsp,%rax)
je 0x6538
leaq 0x64b4(%rip), %rsi      # 0xc989
leaq 0x388(%rsp), %rdi
movl $0x10, %edx
callq 0x32e0
leaq 0x64b9(%rip), %rsi      # 0xc9a7
leaq 0x388(%rsp), %rdi
movl $0x40, %edx
callq 0x3310
movq 0xdac9(%rip), %rax      # 0x13fd0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x390(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x388(%rsp,%rcx)
callq 0x3210
leaq 0x480(%rsp), %rdi
callq 0x3110
cmpl $0x1, %ebp
jg 0x660f
leaq 0x884c(%rip), %rdi      # 0xed94
callq 0x3410
leaq 0x6494(%rip), %rdi      # 0xc9e8
leaq 0x6a1c(%rip), %rsi      # 0xcf77
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x3040
leaq 0x8831(%rip), %rdi      # 0xed9c
callq 0x3410
leaq 0x8854(%rip), %rdi      # 0xedcb
callq 0x3410
leaq 0x8860(%rip), %rdi      # 0xede3
callq 0x3410
leaq 0x8870(%rip), %rdi      # 0xedff
callq 0x3410
leaq 0x8884(%rip), %rdi      # 0xee1f
callq 0x3410
leaq 0x889c(%rip), %rdi      # 0xee43
callq 0x3410
leaq 0x88ac(%rip), %rdi      # 0xee5f
callq 0x3410
leaq 0x88b5(%rip), %rdi      # 0xee74
callq 0x3410
leaq 0x88c2(%rip), %rdi      # 0xee8d
callq 0x3410
leaq 0x88de(%rip), %rdi      # 0xeeb5
callq 0x3410
leaq 0x88fe(%rip), %rdi      # 0xeee1
callq 0x3410
leaq 0x8924(%rip), %rdi      # 0xef13
callq 0x3410
leaq 0x892b(%rip), %rdi      # 0xef26
callq 0x3410
movl $0xa, %edi
callq 0x33a0
jmp 0x78f3
leaq 0x1a0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x63fd(%rip), %rsi      # 0xca1f
leaq 0x6401(%rip), %rdx      # 0xca2a
leaq 0x190(%rsp), %rdi
callq 0x8846
leaq 0x180(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5e95(%rip), %rsi      # 0xc4de
leaq 0x5e93(%rip), %rdx      # 0xc4e3
leaq 0x170(%rsp), %rdi
callq 0x8846
movq 0x8(%rbx), %rsi
leaq 0xd0(%rsp), %rdi
leaq 0x388(%rsp), %rdx
callq 0x7de4
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 0xc0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x160(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x140(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
cmpl $0x2, %ebp
je 0x66f1
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
jl 0x671e
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 $0x5, %ebp
jl 0x674e
movq 0x20(%rbx), %r14
leaq 0xb0(%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
jl 0x677e
movq 0x28(%rbx), %r14
leaq 0x150(%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 0x67ae
movq 0x30(%rbx), %rbx
leaq 0x130(%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 0x67d8
leaq 0x8681(%rip), %rsi      # 0xee3e
leaq 0x8(%rsp), %rdi
movl $0x4, %ecx
xorl %edx, %edx
callq 0x3490
cmpq $-0x1, %rax
setne %r13b
jmp 0x67db
xorl %r13d, %r13d
leaq 0x30(%rsp), %rdi
callq 0x6316
cmpq $0x0, 0x38(%rsp)
je 0x6892
leaq 0x388(%rsp), %rdi
callq 0xba44
leaq 0x328(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x318(%rsp), %rdi
callq 0x87b6
leaq 0x318(%rsp), %rdi
leaq 0x388(%rsp), %rdx
movl $0x1466, %esi           # imm = 0x1466
callq 0x42b7
movl %eax, %ebp
movq 0x318(%rsp), %rdi
cmpq %r14, %rdi
je 0x6863
movq 0x328(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebp, %ebp
je 0x6899
leaq 0x61bd(%rip), %rdi      # 0xca2b
callq 0x3410
movq 0xda3e(%rip), %rsi      # 0x142b8
leaq 0x61d3(%rip), %rdi      # 0xca54
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x3040
movl $0x1, %ebx
jmp 0x68c9
xorl %ebx, %ebx
xorl %r14d, %r14d
jmp 0x68de
leaq 0x388(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x46ec
testl %eax, %eax
sete %r14b
xorl %ebx, %ebx
movl %r13d, %ecx
orb %al, %cl
jne 0x68c9
leaq 0x619f(%rip), %rdi      # 0xca60
callq 0x3410
movb $0x1, %r14b
leaq 0x388(%rsp), %rdi
callq 0xba6e
testl %ebp, %ebp
jne 0x77c6
testb %r14b, %r14b
je 0x699d
testb %r13b, %r13b
jne 0x68f8
leaq 0x61e9(%rip), %rdi      # 0xcadc
callq 0x3410
leaq 0x588(%rsp), %rdi
callq 0xba44
leaq 0x2a8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x298(%rsp), %rdi
callq 0x87b6
leaq 0x298(%rsp), %rdi
leaq 0x588(%rsp), %rdx
movl $0x1466, %esi           # imm = 0x1466
callq 0x42b7
movl %eax, %ebp
movq 0x298(%rsp), %rdi
cmpq %r14, %rdi
je 0x696a
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebp, %ebp
je 0x6a7e
leaq 0x618c(%rip), %rdi      # 0xcb05
callq 0x3410
movq 0xd933(%rip), %rsi      # 0x142b8
leaq 0x60c8(%rip), %rdi      # 0xca54
xorl %eax, %eax
callq 0x3040
movl $0x1, %ebx
jmp 0x77b9
leaq 0x308(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
addq %rsi, %rdx
leaq 0x2f8(%rsp), %rdi
callq 0x87b6
leaq 0x2e8(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x170(%rsp), %rsi
movq 0x178(%rsp), %rdx
addq %rsi, %rdx
leaq 0x2d8(%rsp), %rdi
callq 0x87b6
leaq 0x2f8(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x3de1
movl %eax, %ebp
movq 0x2d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6a2e
movq 0x2e8(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x2f8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6a4b
movq 0x308(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebp, %ebp
je 0x6baf
leaq 0x6030(%rip), %rdi      # 0xca8a
callq 0x3410
movq 0xd852(%rip), %rsi      # 0x142b8
leaq 0x5fe7(%rip), %rdi      # 0xca54
xorl %eax, %eax
callq 0x3040
movl $0x1, %ebx
jmp 0x77c6
leaq 0x120(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x110(%rsp), %rdi
callq 0x87b6
leaq 0x100(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf0(%rsp), %rdi
callq 0x87b6
leaq 0x288(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
addq %rsi, %rdx
leaq 0x278(%rsp), %rdi
callq 0x87b6
leaq 0x268(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x258(%rsp), %rdi
callq 0x87b6
leaq 0x588(%rsp), %rdi
leaq 0x278(%rsp), %rsi
leaq 0x258(%rsp), %rdx
callq 0x4332
movl %eax, %ebp
movq 0x258(%rsp), %rdi
cmpq %r15, %rdi
je 0x6b5e
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x278(%rsp), %rdi
cmpq %r14, %rdi
je 0x6b7b
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebp, %ebp
je 0x6c9d
movl $0x1, %ebx
movq 0xd731(%rip), %rdx      # 0x142c0
leaq 0xd722(%rip), %rdi      # 0x142b8
leaq 0x596a(%rip), %rcx      # 0xc507
movl $0x15, %r8d
xorl %esi, %esi
callq 0x3420
jmp 0x776f
testb %r13b, %r13b
jne 0x6bc0
leaq 0x5ef8(%rip), %rdi      # 0xcab3
callq 0x3410
leaq 0x30(%rsp), %rdi
callq 0x63d9
leaq 0x388(%rsp), %rdi
callq 0xba44
leaq 0x2c8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x2b8(%rsp), %rdi
callq 0x87b6
leaq 0x2b8(%rsp), %rdi
leaq 0x388(%rsp), %rdx
movl $0x1466, %esi           # imm = 0x1466
callq 0x42b7
movl %eax, %ebp
movq 0x2b8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6c3c
movq 0x2c8(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebp, %ebp
jne 0x6c5a
leaq 0x388(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x46ec
testl %eax, %eax
je 0x6fb0
leaq 0x5dca(%rip), %rdi      # 0xca2b
callq 0x3410
movq 0xd64b(%rip), %rsi      # 0x142b8
leaq 0x5de0(%rip), %rdi      # 0xca54
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x3040
movl $0x1, %ebx
leaq 0x388(%rsp), %rdi
callq 0xba6e
testb %bpl, %bpl
jne 0x68e7
jmp 0x77c6
leaq 0xa0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x87b6
leaq 0x8109(%rip), %rsi      # 0xedd3
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x6d6f
leaq 0x8108(%rip), %rsi      # 0xedeb
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x6d6f
leaq 0x816f(%rip), %rsi      # 0xee67
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x6d6f
leaq 0x816f(%rip), %rsi      # 0xee7c
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x6d6f
leaq 0x5e0c(%rip), %rsi      # 0xcb2e
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x6d6f
leaq 0x5e05(%rip), %rsi      # 0xcb3c
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x6d6f
leaq 0x5e05(%rip), %rsi      # 0xcb51
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x6d6f
leaq 0x81ba(%rip), %rsi      # 0xef1b
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x6d8f
leaq 0x90(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x81ac(%rip), %rcx      # 0xef2e
movl $0xe, %r8d
xorl %esi, %esi
callq 0x3420
leaq 0x200(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f0(%rsp), %rdi
callq 0x87b6
leaq 0x1e0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1d0(%rsp), %rdi
callq 0x87b6
leaq 0x1c0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1b0(%rsp), %rdi
callq 0x87b6
leaq 0x248(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x150(%rsp), %rsi
movq 0x158(%rsp), %rdx
addq %rsi, %rdx
leaq 0x238(%rsp), %rdi
callq 0x87b6
leaq 0x348(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x130(%rsp), %rsi
movq 0x138(%rsp), %rdx
addq %rsi, %rdx
leaq 0x338(%rsp), %r14
movq %r14, %rdi
callq 0x87b6
movq %r14, (%rsp)
leaq 0x588(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x1f0(%rsp), %rdx
leaq 0x1d0(%rsp), %rcx
leaq 0x1b0(%rsp), %r8
leaq 0x238(%rsp), %r9
callq 0x4c05
movl %eax, %ebp
movq 0x338(%rsp), %rdi
cmpq %r15, %rdi
je 0x6ebe
movq 0x348(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
leaq 0x200(%rsp), %r14
je 0x6ee3
movq 0x248(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x6f08
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x6f2d
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x1f0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6f4a
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x3290
testl %ebp, %ebp
je 0x6f72
leaq 0x5bb0(%rip), %rdi      # 0xcb05
callq 0x3410
movl $0x1, %ebx
leaq 0x5aee(%rip), %rdi      # 0xca54
leaq 0xd34b(%rip), %rcx      # 0x142b8
jmp 0x7740
testb %r13b, %r13b
jne 0x6f83
leaq 0x5bec(%rip), %rdi      # 0xcb6a
callq 0x3410
leaq 0x7fa4(%rip), %rsi      # 0xef2e
leaq 0x90(%rsp), %rdi
callq 0x30f0
leaq 0x593f(%rip), %rdi      # 0xc8dd
leaq 0xd333(%rip), %rcx      # 0x142d8
testl %eax, %eax
je 0x6fb8
xorl %ebx, %ebx
jmp 0x7740
movb $0x1, %bpl
jmp 0x6c82
leaq 0x360(%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 0xd30a(%rip), %rdi      # 0x142f8
leaq 0x358(%rsp), %rsi
callq 0x5c8d
movl %eax, 0x2c(%rsp)
cmpl $0x1, 0x2c(%rsp)
jne 0x7031
leaq 0x5b86(%rip), %rdi      # 0xcb93
callq 0x3410
movq 0xd29f(%rip), %rsi      # 0x142b8
leaq 0x5a34(%rip), %rdi      # 0xca54
xorl %eax, %eax
callq 0x3040
movl $0x1, %ebx
jmp 0x7712
leaq 0x7d9b(%rip), %rsi      # 0xedd3
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x705f
leaq 0x7d9e(%rip), %rsi      # 0xedeb
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x71c5
leaq 0xd272(%rip), %rdi      # 0x142d8
leaq 0x587d(%rip), %rsi      # 0xc8ea
callq 0x3370
leaq 0x7d5a(%rip), %rsi      # 0xedd3
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x709a
leaq 0xd24a(%rip), %rdi      # 0x142d8
leaq 0x5b27(%rip), %rsi      # 0xcbbc
callq 0x3370
movq 0x370(%rsp), %r15
leaq 0x360(%rsp), %rax
cmpq %rax, %r15
je 0x7121
leaq 0xd222(%rip), %r12      # 0x142d8
leaq 0x503c(%rip), %rbp      # 0xc0f9
leaq 0x5b1e(%rip), %r14      # 0xcbe2
movq %r12, %rdi
leaq 0x5e8b(%rip), %rsi      # 0xcf59
callq 0x34f0
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
movq %r12, %rdi
callq 0x3100
movq %r12, %rdi
movq %rbp, %rsi
callq 0x34f0
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
movq %r12, %rdi
callq 0x3100
movq %r12, %rdi
movq %r14, %rsi
callq 0x34f0
movq %r15, %rdi
callq 0x31c0
movq %rax, %r15
leaq 0x360(%rsp), %rax
cmpq %rax, %r15
jne 0x70c4
leaq 0xd1b0(%rip), %rsi      # 0x142d8
movq 0xd1b1(%rip), %rcx      # 0x142e0
decq %rcx
leaq 0x388(%rsp), %rdi
xorl %edx, %edx
callq 0x32c0
leaq 0xd190(%rip), %rdi      # 0x142d8
leaq 0x388(%rsp), %r14
movq %r14, %rsi
callq 0x3330
movq (%r14), %rdi
leaq 0x398(%rsp), %rax
cmpq %rax, %rdi
je 0x7178
movq 0x398(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xd159(%rip), %rdi      # 0x142d8
leaq 0x4f78(%rip), %rsi      # 0xc0fe
callq 0x34f0
leaq 0x5a53(%rip), %rsi      # 0xcbe5
leaq 0x388(%rsp), %rdi
movl $0x10, %edx
callq 0x32e0
movq 0xd12d(%rip), %rsi      # 0x142d8
leaq 0x388(%rsp), %rdi
callq 0x3260
leaq 0x388(%rsp), %rdi
callq 0x33f0
leaq 0x7c9b(%rip), %rsi      # 0xee67
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x71f3
leaq 0x7c9b(%rip), %rsi      # 0xee7c
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x7343
leaq 0xd0de(%rip), %rdi      # 0x142d8
leaq 0x56e9(%rip), %rsi      # 0xc8ea
callq 0x3370
leaq 0x7c5a(%rip), %rsi      # 0xee67
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x722e
leaq 0xd0b6(%rip), %rdi      # 0x142d8
leaq 0x59cc(%rip), %rsi      # 0xcbf5
callq 0x3370
movq 0x70(%rsp), %r15
movq 0x78(%rsp), %r12
cmpq %r12, %r15
je 0x729f
leaq 0xd094(%rip), %r14      # 0x142d8
leaq 0x5997(%rip), %rbp      # 0xcbe2
movq %r14, %rdi
leaq 0x5d04(%rip), %rsi      # 0xcf59
callq 0x34f0
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
movq %r14, %rdi
callq 0x3100
movq %r14, %rdi
leaq 0x4e85(%rip), %rsi      # 0xc0f9
callq 0x34f0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x3100
movq %r14, %rdi
movq %rbp, %rsi
callq 0x34f0
addq $0xb8, %r15
cmpq %r12, %r15
jne 0x724b
leaq 0xd032(%rip), %rsi      # 0x142d8
movq 0xd033(%rip), %rcx      # 0x142e0
decq %rcx
leaq 0x388(%rsp), %rdi
xorl %edx, %edx
callq 0x32c0
leaq 0xd012(%rip), %rdi      # 0x142d8
leaq 0x388(%rsp), %r14
movq %r14, %rsi
callq 0x3330
movq (%r14), %rdi
leaq 0x398(%rsp), %rax
cmpq %rax, %rdi
je 0x72f6
movq 0x398(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xcfdb(%rip), %rdi      # 0x142d8
leaq 0x4dfa(%rip), %rsi      # 0xc0fe
callq 0x34f0
leaq 0x590b(%rip), %rsi      # 0xcc1b
leaq 0x388(%rsp), %rdi
movl $0x10, %edx
callq 0x32e0
movq 0xcfaf(%rip), %rsi      # 0x142d8
leaq 0x388(%rsp), %rdi
callq 0x3260
leaq 0x388(%rsp), %rdi
callq 0x33f0
leaq 0x57e4(%rip), %rsi      # 0xcb2e
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x7371
leaq 0x58c9(%rip), %rsi      # 0xcc28
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x742d
leaq 0xcf60(%rip), %rdi      # 0x142d8
leaq 0x5bf8(%rip), %rsi      # 0xcf77
callq 0x3370
leaq 0x57a3(%rip), %rsi      # 0xcb2e
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x73ac
leaq 0xcf38(%rip), %rdi      # 0x142d8
leaq 0x5893(%rip), %rsi      # 0xcc3a
callq 0x3370
movq 0x70(%rsp), %r14
movq 0x78(%rsp), %r15
cmpq %r15, %r14
je 0x742d
leaq 0xcf16(%rip), %r12      # 0x142d8
leaq 0x58a5(%rip), %rbp      # 0xcc6e
leaq 0x388(%rsp), %rdi
movq %r14, %rsi
callq 0x8268
movq 0x388(%rsp), %rsi
movq 0x390(%rsp), %rdx
movq %r12, %rdi
callq 0x3100
movq 0x388(%rsp), %rdi
leaq 0x398(%rsp), %rax
cmpq %rax, %rdi
je 0x7416
movq 0x398(%rsp), %rsi
incq %rsi
callq 0x3290
movq %r12, %rdi
movq %rbp, %rsi
callq 0x34f0
addq $0xb8, %r14
cmpq %r15, %r14
jne 0x73c9
leaq 0x5708(%rip), %rsi      # 0xcb3c
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
je 0x745b
leaq 0x5708(%rip), %rsi      # 0xcb51
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x76c0
leaq 0xce76(%rip), %rdi      # 0x142d8
leaq 0x5481(%rip), %rsi      # 0xc8ea
callq 0x3370
leaq 0x56c7(%rip), %rsi      # 0xcb3c
leaq 0x8(%rsp), %rdi
callq 0x30f0
testl %eax, %eax
jne 0x7496
leaq 0xce4e(%rip), %rdi      # 0x142d8
leaq 0x57e1(%rip), %rsi      # 0xcc72
callq 0x3370
movq 0x70(%rsp), %r15
movq 0x78(%rsp), %rbp
cmpq %rbp, %r15
je 0x762a
movq 0x50(%rsp), %rax
movq %rax, 0x210(%rsp)
movq 0x58(%rsp), %r14
movq 0x8(%r15), %r12
cmpq %r14, %r12
jne 0x74e0
testq %r12, %r12
je 0x74f1
movq (%r15), %rdi
movq 0x210(%rsp), %rsi
movq %r12, %rdx
callq 0x32b0
testl %eax, %eax
je 0x74f1
addq $0xb8, %r15
cmpq %rbp, %r15
jne 0x74bb
jmp 0x762a
movq 0xb8(%rsp), %rdx
testq %rdx, %rdx
je 0x7560
cmpq %r12, %rdx
jne 0x75c0
movq (%r15), %rsi
movq 0xb0(%rsp), %rdi
callq 0x32b0
testl %eax, %eax
jne 0x75c0
leaq 0xcdb2(%rip), %rdi      # 0x142d8
leaq 0x5a2c(%rip), %rsi      # 0xcf59
callq 0x34f0
leaq 0x388(%rsp), %rdi
movq %r15, %rsi
callq 0x8268
movq 0x388(%rsp), %rsi
movq 0x390(%rsp), %rdx
leaq 0xcd7f(%rip), %rdi      # 0x142d8
callq 0x3100
jmp 0x759f
leaq 0xcd71(%rip), %rdi      # 0x142d8
leaq 0x59eb(%rip), %rsi      # 0xcf59
callq 0x34f0
leaq 0x388(%rsp), %rdi
movq %r15, %rsi
callq 0x8268
movq 0x388(%rsp), %rsi
movq 0x390(%rsp), %rdx
leaq 0xcd3e(%rip), %rdi      # 0x142d8
callq 0x3100
leaq 0x398(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x75c0
movq 0x398(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xcd11(%rip), %rsi      # 0x142d8
movq 0xcd12(%rip), %rcx      # 0x142e0
decq %rcx
leaq 0x388(%rsp), %rdi
xorl %edx, %edx
callq 0x32c0
leaq 0xccf1(%rip), %rdi      # 0x142d8
leaq 0x388(%rsp), %r14
movq %r14, %rsi
callq 0x3330
movq (%r14), %rdi
leaq 0x398(%rsp), %rax
cmpq %rax, %rdi
je 0x7617
movq 0x398(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xccba(%rip), %rdi      # 0x142d8
leaq 0x4ad9(%rip), %rsi      # 0xc0fe
callq 0x34f0
leaq 0x228(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq 0x218(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x3180
leaq 0x5666(%rip), %rsi      # 0xccc1
leaq 0x218(%rsp), %rdi
callq 0x34f0
movq 0x218(%rsp), %rsi
leaq 0x388(%rsp), %rdi
movl $0x10, %edx
callq 0x32e0
movq 0xcc4f(%rip), %rsi      # 0x142d8
leaq 0x388(%rsp), %rdi
callq 0x3260
leaq 0x388(%rsp), %rdi
callq 0x33f0
movq 0x218(%rsp), %rdi
cmpq %r14, %rdi
je 0x76c0
movq 0x228(%rsp), %rsi
incq %rsi
callq 0x3290
testb %r13b, %r13b
jne 0x76d1
leaq 0x55c6(%rip), %rdi      # 0xcc92
callq 0x3410
leaq 0x55e3(%rip), %rsi      # 0xccbb
leaq 0x388(%rsp), %rdi
movl $0x10, %edx
callq 0x32e0
movq 0xcc07(%rip), %rsi      # 0x142f8
movq 0xcc08(%rip), %rdx      # 0x14300
leaq 0x388(%rsp), %rdi
callq 0x3310
leaq 0x388(%rsp), %rdi
callq 0x33f0
leaq 0x70(%rsp), %rdi
callq 0x843e
leaq 0x358(%rsp), %rdi
callq 0x8724
cmpl $0x1, 0x2c(%rsp)
je 0x774a
xorl %ebx, %ebx
leaq 0x51a4(%rip), %rdi      # 0xc8dd
leaq 0xcb98(%rip), %rcx      # 0x142d8
movq (%rcx), %rsi
xorl %eax, %eax
callq 0x3040
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x776f
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x7794
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x77b9
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x588(%rsp), %rdi
callq 0xba6e
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x77e1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
leaq 0x1a0(%rsp), %r14
je 0x780e
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x7833
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x7858
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7874
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7890
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x78b1
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x78d6
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x190(%rsp), %rdi
cmpq %r14, %rdi
je 0x78f3
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x5e0(%rsp), %rdi
callq 0x30d0
movl %ebx, %eax
addq $0x7e8, %rsp            # imm = 0x7E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x791b
jmp 0x7b35
movq %rax, %rbx
leaq 0x398(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x79c9
jmp 0x7b35
jmp 0x7b35
jmp 0x7b35
movq %rax, %rbx
leaq 0x388(%rsp), %rdi
callq 0x33f0
jmp 0x7991
jmp 0x798e
jmp 0x7974
jmp 0x7b35
jmp 0x7b35
jmp 0x7b35
jmp 0x7974
jmp 0x7b35
jmp 0x7b35
jmp 0x7b35
movq %rax, %rbx
leaq 0x388(%rsp), %rdi
callq 0x33f0
jmp 0x7b38
jmp 0x7b35
movq %rax, %rbx
movq 0x218(%rsp), %rdi
cmpq %r14, %rdi
je 0x7b38
movq 0x228(%rsp), %rsi
jmp 0x79da
jmp 0x7b35
jmp 0x7b35
movq %rax, %rbx
movq 0x388(%rsp), %rdi
leaq 0x398(%rsp), %rax
cmpq %rax, %rdi
je 0x7b38
movq 0x398(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7b38
jmp 0x7b35
movq %rax, %rbx
movq 0x338(%rsp), %rdi
cmpq %r15, %rdi
je 0x7a11
movq 0x348(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7a11
movq %rax, %rbx
movq 0x238(%rsp), %rdi
cmpq %r12, %rdi
je 0x7a33
movq 0x248(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7a33
movq %rax, %rbx
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x7a5d
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7a5d
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x7a87
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7a87
movq %rax, %rbx
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0x7b4f
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7b4f
jmp 0x7b76
movq %rax, %rbx
jmp 0x7b4f
movq %rax, %rbx
movq 0x2b8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7c5e
movq 0x2c8(%rsp), %rsi
jmp 0x7c4c
jmp 0x7c56
movq %rax, %rbx
movq 0x258(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b0d
movq 0x268(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7b0d
movq %rax, %rbx
movq 0x278(%rsp), %rdi
cmpq %r14, %rdi
je 0x7b79
movq 0x288(%rsp), %rsi
jmp 0x7b6c
movq %rax, %rbx
jmp 0x7b9e
jmp 0x7c23
jmp 0x7c5b
jmp 0x7b35
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x843e
leaq 0x358(%rsp), %rdi
callq 0x8724
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x7b79
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7b79
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x7b9e
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x7c26
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7c26
movq %rax, %rbx
movq 0x2d8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7bea
movq 0x2e8(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7bea
movq %rax, %rbx
movq 0x2f8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7c6b
movq 0x308(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7c6b
movq %rax, %rbx
movq 0x298(%rsp), %rdi
cmpq %r14, %rdi
je 0x7c26
movq 0x2a8(%rsp), %rsi
jmp 0x7bbb
movq %rax, %rbx
leaq 0x588(%rsp), %rdi
jmp 0x7c66
jmp 0x7c56
jmp 0x7c56
movq %rax, %rbx
movq 0x318(%rsp), %rdi
cmpq %r14, %rdi
je 0x7c5e
movq 0x328(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7c5e
movq %rax, %rbx
jmp 0x7c6b
movq %rax, %rbx
leaq 0x388(%rsp), %rdi
callq 0xba6e
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7cbc
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x7cbc
jmp 0x7cb9
movq %rax, %rbx
jmp 0x7d84
movq %rax, %rbx
jmp 0x7da9
jmp 0x7cb1
movq %rax, %rbx
leaq 0x388(%rsp), %rdi
callq 0x33f0
jmp 0x7dce
movq %rax, %rbx
jmp 0x7dce
movq %rax, %rbx
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x7ce1
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x7d06
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x7d2b
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x7d47
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7d63
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7d84
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x7da9
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x3290
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x7dce
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x3290
leaq 0x5e0(%rsp), %rdi
callq 0x30d0
movq %rbx, %rdi
callq 0x34a0
nop