// File: /workspace/github_c_makefile_star2_O2/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 0x1738c
cmpl $0x0, 0x21cf73(%rip)    # 0x234a10
je 0x17bce
leaq -0x645(%rip), %rsi      # 0x17465
pushq $0x3
popq %rdi
callq 0xcba7
leaq -0x589(%rip), %rsi      # 0x17530
pushq $0x4
popq %rdi
callq 0xcba7
leaq -0x525(%rip), %rsi      # 0x175a3
pushq $0x1
popq %rdi
callq 0xcba7
leaq -0x514(%rip), %rsi      # 0x175c3
pushq $0x2
popq %rdi
callq 0xcba7
leaq -0x503(%rip), %rsi      # 0x175e3
pushq $0x5
popq %rdi
callq 0xcba7
leaq -0x4a9(%rip), %rsi      # 0x1764c
pushq $0x6
popq %rdi
callq 0xcba7
leaq -0x42b(%rip), %rsi      # 0x176d9
pushq $0x7
popq %rdi
callq 0xcba7
leaq -0x40c(%rip), %rsi      # 0x17707
pushq $0x8
popq %rdi
callq 0xcba7
leaq -0x3ed(%rip), %rsi      # 0x17735
pushq $0x9
popq %rdi
callq 0xcba7
leaq -0x3ce(%rip), %rsi      # 0x17763
pushq $0xa
popq %rdi
callq 0xcba7
leaq -0x391(%rip), %rsi      # 0x177af
pushq $0xb
popq %rdi
callq 0xcba7
leaq -0x380(%rip), %rsi      # 0x177cf
pushq $0xe
popq %rdi
callq 0xcba7
leaq -0x308(%rip), %rsi      # 0x17856
pushq $0xc
popq %rdi
callq 0xcba7
leaq -0x37e(%rip), %rsi      # 0x177ef
pushq $0xd
popq %rdi
callq 0xcba7
leaq -0x2bf(%rip), %rsi      # 0x178bd
xorl %edi, %edi
callq 0xcba7
leaq -0x2ad(%rip), %rsi      # 0x178dd
pushq $0xf
popq %rdi
callq 0xcba7
leaq -0x29f(%rip), %rsi      # 0x178fa
pushq $0x10
popq %rdi
callq 0xcba7
leaq -0x212(%rip), %rsi      # 0x17996
pushq $0x11
popq %rdi
callq 0xcba7
leaq -0x1b0(%rip), %rsi      # 0x17a07
pushq $0x12
popq %rdi
callq 0xcba7
leaq -0x186(%rip), %rsi      # 0x17a40
pushq $0x13
popq %rdi
callq 0xcba7
xorl %eax, %eax
popq %rcx
retq
nop