// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x10, %rsp
callq 0x1f0b0
cmpl $0x0, 0x21cfcc(%rip)    # 0x23ca10
jne 0x1fa52
movl $0x0, -0x4(%rbp)
jmp 0x1fbaa
movl $0x3, %edi
leaq -0x8ae(%rip), %rsi      # 0x1f1b0
callq 0xee50
movl $0x4, %edi
leaq -0x7cf(%rip), %rsi      # 0x1f2a0
callq 0xee50
movl $0x1, %edi
leaq -0x750(%rip), %rsi      # 0x1f330
callq 0xee50
movl $0x2, %edi
leaq -0x721(%rip), %rsi      # 0x1f370
callq 0xee50
movl $0x5, %edi
leaq -0x6f2(%rip), %rsi      # 0x1f3b0
callq 0xee50
movl $0x6, %edi
leaq -0x693(%rip), %rsi      # 0x1f420
callq 0xee50
movl $0x7, %edi
leaq -0x5f4(%rip), %rsi      # 0x1f4d0
callq 0xee50
movl $0x8, %edi
leaq -0x5c5(%rip), %rsi      # 0x1f510
callq 0xee50
movl $0x9, %edi
leaq -0x586(%rip), %rsi      # 0x1f560
callq 0xee50
movl $0xa, %edi
leaq -0x557(%rip), %rsi      # 0x1f5a0
callq 0xee50
movl $0xb, %edi
leaq -0x4f8(%rip), %rsi      # 0x1f610
callq 0xee50
movl $0xe, %edi
leaq -0x4c9(%rip), %rsi      # 0x1f650
callq 0xee50
movl $0xc, %edi
leaq -0x41a(%rip), %rsi      # 0x1f710
callq 0xee50
movl $0xd, %edi
leaq -0x4ab(%rip), %rsi      # 0x1f690
callq 0xee50
xorl %edi, %edi
leaq -0x3b9(%rip), %rsi      # 0x1f790
callq 0xee50
movl $0xf, %edi
leaq -0x38a(%rip), %rsi      # 0x1f7d0
callq 0xee50
movl $0x10, %edi
leaq -0x36b(%rip), %rsi      # 0x1f800
callq 0xee50
movl $0x11, %edi
leaq -0x28c(%rip), %rsi      # 0x1f8f0
callq 0xee50
movl $0x12, %edi
leaq -0x20d(%rip), %rsi      # 0x1f980
callq 0xee50
movl $0x13, %edi
leaq -0x1ce(%rip), %rsi      # 0x1f9d0
callq 0xee50
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)