// File: /workspace/github_c_makefile_star2_O0/schroeder-lvb[P]sissm/src/piantirush.c
// Function: piantirushChatCB
int piantirushChatCB( char *strIn )
{
    char clientID[256], chatLine[256];
    int isQualified = 0, errCode;

    if ( piantirushConfig.autoKickEarlyDestruction ) {
        if ( NULL != strstr( rosterGetObjectiveType(), "WeaponCache" ))  {
            if ( 0 == (errCode = rosterParsePlayerChat( strIn, 256, clientID, chatLine ))) {
                if ( NULL != strstr( piantirushConfig.earlyDestroyPlayerRequest, chatLine )) {

                    // check if this player is qualified to call this command 
                    //
                    isQualified  = apiIsPlayerAliveByGUID( clientID );
                    isQualified |= apiAuthIsAttribute( clientID, "deadcmdr" );
                    isQualified |= apiIsHotRestart();
                    if ( 2 != (int) strlen( chatLine )) isQualified = 0;
                    if ( isQualified ) 
                        alarmReset( rPtr, 2 );        // give answer 2 seconds later for cosmetics 
                }
            }
        }
    }

    if ( piantirushConfig.autoKickEarlyBreach ) {
        if ( NULL != strstr( rosterGetObjectiveType(), "Captur" ))  {
            if ( 0 == (errCode = rosterParsePlayerChat( strIn, 256, clientID, chatLine ))) {
                if ( NULL != strstr( piantirushConfig.earlyBreachPlayerRequest, chatLine )) {
 
                    // check if this player is qualified to call this command 
                    //
                    isQualified  = apiIsPlayerAliveByGUID( clientID );
                    isQualified |= apiAuthIsAttribute( clientID, "deadcmdr" );
                    isQualified |= apiIsHotRestart();
                    if ( 2 != (int) strlen( chatLine )) isQualified = 0;

                    if ( isQualified )
                        alarmReset( bPtr, 2 );        // give answer 2 seconds later for cosmetics  
                }
            }
        }
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movq %rdi, -0x8(%rbp)
movl $0x0, -0x214(%rbp)
cmpl $0x0, 0x205568(%rip)    # 0x2224b8
je 0x1d04f
callq 0x193d0
movq %rax, %rdi
leaq 0x9be6(%rip), %rsi      # 0x26b4b
callq 0x8390
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
je 0x1d04d
movq -0x8(%rbp), %rdi
leaq -0x110(%rbp), %rdx
leaq -0x210(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
callq 0x1ae70
movl %eax, %ecx
movl %ecx, -0x218(%rbp)
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x1d04b
leaq -0x210(%rbp), %rsi
leaq 0x2028ec(%rip), %rdi    # 0x21f8a0
addq $0x3c20, %rdi           # imm = 0x3C20
callq 0x8390
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
je 0x1d049
leaq -0x110(%rbp), %rdi
callq 0x15c10
movl %eax, -0x214(%rbp)
leaq -0x110(%rbp), %rdi
leaq 0x782a(%rip), %rsi      # 0x24814
callq 0x185c0
orl -0x214(%rbp), %eax
movl %eax, -0x214(%rbp)
callq 0x19090
orl -0x214(%rbp), %eax
movl %eax, -0x214(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x8110
movl %eax, %ecx
movl $0x2, %eax
cmpl %ecx, %eax
je 0x1d02d
movl $0x0, -0x214(%rbp)
cmpl $0x0, -0x214(%rbp)
je 0x1d047
movq 0x20ae33(%rip), %rdi    # 0x227e70
movl $0x2, %esi
callq 0x12a40
jmp 0x1d049
jmp 0x1d04b
jmp 0x1d04d
jmp 0x1d04f
cmpl $0x0, 0x206872(%rip)    # 0x2238c8
je 0x1d155
callq 0x193d0
movq %rax, %rdi
leaq 0x9aec(%rip), %rsi      # 0x26b57
callq 0x8390
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
je 0x1d153
movq -0x8(%rbp), %rdi
leaq -0x110(%rbp), %rdx
leaq -0x210(%rbp), %rcx
movl $0x100, %esi            # imm = 0x100
callq 0x1ae70
movl %eax, %ecx
movl %ecx, -0x218(%rbp)
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x1d151
leaq -0x210(%rbp), %rsi
leaq 0x2027e6(%rip), %rdi    # 0x21f8a0
addq $0x4838, %rdi           # imm = 0x4838
callq 0x8390
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
je 0x1d14f
leaq -0x110(%rbp), %rdi
callq 0x15c10
movl %eax, -0x214(%rbp)
leaq -0x110(%rbp), %rdi
leaq 0x7724(%rip), %rsi      # 0x24814
callq 0x185c0
orl -0x214(%rbp), %eax
movl %eax, -0x214(%rbp)
callq 0x19090
orl -0x214(%rbp), %eax
movl %eax, -0x214(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x8110
movl %eax, %ecx
movl $0x2, %eax
cmpl %ecx, %eax
je 0x1d133
movl $0x0, -0x214(%rbp)
cmpl $0x0, -0x214(%rbp)
je 0x1d14d
movq 0x20ad35(%rip), %rdi    # 0x227e78
movl $0x2, %esi
callq 0x12a40
jmp 0x1d14f
jmp 0x1d151
jmp 0x1d153
jmp 0x1d155
xorl %eax, %eax
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq