// File: /workspace/github_c_makefile_star2_O3/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 0x1a5a0
cmpl $0x0, 0x229ff1(%rip)    # 0x244ce0
je 0x1ae46
leaq -0x683(%rip), %rsi      # 0x1a679
movl $0x3, %edi
callq 0xd40c
leaq -0x5b0(%rip), %rsi      # 0x1a75d
movl $0x4, %edi
callq 0xd40c
leaq -0x54c(%rip), %rsi      # 0x1a7d2
movl $0x1, %edi
callq 0xd40c
leaq -0x53b(%rip), %rsi      # 0x1a7f4
movl $0x2, %edi
callq 0xd40c
leaq -0x52a(%rip), %rsi      # 0x1a816
movl $0x5, %edi
callq 0xd40c
leaq -0x4d1(%rip), %rsi      # 0x1a880
movl $0x6, %edi
callq 0xd40c
leaq -0x453(%rip), %rsi      # 0x1a90f
movl $0x7, %edi
callq 0xd40c
leaq -0x434(%rip), %rsi      # 0x1a93f
movl $0x8, %edi
callq 0xd40c
leaq -0x415(%rip), %rsi      # 0x1a96f
movl $0x9, %edi
callq 0xd40c
leaq -0x3f6(%rip), %rsi      # 0x1a99f
movl $0xa, %edi
callq 0xd40c
leaq -0x3b9(%rip), %rsi      # 0x1a9ed
movl $0xb, %edi
callq 0xd40c
leaq -0x3a8(%rip), %rsi      # 0x1aa0f
movl $0xe, %edi
callq 0xd40c
leaq -0x32e(%rip), %rsi      # 0x1aa9a
movl $0xc, %edi
callq 0xd40c
leaq -0x3a8(%rip), %rsi      # 0x1aa31
movl $0xd, %edi
callq 0xd40c
leaq -0x2e7(%rip), %rsi      # 0x1ab03
xorl %edi, %edi
callq 0xd40c
leaq -0x2d3(%rip), %rsi      # 0x1ab25
movl $0xf, %edi
callq 0xd40c
leaq -0x2c5(%rip), %rsi      # 0x1ab44
movl $0x10, %edi
callq 0xd40c
leaq -0x238(%rip), %rsi      # 0x1abe2
movl $0x11, %edi
callq 0xd40c
leaq -0x1d6(%rip), %rsi      # 0x1ac55
movl $0x12, %edi
callq 0xd40c
leaq -0x1ac(%rip), %rsi      # 0x1ac90
movl $0x13, %edi
callq 0xd40c
xorl %eax, %eax
popq %rcx
retq