// File: /workspace/github_c_makefile_star2_O0/schroeder-lvb[P]sissm/src/api.c
// Function: apiInit
int apiInit( void )
{
    cfsPtr cP;
    char   myIP[API_LINE_STRING_MAX], myRconPassword[API_LINE_STRING_MAX];
    int    i, j, numMutators, myPort, mapsCount;
    char   serverName[API_LINE_STRING_MAX];
    char   mutListTemp1[CFS_FETCH_MAX], mutListTemp2[CFS_FETCH_MAX], *u;
    char   tmpStr[ API_MUT_MAXCHAR ];

    // Read the "sissm" systems configuration variables
    //
    cP = cfsCreate( sissmGetConfigPath() );

    myPort = (int) cfsFetchNum( cP, "sissm.RconPort", 27015 );            
    strlcpy( myIP, cfsFetchStr( cP, "sissm.RconIP", "127.0.0.1"), API_LINE_STRING_MAX );
    strlcpy( myRconPassword, cfsFetchStr( cP, "sissm.RconPassword", ""), API_LINE_STRING_MAX );
    // strlcpy( adminListFilePath, cfsFetchStr( cP, "sissm.adminListFilePath", "Admins.txt"), API_LINE_STRING_MAX );

    strlcpy( serverName, cfsFetchStr( cP, "sissm.ServerName", "Unknown Server" ), API_LINE_STRING_MAX );

    // read the Bad Words filename
    //
    strlcpy( badWordsFilePath, cfsFetchStr( cP, "sissm.badWordsFilePath", "" ), CFS_FETCH_MAX );

    // read the Mapcycle filepath
    //
    strlcpy( mapcycleFilePath, cfsFetchStr( cP, "sissm.mapcycleFilePath", "" ), CFS_FETCH_MAX );

    // read the Mutator lists allowed by this system
    //
    strlcpy( mutListTemp1, cfsFetchStr( cP, "sissm.MutatorsStock", "" ), CFS_FETCH_MAX );
    strlcpy( mutListTemp2, cfsFetchStr( cP, "sissm.MutatorsMods",  "" ), CFS_FETCH_MAX );
    strlcat( mutListTemp2, " ", CFS_FETCH_MAX );
    if (( strlen( mutListTemp2 ) + strlen( mutListTemp1 ) ) < CFS_FETCH_MAX )
        strlcat( mutListTemp2, mutListTemp1, CFS_FETCH_MAX );
    else
        logPrintf( LOG_LEVEL_CRITICAL, "api", "String overflow reading mutator list sissm.MutatorStock/Mods" );

    // parse the Mutator list into separate array element
    //
    j = 0;
    strclr( mutAllowedList[ 0 ] );
    while ( 1 == 1 ) {
        u = getWord( mutListTemp2, j, " ,=:\012\015" );
        if ( u == NULL )              break;
        if ( 0 == strlen( u ) )       break;
        strlcpy( mutAllowedList[ j ], u, API_MUT_MAXCHAR );
        strclr( mutAllowedList[ ++j ] );
        if ( j >= API_MUT_MAXLIST ) break;
    }
    j = 0;
    while ( 1 == 1 ) {
        if ( 0 == strlen( mutAllowedList[j] )) break;
        logPrintf( LOG_LEVEL_INFO, "api", "Mutator read %d ::%s::", j, mutAllowedList[j] );
        j++;
    }

    // create a sorted Mutator list by size of string (for lookup match priority) 
    //
    numMutators = j - 1;
    for ( j = 0; j<numMutators + 1; j++ ) {   // include one extra array w/ terminating ""
        strlcpy( mutAllowedListSorted[ j ], mutAllowedList[ j ], API_MUT_MAXCHAR );
    }
    for (j = 0; j<numMutators-1; j++ ) {
        for ( i = j+1; i<numMutators; i++ ) {
            if (  strlen( mutAllowedListSorted[i] ) > strlen( mutAllowedListSorted[j] ) ) {
                strlcpy( tmpStr, mutAllowedListSorted[i], API_MUT_MAXCHAR );
                strlcpy( mutAllowedListSorted[i], mutAllowedListSorted[j], API_MUT_MAXCHAR );
                strlcpy( mutAllowedListSorted[j], tmpStr, API_MUT_MAXCHAR );
            }
        }
    }
    j = 0;
    while ( 1 == 1 ) {
        if ( 0 == strlen( mutAllowedListSorted[j] )) break;
        logPrintf( LOG_LEVEL_INFO, "api", "Mutator sort %d ::%s::", j, mutAllowedListSorted[j] );
        j++;
    }

    // read the AUTH (permissions) data
    //
    apiInitAuth();

    // Used with Circleus' "Advanced Chat" mod
    //
    strlcpy( removeCodes, cfsFetchStr( cP, "sissm.removeCodes", ""), API_LINE_STRING_MAX );
    strlcpy( sayPrefix,   cfsFetchStr( cP, "sissm.sayPrefix",  ""),  API_LINE_STRING_MAX );
    strlcpy( sayPostfix,  cfsFetchStr( cP, "sissm.sayPostfix", ""),  API_LINE_STRING_MAX );

#if FINALCOUNTER_REDUCE
    // Checkpoint/Hardcorecheckpoint Crash Protection Limiter 
    //
    maxBotsCounterAttack = (int) cfsFetchNum( cP, "sissm.MaxBotsCounterAttack", 30.0 ); 
    finalCacheBotQuotaMultiplier = (double) cfsFetchNum( cP, "sissm.FinalCacheBotQuotaMultiplier", 1.2 );
#endif

    //  Close the configuration file reader
    //
    cfsDestroy( cP );

    // Set map to unknown
    //
    rosterSetMapName( "Unknown" );

    // Initialize the RCON TCP/IP interface
    //
    _rPtr = rdrvInit( myIP, myPort, myRconPassword );

    // Setup callbacks for player entering and leaving
    // 
    eventsRegister( SISSM_EV_CLIENT_ADD,  _apiPlayerConnectedCB );
    eventsRegister( SISSM_EV_CLIENT_DEL,  _apiPlayerDisconnectedCB );
    eventsRegister( SISSM_EV_MAPCHANGE,   _apiMapChangeCB );
    eventsRegister( SISSM_EV_TRAVEL,      _apiTravelCB );
    eventsRegister( SISSM_EV_SESSIONLOG,  _apiSessionLogCB );
    eventsRegister( SISSM_EV_ROUND_START, _apiRoundStartCB );

    // These callbacks are used for detecting players entering
    // and leaving territorial capture zone (piantirush)
    //
    eventsRegister( SISSM_EV_BP_PLAYER_CONN,    _apiBPCharNameCB );
    eventsRegister( SISSM_EV_BP_PLAYER_DISCONN, _apiBPCharDisconnectCB );
    eventsRegister( SISSM_EV_BP_CHARNAME,       _apiBPCharPlayerCB );
    eventsRegister( SISSM_EV_BP_TOUCHED_OBJ,    _apiBPCharTouchCB );
    eventsRegister( SISSM_EV_BP_UNTOUCHED_OBJ,  _apiBPCharUntouchCB );

    // Event to handle caching of map objective list 
    //
    eventsRegister( SISSM_EV_MAP_OBJECTIVE, _apiMapObjectiveCB );

    // This hook is mostly used for DEBUG use, non-production
    //
    eventsRegister( SISSM_EV_CHAT,                _apiChatCB );

    // for detecting if the game is in Counterattack (Checkpoint/Hardcore)
    //
    eventsRegister( SISSM_EV_ACTIVITY,         _apiCounterStartCB );
    eventsRegister( SISSM_EV_CA_STOP,          _apiCounterStopCB  );

    // Setup Alarm (periodic callbacks) for fetching roster from RCON
    // 
    _apiPollAlarmPtr = alarmCreate( _apiPollAlarmCB );
    alarmReset( _apiPollAlarmPtr, API_LISTPLAYERS_PERIOD );

    // Clear the Roster module that keeps track of players
    //
    rosterInit();
    rosterSetServerName( serverName );
    lastRosterSuccessTime = apiTimeGet();      
    rosterReset();

    // Read the admin list
    //
    // adminCount = apiIdListRead( adminListFilePath, adminIdList );
    // logPrintf( LOG_LEVEL_CRITICAL, "api", "Admin list %d clients from file %s", adminCount, adminListFilePath );

    // Read the Bad Words list
    //
    // badWordsCount = apiWordListRead( badWordsFilePath, badWordsList );
    // logPrintf( LOG_LEVEL_CRITICAL, "api", "BadWords list %d words from file %s", badWordsCount, badWordsFilePath );
    // 
    apiInitBadWords();

    // Read the Mapcycle.txt
    //
    mapsCount = apiMapcycleRead( mapcycleFilePath );
    logPrintf( LOG_LEVEL_CRITICAL, "api", "Maplist read %d maps from file %s", mapsCount, mapcycleFilePath);


    // Clear the internal roster & gamestate tracking variables
    //
    strclr( rosterPrevious );
    strclr( rosterCurrent  );
    strclr( gameStateCurrent );
    strclr( gameStatePrevious );

    // Clear the last reboot reason/time 
    //
    lastRebootTime = apiTimeGet();
    strlcpy( lastRebootReason, "Restart", 256 );

    // Clear the BPChar translation table
    //
    _apiBPCharInitCB( "" );

    // on init clear the cache of objectives names
    //
    for (i=0; i<API_OBJECTIVES_MAX; i++) strclr( _objectiveListCache[i]) ;

    // Clear the clan list
    //
    apiIdListClear( clanIdList );

    return( _rPtr == NULL );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xbd0, %rsp            # imm = 0xBD0
callq 0x8a90
movq %rax, %rdi
callq 0x9370
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0xfdf0(%rip), %rsi      # 0x262b7
movsd 0xcb49(%rip), %xmm0     # 0x23018
callq 0x97d0
cvttsd2si %xmm0, %eax
movl %eax, -0x220(%rbp)
leaq -0x110(%rbp), %rax
movq %rax, -0xbc0(%rbp)
movq -0x8(%rbp), %rdi
leaq 0xfdcf(%rip), %rsi      # 0x262c6
leaq 0xcc0e(%rip), %rdx      # 0x2310c
callq 0x9430
movq -0xbc0(%rbp), %rdi
movq %rax, %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x11bc0
leaq -0x210(%rbp), %rax
movq %rax, -0xbb8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0xfda3(%rip), %rsi      # 0x262d3
leaq 0xd1da(%rip), %rdx      # 0x23711
callq 0x9430
movq -0xbb8(%rbp), %rdi
movq %rax, %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x11bc0
leaq -0x330(%rbp), %rax
movq %rax, -0xbb0(%rbp)
movq -0x8(%rbp), %rdi
leaq 0xfd7d(%rip), %rsi      # 0x262e6
leaq 0xcb5b(%rip), %rdx      # 0x230cb
callq 0x9430
movq -0xbb0(%rbp), %rdi
movq %rax, %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0xfd63(%rip), %rsi      # 0x262f7
leaq 0xd176(%rip), %rdx      # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0x146816(%rip), %rdi    # 0x15cdc0
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0xfd4f(%rip), %rsi      # 0x2630e
leaq 0xd14b(%rip), %rdx      # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0x1468fb(%rip), %rdi    # 0x15ced0
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
leaq -0x730(%rbp), %rax
movq %rax, -0xba8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0xfd2d(%rip), %rsi      # 0x26325
leaq 0xd112(%rip), %rdx      # 0x23711
callq 0x9430
movq -0xba8(%rbp), %rdi
movq %rax, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
leaq -0xb30(%rbp), %rax
movq %rax, -0xba0(%rbp)
movq -0x8(%rbp), %rdi
leaq 0xfd08(%rip), %rsi      # 0x26339
leaq 0xd0d9(%rip), %rdx      # 0x23711
callq 0x9430
movq -0xba0(%rbp), %rdi
movq %rax, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
leaq -0xb30(%rbp), %rdi
leaq 0xdaf9(%rip), %rsi      # 0x24158
movl $0x400, %edx            # imm = 0x400
callq 0x11aa0
leaq -0xb30(%rbp), %rdi
callq 0x8110
movq %rax, -0xb98(%rbp)
leaq -0x730(%rbp), %rdi
callq 0x8110
movq %rax, %rcx
movq -0xb98(%rbp), %rax
addq %rcx, %rax
cmpq $0x400, %rax            # imm = 0x400
jae 0x166b7
leaq -0xb30(%rbp), %rdi
leaq -0x730(%rbp), %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x11aa0
jmp 0x166ce
xorl %edi, %edi
leaq 0xf7d7(%rip), %rsi      # 0x25e97
leaq 0xfc85(%rip), %rdx      # 0x2634c
movb $0x0, %al
callq 0x21bf0
movl $0x0, -0x218(%rbp)
leaq 0x1468f1(%rip), %rdi    # 0x15cfd0
callq 0x122b0
leaq -0xb30(%rbp), %rdi
movl -0x218(%rbp), %esi
leaq 0xfc91(%rip), %rdx      # 0x26389
callq 0x122d0
movq %rax, -0xb38(%rbp)
cmpq $0x0, -0xb38(%rbp)
jne 0x16710
jmp 0x16782
movq -0xb38(%rbp), %rdi
callq 0x8110
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
jne 0x16728
jmp 0x16782
movslq -0x218(%rbp), %rax
leaq 0x14689a(%rip), %rdi    # 0x15cfd0
imulq $0x50, %rax, %rax
addq %rax, %rdi
movq -0xb38(%rbp), %rsi
movl $0x50, %edx
callq 0x11bc0
movl -0x218(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x218(%rbp)
cltq
leaq 0x14686a(%rip), %rdi    # 0x15cfd0
imulq $0x50, %rax, %rax
addq %rax, %rdi
callq 0x122b0
cmpl $0x40, -0x218(%rbp)
jl 0x1677d
jmp 0x16782
jmp 0x166e4
movl $0x0, -0x218(%rbp)
movslq -0x218(%rbp), %rax
leaq 0x146836(%rip), %rdi    # 0x15cfd0
imulq $0x50, %rax, %rax
addq %rax, %rdi
callq 0x8110
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
jne 0x167b2
jmp 0x167f8
movl -0x218(%rbp), %ecx
movslq -0x218(%rbp), %rax
leaq 0x14680a(%rip), %r8     # 0x15cfd0
imulq $0x50, %rax, %rax
addq %rax, %r8
movl $0x2, %edi
leaq 0xf6be(%rip), %rsi      # 0x25e97
leaq 0xfbb0(%rip), %rdx      # 0x26390
movb $0x0, %al
callq 0x21bf0
movl -0x218(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x218(%rbp)
jmp 0x1678c
movl -0x218(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x21c(%rbp)
movl $0x0, -0x218(%rbp)
movl -0x218(%rbp), %eax
movl -0x21c(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jge 0x16869
movslq -0x218(%rbp), %rax
leaq 0x147b9e(%rip), %rdi    # 0x15e3d0
imulq $0x50, %rax, %rax
addq %rax, %rdi
movslq -0x218(%rbp), %rax
leaq 0x146789(%rip), %rsi    # 0x15cfd0
imulq $0x50, %rax, %rax
addq %rax, %rsi
movl $0x50, %edx
callq 0x11bc0
movl -0x218(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x218(%rbp)
jmp 0x16811
movl $0x0, -0x218(%rbp)
movl -0x218(%rbp), %eax
movl -0x21c(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x169a5
movl -0x218(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x214(%rbp)
movl -0x214(%rbp), %eax
cmpl -0x21c(%rbp), %eax
jge 0x1698f
movslq -0x214(%rbp), %rax
leaq 0x147b17(%rip), %rdi    # 0x15e3d0
imulq $0x50, %rax, %rax
addq %rax, %rdi
callq 0x8110
movq %rax, -0xbc8(%rbp)
movslq -0x218(%rbp), %rax
leaq 0x147af6(%rip), %rdi    # 0x15e3d0
imulq $0x50, %rax, %rax
addq %rax, %rdi
callq 0x8110
movq %rax, %rcx
movq -0xbc8(%rbp), %rax
cmpq %rcx, %rax
jbe 0x16979
leaq -0xb90(%rbp), %rdi
movslq -0x214(%rbp), %rax
leaq 0x147ac2(%rip), %rsi    # 0x15e3d0
imulq $0x50, %rax, %rax
addq %rax, %rsi
movl $0x50, %edx
callq 0x11bc0
movslq -0x214(%rbp), %rax
leaq 0x147aa3(%rip), %rdi    # 0x15e3d0
imulq $0x50, %rax, %rax
addq %rax, %rdi
movslq -0x218(%rbp), %rax
leaq 0x147a8e(%rip), %rsi    # 0x15e3d0
imulq $0x50, %rax, %rax
addq %rax, %rsi
movl $0x50, %edx
callq 0x11bc0
movslq -0x218(%rbp), %rax
leaq 0x147a6f(%rip), %rdi    # 0x15e3d0
imulq $0x50, %rax, %rax
addq %rax, %rdi
leaq -0xb90(%rbp), %rsi
movl $0x50, %edx
callq 0x11bc0
jmp 0x1697b
movl -0x214(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x214(%rbp)
jmp 0x16899
jmp 0x16991
movl -0x218(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x218(%rbp)
jmp 0x16873
movl $0x0, -0x218(%rbp)
movslq -0x218(%rbp), %rax
leaq 0x147a13(%rip), %rdi    # 0x15e3d0
imulq $0x50, %rax, %rax
addq %rax, %rdi
callq 0x8110
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
jne 0x169d5
jmp 0x16a1b
movl -0x218(%rbp), %ecx
movslq -0x218(%rbp), %rax
leaq 0x1479e7(%rip), %r8     # 0x15e3d0
imulq $0x50, %rax, %rax
addq %rax, %r8
movl $0x2, %edi
leaq 0xf49b(%rip), %rsi      # 0x25e97
leaq 0xf9a4(%rip), %rdx      # 0x263a7
movb $0x0, %al
callq 0x21bf0
movl -0x218(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x218(%rbp)
jmp 0x169af
callq 0x15eb0
movq -0x8(%rbp), %rdi
leaq 0xf993(%rip), %rsi      # 0x263be
leaq 0xccdf(%rip), %rdx      # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xc284f(%rip), %rdi     # 0xd9290
movl $0x100, %edx            # imm = 0x100
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0xf97a(%rip), %rsi      # 0x263d0
leaq 0xccb4(%rip), %rdx      # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0x148d64(%rip), %rdi    # 0x15f7d0
movl $0x100, %edx            # imm = 0x100
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0xf95f(%rip), %rsi      # 0x263e0
leaq 0xcc89(%rip), %rdx      # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0x148e39(%rip), %rdi    # 0x15f8d0
movl $0x100, %edx            # imm = 0x100
callq 0x11bc0
movq -0x8(%rbp), %rdi
callq 0x93f0
leaq 0xef5a(%rip), %rdi      # 0x25a0b
callq 0x193e0
leaq -0x110(%rbp), %rdi
movl -0x220(%rbp), %esi
leaq -0x210(%rbp), %rdx
callq 0x9d80
movq %rax, 0xca9c2(%rip)     # 0xe1498
movl $0x3, %edi
leaq -0x1862(%rip), %rsi     # 0x15280
callq 0xee50
movl $0x4, %edi
leaq -0x1823(%rip), %rsi     # 0x152d0
callq 0xee50
movl $0x5, %edi
leaq -0x1154(%rip), %rsi     # 0x159b0
callq 0xee50
movl $0x11, %edi
leaq -0x1805(%rip), %rsi     # 0x15310
callq 0xee50
movl $0x12, %edi
leaq -0x17f6(%rip), %rsi     # 0x15330
callq 0xee50
movl $0x8, %edi
leaq -0xcd7(%rip), %rsi      # 0x15e60
callq 0xee50
movl $0x15, %edi
leaq -0x1678(%rip), %rsi     # 0x154d0
callq 0xee50
movl $0x16, %edi
leaq -0x1309(%rip), %rsi     # 0x15850
callq 0xee50
movl $0x17, %edi
leaq -0x156a(%rip), %rsi     # 0x15600
callq 0xee50
movl $0x18, %edi
leaq -0x11eb(%rip), %rsi     # 0x15990
callq 0xee50
movl $0x19, %edi
leaq -0x11ec(%rip), %rsi     # 0x159a0
callq 0xee50
movl $0x1a, %edi
leaq -0xf1d(%rip), %rsi      # 0x15c80
callq 0xee50
xorl %edi, %edi
leaq -0x193b(%rip), %rsi     # 0x15270
callq 0xee50
movl $0x1c, %edi
leaq -0x80c(%rip), %rsi      # 0x163b0
callq 0xee50
movl $0x1e, %edi
leaq -0x78d(%rip), %rsi      # 0x16440
callq 0xee50
leaq -0x1c99(%rip), %rdi     # 0x14f40
callq 0x12940
movq %rax, 0xd28bb(%rip)     # 0xe94a0
movq 0xd28b4(%rip), %rdi     # 0xe94a0
movl $0xa, %esi
callq 0x12a40
callq 0x19820
leaq -0x330(%rbp), %rdi
callq 0x19710
callq 0x150c0
movq %rax, 0xca87d(%rip)     # 0xe1490
callq 0x19750
callq 0x16360
leaq 0x1462ac(%rip), %rdi    # 0x15ced0
callq 0x16d20
movl %eax, -0x224(%rbp)
movl -0x224(%rbp), %ecx
xorl %edi, %edi
leaq 0xf259(%rip), %rsi      # 0x25e97
leaq 0xf7ac(%rip), %rdx      # 0x263f1
leaq 0x146284(%rip), %r8     # 0x15ced0
movb $0x0, %al
callq 0x21bf0
leaq 0xce846(%rip), %rdi     # 0xe54a0
callq 0x122b0
leaq 0xca83a(%rip), %rdi     # 0xe14a0
callq 0x122b0
leaq 0x148d5e(%rip), %rdi    # 0x15f9d0
callq 0x122b0
leaq 0xde942(%rip), %rdi     # 0xf55c0
callq 0x122b0
callq 0x150c0
movq %rax, 0x14cd41(%rip)    # 0x1639d0
leaq 0x14cd4a(%rip), %rdi    # 0x1639e0
leaq 0xf776(%rip), %rsi      # 0x26413
movl $0x100, %edx            # imm = 0x100
callq 0x11bc0
leaq 0xca63(%rip), %rdi      # 0x23711
callq 0x15390
movl $0x0, -0x214(%rbp)
cmpl $0x40, -0x214(%rbp)
jge 0x16cf1
movslq -0x214(%rbp), %rax
leaq 0xda8ec(%rip), %rdi     # 0xf15c0
shlq $0x8, %rax
addq %rax, %rdi
callq 0x122b0
movl -0x214(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x214(%rbp)
jmp 0x16cbd
leaq 0x14cde8(%rip), %rdi    # 0x163ae0
callq 0x148e0
cmpq $0x0, 0xca793(%rip)     # 0xe1498
sete %al
andb $0x1, %al
movzbl %al, %eax
addq $0xbd0, %rsp            # imm = 0xBD0
popq %rbp
retq
nopw %cs:(%rax,%rax)