// // cocos2d::CCScheduler::update from 0x1800c2b60 to 0x1800c2d8a (554 bytes) // // 3 xrefs: // > @ 0x180107628 // > @ 0x1801438a8 // > @ 0x1801b9630 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::CCScheduler::update(cocos2d::CCScheduler *this, float a2) { cocos2d::_listEntry *m_pUpdatesNegList; // rcx cocos2d::_listEntry *v4; // rbx cocos2d::_listEntry *m_pUpdates0List; // rcx cocos2d::_listEntry *v6; // rbx cocos2d::_listEntry *m_pUpdatesPosList; // rcx cocos2d::_listEntry *v8; // rbx cocos2d::_hashSelectorEntry *m_pHashForTimers; // rbx __int64 v10; // rdx unsigned int v11; // eax __int64 v12; // rcx struct cocos2d::_hashSelectorEntry *m_pCurrentTarget; // rdx cocos2d::CCArray *m_pScriptHandlerEntries; // rcx int i; // ebx struct cocos2d::CCString *v16; // rax __int64 v17; // r8 cocos2d::_listEntry *v18; // rdx cocos2d::_listEntry *v19; // rbx cocos2d::_listEntry *v20; // rdx cocos2d::_listEntry *v21; // rbx cocos2d::_listEntry *v22; // rdx cocos2d::_listEntry *v23; // rbx this->m_bUpdateHashLocked = 1; m_pUpdatesNegList = this->m_pUpdatesNegList; if ( m_pUpdatesNegList ) { do { v4 = *((cocos2d::_listEntry **)m_pUpdatesNegList + 1); if ( !*((_BYTE *)m_pUpdatesNegList + 28) && !*((_BYTE *)m_pUpdatesNegList + 29) ) (*(void (__fastcall **)(_QWORD))(**((_QWORD **)m_pUpdatesNegList + 2) + 32LL))(*((_QWORD *)m_pUpdatesNegList + 2)); m_pUpdatesNegList = v4; } while ( v4 ); } m_pUpdates0List = this->m_pUpdates0List; if ( m_pUpdates0List ) { do { v6 = *((cocos2d::_listEntry **)m_pUpdates0List + 1); if ( !*((_BYTE *)m_pUpdates0List + 28) && !*((_BYTE *)m_pUpdates0List + 29) ) (*(void (__fastcall **)(_QWORD))(**((_QWORD **)m_pUpdates0List + 2) + 32LL))(*((_QWORD *)m_pUpdates0List + 2)); m_pUpdates0List = v6; } while ( v6 ); } m_pUpdatesPosList = this->m_pUpdatesPosList; if ( m_pUpdatesPosList ) { do { v8 = *((cocos2d::_listEntry **)m_pUpdatesPosList + 1); if ( !*((_BYTE *)m_pUpdatesPosList + 28) && !*((_BYTE *)m_pUpdatesPosList + 29) ) (*(void (__fastcall **)(_QWORD))(**((_QWORD **)m_pUpdatesPosList + 2) + 32LL))(*((_QWORD *)m_pUpdatesPosList + 2)); m_pUpdatesPosList = v8; } while ( v8 ); } m_pHashForTimers = this->m_pHashForTimers; while ( m_pHashForTimers ) { this->m_pCurrentTarget = m_pHashForTimers; this->m_bCurrentTargetSalvaged = 0; if ( !*((_BYTE *)m_pHashForTimers + 33) ) { v10 = *(_QWORD *)m_pHashForTimers; *((_DWORD *)m_pHashForTimers + 4) = 0; if ( *(_DWORD *)v10 ) { v11 = 0; do { v12 = *(_QWORD *)(*(_QWORD *)(v10 + 16) + 8LL * v11); *((_QWORD *)m_pHashForTimers + 3) = v12; *((_BYTE *)m_pHashForTimers + 32) = 0; (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 32LL))(v12); if ( *((_BYTE *)m_pHashForTimers + 32) ) cocos2d::CCObject::release(*((cocos2d::CCObject **)m_pHashForTimers + 3)); v11 = *((_DWORD *)m_pHashForTimers + 4) + 1; *((_QWORD *)m_pHashForTimers + 3) = 0; *((_DWORD *)m_pHashForTimers + 4) = v11; v10 = *(_QWORD *)m_pHashForTimers; } while ( v11 < **(_DWORD **)m_pHashForTimers ); } } m_pHashForTimers = *((cocos2d::_hashSelectorEntry **)m_pHashForTimers + 7); if ( this->m_bCurrentTargetSalvaged ) { m_pCurrentTarget = this->m_pCurrentTarget; if ( !**(_DWORD **)m_pCurrentTarget ) cocos2d::CCScheduler::removeHashElement(this, m_pCurrentTarget); } } m_pScriptHandlerEntries = this->m_pScriptHandlerEntries; if ( m_pScriptHandlerEntries ) { for ( i = cocos2d::CCArray::count(m_pScriptHandlerEntries) - 1; i >= 0; --i ) { v16 = cocos2d::CCArray::stringAtIndex(this->m_pScriptHandlerEntries, i); if ( BYTE1(v16->m_sString.m_data.m_size) ) { LOBYTE(v17) = 1; cocos2d::CCArray::removeObjectAtIndex(this->m_pScriptHandlerEntries, (unsigned int)i, v17); } else if ( !LOBYTE(v16->m_sString.m_data.m_size) ) { (*(void (__fastcall **)(_QWORD))(**((_QWORD **)&v16->m_sString.m_data.m_bigStorage + 1) + 32LL))(*((_QWORD *)&v16->m_sString.m_data.m_bigStorage + 1)); } } } v18 = this->m_pUpdatesNegList; if ( v18 ) { do { v19 = *((cocos2d::_listEntry **)v18 + 1); if ( *((_BYTE *)v18 + 29) ) cocos2d::CCScheduler::removeUpdateFromHash(this, v18); v18 = v19; } while ( v19 ); } v20 = this->m_pUpdates0List; if ( v20 ) { do { v21 = *((cocos2d::_listEntry **)v20 + 1); if ( *((_BYTE *)v20 + 29) ) cocos2d::CCScheduler::removeUpdateFromHash(this, v20); v20 = v21; } while ( v21 ); } v22 = this->m_pUpdatesPosList; if ( v22 ) { do { v23 = *((cocos2d::_listEntry **)v22 + 1); if ( *((_BYTE *)v22 + 29) ) cocos2d::CCScheduler::removeUpdateFromHash(this, v22); v22 = v23; } while ( v23 ); } this->m_pCurrentTarget = nullptr; this->m_bUpdateHashLocked = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source