// // cocos2d::CCScheduler::unscheduleAllForTarget from 0x1001ab5a8 to 0x1001ab74c (420 bytes) // // 4 xrefs: // > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x1001ab4f4 // > cocos2d::CCNode::cleanup @ 0x10023b734 // > cocos2d::CCNode::unscheduleAllSelectors @ 0x10023b7bc // > cocos2d::CCNode::setScheduler @ 0x10023c4fc // // 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::unscheduleAllForTarget(cocos2d::CCScheduler *a1, cocos2d::CCObject *a2) { cocos2d::_hashSelectorEntry *m_pHashForTimers; // x8 int v5; // w9 unsigned int v6; // w10 unsigned int v7; // w11 int v8; // w9 unsigned int v9; // w10 unsigned int v10; // w11 int v11; // w9 __int64 v12; // x8 __int64 v13; // x9 __int64 v14; // x8 cocos2d::_hashSelectorEntry *v15; // x21 if ( a2 ) { m_pHashForTimers = a1->m_pHashForTimers; if ( m_pHashForTimers ) { v5 = ((_DWORD)a2 + 17973517) ^ 0x7F76D; v6 = (-1622558010 - v5) ^ (v5 << 8); v7 = (-17973517 - v5 - v6) ^ (v6 >> 13); v8 = (v5 - v6 - v7) ^ (v7 >> 12); v9 = (v6 - v7 - v8) ^ (v8 << 16); v10 = (v7 - v8 - v9) ^ (v9 >> 5); v11 = (v8 - v9 - v10) ^ (v10 >> 3); v12 = *((_QWORD *)m_pHashForTimers + 5); v13 = *(_QWORD *)(*(_QWORD *)v12 + 16LL * (((v10 - v11 - ((v9 - v10 - v11) ^ (v11 << 10))) ^ (((v9 - v10 - v11) ^ (v11 << 10)) >> 15)) & (*(_DWORD *)(v12 + 8) - 1))); if ( v13 ) { v14 = -*(_QWORD *)(v12 + 32); while ( 1 ) { v15 = (cocos2d::_hashSelectorEntry *)(v13 + v14); if ( *(_DWORD *)(v13 + v14 + 88) == 4 && **((_DWORD **)v15 + 10) == (_DWORD)a2 ) break; v13 = *((_QWORD *)v15 + 9); if ( !v13 ) goto LABEL_16; } if ( (unsigned int)sub_100353648(*(_QWORD *)v15, *((_QWORD *)v15 + 3)) && (*((_BYTE *)v15 + 32) & 1) == 0 ) { cocos2d::CCObject::retain(*((cocos2d::CCObject **)v15 + 3)); *((_BYTE *)v15 + 32) = 1; } sub_100353544(*(_QWORD *)v15); if ( a1->m_pCurrentTarget == v15 ) a1->m_bCurrentTargetSalvaged = 1; else cocos2d::CCScheduler::removeHashElement(a1, v15); } } LABEL_16: cocos2d::CCScheduler::unscheduleUpdateForTarget(a1, a2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source