// File: /workspace/github_c_makefile_star2_O1/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 0x1827c
cmpl $0x0, 0x21c045(%rip)    # 0x234a10
je 0x18b22
leaq -0x683(%rip), %rsi      # 0x18355
movl $0x3, %edi
callq 0xd08c
leaq -0x5b0(%rip), %rsi      # 0x18439
movl $0x4, %edi
callq 0xd08c
leaq -0x54c(%rip), %rsi      # 0x184ae
movl $0x1, %edi
callq 0xd08c
leaq -0x53b(%rip), %rsi      # 0x184d0
movl $0x2, %edi
callq 0xd08c
leaq -0x52a(%rip), %rsi      # 0x184f2
movl $0x5, %edi
callq 0xd08c
leaq -0x4d1(%rip), %rsi      # 0x1855c
movl $0x6, %edi
callq 0xd08c
leaq -0x453(%rip), %rsi      # 0x185eb
movl $0x7, %edi
callq 0xd08c
leaq -0x434(%rip), %rsi      # 0x1861b
movl $0x8, %edi
callq 0xd08c
leaq -0x415(%rip), %rsi      # 0x1864b
movl $0x9, %edi
callq 0xd08c
leaq -0x3f6(%rip), %rsi      # 0x1867b
movl $0xa, %edi
callq 0xd08c
leaq -0x3b9(%rip), %rsi      # 0x186c9
movl $0xb, %edi
callq 0xd08c
leaq -0x3a8(%rip), %rsi      # 0x186eb
movl $0xe, %edi
callq 0xd08c
leaq -0x32e(%rip), %rsi      # 0x18776
movl $0xc, %edi
callq 0xd08c
leaq -0x3a8(%rip), %rsi      # 0x1870d
movl $0xd, %edi
callq 0xd08c
leaq -0x2e7(%rip), %rsi      # 0x187df
xorl %edi, %edi
callq 0xd08c
leaq -0x2d3(%rip), %rsi      # 0x18801
movl $0xf, %edi
callq 0xd08c
leaq -0x2c5(%rip), %rsi      # 0x18820
movl $0x10, %edi
callq 0xd08c
leaq -0x238(%rip), %rsi      # 0x188be
movl $0x11, %edi
callq 0xd08c
leaq -0x1d6(%rip), %rsi      # 0x18931
movl $0x12, %edi
callq 0xd08c
leaq -0x1ac(%rip), %rsi      # 0x1896c
movl $0x13, %edi
callq 0xd08c
xorl %eax, %eax
popq %rcx
retq
nop