// File: /workspace/github_c_makefile_star2_O0/schroeder-lvb[P]sissm/src/piantirush.c
// Function: piantirushObjTouchCB
int piantirushObjTouchCB( char *strIn )
{
    char *w, *n, m[64];
    char charID[64], tmpCharID[64], playerName[64]; 

    // First check if the time is within the territory  protection window zone (i.e., "too early")
    //
    if ( alarmStatus( tPtr ) > 5 ) {
        //  Get charcter ID
        //
        if ( NULL != (w = strstr( strIn, "BP_Character_Player" ))  ) {
            strlcpy( tmpCharID, w, 64 );
            if ( NULL != (n = getWord( tmpCharID, 0, ". " ) )) {
                strlcpy( charID, n, 64 );
                if ( NULL != strstr( strIn, rosterGetObjective() )) {
                    // Convert Character ID to player Name
                    //
                    strlcpy(m, apiCharacterToName( charID ), 64 );
                    if ( 0 != strlen( m )) {
                        strlcpy( playerName, m, 64 );

                        if ( (piantirushConfig.earlyBreachShow) && ( kickArmed2 && kickArmed )) {
                            _localSayThrottled( "'%s' %s", playerName, piantirushConfig.earlyBreachWarn );
                        }

                        // call the cap-rush algo submodule here
                        //
                        _capRusherEnterZone( charID, playerName );
                    }
                    else {
                        logPrintf(LOG_LEVEL_DEBUG, "piantirush", "**Internal error - unable to match char to name ::%s::", charID );
                    }
                }
            }
        } 
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
movq 0x20acda(%rip), %rdi    # 0x227e50
callq 0x12aa0
cmpq $0x5, %rax
jle 0x1d2f4
movq -0x8(%rbp), %rdi
leaq 0x8e52(%rip), %rsi      # 0x25fe2
callq 0x8390
movq %rax, %rcx
movq %rcx, -0x10(%rbp)
xorl %eax, %eax
cmpq %rcx, %rax
je 0x1d2f2
leaq -0xe0(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x40, %edx
callq 0x11bc0
leaq -0xe0(%rbp), %rdi
xorl %esi, %esi
leaq 0x9ab8(%rip), %rdx      # 0x26c84
callq 0x122d0
movq %rax, %rcx
movq %rcx, -0x18(%rbp)
xorl %eax, %eax
cmpq %rcx, %rax
je 0x1d2f0
leaq -0xa0(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl $0x40, %edx
callq 0x11bc0
movq -0x8(%rbp), %rax
movq %rax, -0x128(%rbp)
callq 0x193c0
movq -0x128(%rbp), %rdi
movq %rax, %rsi
callq 0x8390
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
je 0x1d2ee
leaq -0x60(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x15b30
movq -0x130(%rbp), %rdi
movq %rax, %rsi
movl $0x40, %edx
callq 0x11bc0
leaq -0x60(%rbp), %rdi
callq 0x8110
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
je 0x1d2cb
leaq -0x120(%rbp), %rdi
leaq -0x60(%rbp), %rsi
movl $0x40, %edx
callq 0x11bc0
cmpl $0x0, 0x206645(%rip)    # 0x2238c4
je 0x1d2b6
cmpl $0x0, 0x14c5c(%rip)     # 0x31ee4
je 0x1d2b6
cmpl $0x0, 0x20abaf(%rip)    # 0x227e40
je 0x1d2b6
leaq -0x120(%rbp), %rsi
leaq 0x99e6(%rip), %rdi      # 0x26c87
leaq 0x2025f8(%rip), %rdx    # 0x21f8a0
addq $0x5438, %rdx           # imm = 0x5438
movb $0x0, %al
callq 0x1d300
leaq -0xa0(%rbp), %rdi
leaq -0x120(%rbp), %rsi
callq 0x1d530
jmp 0x1d2ec
leaq -0xa0(%rbp), %rcx
movl $0x3, %edi
leaq 0x9814(%rip), %rsi      # 0x26af2
leaq 0x99aa(%rip), %rdx      # 0x26c8f
movb $0x0, %al
callq 0x21bf0
jmp 0x1d2ee
jmp 0x1d2f0
jmp 0x1d2f2
jmp 0x1d2f4
xorl %eax, %eax
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nop