// // cocos2d::CCScheduler::removeHashElement from 0x1800c1420 to 0x1800c156e (334 bytes) // // 5 xrefs: // > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c26bb // > cocos2d::CCScheduler::unscheduleSelector @ 0x1800c2a01 // > cocos2d::CCScheduler::update @ 0x1800c2ca5 // > @ 0x1801438a8 // > @ 0x1801b94c8 // // 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::removeHashElement( cocos2d::CCScheduler *this, struct cocos2d::_hashSelectorEntry *a2) { cocos2d::CCObject *v2; // rsi __int64 v5; // r9 __int64 v6; // r10 __int64 v7; // r9 cocos2d::_hashSelectorEntry *v8; // rdx __int64 v9; // r9 __int64 v10; // rcx __int64 v11; // r9 _QWORD *v12; // rcx __int64 v13; // rcx __int64 v14; // rdx v2 = *((cocos2d::CCObject **)a2 + 1); sub_18009DA50((void **)a2); if ( *((_OWORD *)a2 + 3) == 0 ) { free(**((void ***)this->m_pHashForTimers + 5)); free(*((void **)this->m_pHashForTimers + 5)); this->m_pHashForTimers = nullptr; } else { v5 = *((_QWORD *)this->m_pHashForTimers + 5); v6 = *(_QWORD *)(v5 + 32); if ( a2 == (struct cocos2d::_hashSelectorEntry *)(*(_QWORD *)(v5 + 24) - v6) ) *(_QWORD *)(v5 + 24) = v6 + *((_QWORD *)a2 + 6); v7 = *((_QWORD *)a2 + 6); v8 = *((cocos2d::_hashSelectorEntry **)a2 + 7); if ( v7 ) *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this->m_pHashForTimers + 5) + 32LL) + v7 + 16) = v8; else this->m_pHashForTimers = v8; v9 = *((_QWORD *)a2 + 7); if ( v9 ) *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this->m_pHashForTimers + 5) + 32LL) + v9 + 8) = *((_QWORD *)a2 + 6); v10 = *((_QWORD *)this->m_pHashForTimers + 5); v11 = *((_DWORD *)a2 + 23) & (unsigned int)(*(_DWORD *)(v10 + 8) - 1); --*(_DWORD *)(*(_QWORD *)v10 + 16 * v11 + 8); v12 = *((_QWORD **)this->m_pHashForTimers + 5); if ( *(struct cocos2d::_hashSelectorEntry **)(*v12 + 16 * v11) == (struct cocos2d::_hashSelectorEntry *)((char *)a2 + 40) ) *(_QWORD *)(*v12 + 16 * v11) = *((_QWORD *)a2 + 9); v13 = *((_QWORD *)a2 + 8); if ( v13 ) *(_QWORD *)(v13 + 32) = *((_QWORD *)a2 + 9); v14 = *((_QWORD *)a2 + 9); if ( v14 ) *(_QWORD *)(v14 + 24) = *((_QWORD *)a2 + 8); --*(_DWORD *)(*((_QWORD *)this->m_pHashForTimers + 5) + 16LL); } free(a2); cocos2d::CCObject::release(v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source