// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pistats.c
// Function: pistatsInstallPlugin
int pistatsInstallPlugin( void )
{
    // Read the plugin-specific variables from the .cfg file 
    // 
    pistatsInitConfig();

    // if plugin is disabled in the .cfg file then do not activate
    //
    if ( pistatsConfig.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,           pistatsClientAddCB );
    eventsRegister( SISSM_EV_CLIENT_DEL,           pistatsClientDelCB );
    eventsRegister( SISSM_EV_INIT,                 pistatsInitCB );
    eventsRegister( SISSM_EV_RESTART,              pistatsRestartCB );
    eventsRegister( SISSM_EV_MAPCHANGE,            pistatsMapChangeCB );
    eventsRegister( SISSM_EV_GAME_START,           pistatsGameStartCB );
    eventsRegister( SISSM_EV_GAME_END,             pistatsGameEndCB );
    eventsRegister( SISSM_EV_ROUND_START,          pistatsRoundStartCB );
    eventsRegister( SISSM_EV_ROUND_END,            pistatsRoundEndCB );
    eventsRegister( SISSM_EV_OBJECTIVE_CAPTURED,   pistatsCapturedCB );
    eventsRegister( SISSM_EV_PERIODIC,             pistatsPeriodicCB );
    eventsRegister( SISSM_EV_SHUTDOWN,             pistatsShutdownCB );
    eventsRegister( SISSM_EV_CLIENT_ADD_SYNTH,     pistatsClientSynthAddCB );
    eventsRegister( SISSM_EV_CLIENT_DEL_SYNTH,     pistatsClientSynthDelCB );
    eventsRegister( SISSM_EV_CHAT,                 pistatsChatCB     );
    eventsRegister( SISSM_EV_SIGTERM,              pistatsSigtermCB  );
    eventsRegister( SISSM_EV_WINLOSE,              pistatsWinLose );
    eventsRegister( SISSM_EV_TRAVEL,               pistatsTravel );
    eventsRegister( SISSM_EV_SESSIONLOG,           pistatsSessionLog );
    eventsRegister( SISSM_EV_OBJECT_SYNTH,         pistatsObjectSynth );

    return 0;
}

// Assembly:
pushq %rax
callq 0x1a3ec
cmpl $0x0, 0x22a1a5(%rip)    # 0x244ce0
je 0x1ac92
leaq -0x683(%rip), %rsi      # 0x1a4c5
movl $0x3, %edi
callq 0xd08c
leaq -0x5b0(%rip), %rsi      # 0x1a5a9
movl $0x4, %edi
callq 0xd08c
leaq -0x54c(%rip), %rsi      # 0x1a61e
movl $0x1, %edi
callq 0xd08c
leaq -0x53b(%rip), %rsi      # 0x1a640
movl $0x2, %edi
callq 0xd08c
leaq -0x52a(%rip), %rsi      # 0x1a662
movl $0x5, %edi
callq 0xd08c
leaq -0x4d1(%rip), %rsi      # 0x1a6cc
movl $0x6, %edi
callq 0xd08c
leaq -0x453(%rip), %rsi      # 0x1a75b
movl $0x7, %edi
callq 0xd08c
leaq -0x434(%rip), %rsi      # 0x1a78b
movl $0x8, %edi
callq 0xd08c
leaq -0x415(%rip), %rsi      # 0x1a7bb
movl $0x9, %edi
callq 0xd08c
leaq -0x3f6(%rip), %rsi      # 0x1a7eb
movl $0xa, %edi
callq 0xd08c
leaq -0x3b9(%rip), %rsi      # 0x1a839
movl $0xb, %edi
callq 0xd08c
leaq -0x3a8(%rip), %rsi      # 0x1a85b
movl $0xe, %edi
callq 0xd08c
leaq -0x32e(%rip), %rsi      # 0x1a8e6
movl $0xc, %edi
callq 0xd08c
leaq -0x3a8(%rip), %rsi      # 0x1a87d
movl $0xd, %edi
callq 0xd08c
leaq -0x2e7(%rip), %rsi      # 0x1a94f
xorl %edi, %edi
callq 0xd08c
leaq -0x2d3(%rip), %rsi      # 0x1a971
movl $0xf, %edi
callq 0xd08c
leaq -0x2c5(%rip), %rsi      # 0x1a990
movl $0x10, %edi
callq 0xd08c
leaq -0x238(%rip), %rsi      # 0x1aa2e
movl $0x11, %edi
callq 0xd08c
leaq -0x1d6(%rip), %rsi      # 0x1aaa1
movl $0x12, %edi
callq 0xd08c
leaq -0x1ac(%rip), %rsi      # 0x1aadc
movl $0x13, %edi
callq 0xd08c
xorl %eax, %eax
popq %rcx
retq