// File: /workspace/github_c_makefile_star2_O0/schroeder-lvb[P]sissm/src/pigreetings.c
// Function: pigreetingsClientSynthAddCB
int pigreetingsClientSynthAddCB( char *strIn )
{
    char playerName[256], playerGUID[256], playerIP[256];

    rosterParsePlayerSynthConn( strIn, 256, playerName, playerGUID, playerIP );
    if (!_isIncognito( playerGUID )) {
        if ( (apiTimeGet() - timeRestarted) > PIGREETINGS_RESTART_LOCKOUT_SEC ) {   // check if we are restarting
       
           if  ( apiIsAdmin( playerGUID ) && (0 != strlen( pigreetingsConfig.connectedAsAdmin)) ) 
               apiSay( "%s%s%s %s [%d]", 
                    pigreetingsConfig.connectedAsAdminPrefix,
                    playerName, 
                    pigreetingsConfig.connectedAsAdminPostfix,
                    pigreetingsConfig.connectedAsAdmin, apiPlayersGetCount() );
           else if ( 0 != strlen( pigreetingsConfig.connected ))
               apiSay( "%s%s%s %s [%d]", 
                    pigreetingsConfig.connectedPrefix,
                    playerName, 
                    pigreetingsConfig.connectedPostfix,
                    pigreetingsConfig.connected, apiPlayersGetCount() );
        }
        logPrintf( LOG_LEVEL_CRITICAL, "pigreetings", "SynAdd Client ::%s::%s::%s::", playerName, playerGUID, playerIP );
    }
    else {
        logPrintf( LOG_LEVEL_CRITICAL, "pigreetings", "SynAdd Client [incognito] ::%s::%s::%s::", playerName, playerGUID, playerIP );
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x320, %rsp            # imm = 0x320
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x110(%rbp), %rdx
leaq -0x210(%rbp), %rcx
leaq -0x310(%rbp), %r8
movl $0x100, %esi            # imm = 0x100
callq 0x1aa80
leaq -0x210(%rbp), %rdi
callq 0x20600
cmpl $0x0, %eax
jne 0x20808
callq 0x150c0
subq 0x22614d(%rip), %rax    # 0x246840
cmpq $0x1e, %rax
jbe 0x207da
leaq -0x210(%rbp), %rdi
callq 0x187a0
cmpl $0x0, %eax
je 0x20773
leaq 0x223527(%rip), %rdi    # 0x243c3c
callq 0x8110
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
je 0x20773
leaq -0x110(%rbp), %rax
movq %rax, -0x318(%rbp)
callq 0x17fe0
movq -0x318(%rbp), %rdx
movl %eax, %r9d
leaq 0x7bfb(%rip), %rdi      # 0x28343
leaq 0x21d4d1(%rip), %r8     # 0x23dc20
movq %r8, %rsi
addq $0x701c, %rsi           # imm = 0x701C
movq %r8, %rcx
addq $0x741c, %rcx           # imm = 0x741C
addq $0x601c, %r8            # imm = 0x601C
movb $0x0, %al
callq 0x178d0
jmp 0x207d8
leaq 0x2230c2(%rip), %rdi    # 0x24383c
callq 0x8110
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
je 0x207d6
leaq -0x110(%rbp), %rax
movq %rax, -0x320(%rbp)
callq 0x17fe0
movq -0x320(%rbp), %rdx
movl %eax, %r9d
leaq 0x7b96(%rip), %rdi      # 0x28343
leaq 0x21d46c(%rip), %r8     # 0x23dc20
movq %r8, %rsi
addq $0x681c, %rsi           # imm = 0x681C
movq %r8, %rcx
addq $0x6c1c, %rcx           # imm = 0x6C1C
addq $0x5c1c, %r8            # imm = 0x5C1C
movb $0x0, %al
callq 0x178d0
jmp 0x207d8
jmp 0x207da
leaq -0x110(%rbp), %rcx
leaq -0x210(%rbp), %r8
leaq -0x310(%rbp), %r9
xorl %edi, %edi
leaq 0x7b14(%rip), %rsi      # 0x2830c
leaq 0x7b68(%rip), %rdx      # 0x28367
movb $0x0, %al
callq 0x21bf0
jmp 0x20834
leaq -0x110(%rbp), %rcx
leaq -0x210(%rbp), %r8
leaq -0x310(%rbp), %r9
xorl %edi, %edi
leaq 0x7ae6(%rip), %rsi      # 0x2830c
leaq 0x7b57(%rip), %rdx      # 0x28384
movb $0x0, %al
callq 0x21bf0
xorl %eax, %eax
addq $0x320, %rsp            # imm = 0x320
popq %rbp
retq
nop