// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/pit001.c
// Function: pit001InstallPlugin
int pit001InstallPlugin( void )
{
    // Read the plugin-specific variables from the .cfg file 
    // 
    pit001InitConfig();

    // if plugin is disabled in the .cfg file then do not activate
    //
    if ( pit001Config.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,           pit001ClientAddCB );
    eventsRegister( SISSM_EV_CLIENT_DEL,           pit001ClientDelCB );
    eventsRegister( SISSM_EV_INIT,                 pit001InitCB );
    eventsRegister( SISSM_EV_RESTART,              pit001RestartCB );
    eventsRegister( SISSM_EV_MAPCHANGE,            pit001MapChangeCB );
    eventsRegister( SISSM_EV_GAME_START,           pit001GameStartCB );
    eventsRegister( SISSM_EV_GAME_END,             pit001GameEndCB );
    eventsRegister( SISSM_EV_ROUND_START,          pit001RoundStartCB );
    eventsRegister( SISSM_EV_ROUND_END,            pit001RoundEndCB );
    eventsRegister( SISSM_EV_OBJECTIVE_CAPTURED,   pit001CapturedCB );
    eventsRegister( SISSM_EV_PERIODIC,             pit001PeriodicCB );
    eventsRegister( SISSM_EV_SHUTDOWN,             pit001ShutdownCB );
    eventsRegister( SISSM_EV_CLIENT_ADD_SYNTH,     pit001ClientSynthAddCB );
    eventsRegister( SISSM_EV_CLIENT_DEL_SYNTH,     pit001ClientSynthDelCB );
    eventsRegister( SISSM_EV_CHAT,                 pit001ChatCB     );
    eventsRegister( SISSM_EV_SIGTERM,              pit001SigtermCB  );
    eventsRegister( SISSM_EV_WINLOSE,              pit001WinLose );
    eventsRegister( SISSM_EV_TRAVEL,               pit001Travel );
    eventsRegister( SISSM_EV_SESSIONLOG,           pit001SessionLog );
    eventsRegister( SISSM_EV_OBJECT_SYNTH,         pit001ObjectSynth );

    return 0;
}

// Assembly:
pushq %rax
callq 0x18438
cmpl $0x0, 0x21be89(%rip)    # 0x234a10
je 0x18cde
leaq -0x683(%rip), %rsi      # 0x18511
movl $0x3, %edi
callq 0xd40c
leaq -0x5b0(%rip), %rsi      # 0x185f5
movl $0x4, %edi
callq 0xd40c
leaq -0x54c(%rip), %rsi      # 0x1866a
movl $0x1, %edi
callq 0xd40c
leaq -0x53b(%rip), %rsi      # 0x1868c
movl $0x2, %edi
callq 0xd40c
leaq -0x52a(%rip), %rsi      # 0x186ae
movl $0x5, %edi
callq 0xd40c
leaq -0x4d1(%rip), %rsi      # 0x18718
movl $0x6, %edi
callq 0xd40c
leaq -0x453(%rip), %rsi      # 0x187a7
movl $0x7, %edi
callq 0xd40c
leaq -0x434(%rip), %rsi      # 0x187d7
movl $0x8, %edi
callq 0xd40c
leaq -0x415(%rip), %rsi      # 0x18807
movl $0x9, %edi
callq 0xd40c
leaq -0x3f6(%rip), %rsi      # 0x18837
movl $0xa, %edi
callq 0xd40c
leaq -0x3b9(%rip), %rsi      # 0x18885
movl $0xb, %edi
callq 0xd40c
leaq -0x3a8(%rip), %rsi      # 0x188a7
movl $0xe, %edi
callq 0xd40c
leaq -0x32e(%rip), %rsi      # 0x18932
movl $0xc, %edi
callq 0xd40c
leaq -0x3a8(%rip), %rsi      # 0x188c9
movl $0xd, %edi
callq 0xd40c
leaq -0x2e7(%rip), %rsi      # 0x1899b
xorl %edi, %edi
callq 0xd40c
leaq -0x2d3(%rip), %rsi      # 0x189bd
movl $0xf, %edi
callq 0xd40c
leaq -0x2c5(%rip), %rsi      # 0x189dc
movl $0x10, %edi
callq 0xd40c
leaq -0x238(%rip), %rsi      # 0x18a7a
movl $0x11, %edi
callq 0xd40c
leaq -0x1d6(%rip), %rsi      # 0x18aed
movl $0x12, %edi
callq 0xd40c
leaq -0x1ac(%rip), %rsi      # 0x18b28
movl $0x13, %edi
callq 0xd40c
xorl %eax, %eax
popq %rcx
retq
nop