// // cocos2d::CCScheduler::removeHashElement from 0x5ae344 to 0x5ae3e2 (158 bytes) // // 3 xrefs: // > cocos2d::CCScheduler::unscheduleSelector @ 0x5ae8f0 // > cocos2d::CCScheduler::update @ 0x5af2ee // > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x5af52e // // 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 cocos2d::CCScheduler::removeHashElement(cocos2d::CCScheduler *a1, cocos2d::_hashSelectorEntry *a2) { cocos2d::CCObject *v4; // r6 int v5; // r3 cocos2d::_hashSelectorEntry *v6; // r7 cocos2d::_hashSelectorEntry *m_pHashForTimers; // r2 int v8; // r0 int v9; // r2 int v10; // r0 cocos2d::_hashSelectorEntry *v11; // r1 int *v12; // r1 int v13; // r3 int v14; // r2 int v15; // r0 int v16; // r3 int v17; // r2 v4 = *((cocos2d::CCObject **)a2 + 1); cocos2d::ccArrayFree(a2, (cocos2d::_ccArray **)a2); v5 = *((_DWORD *)a2 + 6); v6 = *((cocos2d::_hashSelectorEntry **)a2 + 7); m_pHashForTimers = a1->m_pHashForTimers; if ( v5 || v6 ) { v8 = *((_DWORD *)m_pHashForTimers + 5); v9 = *(_DWORD *)(v8 + 20); if ( a2 == (cocos2d::_hashSelectorEntry *)(*(_DWORD *)(v8 + 16) - v9) ) *(_DWORD *)(v8 + 16) = v5 + v9; if ( v5 ) *(_DWORD *)(v9 + v5 + 8) = v6; else a1->m_pHashForTimers = v6; v10 = *((_DWORD *)a2 + 7); v11 = a1->m_pHashForTimers; if ( v10 ) *(_DWORD *)(*(_DWORD *)(*((_DWORD *)v11 + 5) + 20) + v10 + 4) = v5; v12 = *((int **)v11 + 5); v13 = 12 * ((v12[1] - 1) & *((_DWORD *)a2 + 12)); v14 = *v12; *(_DWORD *)(v14 + v13 + 4) = *(_DWORD *)(*v12 + v13 + 4) - 1; v15 = *((_DWORD *)a2 + 9); if ( *(cocos2d::_hashSelectorEntry **)(v14 + v13) == (cocos2d::_hashSelectorEntry *)((char *)a2 + 20) ) *(_DWORD *)(v14 + v13) = v15; v16 = *((_DWORD *)a2 + 8); if ( v16 ) *(_DWORD *)(v16 + 16) = v15; v17 = *((_DWORD *)a2 + 9); if ( v17 ) *(_DWORD *)(v17 + 12) = v16; --v12[3]; } else { free(**((void ***)m_pHashForTimers + 5)); free(*((void **)a1->m_pHashForTimers + 5)); a1->m_pHashForTimers = nullptr; } free(a2); cocos2d::CCObject::release(v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source