// File: /workspace/github_c_makefile_star2_O1/schroeder-lvb[P]sissm/src/pitacnomic.c
// Function: pitacnomicInstallPlugin
int pitacnomicInstallPlugin( void )
{
    // Read the plugin-specific variables from the .cfg file 
    // 
    pitacnomicInitConfig();

    // if plugin is disabled in the .cfg file then do not activate
    //
    if ( pitacnomicConfig.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,           pitacnomicClientAddCB );
    eventsRegister( SISSM_EV_CLIENT_DEL,           pitacnomicClientDelCB );
    eventsRegister( SISSM_EV_INIT,                 pitacnomicInitCB );
    eventsRegister( SISSM_EV_RESTART,              pitacnomicRestartCB );
    eventsRegister( SISSM_EV_MAPCHANGE,            pitacnomicMapChangeCB );
    eventsRegister( SISSM_EV_GAME_START,           pitacnomicGameStartCB );
    eventsRegister( SISSM_EV_GAME_END,             pitacnomicGameEndCB );
    eventsRegister( SISSM_EV_ROUND_START,          pitacnomicRoundStartCB );
    eventsRegister( SISSM_EV_ROUND_END,            pitacnomicRoundEndCB );
    eventsRegister( SISSM_EV_OBJECTIVE_CAPTURED,   pitacnomicCapturedCB );
    eventsRegister( SISSM_EV_PERIODIC,             pitacnomicPeriodicCB );
    eventsRegister( SISSM_EV_SHUTDOWN,             pitacnomicShutdownCB );
    eventsRegister( SISSM_EV_CLIENT_ADD_SYNTH,     pitacnomicClientSynthAddCB );
    eventsRegister( SISSM_EV_CLIENT_DEL_SYNTH,     pitacnomicClientSynthDelCB );
    eventsRegister( SISSM_EV_CHAT,                 pitacnomicChatCB     );
    eventsRegister( SISSM_EV_SIGTERM,              pitacnomicSigtermCB  );
    eventsRegister( SISSM_EV_WINLOSE,              pitacnomicWinLose );
    eventsRegister( SISSM_EV_TRAVEL,               pitacnomicTravel );
    eventsRegister( SISSM_EV_SESSIONLOG,           pitacnomicSessionLog );
    eventsRegister( SISSM_EV_OBJECT_SYNTH,         pitacnomicObjectSynth );

    return 0;
}

// Assembly:
pushq %rax
callq 0xcc8c
cmpl $0x0, 0x5115a(%rip)     # 0x5e070
je 0xd06d
leaq -0x1af(%rip), %rsi      # 0xcd74
movl $0x3, %edi
callq 0xd08c
leaq -0x1bd(%rip), %rsi      # 0xcd77
movl $0x4, %edi
callq 0xd08c
leaq -0x1cb(%rip), %rsi      # 0xcd7a
movl $0x1, %edi
callq 0xd08c
leaq -0x1d9(%rip), %rsi      # 0xcd7d
movl $0x2, %edi
callq 0xd08c
leaq -0x1e7(%rip), %rsi      # 0xcd80
movl $0x5, %edi
callq 0xd08c
leaq -0x1f5(%rip), %rsi      # 0xcd83
movl $0x6, %edi
callq 0xd08c
leaq -0x203(%rip), %rsi      # 0xcd86
movl $0x7, %edi
callq 0xd08c
leaq -0x211(%rip), %rsi      # 0xcd89
movl $0x8, %edi
callq 0xd08c
leaq -0x21f(%rip), %rsi      # 0xcd8c
movl $0x9, %edi
callq 0xd08c
leaq -0x22d(%rip), %rsi      # 0xcd8f
movl $0xa, %edi
callq 0xd08c
leaq -0x23b(%rip), %rsi      # 0xcd92
movl $0xb, %edi
callq 0xd08c
leaq -0x249(%rip), %rsi      # 0xcd95
movl $0xe, %edi
callq 0xd08c
leaq -0x254(%rip), %rsi      # 0xcd9b
movl $0xc, %edi
callq 0xd08c
leaq -0x268(%rip), %rsi      # 0xcd98
movl $0xd, %edi
callq 0xd08c
leaq -0x273(%rip), %rsi      # 0xcd9e
xorl %edi, %edi
callq 0xd08c
leaq -0x125(%rip), %rsi      # 0xcefa
movl $0xf, %edi
callq 0xd08c
leaq -0x133(%rip), %rsi      # 0xcefd
movl $0x10, %edi
callq 0xd08c
leaq -0x141(%rip), %rsi      # 0xcf00
movl $0x11, %edi
callq 0xd08c
leaq -0x14f(%rip), %rsi      # 0xcf03
movl $0x12, %edi
callq 0xd08c
leaq -0x15d(%rip), %rsi      # 0xcf06
movl $0x13, %edi
callq 0xd08c
xorl %eax, %eax
popq %rcx
retq
nopl (%rax)