// // cocos2d::CCScheduler::removeHashElement from 0x100442070 to 0x100442179 (265 bytes) // // 3 xrefs: // > cocos2d::CCScheduler::unscheduleSelector @ 0x100441e8f // > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x10044347c // > cocos2d::CCScheduler::update @ 0x100443f21 // // 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 *a1, cocos2d::_hashSelectorEntry *a2) { cocos2d::CCObject *v3; // rbx __int64 v4; // rcx cocos2d::_hashSelectorEntry *m_pHashForTimers; // rax cocos2d::_hashSelectorEntry **p_m_pHashForTimers; // r15 __int64 v7; // rdx __int64 v8; // rsi cocos2d::_hashSelectorEntry *v9; // rdi cocos2d::_hashSelectorEntry **v10; // rsi __int64 *v11; // rax __int64 v12; // rsi __int64 v13; // rcx __int64 v14; // rcx __int64 v15; // rdx v3 = *((cocos2d::CCObject **)a2 + 1); sub_100667290(a2); v4 = *((_QWORD *)a2 + 6); if ( *((_OWORD *)a2 + 3) == 0 ) { free(**((void ***)a1->m_pHashForTimers + 5)); free(*((void **)a1->m_pHashForTimers + 5)); a1->m_pHashForTimers = nullptr; } else { m_pHashForTimers = a1->m_pHashForTimers; p_m_pHashForTimers = &a1->m_pHashForTimers; v7 = *((_QWORD *)m_pHashForTimers + 5); v8 = *(_QWORD *)(v7 + 32); if ( (cocos2d::_hashSelectorEntry *)(*(_QWORD *)(v7 + 24) - v8) == a2 ) *(_QWORD *)(v7 + 24) = v8 + v4; v9 = *((cocos2d::_hashSelectorEntry **)a2 + 7); v10 = (cocos2d::_hashSelectorEntry **)(v8 + v4 + 16); if ( !v4 ) { v10 = p_m_pHashForTimers; m_pHashForTimers = *((cocos2d::_hashSelectorEntry **)a2 + 7); } *v10 = v9; v11 = *((__int64 **)m_pHashForTimers + 5); if ( v9 ) *(_QWORD *)((char *)v9 + v11[4] + 8) = v4; v12 = *v11; v13 = 16LL * (*((_DWORD *)a2 + 23) & (unsigned int)(*((_DWORD *)v11 + 2) - 1)); --*(_DWORD *)(v12 + v13 + 8); if ( *(cocos2d::_hashSelectorEntry **)(v12 + v13) == (cocos2d::_hashSelectorEntry *)((char *)a2 + 40) ) *(_QWORD *)(v13 + v12) = *((_QWORD *)a2 + 9); v14 = *((_QWORD *)a2 + 8); v15 = *((_QWORD *)a2 + 9); if ( v14 ) *(_QWORD *)(v14 + 32) = v15; if ( v15 ) *(_QWORD *)(v15 + 24) = v14; --*((_DWORD *)v11 + 4); } free(a2); cocos2d::CCObject::release(v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source