// // cocos2d::CCScheduler::scheduleUpdateForTarget from 0x1001aaff8 to 0x1001ab12c (308 bytes) // // 3 xrefs: // > cocos2d::CCDirector::init @ 0x10017508c // > cocos2d::CCNode::scheduleUpdate @ 0x10023c548 // > cocos2d::CCNode::scheduleUpdateWithPriority @ 0x10023c564 // // 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::scheduleUpdateForTarget( cocos2d::CCScheduler *a1, cocos2d::CCObject *a2, int a3, bool a4) { cocos2d::_hashUpdateEntry *m_pHashForUpdates; // x8 int v8; // w9 unsigned int v9; // w10 unsigned int v10; // w11 int v11; // w9 unsigned int v12; // w10 unsigned int v13; // w11 int v14; // w9 __int64 v15; // x8 __int64 v16; // x9 __int64 v17; // x8 __int64 v18; // x9 cocos2d::_listEntry **p_m_pUpdatesNegList; // x1 __int64 v20; // x8 m_pHashForUpdates = a1->m_pHashForUpdates; if ( !m_pHashForUpdates ) goto LABEL_7; v8 = ((_DWORD)a2 + 17973517) ^ 0x7F76D; v9 = (-1622558010 - v8) ^ (v8 << 8); v10 = (-17973517 - v8 - v9) ^ (v9 >> 13); v11 = (v8 - v9 - v10) ^ (v10 >> 12); v12 = (v9 - v10 - v11) ^ (v11 << 16); v13 = (v10 - v11 - v12) ^ (v12 >> 5); v14 = (v11 - v12 - v13) ^ (v13 >> 3); v15 = *((_QWORD *)m_pHashForUpdates + 3); v16 = *(_QWORD *)(*(_QWORD *)v15 + 16LL * (((v13 - v14 - ((v12 - v13 - v14) ^ (v14 << 10))) ^ (((v12 - v13 - v14) ^ (v14 << 10)) >> 15)) & (*(_DWORD *)(v15 + 8) - 1))); if ( v16 ) { v17 = -*(_QWORD *)(v15 + 32); while ( 1 ) { v18 = v16 + v17; if ( *(_DWORD *)(v18 + 72) == 4 && **(_DWORD **)(v18 + 64) == (_DWORD)a2 ) break; v16 = *(_QWORD *)(v18 + 56); if ( !v16 ) goto LABEL_7; } v20 = *(_QWORD *)(v18 + 8); *(_BYTE *)(v20 + 28) = a4; *(_BYTE *)(v20 + 29) = 0; } else { LABEL_7: if ( a3 ) { if ( a3 < 0 ) p_m_pUpdatesNegList = &a1->m_pUpdatesNegList; else p_m_pUpdatesNegList = &a1->m_pUpdatesPosList; cocos2d::CCScheduler::priorityIn(a1, p_m_pUpdatesNegList, a2, a3, a4); } else { cocos2d::CCScheduler::appendIn(a1, &a1->m_pUpdates0List, a2, a4); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source