LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pigreetings.c
// Function: pigreetingsWinLoseCB
int pigreetingsWinLoseCB( char *strIn )
{
    int isTeam0, humanSide;
    char outStr[256];

    humanSide = rosterGetCoopSide();
    isTeam0   = (NULL != strstr( strIn, "Team 0" ));
    strlcpy( outStr, pigreetingsConfig.roundWinMsg, 256 );

    switch ( humanSide ) {
    case 0: 
        if ( !isTeam0 ) strlcpy( outStr, pigreetingsConfig.roundLoseMsg, 256 );
        break;
    case 1:
        if (  isTeam0 ) strlcpy( outStr, pigreetingsConfig.roundLoseMsg, 256 );
        break;
    default:
        strlcpy( outStr, pigreetingsConfig.roundPvPMsg, 256 );
        break;
    }

    apiSay( outStr );

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %r14
callq 0x1427e
movl %eax, %ebx
leaq 0x6861(%rip), %rsi      # 0x1fdb1
movq %r14, %rdi
callq 0x83b0
movq %rax, %r14
leaq 0x224ada(%rip), %rsi    # 0x23e03c
movq %rsp, %rdi
movl $0x100, %edx            # imm = 0x100
callq 0xf038
cmpl $0x1, %ebx
je 0x1957f
testl %ebx, %ebx
jne 0x1958d
testq %r14, %r14
jne 0x195a1
jmp 0x19584
testq %r14, %r14
je 0x195a1
leaq 0x2246b1(%rip), %rsi    # 0x23dc3c
jmp 0x19594
leaq 0x224ea8(%rip), %rsi    # 0x23e43c
movq %rsp, %rdi
movl $0x100, %edx            # imm = 0x100
callq 0xf038
movq %rsp, %rdi
xorl %eax, %eax
callq 0x12fba
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pigreetings.c
// Function: pigreetingsAlarmCB
int pigreetingsAlarmCB( char *alarmMsg )
{
    static int lastIndex = 0;

    if ( 0 != pigreetingsConfig.adsInterval )
        alarmReset( alarmAds, (unsigned long) pigreetingsConfig.adsInterval );

    // only display rules when enabled (commonly disabled for private servers
    //
    if ( pigreetingsConfig.showAds ) {
        if ( 0 != strlen(pigreetingsConfig.serverAds[lastIndex] )) 
            apiSay( "%s", pigreetingsConfig.serverAds[lastIndex] );
        lastIndex = ( lastIndex + 1 ) % 10;
    }
    return 0;
}

// Assembly:
pushq %rax
movslq 0x21c678(%rip), %rsi    # 0x235c38
testq %rsi, %rsi
je 0x195d1
movq 0x22527c(%rip), %rdi    # 0x23e848
callq 0xf953
cmpl $0x0, 0x21c658(%rip)    # 0x235c30
je 0x19636
movl 0x225284(%rip), %eax    # 0x23e864
shlq $0xa, %rax
leaq 0x21c635(%rip), %rcx    # 0x235c20
cmpb $0x0, 0x301c(%rax,%rcx)
je 0x1960e
leaq (%rax,%rcx), %rsi
addq $0x301c, %rsi           # imm = 0x301C
leaq 0x567d(%rip), %rdi      # 0x1ec84
xorl %eax, %eax
callq 0x12fba
movl 0x225250(%rip), %eax    # 0x23e864
movl %eax, %ecx
incl %ecx
movl $0xcccccccd, %edx       # imm = 0xCCCCCCCD
imulq %rcx, %rdx
shrq $0x23, %rdx
addl %edx, %edx
leal (%rdx,%rdx,4), %ecx
negl %ecx
addl %ecx, %eax
incl %eax
movl %eax, 0x22522e(%rip)    # 0x23e864
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pigateway.c
// Function: pigatewayClientSynthDelCB
int pigatewayClientSynthDelCB( char *strIn )
{
    // if there are no players, unlock the server
    //
    if ( 0 == apiPlayersGetCount() ) {
        // Unlcok the server - restore to normal operation
        // Do not unlock if the variable state is "perm" (=2L) 
        // 
        if ( ( 0 == pigatewayConfig.lockServerOnIdle ) && ( 1L == p2pGetL( "pigateway.p2p.lockOut", 0L ) )) {
            p2pSetL( "pigateway.p2p.lockOut", 0L );
            apiSaySys( "Unlocking the server due to zero players" );
            logPrintf( LOG_LEVEL_INFO, "pigateway", "Unlocking the server due to zero players DelCB" );
        }
    }
    return 0;
}

// Assembly:
pushq %rax
callq 0x134dc
orl 0x22539f(%rip), %eax    # 0x23f078
jne 0x19d25
leaq 0x1aa4(%rip), %rdi      # 0x1b786
xorl %esi, %esi
callq 0x18004
cmpq $0x1, %rax
jne 0x19d25
leaq 0x1a90(%rip), %rdi      # 0x1b786
xorl %esi, %esi
callq 0x17ea8
leaq 0x69ed(%rip), %rdi      # 0x206f1
xorl %eax, %eax
callq 0x1316b
leaq 0x66de(%rip), %rsi      # 0x203f0
leaq 0x6a01(%rip), %rdx      # 0x2071a
movl $0x2, %edi
xorl %eax, %eax
callq 0x1a227
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pigateway.c
// Function: pigatewayRoundStartCB
int pigatewayRoundStartCB( char *strIn )
{
    if ( 1L ==  p2pGetL( "pigateway.p2p.lockOut", 0L )) {
        apiSay( "REMINDER: Server is locked by Access Control." );
    }
    else if ( 2L ==  p2pGetL( "pigateway.p2p.lockOut", 0L )) {
        apiSay( "!!Server PERM-LOCKED by Access Control!!" );
    }
    else if ( 3L ==  p2pGetL( "pigateway.p2p.lockOut", 0L )) {
        apiSay( "!!Server PERM-LOCKED by Clan List!!" );
    }

    return 0;
}

// Assembly:
pushq %rax
leaq 0x19a3(%rip), %rdi      # 0x1b786
xorl %esi, %esi
callq 0x18004
cmpq $0x1, %rax
jne 0x19df9
leaq 0x69b7(%rip), %rdi      # 0x207ae
jmp 0x19e31
leaq 0x1986(%rip), %rdi      # 0x1b786
xorl %esi, %esi
callq 0x18004
cmpq $0x2, %rax
jne 0x19e16
leaq 0x69c8(%rip), %rdi      # 0x207dc
jmp 0x19e31
leaq 0x1969(%rip), %rdi      # 0x1b786
xorl %esi, %esi
callq 0x18004
cmpq $0x3, %rax
jne 0x19e38
leaq 0x69d4(%rip), %rdi      # 0x20805
xorl %eax, %eax
callq 0x12fba
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pigateway.c
// Function: pigatewayCapturedCB
int pigatewayCapturedCB( char *strIn )
{
    static char rosterBuf[ PIGATEWAY_MAXROSTER ];
    char   *w;
    int    i, myLen;
    char   name[256], guid[256];

    if ( pigatewayConfig.minPlayerNameLength > 0 ) {

        strlcpy( rosterBuf, apiPlayersRoster( 1, "\011" ), PIGATEWAY_MAXROSTER );
 
        for ( i=0 ; ; i++ ){
            w = getWord( rosterBuf, i, "\011" );  // Fetch one player: "abcd[76560000000000005]"
            if ( w == NULL ) break;

            myLen = (int) strlen( w );
            if ( myLen == 0 ) break;

            if ( myLen < (PIGATEWAY_STEAMIDLEN + 2 + pigatewayConfig.minPlayerNameLength) ) {

                strlcpy( name, w, myLen-( PIGATEWAY_STEAMIDLEN+2)+1 );
                strlcpy( guid, & w[ strlen( name ) + 1], PIGATEWAY_STEAMIDLEN+1 );
            
                apiKickOrBan( 0, guid,  pigatewayConfig.minPlayerNameMsg ); 
                logPrintf( LOG_LEVEL_INFO, "pigateway", "Short Name Auto-kick ::%s::%s", name, guid );

            }
        }
    }
    return 0;
}

// Assembly:
cmpl $0x0, 0x22523e(%rip)    # 0x23f084
jle 0x19f66
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
leaq 0x4bde(%rip), %r14      # 0x1ea42
movl $0x1, %ebx
movl $0x1, %edi
movq %r14, %rsi
callq 0x134e1
leaq 0x225d33(%rip), %r15    # 0x23fbb0
movl $0x4000, %edx           # imm = 0x4000
movq %r15, %rdi
movq %rax, %rsi
callq 0xf038
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0xf4e1
testq %rax, %rax
je 0x19f55
movq %rax, %rbp
leaq 0x100(%rsp), %r14
movq %rsp, %r15
leaq 0x225cf8(%rip), %r12    # 0x23fbb0
leaq 0x4b83(%rip), %r13      # 0x1ea42
movq %rbp, %rdi
callq 0x8120
testl %eax, %eax
je 0x19f55
movl 0x2251af(%rip), %ecx    # 0x23f084
addl $0x13, %ecx
cmpl %eax, %ecx
jle 0x19f3a
addl $-0x12, %eax
movslq %eax, %rdx
movq %r14, %rdi
movq %rbp, %rsi
callq 0xf038
movq %r14, %rdi
callq 0x8120
leaq (%rax,%rbp), %rsi
incq %rsi
movl $0x12, %edx
movq %r15, %rdi
callq 0xf038
xorl %edi, %edi
movq %r15, %rsi
leaq 0x225173(%rip), %rdx    # 0x23f088
callq 0x132ff
movl $0x2, %edi
leaq 0x64ca(%rip), %rsi      # 0x203f0
leaq 0x68fc(%rip), %rdx      # 0x20829
movq %r14, %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x1a227
movq %r12, %rdi
movl %ebx, %esi
movq %r13, %rdx
callq 0xf4e1
movq %rax, %rbp
incl %ebx
testq %rax, %rax
jne 0x19ebf
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pigateway.c
// Function: pigatewayPeriodicCB
int pigatewayPeriodicCB( char *strIn )
{
    static int tenSecondPolling = 0;

    if ( ++tenSecondPolling > 10 ) {
        // This is a redundant, safety code duplicated from DelCB callback.
        // if there are no players, unlock the server
        //
        tenSecondPolling = 0;
        if ( 0 == apiPlayersGetCount() ) {
            if ( pigatewayConfig.lockServerOnIdle )  {
                // Lcok the server when no players are present 
                //
                apiClanClear();
                p2pSetL( "pigateway.p2p.lockOut", 2L );
                // apiSaySys( "Unlocking the server due to zero players" );
                logPrintf( LOG_LEVEL_DEBUG, "pigateway", "Continue locking the empty server due to default in PeriodicCB " );
            } 
            else {
                // Unlock the server - restore to normal operation
                //
                logPrintf( LOG_LEVEL_DEBUG, "pigateway", "Unlocking the server due to zero players at PeriodicCB " );
                apiClanClear();
                p2pSetL( "pigateway.p2p.lockOut", 0L );
                // apiSaySys( "Unlocking the server due to zero players" );
                logPrintf( LOG_LEVEL_DEBUG, "pigateway", "Clanlist cleared on empty server @ periodic loop" );
            }
        }
    }

    return 0;
}

// Assembly:
movl 0x229c41(%rip), %eax    # 0x243bb0
leal 0x1(%rax), %ecx
movl %ecx, 0x229c38(%rip)    # 0x243bb0
cmpl $0xa, %eax
jl 0x1a005
pushq %r14
pushq %rbx
pushq %rax
movl $0x0, 0x229c21(%rip)    # 0x243bb0
callq 0x134dc
testl %eax, %eax
jne 0x19ffe
cmpl $0x0, 0x2250d9(%rip)    # 0x23f078
je 0x19fb0
leaq 0x689f(%rip), %rbx      # 0x20847
movl $0x2, %r14d
jmp 0x19fd4
leaq 0x6439(%rip), %rsi      # 0x203f0
leaq 0x68c9(%rip), %rdx      # 0x20887
xorl %r14d, %r14d
movl $0x3, %edi
xorl %eax, %eax
callq 0x1a227
leaq 0x68eb(%rip), %rbx      # 0x208bf
callq 0x13f89
leaq 0x17a6(%rip), %rdi      # 0x1b786
movq %r14, %rsi
callq 0x17ea8
leaq 0x6401(%rip), %rsi      # 0x203f0
movl $0x3, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1a227
addq $0x8, %rsp
popq %rbx
popq %r14
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pigateway.c
// Function: pigatewayChatCB
int pigatewayChatCB( char *strIn )
{
    char clientID[512], chatLine[512], *w;
    int errCode, i = 0;

    if ( 0 != strlen( pigatewayConfig.chatTrollWords ) ) {
        if ( 0 == (errCode = rosterParsePlayerChat( strIn, 512, clientID, chatLine ))) {
            while (1 == 1 ) {
               w = getWord( pigatewayConfig.chatTrollWords, i++, " " );
               if ( w == NULL ) break;
               if ( 0 == strlen( w ) ) break;
               if (NULL != strcasestr( chatLine, w )) {
                    apiKickOrBan( 0, clientID, "Troll Detect: Generating Report" );
                    logPrintf( LOG_LEVEL_INFO, "pigateway", "Troll Detect Auto-kick ::%s::'%s'", clientID, chatLine );
               }
            }
        }
    }
    return 0;
}

// Assembly:
cmpb $0x0, 0x225479(%rip)    # 0x23f488
je 0x1a04c
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
leaq 0x200(%rsp), %rdx
movq %rsp, %rcx
movl $0x200, %esi            # imm = 0x200
callq 0x152a7
testl %eax, %eax
je 0x1a04f
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
xorl %eax, %eax
retq
leaq 0x225432(%rip), %rdi    # 0x23f488
leaq 0x20f9(%rip), %rdx      # 0x1c156
xorl %esi, %esi
callq 0xf4e1
testq %rax, %rax
je 0x1a03b
movl $0x1, %ebp
movq %rsp, %rbx
leaq 0x225410(%rip), %r14    # 0x23f488
leaq 0x20d7(%rip), %r15      # 0x1c156
leaq 0x200(%rsp), %r13
cmpb $0x0, (%rax)
je 0x1a03b
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8350
testq %rax, %rax
je 0x1a0cd
xorl %edi, %edi
movq %r13, %rsi
leaq 0x6848(%rip), %rdx      # 0x208f0
callq 0x132ff
movl $0x2, %edi
leaq 0x6337(%rip), %rsi      # 0x203f0
leaq 0x6850(%rip), %rdx      # 0x20910
movq %r13, %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0x1a227
leal 0x1(%rbp), %r12d
movq %r14, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0xf4e1
movl %r12d, %ebp
testq %rax, %rax
jne 0x1a087
jmp 0x1a03b
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pigateway.c
// Function: pigatewayInstallPlugin
int pigatewayInstallPlugin( void )
{
    // Read the plugin-specific variables from the .cfg file 
    // 
    pigatewayInitConfig();

    // if plugin is disabled in the .cfg file then do not activate
    //
    if ( pigatewayConfig.pluginState == 0 ) return 0;

    // Install Event-driven CallBack hooks so the plugin gets
    // notified for various happenings.  A complete list is here,
    // but comment out what is not needed for your plug-in.
    // 
    eventsRegister( SISSM_EV_CLIENT_ADD,           pigatewayClientAddCB );
    eventsRegister( SISSM_EV_CLIENT_DEL,           pigatewayClientDelCB );
    eventsRegister( SISSM_EV_INIT,                 pigatewayInitCB );
    eventsRegister( SISSM_EV_RESTART,              pigatewayRestartCB );
    eventsRegister( SISSM_EV_MAPCHANGE,            pigatewayMapChangeCB );
    eventsRegister( SISSM_EV_GAME_START,           pigatewayGameStartCB );
    eventsRegister( SISSM_EV_GAME_END,             pigatewayGameEndCB );
    eventsRegister( SISSM_EV_ROUND_START,          pigatewayRoundStartCB );
    eventsRegister( SISSM_EV_ROUND_END,            pigatewayRoundEndCB );
    eventsRegister( SISSM_EV_OBJECTIVE_CAPTURED,   pigatewayCapturedCB );
    eventsRegister( SISSM_EV_PERIODIC,             pigatewayPeriodicCB );
    eventsRegister( SISSM_EV_CLIENT_ADD_SYNTH,     pigatewayClientSynthAddCB );
    eventsRegister( SISSM_EV_CLIENT_DEL_SYNTH,     pigatewayClientSynthDelCB );
    eventsRegister( SISSM_EV_CHAT,                 pigatewayChatCB     );

    timeRestarted = apiTimeGet();
    return 0;
}

// Assembly:
pushq %rax
callq 0x1977f
cmpl $0x0, 0x224778(%rip)    # 0x23e870
je 0x1a1f5
leaq -0x3dc(%rip), %rsi      # 0x19d29
movl $0x3, %edi
callq 0xd08c
leaq -0x3ea(%rip), %rsi      # 0x19d2c
movl $0x4, %edi
callq 0xd08c
leaq -0x3f8(%rip), %rsi      # 0x19d2f
movl $0x1, %edi
callq 0xd08c
leaq -0x406(%rip), %rsi      # 0x19d32
movl $0x2, %edi
callq 0xd08c
leaq -0x3ca(%rip), %rsi      # 0x19d7f
movl $0x5, %edi
callq 0xd08c
leaq -0x3b4(%rip), %rsi      # 0x19da6
movl $0x6, %edi
callq 0xd08c
leaq -0x3c2(%rip), %rsi      # 0x19da9
movl $0x7, %edi
callq 0xd08c
leaq -0x3a1(%rip), %rsi      # 0x19ddb
movl $0x8, %edi
callq 0xd08c
leaq -0x351(%rip), %rsi      # 0x19e3c
movl $0x9, %edi
callq 0xd08c
leaq -0x35f(%rip), %rsi      # 0x19e3f
movl $0xa, %edi
callq 0xd08c
leaq -0x246(%rip), %rsi      # 0x19f69
movl $0xb, %edi
callq 0xd08c
leaq -0x85b(%rip), %rsi      # 0x19965
movl $0xc, %edi
callq 0xd08c
leaq -0x504(%rip), %rsi      # 0x19ccd
movl $0xd, %edi
callq 0xd08c
leaq -0x1da(%rip), %rsi      # 0x1a008
xorl %edi, %edi
callq 0xd08c
callq 0x114b2
movq %rax, 0x2259ab(%rip)    # 0x23fba0
xorl %eax, %eax
popq %rcx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/log.c
// Function: logPrintfInit
void logPrintfInit( int logLevel, char *logFileName, int echoToConsole )
{
    strlcpy( _logFileName, logFileName, sizeof( _logFileName) );
    _logEchoToConsole = echoToConsole;
    _logLevel = logLevel;
    return;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %edi, %ebp
leaq 0x2299b6(%rip), %rdi    # 0x243bc0
movl $0xff, %edx
callq 0xf038
movl %ebx, 0x229aa6(%rip)    # 0x243cc0
movl %ebp, 0x229aa4(%rip)    # 0x243cc4
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsInitConfig
int pistatsInitConfig( void )
{
    cfsPtr cP;

    cP = cfsCreate( sissmGetConfigPath() );

    // read "pistats.pluginstate" variable from the .cfg file
    pistatsConfig.pluginState = (int) cfsFetchNum( cP, "pistats.pluginState", 0.0 );  // disabled by default

    // read "pistats.StringParameterExample" variable from the .cfg file
    strlcpy( pistatsConfig.stringParameterExample,  cfsFetchStr( cP, "pistats.StringParameterExample",  "game starting!" ), CFS_FETCH_MAX);
    strlcpy( pistatsConfig.stringParameterExample2, cfsFetchStr( cP, "pistats.StringParameterExample2", "round starting!" ), CFS_FETCH_MAX);
    strlcpy( pistatsConfig.stringParameterExample3, cfsFetchStr( cP, "pistats.StringParameterExample3", "to the next objective!" ), CFS_FETCH_MAX);

    // read "pistats.NumericParameterExample" variable from the .cfg file
    pistatsConfig.numericParameterExample = (int) cfsFetchNum( cP, "pistats.NumericParameterExample", 3.1415926 );

    cfsDestroy( cP );
    return 0;
}

// Assembly:
pushq %rbx
callq 0x8969
movq %rax, %rdi
callq 0x9004
movq %rax, %rbx
leaq 0x65d3(%rip), %rsi      # 0x209d7
xorpd %xmm0, %xmm0
movq %rax, %rdi
callq 0x9276
cvttsd2si %xmm0, %eax
movl %eax, 0x22a8c6(%rip)    # 0x244ce0
leaq 0x65ca(%rip), %rsi      # 0x209eb
leaq 0x5649(%rip), %rdx      # 0x1fa71
movq %rbx, %rdi
callq 0x907b
leaq 0x22a8ad(%rip), %rdi    # 0x244ce4
movl $0x400, %edx            # imm = 0x400
movq %rax, %rsi
callq 0xf038
leaq 0x65bf(%rip), %rsi      # 0x20a0a
leaq 0x564d(%rip), %rdx      # 0x1fa9f
movq %rbx, %rdi
callq 0x907b
leaq 0x22ac83(%rip), %rdi    # 0x2450e4
movl $0x400, %edx            # imm = 0x400
movq %rax, %rsi
callq 0xf038
leaq 0x65b5(%rip), %rsi      # 0x20a2a
leaq 0x5652(%rip), %rdx      # 0x1face
movq %rbx, %rdi
callq 0x907b
leaq 0x22b059(%rip), %rdi    # 0x2454e4
movl $0x400, %edx            # imm = 0x400
movq %rax, %rsi
callq 0xf038
leaq 0x65ab(%rip), %rsi      # 0x20a4a
movsd 0x5571(%rip), %xmm0     # 0x1fa18
movq %rbx, %rdi
callq 0x9276
cvttsd2si %xmm0, %eax
movl %eax, 0x22b42b(%rip)    # 0x2458e4
movq %rbx, %rdi
callq 0x905c
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsClientAddCB
int pistatsClientAddCB( char *strIn )
{
    char playerName[256], playerGUID[256], playerIP[256];

    rosterParsePlayerConn( strIn, 256, playerName, playerGUID, playerIP );
    logPrintf( LOG_LEVEL_INFO, "pistats", "Add Client ::%s::%s::%s::", playerName, playerGUID, playerIP );

    if ( apiPlayersGetCount() >= 8 ) {   // if the last connect player is #8 (last slot if 8 port server)
        if ( 0 != strcmp(playerGUID, "76561000000000000" )) {    // check if this is the server owner 
	    apiKickOrBan( 0, playerGUID, "Sorry the last port reserved for server owner only" );
            apiSay ( "pistats: Player %s kicked server full", playerName );
	}
        apiSay ( "pistats: Welcome server owner %s", playerName );
    }
    else {
        apiSay ( "pistats: Welcome %s", playerName );
    }

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x300, %rsp            # imm = 0x300
leaq 0x100(%rsp), %rbx
movq %rsp, %r14
leaq 0x200(%rsp), %r15
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0x15182
leaq 0x656c(%rip), %rsi      # 0x20a6a
leaq 0x5e7d(%rip), %rdx      # 0x20382
movl $0x2, %edi
movq %rbx, %rcx
movq %r14, %r8
movq %r15, %r9
xorl %eax, %eax
callq 0x1a227
callq 0x134dc
cmpl $0x8, %eax
jl 0x1a581
movdqa (%rsp), %xmm0
movzwl 0x10(%rsp), %eax
movd %eax, %xmm1
pcmpeqb 0x54e6(%rip), %xmm0     # 0x1fa20
pcmpeqb 0x54ee(%rip), %xmm1     # 0x1fa30
pand %xmm0, %xmm1
pmovmskb %xmm1, %eax
leaq 0x6547(%rip), %rbx      # 0x20a98
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0x1a588
leaq 0x55be(%rip), %rdx      # 0x1fb1d
movq %rsp, %rsi
xorl %edi, %edi
callq 0x132ff
leaq 0x6502(%rip), %rdi      # 0x20a72
leaq 0x100(%rsp), %rsi
xorl %eax, %eax
callq 0x12fba
jmp 0x1a588
leaq 0x6531(%rip), %rbx      # 0x20ab9
leaq 0x100(%rsp), %rsi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x12fba
xorl %eax, %eax
addq $0x300, %rsp            # imm = 0x300
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsClientDelCB
int pistatsClientDelCB( char *strIn )
{
    char playerName[256], playerGUID[256], playerIP[256];

    rosterParsePlayerDisConn( strIn, 256, playerName, playerGUID, playerIP );
    logPrintf( LOG_LEVEL_INFO, "pistats", "Del Client ::%s::%s::%s::", playerName, playerGUID, playerIP );

    apiSay ( "pistats: Good bye %s", playerName );

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x300, %rsp            # imm = 0x300
leaq 0x200(%rsp), %rbx
leaq 0x100(%rsp), %r14
movq %rsp, %r15
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0x1520e
leaq 0x6488(%rip), %rsi      # 0x20a6a
leaq 0x55bf(%rip), %rdx      # 0x1fba8
movl $0x2, %edi
movq %rbx, %rcx
movq %r14, %r8
movq %r15, %r9
xorl %eax, %eax
callq 0x1a227
leaq 0x64c8(%rip), %rdi      # 0x20acd
movq %rbx, %rsi
xorl %eax, %eax
callq 0x12fba
xorl %eax, %eax
addq $0x300, %rsp            # imm = 0x300
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsMapChangeCB
int pistatsMapChangeCB( char *strIn )
{
    char mapName[256];

    logPrintf( LOG_LEVEL_INFO, "pistats", "Map Change Event ::%s::", strIn );
    rosterParseMapname( strIn, 256, mapName );
    logPrintf( LOG_LEVEL_INFO, "pistats", "Map name ::%s::", mapName );
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, %rbx
leaq 0x63f2(%rip), %r14      # 0x20a6a
leaq 0x557e(%rip), %rdx      # 0x1fbfd
movl $0x2, %edi
movq %r14, %rsi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x1a227
movq %rsp, %r15
movq %rbx, %rdi
movl $0x100, %esi            # imm = 0x100
movq %r15, %rdx
callq 0x15487
leaq 0x556a(%rip), %rdx      # 0x1fc15
movl $0x2, %edi
movq %r14, %rsi
movq %r15, %rcx
xorl %eax, %eax
callq 0x1a227
xorl %eax, %eax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsGameStartCB
int pistatsGameStartCB( char *strIn )
{
    char newCount[256];

    logPrintf( LOG_LEVEL_INFO, "pistats", "Game Start Event ::%s::", strIn );

    apiGameModePropertySet( "minimumenemies", "4" );
    apiGameModePropertySet( "maximumenemies", "4" );

    strlcpy( newCount, apiGameModePropertyGet( "minimumenemies" ), 256) ;

    // in-game announcement start of game
    apiSay( "pistats: %s -- 2 waves of %s bots", pistatsConfig.stringParameterExample, newCount );  

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %rcx
leaq 0x638a(%rip), %rsi      # 0x20a6a
leaq 0x553e(%rip), %rdx      # 0x1fc25
movl $0x2, %edi
xorl %eax, %eax
callq 0x1a227
leaq 0x1349(%rip), %rbx      # 0x1ba43
leaq 0x502e(%rip), %r14      # 0x1f72f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12e70
leaq 0x133f(%rip), %rdi      # 0x1ba52
movq %r14, %rsi
callq 0x12e70
movq %rbx, %rdi
callq 0x12e75
movq %rsp, %rbx
movl $0x100, %edx            # imm = 0x100
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf038
leaq 0x63a5(%rip), %rdi      # 0x20ae2
leaq 0x22a5a0(%rip), %rsi    # 0x244ce4
movq %rbx, %rdx
xorl %eax, %eax
callq 0x12fba
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsCapturedCB
int pistatsCapturedCB( char *strIn )
{
    static unsigned long int lastTimeCaptured = 0L;
    // logPrintf( LOG_LEVEL_INFO, "pistats", "Captured Objective Event ::%s::", strIn );
    logPrintf( LOG_LEVEL_INFO, "pistats", "Captured Objective Event" );

    // system generates multiple 'captured' report, so it is necessary
    // to add a 10-second window filter to make sure only one gets fired off.
    //
    if ( lastTimeCaptured + 10L < apiTimeGet() ) {

	apiSay( pistatsConfig.stringParameterExample3 );
        lastTimeCaptured = apiTimeGet();
	// apiServerRestart();

    }

    return 0;
}

// Assembly:
pushq %rbx
leaq 0x6277(%rip), %rsi      # 0x20a6a
leaq 0x54ba(%rip), %rdx      # 0x1fcb4
movl $0x2, %edi
xorl %eax, %eax
callq 0x1a227
movq 0x22b0db(%rip), %rbx    # 0x2458e8
addq $0xa, %rbx
callq 0x114b2
cmpq %rax, %rbx
jae 0x1a835
leaq 0x22acc2(%rip), %rdi    # 0x2454e4
xorl %eax, %eax
callq 0x12fba
callq 0x114b2
movq %rax, 0x22b0b3(%rip)    # 0x2458e8
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsClientSynthDelCB
int pistatsClientSynthDelCB( char *strIn )
{
    static char playerName[256], playerGUID[256], playerIP[256];

    rosterParsePlayerSynthDisConn( strIn, 256, playerName, playerGUID, playerIP );
    logPrintf( LOG_LEVEL_INFO, "pistats", "Synthetic DEL Callback Name ::%s:: IP ::%s:: GUID ::%s::", playerName, playerIP, playerGUID );
    apiSay( "pistats: Disconnect %s", playerName );

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x22b067(%rip), %rbx    # 0x2458f0
leaq 0x22b160(%rip), %r14    # 0x2459f0
leaq 0x22b259(%rip), %r15    # 0x245af0
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0x150b3
leaq 0x61b9(%rip), %rsi      # 0x20a6a
leaq 0x5447(%rip), %rdx      # 0x1fcff
movl $0x2, %edi
movq %rbx, %rcx
movq %r15, %r8
movq %r14, %r9
xorl %eax, %eax
callq 0x1a227
leaq 0x625b(%rip), %rdi      # 0x20b2f
movq %rbx, %rsi
xorl %eax, %eax
callq 0x12fba
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsClientSynthAddCB
int pistatsClientSynthAddCB( char *strIn )
{
    static char playerName[256], playerGUID[256], playerIP[256];

    rosterParsePlayerSynthConn( strIn, 256, playerName, playerGUID, playerIP );
    logPrintf( LOG_LEVEL_INFO, "pistats", "Synthetic ADD Callback Name ::%s:: IP ::%s:: GUID ::%s::", playerName, playerIP, playerGUID );
    apiSay( "pistats: Connected %s", playerName );

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x22b2fe(%rip), %rbx    # 0x245bf0
leaq 0x22b3f7(%rip), %r14    # 0x245cf0
leaq 0x22b4f0(%rip), %r15    # 0x245df0
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdx
movq %r14, %rcx
movq %r15, %r8
callq 0x14fb7
leaq 0x6150(%rip), %rsi      # 0x20a6a
leaq 0x542d(%rip), %rdx      # 0x1fd4e
movl $0x2, %edi
movq %rbx, %rcx
movq %r15, %r8
movq %r14, %r9
xorl %eax, %eax
callq 0x1a227
leaq 0x6209(%rip), %rdi      # 0x20b46
movq %rbx, %rsi
xorl %eax, %eax
callq 0x12fba
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsWinLose
int pistatsWinLose( char *strIn )
{
    int isTeam0, humanSide;
    char outStr[256];

    humanSide = rosterGetCoopSide();
    isTeam0   = (NULL != strstr( strIn, "Team 0" ));

    switch ( humanSide ) {
    case 0:
        if ( !isTeam0 ) strlcpy( outStr, "Co-op Humans Win", 256 );
        break;
    case 1:
        if (  isTeam0 ) strlcpy( outStr, "Co-opHumans Lose", 256 );
        break;
    default:
        strlcpy( outStr, "PvP WinLose", 256 );
        break;
    }

    apiSay( "pistats: %s", outStr );
    logPrintf( LOG_LEVEL_INFO, "pistats", outStr );

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %r14
callq 0x1427e
movl %eax, %ebx
leaq 0x5406(%rip), %rsi      # 0x1fdb1
movq %r14, %rdi
callq 0x83b0
cmpl $0x1, %ebx
je 0x1a9ca
testl %ebx, %ebx
jne 0x1a9e1
testq %rax, %rax
jne 0x1a9f7
movups 0x53f0(%rip), %xmm0     # 0x1fdb8
jmp 0x1a9d6
testq %rax, %rax
je 0x1a9f7
movups 0x53f3(%rip), %xmm0     # 0x1fdc9
movaps %xmm0, (%rsp)
movb $0x0, 0x10(%rsp)
jmp 0x1a9f7
movabsq $0x4c6e695720507650, %rax # imm = 0x4C6E695720507650
movq %rax, (%rsp)
movl $0x65736f, 0x8(%rsp)    # imm = 0x65736F
leaq 0x615e(%rip), %rdi      # 0x20b5c
movq %rsp, %rbx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x12fba
leaq 0x6058(%rip), %rsi      # 0x20a6a
movl $0x2, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1a227
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsTravel
int pistatsTravel( char *strIn )
{
    char *mapName, *scenario, *mutator;
    int humanSide;

    mapName = rosterGetMapName();
    scenario = rosterGetScenario();
    mutator = rosterGetMutator();
    humanSide = rosterGetCoopSide();

    logPrintf( LOG_LEVEL_INFO, "pistats", "Change map to ::%s:: Scenario ::%s:: Mutator ::%s:: Human ::%d::", 
        mapName, scenario, mutator, humanSide );
    apiSay( "pistats: Test Map-Scenario %s::%s::%s::%d::", mapName, scenario, mutator, humanSide );

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
callq 0x14262
movq %rax, %rbx
callq 0x143f8
movq %rax, %r14
callq 0x14420
movq %rax, %r15
callq 0x1427e
movl %eax, %ebp
movl %eax, (%rsp)
leaq 0x600c(%rip), %rsi      # 0x20a6a
leaq 0x538c(%rip), %rdx      # 0x1fdf1
movl $0x2, %edi
movq %rbx, %rcx
movq %r14, %r8
movq %r15, %r9
xorl %eax, %eax
callq 0x1a227
leaq 0x60e7(%rip), %rdi      # 0x20b68
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x12fba
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsSessionLog
int pistatsSessionLog( char *strIn )
{
    char *sessionID;

    sessionID = rosterGetSessionID();

    logPrintf( LOG_LEVEL_INFO, "pistats", "Session ID ::%s::", sessionID );
    apiSay( "pistats: Session ID %s", sessionID );

    return 0;
}

// Assembly:
pushq %rbx
callq 0x14209
movq %rax, %rbx
leaq 0x5fb9(%rip), %rsi      # 0x20a6a
leaq 0x53a5(%rip), %rdx      # 0x1fe5d
movl $0x2, %edi
movq %rax, %rcx
xorl %eax, %eax
callq 0x1a227
leaq 0x60c6(%rip), %rdi      # 0x20b94
movq %rbx, %rsi
xorl %eax, %eax
callq 0x12fba
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsObjectSynth
int pistatsObjectSynth( char *strIn )
{
    char *obj, *typ; 

    obj = rosterGetObjective();
    typ = rosterGetObjectiveType();

    logPrintf( LOG_LEVEL_INFO, "pistats", "Roster Objective is ::%s::, Type is ::%s::", obj, typ ); 
    apiSay( "pistats: Roster Objective is ::%s::, Type is ::%s::", obj, typ ); 

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x1423e
movq %rax, %rbx
callq 0x14246
movq %rax, %r14
leaq 0x5f73(%rip), %rsi      # 0x20a6a
leaq 0x538f(%rip), %rdx      # 0x1fe8d
movl $0x2, %edi
movq %rbx, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x1a227
leaq 0x6094(%rip), %rdi      # 0x20bab
movq %rbx, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x12fba
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/zyearn[P]SmallC/./treeNode.h
// Function: treeNode::treeNode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int)
treeNode(string str, int n, int t=0)
    {
        childnum = n;
        type = t;
        data = str;

        child = new treeNode*[childnum];
        for(int i=0; i<childnum; i++)
            child[i] = NULL;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl %edx, 0x20(%rdi)
movl %ecx, 0x24(%rdi)
callq 0x2140
movslq 0x20(%rbx), %r14
leaq (,%r14,8), %rax
testq %r14, %r14
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x2030
movq %rax, 0x28(%rbx)
testl %r14d, %r14d
jle 0xaff1
xorl %eax, %eax
movq 0x28(%rbx), %rcx
movq $0x0, (%rcx,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0xafdd
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xb012
movq (%r15), %rsi
incq %rsi
callq 0x21e0
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_c_makefile_star2_O1/zyearn[P]SmallC/./treeNode.h
// Function: treeNode::Clear(treeNode*)
void Clear(treeNode *t)
    {
        if(t == NULL) return ;
        int i;
        for(i=0; i<t->childnum; i++)
            Clear(t->child[i]);
        for(i=0; i<t->childnum; i++)
            delete t->child[i];
    }

// Assembly:
testq %rsi, %rsi
je 0xb128
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpl $0x0, 0x20(%rsi)
jle 0xb0d8
movq %rdi, %r14
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0xb09a
incq %r15
movslq 0x20(%rbx), %rax
cmpq %rax, %r15
jl 0xb0bc
cmpl $0x0, 0x20(%rbx)
jle 0xb11e
xorl %r15d, %r15d
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %r14
testq %r14, %r14
je 0xb112
movq (%r14), %rdi
leaq 0x10(%r14), %rax
cmpq %rax, %rdi
je 0xb105
movq (%rax), %rsi
incq %rsi
callq 0x21e0
movl $0x30, %esi
movq %r14, %rdi
callq 0x21e0
incq %r15
movslq 0x20(%rbx), %rax
cmpq %rax, %r15
jl 0xb0e1
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zyearn[P]SmallC/codegen.cpp
// Function: genProgram(treeNode*)
void genProgram(treeNode* node)
{
//  freopen("t.s","w",stdout);
    cout << ".data" << endl;
    cout << "newline: .asciiz \"\\n\"" << endl;
    cout << ".text\n.globl main\n";
    genExtdefs(node->child[0], node->child[0]->type);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x1a6ab(%rip), %r14     # 0x27fd0
leaq 0x1438e(%rip), %rsi     # 0x21cba
movl $0x5, %edx
movq %r14, %rdi
callq 0x2230
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x14359(%rip), %rsi     # 0x21cc0
movl $0x15, %edx
movq %r14, %rdi
callq 0x2230
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
leaq 0x14334(%rip), %rsi     # 0x21cd6
movl $0x12, %edx
movq %r14, %rdi
callq 0x2230
movq 0x28(%rbx), %rax
movq (%rax), %rdi
movl 0x24(%rdi), %esi
popq %rbx
popq %r14
popq %rbp
jmp 0xd9c2
// File: /workspace/github_c_makefile_star2_O1/zyearn[P]SmallC/codegen.cpp
// Function: genExtvars(treeNode*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void genExtvars(treeNode* node, int type, string scope)
{
    switch(type)
    {
        case 1:
        genDec(node->child[0], node->child[0]->type, "_G");
        break;
        case 2:
        genDec(node->child[0], node->child[0]->type, "_G");
        genExtvars(node->child[2], node->child[2]->type, "_G");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
cmpl $0x2, %esi
je 0xe09b
cmpl $0x1, %esi
jne 0xe136
movq 0x28(%rbx), %rax
movq (%rax), %rbx
movl 0x24(%rbx), %r14d
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x13821(%rip), %rsi     # 0x2188c
leaq 0x1381c(%rip), %rdx     # 0x2188e
leaq -0x88(%rbp), %r15
movq %r15, %rdi
callq 0xb264
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0xe267
movq -0x88(%rbp), %rdi
jmp 0xe125
movq 0x28(%rbx), %rax
movq (%rax), %r14
movl 0x24(%r14), %r15d
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x137d7(%rip), %rsi     # 0x2188c
leaq 0x137d2(%rip), %rdx     # 0x2188e
leaq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0xb264
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
callq 0xe267
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0xe0eb
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
movq 0x28(%rbx), %rax
movq 0x10(%rax), %rbx
movl 0x24(%rbx), %r14d
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x13786(%rip), %rsi     # 0x2188c
leaq 0x13781(%rip), %rdx     # 0x2188e
leaq -0x68(%rbp), %rdi
callq 0xb264
movq %rbx, %rdi
movl %r14d, %esi
callq 0xe02f
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0xe136
movq (%r13), %rsi
incq %rsi
callq 0x21e0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
jmp 0xe161
movq %rax, %rbx
movq -0x48(%rbp), %rdi
jmp 0xe161
movq %rax, %rbx
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0xe172
movq (%r13), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_c_makefile_star2_O1/zyearn[P]SmallC/codegen.cpp
// Function: genDefs(treeNode*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void genDefs(treeNode* node, int type, string scope)
{   
    //printf("has entered genDefs() ,type =%d \n", type);
    
    switch(type)
    {
        case 1:
    //  printf("ready to enter genDef()\n");
        genDef(node->child[0], node->child[0]->type, scope);
        genDefs(node->child[1], node->child[1]->type, scope);
        break;
        case 2:
        /*
        if(FT[scope] == 0)
        {
            FT[scope] = new map<string, int>();
        }*/
        break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpl $0x1, %esi
jne 0xebeb
movq %rdx, %rbx
movq %rdi, %r14
movq 0x28(%rdi), %rax
movq (%rax), %r15
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %r12
movq %r12, %rdi
callq 0xb1ca
movq %r15, %rdi
movq %r12, %rdx
callq 0x1e1fb
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0xeb9e
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21e0
movq 0x28(%r14), %rax
movq 0x8(%rax), %r14
movl 0x24(%r14), %r15d
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0xb1ca
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0xeb39
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0xebeb
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
jmp 0xec0a
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0xec1b
movq (%r13), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_c_makefile_star2_O1/zyearn[P]SmallC/codegen.cpp
// Function: genStmts(treeNode*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
void genStmts(treeNode* node, int type, string scope, int labelN)
{
    switch(type)
    {
        case 1:
        genStmt(node->child[0], node->child[0]->type, scope, labelN);
        //
                genStmts(node->child[1], node->child[1]->type, scope, labelN);
        break;
        case 2:
        break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpl $0x1, %esi
jne 0xece7
movq %rdx, %r14
movq %rdi, %r15
movq 0x28(%rdi), %rax
movl %ecx, -0x2c(%rbp)
movq (%rax), %r12
movl 0x24(%r12), %ebx
leaq -0x40(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0xb1ca
movq %r12, %rdi
movl -0x2c(%rbp), %r12d
movl %ebx, %esi
leaq -0x50(%rbp), %rdx
movl %r12d, %ecx
callq 0xed1f
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0xec97
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x21e0
movq 0x28(%r15), %rax
movq 0x8(%rax), %rbx
movl 0x24(%rbx), %r15d
leaq -0x60(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %r14
movq %r14, %rdi
callq 0xb1ca
movq %rbx, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl %r12d, %ecx
callq 0xec23
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0xece7
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x21e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x70(%rbp), %rdi
jmp 0xed06
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0xed17
movq (%r13), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_c_makefile_star2_O1/zyearn[P]SmallC/codegen.cpp
// Function: genDecs(treeNode*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void genDecs(treeNode* node, int type, string scope)
{
    //printf("has entered genDecs()\n");

    switch(type)
    {
        case 1:
        genDec(node->child[0],node->child[0]->type, scope);
        genDecs(node->child[2],node->child[2]->type, scope);
        break;
        case 2:
        genDec(node->child[0],node->child[0]->type, scope);
        break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rdi, %r14
cmpl $0x2, %esi
je 0x1e33c
cmpl $0x1, %esi
jne 0x1e388
movq 0x28(%r14), %rax
movq (%rax), %r15
movl 0x24(%r15), %r12d
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0xb1ca
movq %r15, %rdi
movl %r12d, %esi
leaq -0x48(%rbp), %rdx
callq 0xe267
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x1e2f8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
movq 0x28(%r14), %rax
movq 0x10(%rax), %r14
movl 0x24(%r14), %r15d
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
callq 0xb1ca
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x1e285
movq -0x88(%rbp), %rdi
jmp 0x1e377
movq 0x28(%r14), %rax
movq (%rax), %r14
movl 0x24(%r14), %r15d
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0xb1ca
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0xe267
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x1e388
movq (%r13), %rsi
incq %rsi
callq 0x21e0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x88(%rbp), %rdi
jmp 0x1e3b3
movq %rax, %rbx
movq -0x68(%rbp), %rdi
jmp 0x1e3b3
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x1e3c4
movq (%r13), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_c_makefile_star2_O1/zyearn[P]SmallC/codegen.cpp
// Function: genInit(treeNode*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void genInit(treeNode* node, int type, string scope)
{
    switch(type)
    {
        case 1:
            genExp(node->child[0], node->child[0]->type, scope);
            break;
        case 2:// struct
            break;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
cmpl $0x1, %esi
jne 0x1e42f
movq 0x28(%rdi), %rax
movq (%rax), %rbx
movl 0x24(%rbx), %r14d
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq -0x40(%rbp), %r15
movq %r15, %rdi
callq 0xb1ca
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x106e9
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x1e42f
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x21e0
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x1e454
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x2360
// File: /workspace/github_c_makefile_star2_O1/begriffs[P]pthread-test/alarm_thread.c
// Function: alarm_thread
void *alarm_thread(struct alarm *a)
{
	int status = pthread_detach(pthread_self());
	if (status != 0)
	{
		fprintf(stderr, "pthread_detach: %s\n", strerror(status));
		exit(EXIT_FAILURE);
	}

	sleep(a->seconds);
	printf("(%d) %s\n", a->seconds, a->message);
	free(a);

	return NULL;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x10d0
movq %rax, %rdi
callq 0x10a0
testl %eax, %eax
jne 0x12e8
movl (%rbx), %edi
callq 0x1100
movl (%rbx), %esi
leaq 0x4(%rbx), %rdx
leaq 0xd43(%rip), %rdi       # 0x2018
xorl %eax, %eax
callq 0x1050
movq %rbx, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
retq
movl %eax, %edi
callq 0x1120
// File: /workspace/github_c_makefile_star2_O1/begriffs[P]pthread-test/alarm_thread.c
// Function: main
int main(void)
{
	int status;
	char line[128];
	struct alarm *a;
	pthread_t thread;

	while (printf("Alarm> ") && fgets(line, sizeof(line), stdin))
	{
		if (strlen(line) <= 1)
			continue;

		if (!(a = malloc(sizeof(*a))))
		{
			fputs("Failed to allocate alarm\n", stderr);
			return EXIT_FAILURE;
		}
		if (sscanf(line, "%d %64[^\n]", &a->seconds, a->message) < 2)
		{
			fputs("Bad command\n", stderr);
			free(a);
		}
		else
		{
			status = pthread_create(&thread, NULL, (void *(*)(void*))alarm_thread, a);
			if (status != 0)
			{
				fprintf(stderr, "pthread_create: %s\n", strerror(status));
				return EXIT_FAILURE;
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
leaq 0xd1a(%rip), %rdi       # 0x2021
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x1050
testl %eax, %eax
je 0x13bf
movq 0x2cb9(%rip), %r12      # 0x3fd8
leaq 0x10(%rsp), %rbx
leaq 0xcf6(%rip), %r14       # 0x2021
leaq 0xd11(%rip), %r15       # 0x2043
leaq 0x8(%rsp), %r13
movq (%r12), %rdx
movq %rbx, %rdi
movl $0x80, %esi
callq 0x1070
testq %rax, %rax
je 0x13bd
movq %rbx, %rdi
callq 0x1040
cmpq $0x2, %rax
jb 0x13a1
movl $0x44, %edi
callq 0x1090
testq %rax, %rax
je 0x13d3
movq %rax, %rbp
movq %rax, %rcx
addq $0x4, %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x10b0
cmpl $0x1, %eax
jle 0x13b3
movq %r13, %rdi
xorl %esi, %esi
leaq -0xe9(%rip), %rdx       # 0x12ac
movq %rbp, %rcx
callq 0x10c0
testl %eax, %eax
jne 0x13da
xorl %ebp, %ebp
movq %r14, %rdi
xorl %eax, %eax
callq 0x1050
testl %eax, %eax
jne 0x1337
jmp 0x13bf
movq %rbp, %rdi
callq 0x1172
jmp 0x13a1
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1196
jmp 0x13e1
movl %eax, %edi
callq 0x114c
movl $0x1, %ebp
jmp 0x13bf
// File: /workspace/github_c_makefile_star2_O1/Joy-Division[P]tools-zoe/pak-extract.c
// Function: main
int main( int argc, char **argv ) {
	
	fileEntry workfile;
	
	unsigned char temp[4];
	
	memset( workfile.name, 0, FILENAMELENGTH );
	
	if( argc < 2 ) {
		printf("Not enough args!\nUse: %s PAK-file\n", argv[0]);
		return 1;
	}
	
	unsigned int numFiles, workfiles;
	FILE *f, *o;
	
	if( !(f = fopen( argv[1], "rb" ))) {
		printf("Couldnt open file %s\n", argv[1]);
		return 1;
	}
	
	fread( temp, 4, 1, f );
	numFiles  = temp[3] << 24;
	numFiles |= temp[2] << 16;
	numFiles |= temp[1] << 8;
	numFiles |= temp[0];
	
	fseek( f, 16, SEEK_SET );
	
	printf("Number of files: %u\n", numFiles );
	
	for( workfiles = 0; workfiles < numFiles; workfiles++ ) {
		fread( &workfile, sizeof(workfile), 1, f );
		printf("Current file: %s\n", workfile.name);
		
		if( !(o = fopen( workfile.name, "wb" ))) {
			printf("Couldnt open output %s\n", workfile.name);
			return 1;
		}
		
		writeFile( f, workfile.size, o );
		fclose(o);
		memset( workfile.name, 0, FILENAMELENGTH );
	}
	printf("Done.\n");
	fclose(f);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
cmpl $0x1, %edi
jg 0x12ad
movq (%r14), %rsi
leaq 0xdaa(%rip), %rdi       # 0x2052
jmp 0x13da
movq 0x8(%r14), %rdi
leaq 0xdbd(%rip), %rsi       # 0x2075
callq 0x1080
testq %rax, %rax
je 0x13c1
movq %rax, %rbx
leaq 0xc(%rsp), %r14
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rax, %rcx
callq 0x1040
movzbl 0x3(%r14), %r15d
shll $0x18, %r15d
movzbl 0x2(%r14), %r12d
shll $0x10, %r12d
leal (%r12,%r15), %r13d
movzbl 0x1(%r14), %ebp
shll $0x8, %ebp
orl %ebp, %r13d
movzbl (%r14), %r14d
movl $0x10, %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x1070
leaq 0xd70(%rip), %rdi       # 0x208e
movl %r13d, %esi
orl %r14d, %esi
xorl %eax, %eax
callq 0x1060
orl %r14d, %r13d
je 0x13a9
addl %r12d, %r15d
addl %r14d, %ebp
addl %r15d, %ebp
leaq 0x10(%rsp), %r14
leaq 0xd5e(%rip), %r15       # 0x20a3
leaq 0xd69(%rip), %r12       # 0x20b5
movl $0x30, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x1040
movq %r15, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x1060
movq %r14, %rdi
movq %r12, %rsi
callq 0x1080
testq %rax, %rax
je 0x13ce
movq %rax, %r13
movl 0x3c(%rsp), %esi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x11ac
movq %r13, %rdi
callq 0x1050
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
decl %ebp
jne 0x134c
leaq 0xd20(%rip), %rdi       # 0x20d0
callq 0x1030
movq %rbx, %rdi
callq 0x1050
xorl %eax, %eax
jmp 0x13e6
movq 0x8(%r14), %rsi
leaq 0xcac(%rip), %rdi       # 0x2078
jmp 0x13da
leaq 0xce3(%rip), %rdi       # 0x20b8
leaq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x1060
movl $0x1, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq