LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/rdrv.c
// Function: rdrvCommand
static int _rdrvCommand( rdrvObj *rPtr, int msgType, char *rconCmd, char *rconResp, int *bytesRead )
{
    int n, exitFlag = 0, retryCount = 0, errCode = 0;

    *bytesRead = 0;

    while ( !exitFlag ) {

        // if no handle (initial or reset condition)
        // try to open the connection.
        //
        if ( rPtr->isConnected == 0 ) {

            // (re-)connect
            //
            rdrvConnect( rPtr );             // ignore the return error
            usleep( RDRV_DELAY_CONN2XMT );
        }

        if ( rPtr->isConnected ) {
            errCode = rdrvSend( rPtr, msgType, rconCmd );
            usleep( RDRV_DELAY_XMT2RCV );
            if ( 0 == errCode ) {
                n = rdrvReceive( rPtr, rconResp );
                if (n > 0)  {
                    *bytesRead = n;
                    exitFlag = 1;
                }
                else {
                    *bytesRead = 0;
                    errCode = 1;
                }
            }
            if ( 0 != errCode ) {
                // disconnect and reconnect
                //
                logPrintf( LOG_LEVEL_CRITICAL, "rdrv", "Warning: RCON comms lost - re-opening with new channel");
                rdrvDisconnect( rPtr );  // ignore this error
                usleep( RDRV_DELAY_RETRY_DISC2CONN );
                rdrvConnect( rPtr );     // ignore this error
                usleep( RDRV_DELAY_RETRY_CONN2XMT );
            }
        }

        ++retryCount;
        if ( retryCount > 3 ) {
            exitFlag = 1;
        }
    }
    if ( retryCount > 3 ) errCode = 2;
    return( errCode );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rcx, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movl %esi, 0x4(%rsp)
movq %rdi, %r12
movl $0x0, (%r8)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl $0x1, %r15d
xorl %r13d, %r13d
xorl %ebp, %ebp
cmpl $0x0, 0x16c(%r12)
jne 0x986e
movq %r12, %rdi
callq 0x945e
movl $0x3d090, %edi          # imm = 0x3D090
callq 0x83f0
cmpl $0x0, 0x16c(%r12)
je 0x9914
movq %r12, %rdi
movl 0x4(%rsp), %esi
movq 0x8(%rsp), %rdx
callq 0x935a
movl $0x2710, %edi           # imm = 0x2710
callq 0x83f0
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x93f4
xorl %r13d, %r13d
testl %eax, %eax
cmovlel %r13d, %eax
cmovgl %r15d, %ebp
movl %eax, (%rbx)
jg 0x9914
xorl %edi, %edi
leaq 0x11ce1(%rip), %rsi     # 0x1b5a0
leaq 0x11d91(%rip), %rdx     # 0x1b657
xorl %eax, %eax
callq 0x1a227
movl 0x154(%r12), %edi
callq 0x81d0
movl $0xffffffff, 0x154(%r12) # imm = 0xFFFFFFFF
movl $0x0, 0x16c(%r12)
movl $0xf4240, %edi          # imm = 0xF4240
callq 0x83f0
movq %r12, %rdi
callq 0x945e
movl $0xf4240, %edi          # imm = 0xF4240
callq 0x83f0
movl $0x1, %r13d
incl %r14d
cmpl $0x3, %r14d
cmovael %r15d, %ebp
testl %ebp, %ebp
je 0x9851
cmpl $0x3, %r14d
movl $0x2, %eax
cmovael %eax, %r13d
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdMacros
int _cmdMacros( char *arg, char *arg2, char *passThru ) 
{
    int i, j = 1, errCode = 1;
    char *w;
    char statusIn[ 1024 ];

    for (i = 0; i<NUM_MACROS; i++) {
        w = getWord( picladminConfig.macros[i], 0, "\007");                // get the macro label
        if ( w != NULL ) {                                       // skip blank entries (possible)
            if ( 0 == strcmp( arg, w ) ) {                         // check if operator cmd match
                while ( NULL != ( w = getWord( picladminConfig.macros[i], j++, "\007" )) ) {
                    errCode = (0 == apiRcon( w, statusIn ));
                    if ( errCode ) break;
                } 
                break;
            }
        }
    }
    _stddResp( errCode );   // ok or error message to game

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdi, %r14
xorl %r12d, %r12d
leaq 0x2ae1e(%rip), %r13     # 0x34940
leaq 0x11be7(%rip), %r15     # 0x1b710
leaq (%r12,%r13), %rbx
addq $0x4004, %rbx           # imm = 0x4004
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0xf4e1
testq %rax, %rax
je 0x9b55
movq %r14, %rdi
movq %rax, %rsi
callq 0x8220
testl %eax, %eax
je 0x9b6c
addq $0x400, %r12            # imm = 0x400
cmpq $0x20000, %r12          # imm = 0x20000
jne 0x9b29
movl $0x1, %ebp
jmp 0x9bc8
leaq 0x11b9d(%rip), %rdx     # 0x1b710
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0xf4e1
testq %rax, %rax
je 0x9bc8
movl $0x2, %ebp
movq %rsp, %r14
leaq 0x11b77(%rip), %r15     # 0x1b710
movq %rax, %rdi
movq %r14, %rsi
callq 0x134b0
movl %eax, %r12d
testl %eax, %eax
je 0x9bbf
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0xf4e1
incl %ebp
testq %rax, %rax
jne 0x9b99
xorl %ebp, %ebp
testl %r12d, %r12d
sete %bpl
movl %ebp, %edi
callq 0x9be3
xorl %eax, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: stddResp
static void _stddResp( int errCode )
{
    if ( 0 == errCode ) 
        _respSay( picladminConfig.msgOk );              // ok message
    else                
        _respSay( picladminConfig.msgErr );          // error message
    return;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
callq 0x83c0
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
testl %ebx, %ebx
movslq %eax, %rdi
leaq 0x2ad32(%rip), %rax     # 0x34944
leaq 0x2c12b(%rip), %rcx     # 0x35d44
cmoveq %rax, %rcx
shlq $0xa, %rdi
addq %rcx, %rdi
xorl %eax, %eax
popq %rbx
jmp 0x1316b
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdMacrosList
int _cmdMacrosList( char *arg, char *arg2, char *passThru ) 
{
    int i, errCode = 1;
    char listOut[ 1024 ];

    strlcpy( listOut, "Macros: ", 1024 ); 

    for (i = 0; i<NUM_MACROS; i++) {
        if ( 0 != strlen( picladminConfig.macros[i] )) {    // skip blank entries (possible)
            strlcat( listOut, getWord( picladminConfig.macros[i], 0, "\007" ), 1024 );
            strlcat( listOut, " ", 1024 );
            if ( strlen( listOut ) > 40 ) {
                apiSaySys( listOut );
                strclr( listOut );
            }
            errCode = 0;
        }
    }
    if ( errCode ) {
        apiSaySys( "No Macros defined in config" );
    }
    else {
        if (0 != strlen( listOut )) apiSaySys( listOut );
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movabsq $0x203a736f7263614d, %rax # imm = 0x203A736F7263614D
movq %rsp, %rbx
movq %rax, (%rbx)
movb $0x0, 0x8(%rbx)
movl $0x1, %ebp
xorl %r12d, %r12d
leaq 0x2ace0(%rip), %r13     # 0x34940
leaq 0x11aa9(%rip), %r14     # 0x1b710
leaq 0x124e8(%rip), %r15     # 0x1c156
cmpb $0x0, 0x4004(%r12,%r13)
je 0x9cd2
leaq (%r12,%r13), %rdi
addq $0x4004, %rdi           # imm = 0x4004
xorl %ebp, %ebp
xorl %esi, %esi
movq %r14, %rdx
callq 0xf4e1
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
movq %rax, %rsi
callq 0xefc4
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
movq %r15, %rsi
callq 0xefc4
movq %rbx, %rdi
callq 0x8120
cmpq $0x29, %rax
jb 0x9cd2
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1316b
movq %rbx, %rdi
callq 0xf4dd
addq $0x400, %r12            # imm = 0x400
cmpq $0x20000, %r12          # imm = 0x20000
jne 0x9c6e
testl %ebp, %ebp
je 0x9cef
leaq 0x11a2e(%rip), %rbx     # 0x1b71b
jmp 0x9cf5
cmpb $0x0, (%rsp)
je 0x9cff
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1316b
xorl %eax, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdDeveloper
int _cmdDeveloper( char *arg, char *arg2, char *passThru ) 
{ 
    long int argLong;
    char p2pVarName[255];
    int errCode = 1;

    if ( 0 != strlen( arg )) {
        strlcpy( p2pVarName, "dev.p2p.", 80 );
        strlcat( p2pVarName, arg,        80 );
        errCode = 0;
    } 

    if (1 == sscanf( arg2, "%ld", &argLong )) 
        p2pSetL( p2pVarName, argLong );
    else 
        argLong = 0;

    argLong = p2pGetL( p2pVarName, argLong );
    apiSaySys( "Developer var = '%s' value = '%ld'", p2pVarName, argLong );

    return errCode; 
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %r14
cmpb $0x0, (%rdi)
je 0x9eb2
movq %rdi, %rsi
movabsq $0x2e7032702e766564, %rax # imm = 0x2E7032702E766564
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movb $0x0, 0x8(%rdi)
movl $0x50, %edx
callq 0xefc4
xorl %ebx, %ebx
jmp 0x9eb7
movl $0x1, %ebx
leaq 0x14d0c(%rip), %rsi     # 0x1ebca
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x82d0
cmpl $0x1, %eax
jne 0x9ee3
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x17ea8
jmp 0x9eec
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x18004
movq %rax, 0x8(%rsp)
leaq 0x11855(%rip), %rdi     # 0x1b75f
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1316b
movl %ebx, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdLock
int _cmdLock( char *arg, char *arg2, char *passThru ) 
{  
    int errCode = 0;

    if (0 == strcmp( "off", arg )) {
        p2pSetL( "pigateway.p2p.lockOut", 0L );
        apiSaySys( "Server public slots are UNLOCKED." );
    }
    else if (0 == strcmp( "on", arg )) {
        p2pSetL( "pigateway.p2p.lockOut", 1L );
        apiSaySys( "Server LOCKED to public until next map." );
    }
    else if (0 == strcmp( "perm", arg )) {
        p2pSetL( "pigateway.p2p.lockOut", 2L );
        apiSaySys( "Server LOCKED to public until unlocked.");
    }
    else if (0 == strcmp( "clan", arg )) {
        p2pSetL( "pigateway.p2p.lockOut", 3L );
        apiSaySys( "Server LOCKED for clan-only until unlocked.");
    }
    else if (0 == strlen( arg )) {
        _sayLockStatus( 0 );
    }
    else {
        apiSaySys( "Missing or incorrect option: off|on|perm|clan" );
    }

    // _stddResp( errCode );   // ok or error message to game
    
    return errCode; 
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
leaq 0x1184f(%rip), %rdi     # 0x1b782
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0x9f86
leaq 0x1500a(%rip), %rdi     # 0x1ef50
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0x9f9d
leaq 0x1188d(%rip), %rdi     # 0x1b7e6
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0x9fb7
leaq 0x118fc(%rip), %rdi     # 0x1b868
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0x9fd1
cmpb $0x0, (%rbx)
je 0x9ff8
leaq 0x118bb(%rip), %rdi     # 0x1b83f
jmp 0x9fe9
leaq 0x117f9(%rip), %rdi     # 0x1b786
xorl %esi, %esi
callq 0x17ea8
leaq 0x11801(%rip), %rdi     # 0x1b79c
jmp 0x9fe9
leaq 0x117e2(%rip), %rdi     # 0x1b786
movl $0x1, %esi
callq 0x17ea8
leaq 0x11809(%rip), %rdi     # 0x1b7be
jmp 0x9fe9
leaq 0x117c8(%rip), %rdi     # 0x1b786
movl $0x2, %esi
callq 0x17ea8
leaq 0x1181c(%rip), %rdi     # 0x1b7eb
jmp 0x9fe9
leaq 0x117ae(%rip), %rdi     # 0x1b786
movl $0x3, %esi
callq 0x17ea8
leaq 0x1182a(%rip), %rdi     # 0x1b813
xorl %eax, %eax
callq 0x1316b
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
retq
leaq 0x11787(%rip), %rdi     # 0x1b786
xorl %esi, %esi
callq 0x18004
cmpb $0x3, %al
je 0xa036
movzbl %al, %eax
cmpl $0x2, %eax
je 0xa025
cmpl $0x1, %eax
jne 0xa047
movb $0x0, 0x4(%rsp)
movl $0x276e6f27, (%rsp)     # imm = 0x276E6F27
jmp 0xa055
movl $0x276d72, 0x3(%rsp)    # imm = 0x276D72
movl $0x72657027, (%rsp)     # imm = 0x72657027
jmp 0xa055
movl $0x276e61, 0x3(%rsp)    # imm = 0x276E61
movl $0x616c6327, (%rsp)     # imm = 0x616C6327
jmp 0xa055
movw $0x27, 0x4(%rsp)
movl $0x66666f27, (%rsp)     # imm = 0x66666F27
leaq 0x1272e(%rip), %rdi     # 0x1c78a
movq %rsp, %rsi
xorl %eax, %eax
callq 0x1316b
jmp 0x9ff0
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdGeneva
int _cmdGeneva( char *arg, char *arg2, char *passThru ) 
{  
    int errCode = 0;

    if (0 == strcmp( "off", arg )) {
        p2pSetL( "piantirush.p2p.genevaKick", 0L );
        apiSaySys( "Geneva Rule Off" );
    }
    else if (0 == strcmp( "on", arg )) {
        p2pSetL( "piantirush.p2p.genevaKick", 1L );
        apiSaySys( "*Geneva Rule is ON - weapons restrictions apply!" );
    }
    else {
        switch ( p2pGetL( "piantirush.p2p.genevaKick", 0L ) ) {
            case 1L:  apiSaySys( "Geneva is ON - weapons restrictions apply" );    break;
            default:  apiSaySys( "Geneva is OFF - no restrictions" );  
        }
    }
    
    return errCode; 
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x1170f(%rip), %rdi     # 0x1b782
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa0b8
leaq 0x14eca(%rip), %rdi     # 0x1ef50
movq %rbx, %rsi
callq 0x8220
leaq 0x117d8(%rip), %rdi     # 0x1b86d
testl %eax, %eax
je 0xa0cf
xorl %esi, %esi
callq 0x18004
cmpq $0x1, %rax
leaq 0x1181d(%rip), %rax     # 0x1b8c8
leaq 0x11840(%rip), %rdi     # 0x1b8f2
cmoveq %rax, %rdi
jmp 0xa0e0
leaq 0x117ae(%rip), %rdi     # 0x1b86d
xorl %esi, %esi
callq 0x17ea8
leaq 0x117ba(%rip), %rdi     # 0x1b887
jmp 0xa0e0
movl $0x1, %esi
callq 0x17ea8
leaq 0x117b7(%rip), %rdi     # 0x1b897
xorl %eax, %eax
callq 0x1316b
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdWax
int _cmdWax( char *arg, char *arg2, char *passThru ) 
{  
    int errCode = 0;

    if (0 == strcmp( "off", arg )) {
        p2pSetL( "piantirush.p2p.training", 0L );
        apiSaySys( "Wax Off - starting next objective");
    }
    else if (0 == strcmp( "on", arg )) {
        p2pSetL( "piantirush.p2p.training", 1L );
        apiSaySys( "Wax On - starting next objective");
        p2pSetF("piantirush.p2p.fast", 0.0 );             // turn off FAST mode
    }
    else if (0 == strcmp( "perm", arg )) {
        p2pSetL( "piantirush.p2p.training", 2L );
        apiSaySys( "Wax On/Perm - starting next objective");
        p2pSetF("piantirush.p2p.fast", 0.0 );             // turn off FAST mode
    }
    else {
        switch ( p2pGetL( "piantirush.p2p.training", 0L ) ) {
            case 1L:  apiSaySys( "Wax is ON" );    break;
            case 2L:  apiSaySys( "Wax is PERM" );  break;
            default:  apiSaySys( "Wax is OFF" );  
        }
    }
    
    return errCode; 
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x1168c(%rip), %rdi     # 0x1b782
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa14b
leaq 0x14e47(%rip), %rdi     # 0x1ef50
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa169
leaq 0x116ca(%rip), %rdi     # 0x1b7e6
movq %rbx, %rsi
callq 0x8220
leaq 0x117e7(%rip), %rdi     # 0x1b912
testl %eax, %eax
je 0xa183
xorl %esi, %esi
callq 0x18004
cmpq $0x2, %rax
je 0xa1ae
cmpq $0x1, %rax
jne 0xa1b7
leaq 0x1185e(%rip), %rdi     # 0x1b9a7
jmp 0xa160
leaq 0x117c0(%rip), %rdi     # 0x1b912
xorl %esi, %esi
callq 0x17ea8
leaq 0x117ca(%rip), %rdi     # 0x1b92a
xorl %eax, %eax
callq 0x1316b
jmp 0xa1aa
leaq 0x117a2(%rip), %rdi     # 0x1b912
movl $0x1, %esi
callq 0x17ea8
leaq 0x117cb(%rip), %rdi     # 0x1b94c
jmp 0xa194
movl $0x2, %esi
callq 0x17ea8
leaq 0x117ed(%rip), %rdi     # 0x1b981
xorl %eax, %eax
callq 0x1316b
leaq 0x117cb(%rip), %rdi     # 0x1b96d
xorps %xmm0, %xmm0
callq 0x17d80
xorl %eax, %eax
popq %rbx
retq
leaq 0x117fc(%rip), %rdi     # 0x1b9b1
jmp 0xa160
leaq 0x117ff(%rip), %rdi     # 0x1b9bd
jmp 0xa160
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdStrict
int _cmdStrict( char *arg, char *arg2, char *passThru ) 
{
    switch ( p2pGetL( "piantirush.p2p.training", 0L ) ) {
    case 0L:
        p2pSetL( "piantirush.p2p.training", 1L );
        apiSaySys( picladminConfig.strictTutorial );
        p2pSetF("piantirush.p2p.fast", 0.0 );             // turn off FAST mode
        break;
    default:
        apiSaySys( "Strict/Wax mode already enabled" );
    };
    return 0;
}

// Assembly:
pushq %rax
leaq 0x1174a(%rip), %rdi     # 0x1b912
xorl %esi, %esi
callq 0x18004
testq %rax, %rax
je 0xa1e4
leaq 0x117ed(%rip), %rdi     # 0x1b9c8
xorl %eax, %eax
callq 0x1316b
jmp 0xa212
leaq 0x11727(%rip), %rdi     # 0x1b912
movl $0x1, %esi
callq 0x17ea8
leaq 0x53760(%rip), %rdi     # 0x5d95c
xorl %eax, %eax
callq 0x1316b
leaq 0x11763(%rip), %rdi     # 0x1b96d
xorps %xmm0, %xmm0
callq 0x17d80
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdThirdWave
int _cmdThirdWave( char *arg, char *arg2, char *passThru ) 
{  
    int errCode = 0;

    if (0 == strcmp( "off", arg )) {
        p2pSetL( "pithirdwave.p2p.thirdWaveEnable", 0L );
        apiSay( "ThirdWave Algorithm DISABLED." );
    }
    else if (0 == strcmp( "on", arg )) {
        p2pSetL( "pithirdwave.p2p.thirdWaveEnable", 1L );
        apiSay( "ThirdWave Algorithm ENABLED." );
    }
    else
        errCode = 1;

    _stddResp( errCode );   // ok or error message to game
    
    return errCode; 
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x11561(%rip), %rdi     # 0x1b782
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa253
leaq 0x14d1c(%rip), %rdi     # 0x1ef50
movq %rbx, %rsi
callq 0x8220
movl $0x1, %ebx
testl %eax, %eax
jne 0xa274
leaq 0x117da(%rip), %rbx     # 0x1ba26
movl $0x1, %esi
jmp 0xa25c
leaq 0x117ae(%rip), %rbx     # 0x1ba08
xorl %esi, %esi
leaq 0x11785(%rip), %rdi     # 0x1b9e8
callq 0x17ea8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x12fba
xorl %ebx, %ebx
movl %ebx, %edi
callq 0x9be3
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdBotFixed
int _cmdBotFixed( char *arg, char *arg2, char *passThru ) 
{  
    int errCode = 1, botCount;

    if (1 == sscanf( arg, "%d", &botCount )) {
        if ( ( botCount <=  picladminConfig.botMaxAllowed ) && ( botCount >= 0 ) ) {
           apiGameModePropertySet( "minimumenemies", _int2str( botCount/2 ) ); 
           apiGameModePropertySet( "maximumenemies", _int2str( botCount/2 ) );  
           apiGameModePropertySet( "soloenemies", _int2str( botCount/2 ) );  
           p2pSetL( "picladmin.p2p.botAdminControl", 1L );  // flag as admin control
           errCode = 0;
        }
    }
    _stddResp( errCode );   // ok or error message to game
    
    return errCode; 
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x11e3e(%rip), %rsi     # 0x1c0cd
leaq 0xc(%rsp), %rdx
xorl %eax, %eax
callq 0x82d0
movl $0x1, %ebx
cmpl $0x1, %eax
jne 0xa361
movl 0xc(%rsp), %ecx
testl %ecx, %ecx
js 0xa361
cmpl 0x4e689(%rip), %ecx     # 0x58944
jg 0xa361
shrl %ecx
leaq 0x53ba6(%rip), %r14     # 0x5de70
leaq 0x11dfc(%rip), %r15     # 0x1c0cd
xorl %ebx, %ebx
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x8190
leaq 0x11757(%rip), %rdi     # 0x1ba43
movq %r14, %rsi
callq 0x12e70
movl 0xc(%rsp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x8190
leaq 0x11738(%rip), %rdi     # 0x1ba52
movq %r14, %rsi
callq 0x12e70
movl 0xc(%rsp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x8190
leaq 0x11719(%rip), %rdi     # 0x1ba61
movq %r14, %rsi
callq 0x12e70
leaq 0x11716(%rip), %rdi     # 0x1ba6d
movl $0x1, %esi
callq 0x17ea8
movl %ebx, %edi
callq 0x9be3
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdBotDifficulty
int _cmdBotDifficulty( char *arg, char *arg2, char *passThru ) 
{ 
    int errCode = 1;
    char strOut[256];
    double botDifficultyF;

    if (1 == sscanf( arg, "%lf", &botDifficultyF )) {
         
        if ( botDifficultyF >= 9.9 ) botDifficultyF = 9.9;     // workaround for system bug (?)

        if ((botDifficultyF <= 10.0) && (botDifficultyF >= 0.0)) {
           botDifficultyF /= 10.0;
           snprintf( strOut, 256, "%6.3lf", botDifficultyF);
           apiGameModePropertySet( "aidifficulty", strOut );
           p2pSetL( "picladmin.p2p.botAdminControlDifficulty", 1L );   // flag as admin control
           errCode = 0;
        }
    }

    _stddResp( errCode );   // ok or error message to game

    return errCode;
}

// Assembly:
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
leaq 0x12c09(%rip), %rsi     # 0x1d0c0
leaq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x82d0
movl $0x1, %ebx
cmpl $0x1, %eax
jne 0xa559
movsd 0x8(%rsp), %xmm0
ucomisd 0x111f9(%rip), %xmm0    # 0x1b6d8
jb 0xa4f0
movabsq $0x4023cccccccccccd, %rax # imm = 0x4023CCCCCCCCCCCD
movq %rax, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
movsd 0x111e2(%rip), %xmm1    # 0x1b6e0
ucomisd %xmm0, %xmm1
jb 0xa559
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0xa559
divsd 0x111ca(%rip), %xmm0    # 0x1b6e0
movsd %xmm0, 0x8(%rsp)
leaq 0x11904(%rip), %rdx     # 0x1be27
leaq 0x10(%rsp), %rbx
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
movb $0x1, %al
callq 0x8190
leaq 0x11568(%rip), %rdi     # 0x1baa6
movq %rbx, %rsi
callq 0x12e70
leaq 0x11566(%rip), %rdi     # 0x1bab3
movl $0x1, %esi
callq 0x17ea8
xorl %ebx, %ebx
movl %ebx, %edi
callq 0x9be3
movl %ebx, %eax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdKillFeed
int _cmdKillFeed( char *arg, char *arg2, char *passThru  ) 
{ 
    int errCode = 0;

    if (0 == strcmp( "off", arg )) 
        apiGameModePropertySet( "bKillFeed", "false" );
    else if (0 == strcmp( "on", arg )) 
        apiGameModePropertySet( "bKillFeed", "true" );
    else 
        errCode = 1;

    _stddResp( errCode );   // ok or error message to game

    return errCode;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x1120c(%rip), %rdi     # 0x1b782
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa5a3
leaq 0x149c7(%rip), %rdi     # 0x1ef50
movq %rbx, %rsi
callq 0x8220
movl $0x1, %ebx
testl %eax, %eax
jne 0xa5b8
leaq 0x1154a(%rip), %rsi     # 0x1baeb
jmp 0xa5aa
leaq 0x1153b(%rip), %rsi     # 0x1bae5
leaq 0x1152a(%rip), %rdi     # 0x1badb
callq 0x12e70
xorl %ebx, %ebx
movl %ebx, %edi
callq 0x9be3
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdFriendlyFire
int _cmdFriendlyFire( char *arg, char *arg2, char *passThru ) 
{ 
    int errCode = 0;

    if (0 == strcmp( "off", arg )) 
        apiGameModePropertySet( "bAllowFriendlyFire", "false" );
    else if (0 == strcmp( "on", arg )) 
        apiGameModePropertySet( "bAllowFriendlyFire", "true" );
    else 
        errCode = 1;

    _stddResp( errCode );   // ok or error message to game

    return errCode;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x111b4(%rip), %rdi     # 0x1b782
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa5fb
leaq 0x1496f(%rip), %rdi     # 0x1ef50
movq %rbx, %rsi
callq 0x8220
movl $0x1, %ebx
testl %eax, %eax
jne 0xa610
leaq 0x114f2(%rip), %rsi     # 0x1baeb
jmp 0xa602
leaq 0x114e3(%rip), %rsi     # 0x1bae5
leaq 0x114e7(%rip), %rdi     # 0x1baf0
callq 0x12e70
xorl %ebx, %ebx
movl %ebx, %edi
callq 0x9be3
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdRestart
int _cmdRestart( char *arg, char *arg2, char *passThru  ) 
{
    char cmdOut[256], statusIn[256];
    int errCode = 0;

    strlcpy( cmdOut, "restartround 0", 256 );
    if (0 == strcmp( "now", arg )) 
        apiRcon( cmdOut, statusIn );
    else 
        errCode = 1;

    _stddResp( errCode );   // ok or error message to game

    return errCode;
}

// Assembly:
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rdi, %rsi
movabsq $0x7274726174736572, %rax # imm = 0x7274726174736572
movq %rax, (%rsp)
movabsq $0x3020646e756f72, %rax # imm = 0x3020646E756F72
movq %rax, 0x7(%rsp)
leaq 0x114c8(%rip), %rdi     # 0x1bb12
callq 0x8220
movl $0x1, %ebx
testl %eax, %eax
jne 0xa66a
movq %rsp, %rdi
leaq 0x100(%rsp), %rsi
callq 0x134b0
xorl %ebx, %ebx
movl %ebx, %edi
callq 0x9be3
movl %ebx, %eax
addq $0x200, %rsp            # imm = 0x200
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdEnd
int _cmdEnd( char *arg, char *arg2, char *passThru ) 
{ 
    char cmdOut[256], statusIn[256];
    int errCode = 0; 

    strlcpy( cmdOut, "restartround 2", 256 );
    if (0 == strcmp( "now", arg )) 
        apiRcon( cmdOut, statusIn );
    else 
        errCode = 1;

    _stddResp( errCode );   // ok or error message to game

    return errCode;
}

// Assembly:
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rdi, %rsi
movabsq $0x7274726174736572, %rax # imm = 0x7274726174736572
movq %rax, (%rsp)
movabsq $0x3220646e756f72, %rax # imm = 0x3220646E756F72
movq %rax, 0x7(%rsp)
leaq 0x11467(%rip), %rdi     # 0x1bb12
callq 0x8220
movl $0x1, %ebx
testl %eax, %eax
jne 0xa6cb
movq %rsp, %rdi
leaq 0x100(%rsp), %rsi
callq 0x134b0
xorl %ebx, %ebx
movl %ebx, %edi
callq 0x9be3
movl %ebx, %eax
addq $0x200, %rsp            # imm = 0x200
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdReboot
int _cmdReboot( char *arg, char *arg2, char *passThru  ) 
{ 
    int errCode = 0;

    // Cancel any pending reboot request
    //
    if (0 == strcmp( "cancel", arg ))   {
        if (_queueReboot != REBOOT_CANCEL) apiSaySys( "Commanded server reboot is cancelled." );
        _queueReboot = REBOOT_CANCEL;
    }

    // special 0-player case - is a reboot now/eog/eor issued from RCON while the
    // server is empty -- do an immediately reboot.
    //
    else if (0 == strcmp( "now", arg ) || (0 == apiPlayersGetCount() ))   {
        apiSaySys( "*Server is REBOOTING - please reconnect" );
        apiServerRestart( "Server Admin Reboot" );
        _queueReboot = REBOOT_CANCEL;
    }

    // End of Game reboot - queue it and wait for EOG event
    //
    else if (0 == strcmp( "eog", arg ))  {
       _queueReboot = REBOOT_EOG;
       apiSaySys( "This server will reboot at end of this game" );
    }

    // End of Round reboot - queue it and wait for EOR event
    //
    else if (0 == strcmp( "eor", arg ))  {
        _queueReboot = REBOOT_EOR;
        apiSaySys( "This server will reboot at end of this round" );
    }
    else 
        errCode = 1;

    _stddResp( errCode );   // ok or error message to game

    return errCode;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x1143d(%rip), %rdi     # 0x1bb25
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa77a
leaq 0x11413(%rip), %rdi     # 0x1bb12
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa752
callq 0x134dc
testl %eax, %eax
je 0xa752
leaq 0x11473(%rip), %rdi     # 0x1bb8e
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa79f
leaq 0x12498(%rip), %rdi     # 0x1cbc6
movq %rbx, %rsi
callq 0x8220
movl $0x1, %ebx
testl %eax, %eax
jne 0xa7b9
movl $0x1, 0x53613(%rip)     # 0x5dd5c
leaq 0x1146e(%rip), %rdi     # 0x1bbbe
jmp 0xa7b0
leaq 0x113f9(%rip), %rdi     # 0x1bb52
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x1316b
leaq 0x11411(%rip), %rdi     # 0x1bb7a
callq 0x12ce5
movl $0x0, 0x535e4(%rip)     # 0x5dd5c
jmp 0xa7b9
cmpl $0x0, 0x535db(%rip)     # 0x5dd5c
je 0xa791
leaq 0x113a2(%rip), %rdi     # 0x1bb2c
xorl %eax, %eax
callq 0x1316b
movl $0x0, 0x535c1(%rip)     # 0x5dd5c
xorl %ebx, %ebx
jmp 0xa7b9
movl $0x2, 0x535b3(%rip)     # 0x5dd5c
leaq 0x113e2(%rip), %rdi     # 0x1bb92
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x1316b
movl %ebx, %edi
callq 0x9be3
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdEndGame
int _cmdEndGame( char *arg, char *arg2, char *passThru  ) 
{ 
    int errCode = 0;
    char cmdOut[256], statusIn[256];

    if (0 == strcmp( "now", arg ))  {
        apiSaySys( "*Forcing Game End*" );
        apiGameModePropertySet( "PreRoundTime", "1" );
        apiGameModePropertySet( "RoundLimit",   "1" );
        apiGameModePropertySet( "RoundTIme",    "1" );
        strlcpy( cmdOut, "restartround 0", 256 );
        apiRcon( cmdOut, statusIn );
    }
    else {
        apiSaySys( "Specify 'now' to end the game" );
        errCode = 1;
    }

    _stddResp( errCode );   // ok or error message to game

    return errCode;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rsi
leaq 0x1133a(%rip), %rdi     # 0x1bb12
callq 0x8220
testl %eax, %eax
je 0xa7f6
leaq 0x11438(%rip), %rdi     # 0x1bc20
xorl %eax, %eax
callq 0x1316b
movl $0x1, %ebx
jmp 0xa865
leaq 0x113ee(%rip), %rdi     # 0x1bbeb
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x1316b
leaq 0x113f1(%rip), %rdi     # 0x1bbfe
leaq 0x10900(%rip), %r14     # 0x1b114
movq %r14, %rsi
callq 0x12e70
leaq 0x113e8(%rip), %rdi     # 0x1bc0b
movq %r14, %rsi
callq 0x12e70
leaq 0x113e4(%rip), %rdi     # 0x1bc16
movq %r14, %rsi
callq 0x12e70
movabsq $0x7274726174736572, %rax # imm = 0x7274726174736572
leaq 0x100(%rsp), %rdi
movq %rax, (%rdi)
movabsq $0x3020646e756f72, %rax # imm = 0x3020646E756F72
movq %rax, 0x7(%rdi)
movq %rsp, %rsi
callq 0x134b0
movl %ebx, %edi
callq 0x9be3
movl %ebx, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdBanId
int _cmdBanId( char *arg, char *arg2, char *passThru  ) 
{ 
    int errCode = 1;
    char cmdOut[256], statusIn[256];

    if ( rosterIsValidGUID( arg ) ) {
        snprintf( cmdOut, 256, "banid \"%s\" 0 \"%s\"", arg, _reason( passThru ) );
        apiRcon( cmdOut, statusIn );
        apiSay( statusIn );
        errCode = 0;
    }

    if ( errCode != 0 ) _stddResp( errCode );   // ok or error message to game

    return errCode; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdx, %rbx
movq %rdi, %r14
callq 0x1403c
movl %eax, %ebp
testl %eax, %eax
je 0xa8e3
movq %rbx, %rdi
callq 0xa93b
leaq 0x11398(%rip), %rdx     # 0x1bc3e
leaq 0x536c3(%rip), %r8      # 0x5df70
xorl %ebx, %ebx
leaq 0x100(%rsp), %r15
movl $0x100, %esi            # imm = 0x100
movq %r15, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8190
movq %rsp, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x134b0
movq %r14, %rdi
xorl %eax, %eax
callq 0x12fba
jmp 0xa8e8
movl $0x1, %ebx
testl %ebp, %ebp
jne 0xa92b
callq 0x83c0
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cltq
shlq $0xa, %rax
leaq 0x2a027(%rip), %rcx     # 0x34940
leaq (%rax,%rcx), %rdi
addq $0x1404, %rdi           # imm = 0x1404
xorl %eax, %eax
callq 0x1316b
movl %ebx, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: reason
static char *_reason( char *rawLine )
{
    char *p1 = NULL, *p3 = NULL;
    int   i, spaceCount = 0;
    static char outReason[ 256 ];

    // Parse and look for "reason" string from what was typed by 
    // admin at console.  
    //
    p3 = & rawLine[ strlen( rawLine ) ];
    for (i=0; i< (int) strlen( rawLine ); i++) {
        if ( rawLine[i] == ' ' ) spaceCount++;
        if ( spaceCount == 2 ) {
            p3 = & rawLine[ i+1 ];
            break;
        }
    }
    strlcpy( outReason, p3, 256 );

    // if the 'reason' was one of shortcut preset 'canned' reasons
    // e.g., 'rush', 'afk', 'tk', etc.  then replace it with the 
    // longer explanation.
    //
    for ( i=0; i<NUM_REASONS; i++ ) {
        p1 = getWord( picladminConfig.reason[i], 0, "\007" ) ;
        if ( p1 != NULL ) { 
            if ( 0 == strcmp( p1, p3 ) ) {  // replace if exact match to preset reasons
                strlcpy( outReason, getWord( picladminConfig.reason[i], 1, "\007" ), 256);
                break;
            }
        }
    }

    // replace double quotes with a single quote
    //
    for ( i=0; i< (int) strlen(outReason); i++ ) {
        if ( outReason[i] == 0x22 ) outReason[i] = 0x27;
    }

    return( outReason );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
callq 0x8120
leaq (%r14,%rax), %rbx
testl %eax, %eax
jle 0xa97e
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
incq %r14
xorl %ecx, %ecx
movl %ecx, %edx
xorl %ecx, %ecx
cmpb $0x20, -0x1(%r14)
sete %cl
addl %edx, %ecx
cmpl $0x2, %ecx
je 0xa97b
incq %r14
decq %rax
jne 0xa95e
jmp 0xa97e
movq %r14, %rbx
leaq 0x535eb(%rip), %rdi     # 0x5df70
movl $0x100, %edx            # imm = 0x100
movq %rbx, %rsi
callq 0xf038
xorl %r12d, %r12d
leaq 0x29fa4(%rip), %r13     # 0x34940
leaq 0x10d6d(%rip), %r14     # 0x1b710
leaq (%r12,%r13), %r15
addq $0x25410, %r15          # imm = 0x25410
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0xf4e1
testq %rax, %rax
je 0xa9cf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa9e1
addq $0x400, %r12            # imm = 0x400
cmpq $0x2400, %r12           # imm = 0x2400
jne 0xa9a3
jmp 0xaa09
leaq 0x10d28(%rip), %rdx     # 0x1b710
movq %r15, %rdi
movl $0x1, %esi
callq 0xf4e1
leaq 0x53574(%rip), %rdi     # 0x5df70
movl $0x100, %edx            # imm = 0x100
movq %rax, %rsi
callq 0xf038
leaq 0x53560(%rip), %rbx     # 0x5df70
movq %rbx, %rdi
callq 0x8120
testl %eax, %eax
jle 0xaa3d
xorl %r14d, %r14d
cmpb $0x22, (%r14,%rbx)
jne 0xaa2b
movb $0x27, (%r14,%rbx)
incq %r14
movq %rbx, %rdi
callq 0x8120
cltq
cmpq %rax, %r14
jl 0xaa1f
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdBanIdt
int _cmdBanIdt( char *arg, char *arg2, char *passThru  ) 
{ 
    int errCode = 1;
    char cmdOut[256], statusIn[256];

    if ( rosterIsValidGUID( arg ) ) {
        snprintf( cmdOut, 256, "banid \"%s\" %d \"[Tempban] %s\"", arg, picladminConfig.tempBanMinutes, _reason( passThru ) );
        apiRcon( cmdOut, statusIn );
        apiSay( statusIn );
        errCode = 0;
    }

    if ( errCode != 0 ) _stddResp( errCode );   // ok or error message to game

    return errCode; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rdx, %rbx
movq %rdi, %r14
callq 0x1403c
movl %eax, %ebp
testl %eax, %eax
je 0xaabd
movl 0x52ee6(%rip), %r15d    # 0x5d954
movq %rbx, %rdi
callq 0xa93b
leaq 0x111d3(%rip), %rdx     # 0x1bc50
leaq 0x534ec(%rip), %r9      # 0x5df70
xorl %ebx, %ebx
leaq 0x100(%rsp), %r12
movl $0x100, %esi            # imm = 0x100
movq %r12, %rdi
movq %r14, %rcx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x8190
movq %rsp, %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0x134b0
movq %r14, %rdi
xorl %eax, %eax
callq 0x12fba
jmp 0xaac2
movl $0x1, %ebx
testl %ebp, %ebp
jne 0xab05
callq 0x83c0
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cltq
shlq $0xa, %rax
leaq 0x29e4d(%rip), %rcx     # 0x34940
leaq (%rax,%rcx), %rdi
addq $0x1404, %rdi           # imm = 0x1404
xorl %eax, %eax
callq 0x1316b
movl %ebx, %eax
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdUnBanId
int _cmdUnBanId( char *arg, char *arg2, char *passThru  ) 
{ 
    int errCode = 1;
    char cmdOut[256], statusIn[256];

    if ( rosterIsValidGUID( arg ) ) {
        snprintf( cmdOut, 256, "unban \"%s\"", arg );
        apiRcon( cmdOut, statusIn );
        apiSay( statusIn );
        errCode = 0;
    }

    if ( errCode != 0 ) _stddResp( errCode );   // ok or error message to game

    return errCode; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %r14
callq 0x1403c
movl %eax, %ebp
testl %eax, %eax
je 0xab6f
leaq 0x11134(%rip), %rdx     # 0x1bc6d
xorl %ebx, %ebx
leaq 0x100(%rsp), %r15
movl $0x100, %esi            # imm = 0x100
movq %r15, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8190
movq %rsp, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x134b0
movq %r14, %rdi
xorl %eax, %eax
callq 0x12fba
jmp 0xab74
movl $0x1, %ebx
testl %ebp, %ebp
jne 0xabb7
callq 0x83c0
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cltq
shlq $0xa, %rax
leaq 0x29d9b(%rip), %rcx     # 0x34940
leaq (%rax,%rcx), %rdi
addq $0x1404, %rdi           # imm = 0x1404
xorl %eax, %eax
callq 0x1316b
movl %ebx, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdKickId
int _cmdKickId( char *arg, char *arg2, char *passThru  ) 
{ 
    int errCode = 1;
    char cmdOut[256], statusIn[256];

    if ( rosterIsValidGUID( arg )) {  // if valid ID
        snprintf( cmdOut, 256, "kick \"%s\" \"%s\"", arg, _reason( passThru) );
        apiRcon( cmdOut, statusIn );
        errCode = 0;
    }

    _stddResp( errCode );   // ok or error message to game

    return errCode;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rdx, %rbx
movq %rdi, %r14
callq 0x1403c
testl %eax, %eax
je 0xac21
movq %rbx, %rdi
callq 0xa93b
leaq 0x11087(%rip), %rdx     # 0x1bc78
leaq 0x53378(%rip), %r8      # 0x5df70
xorl %ebx, %ebx
leaq 0x100(%rsp), %r15
movl $0x100, %esi            # imm = 0x100
movq %r15, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x8190
movq %rsp, %rsi
movq %r15, %rdi
callq 0x134b0
jmp 0xac26
movl $0x1, %ebx
movl %ebx, %edi
callq 0x9be3
movl %ebx, %eax
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdBan
int _cmdBan( char *arg, char *arg2, char *passThru  ) 
{ 
    int errCode = 1;
    char cmdOut[256], statusIn[256], steamID[256];
    strlcpy( steamID, rosterLookupSteamIDFromPartialName( arg, 3 ), 256 );
    if ( 0 != strlen( steamID ) ) {
        if ( (snprintf( cmdOut, 255, "banid \"%s\" 0 \"%s\"", steamID, _reason( passThru) )) < 0 )
            logPrintf( LOG_LEVEL_WARN, "picladmin", "Overflow warning at _cmdBan" );
        apiRcon( cmdOut, statusIn );
        apiSay( statusIn );
        errCode = 0;
    }

    if ( errCode != 0 ) _stddResp( errCode );   // ok or error message to game

    return errCode; 
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x300, %rsp            # imm = 0x300
movq %rdx, %rbx
movl $0x3, %esi
callq 0x14bc5
movq %rsp, %r14
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
movq %rax, %rsi
callq 0xf038
movb (%r14), %bpl
testb %bpl, %bpl
je 0xace0
movq %rbx, %rdi
callq 0xa93b
leaq 0x10fc0(%rip), %rdx     # 0x1bc3e
leaq 0x532eb(%rip), %r8      # 0x5df70
xorl %ebx, %ebx
leaq 0x100(%rsp), %rdi
movq %rsp, %rcx
movl $0xff, %esi
xorl %eax, %eax
callq 0x8190
testl %eax, %eax
jns 0xacbc
leaq 0x10fde(%rip), %rsi     # 0x1bc87
leaq 0x10fe1(%rip), %rdx     # 0x1bc91
movl $0x1, %edi
xorl %eax, %eax
callq 0x1a227
leaq 0x100(%rsp), %rdi
leaq 0x200(%rsp), %r14
movq %r14, %rsi
callq 0x134b0
movq %r14, %rdi
xorl %eax, %eax
callq 0x12fba
jmp 0xace5
movl $0x1, %ebx
testb %bpl, %bpl
jne 0xad29
callq 0x83c0
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cltq
shlq $0xa, %rax
leaq 0x29c29(%rip), %rcx     # 0x34940
leaq (%rax,%rcx), %rdi
addq $0x1404, %rdi           # imm = 0x1404
xorl %eax, %eax
callq 0x1316b
movl %ebx, %eax
addq $0x300, %rsp            # imm = 0x300
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdBant
int _cmdBant( char *arg, char *arg2, char *passThru  ) 
{ 
    int errCode = 1;
    char cmdOut[256], statusIn[256], steamID[256];
    strlcpy( steamID, rosterLookupSteamIDFromPartialName( arg, 3 ), 256 );
    if ( 0 != strlen( steamID ) ) {
        if ( (snprintf( cmdOut, 255, "ban %s %d \"[Tempban] %s\"", steamID, picladminConfig.tempBanMinutes, _reason( passThru) )) < 0 )
            logPrintf( LOG_LEVEL_WARN, "picladmin", "Overflow warning at _cmdBan" );
        apiRcon( cmdOut, statusIn );
        apiSay( statusIn );
        errCode = 0;
    }

    if ( errCode != 0 ) _stddResp( errCode );   // ok or error message to game

    return errCode; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movq %rdx, %rbx
movl $0x3, %esi
callq 0x14bc5
movq %rsp, %r14
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
movq %rax, %rsi
callq 0xf038
movb (%r14), %r15b
testb %r15b, %r15b
je 0xade6
movl 0x52be2(%rip), %ebp     # 0x5d954
movq %rbx, %rdi
callq 0xa93b
leaq 0x10f2c(%rip), %rdx     # 0x1bcad
leaq 0x531e8(%rip), %r9      # 0x5df70
xorl %ebx, %ebx
leaq 0x100(%rsp), %rdi
movq %rsp, %rcx
movl $0xff, %esi
movl %ebp, %r8d
xorl %eax, %eax
callq 0x8190
testl %eax, %eax
jns 0xadc2
leaq 0x10ed8(%rip), %rsi     # 0x1bc87
leaq 0x10edb(%rip), %rdx     # 0x1bc91
movl $0x1, %edi
xorl %eax, %eax
callq 0x1a227
leaq 0x100(%rsp), %rdi
leaq 0x200(%rsp), %r14
movq %r14, %rsi
callq 0x134b0
movq %r14, %rdi
xorl %eax, %eax
callq 0x12fba
jmp 0xadeb
movl $0x1, %ebx
testb %r15b, %r15b
jne 0xae2f
callq 0x83c0
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cltq
shlq $0xa, %rax
leaq 0x29b23(%rip), %rcx     # 0x34940
leaq (%rax,%rcx), %rdi
addq $0x1404, %rdi           # imm = 0x1404
xorl %eax, %eax
callq 0x1316b
movl %ebx, %eax
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdKick
int _cmdKick( char *arg, char *arg2, char *passThru ) 
{ 
    int vendorType;
    int errCode = 0;
    char steamID[256];

    // Lookup Steam, EPIC or WinGDK ID from player name 'arg'
    //
    strlcpy( steamID, rosterLookupSteamIDFromPartialName( arg, 3 ), 256 );

    if ( 0 != strlen( steamID ) ) {

        vendorType = rosterIsValidGUID( steamID );

        switch( vendorType ) {
        case 1:   // Steam:  kick by ID for definitive target
            errCode = apiKick( steamID, _reason( passThru ) );
            logPrintf( LOG_LEVEL_WARN, "picladmin", "Steam Admin kick by ID  ::%s::", steamID );
            break;
        case 2: case 3:  // EPIC/WinGDK:  kick by name due to NWI bug (SS 1.13 and prior)
            errCode |= apiKick( arg, _reason( passThru ) );
            logPrintf( LOG_LEVEL_WARN, "picladmin", "EPIC Admin kick by Name ::%s::", arg );
            break;
        default:  // fault
            logPrintf( LOG_LEVEL_WARN, "picladmin", "Failed to kick ::%s::", passThru );
            errCode = 1;
            break;
        }
    }

    if ( errCode != 0) _stddResp( errCode );   // ok or error message to game

    return errCode; 
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdx, %r15
movq %rdi, %r14
movl $0x3, %esi
callq 0x14bc5
movq %rsp, %rbx
movl $0x100, %edx            # imm = 0x100
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf038
cmpb $0x0, (%rbx)
je 0xaeac
movq %rsp, %rdi
callq 0x1403c
leal -0x2(%rax), %ecx
cmpl $0x2, %ecx
jae 0xaeb0
movq %r15, %rdi
callq 0xa93b
leaq 0x530de(%rip), %rsi     # 0x5df70
movq %r14, %rdi
callq 0x13412
movl %eax, %ebx
leaq 0x10de4(%rip), %rsi     # 0x1bc87
leaq 0x10e3b(%rip), %rdx     # 0x1bce5
jmp 0xaedf
xorl %ebx, %ebx
jmp 0xaf0b
cmpl $0x1, %eax
jne 0xaee9
movq %r15, %rdi
callq 0xa93b
leaq 0x530ac(%rip), %rsi     # 0x5df70
movq %rsp, %r14
movq %r14, %rdi
callq 0x13412
movl %eax, %ebx
leaq 0x10daf(%rip), %rsi     # 0x1bc87
leaq 0x10de7(%rip), %rdx     # 0x1bcc6
movl $0x1, %edi
movq %r14, %rcx
jmp 0xaf04
leaq 0x10d97(%rip), %rsi     # 0x1bc87
leaq 0x10e0d(%rip), %rdx     # 0x1bd04
movl $0x1, %ebx
movl $0x1, %edi
movq %r15, %rcx
xorl %eax, %eax
callq 0x1a227
testl %ebx, %ebx
je 0xaf16
movl %ebx, %edi
callq 0x9be3
movl %ebx, %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/picladmin.c
// Function: cmdGameModeProperty
int _cmdGameModeProperty( char *arg, char *arg2, char *passThru ) 
{ 
    int  errCode = 1;
    char statusIn[256], cmdOut[256];

    // snprintf( cmdOut, 256, "kick %s", steamID );
    if ( 0 != strlen( arg ) ) {
        if ( 0 != strlen( arg2 ) ) {
            apiGameModePropertySet( arg, arg2 );
        }
        strlcpy( statusIn, apiGameModePropertyGet( arg ), 256 );
        if ( 0 == strlen( statusIn ) ) 
           apiSaySys( "GMP Readback Error");
        else {
           if ( snprintf( cmdOut, 255, "'%s' is set to '%s'", arg, statusIn ) < 0 )
               logPrintf( LOG_LEVEL_WARN, "picladmin", "Overflow warning at _cmdGameModeProperty" );
           apiSaySys( cmdOut );
           errCode = 0;
        }
    }
    else {
        _stddResp( 1 );   // format error message to game
    }
    return errCode;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
cmpb $0x0, (%rdi)
je 0xafb2
movq %rdi, %r15
cmpb $0x0, (%rsi)
je 0xaf46
movq %r15, %rdi
callq 0x12e70
movq %r15, %rdi
callq 0x12e75
movq %rsp, %rbx
movl $0x100, %edx            # imm = 0x100
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf038
cmpb $0x0, (%rbx)
je 0xaff1
leaq 0x10dbc(%rip), %rdx     # 0x1bd2d
xorl %ebx, %ebx
leaq 0x100(%rsp), %r14
movq %rsp, %r8
movl $0xff, %esi
movq %r14, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x8190
testl %eax, %eax
jns 0xaffd
leaq 0x10cec(%rip), %rsi     # 0x1bc87
leaq 0x10d9f(%rip), %rdx     # 0x1bd41
xorl %ebx, %ebx
movl $0x1, %edi
xorl %eax, %eax
callq 0x1a227
jmp 0xaffd
callq 0x83c0
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
cltq
shlq $0xa, %rax
leaq 0x29961(%rip), %rcx     # 0x34940
leaq (%rax,%rcx), %r14
addq $0x1404, %r14           # imm = 0x1404
movl $0x1, %ebx
jmp 0xaffd
movl $0x1, %ebx
leaq 0x10d1d(%rip), %r14     # 0x1bd1a
movq %r14, %rdi
xorl %eax, %eax
callq 0x1316b
movl %ebx, %eax
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq