// // cocos2d::CCScheduler::scheduleUpdateForTarget from 0x1800c21c0 to 0x1800c2348 (392 bytes) // // 6 xrefs: // > cocos2d::CCNode::scheduleUpdate @ 0x180004968 // > cocos2d::CCNode::scheduleUpdateWithPriority @ 0x180004988 // > cocos2d::CCNode::scheduleUpdateWithPriorityLua @ 0x180004a00 // > cocos2d::CCDirector::init @ 0x1800be92c // > @ 0x1801438a8 // > @ 0x1801b954c // // 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 *this, struct cocos2d::CCObject *a2, int a3, char a4) { cocos2d::_hashUpdateEntry *m_pHashForUpdates; // rsi __int64 v9; // r10 int v10; // edx unsigned int v11; // r8d unsigned int v12; // ecx int v13; // edx unsigned int v14; // r8d unsigned int v15; // ecx int v16; // edx __int64 v17; // rax __int64 v18; // rdx __int64 v19; // rax __int64 v20; // rax struct cocos2d::_listEntry **p_m_pUpdatesNegList; // rdx int v22; // [rsp+48h] [rbp+10h] v22 = (int)a2; m_pHashForUpdates = this->m_pHashForUpdates; if ( !m_pHashForUpdates ) goto LABEL_8; v9 = *((_QWORD *)m_pHashForUpdates + 3); v10 = (((BYTE1(a2) + ((BYTE2(a2) + (BYTE3(a2) << 8)) << 8)) << 8) + (unsigned __int8)a2 + 17973517) ^ 0x7F76D; v11 = (((((BYTE1(v22) + ((BYTE2(v22) + (HIBYTE(v22) << 8)) << 8)) << 8) + (unsigned __int8)a2 + 17973517) ^ 0x7F76D) << 8) ^ (-1622558010 - v10); v12 = (v11 >> 13) ^ (-17973517 - v11 - v10); v13 = (v12 >> 12) ^ (v10 - v11 - v12); v14 = (v13 << 16) ^ (v11 - v13 - v12); v15 = (v14 >> 5) ^ (v12 - v14 - v13); v16 = (v15 >> 3) ^ (v13 - v14 - v15); v17 = *(_QWORD *)(*(_QWORD *)v9 + 16 * ((unsigned int)(*(_DWORD *)(v9 + 8) - 1) & (((unsigned __int64)((v16 << 10) ^ (v14 - v16 - v15)) >> 15) ^ (v15 - ((v16 << 10) ^ (v14 - v16 - v15)) - v16)))); if ( !v17 ) goto LABEL_8; v18 = *(_QWORD *)(v9 + 32); v19 = v17 - v18; if ( v19 ) { while ( *(_DWORD *)(v19 + 72) != 4 || **(_DWORD **)(v19 + 64) != (_DWORD)a2 ) { v20 = *(_QWORD *)(v19 + 56); if ( v20 ) { v19 = v20 - v18; if ( v19 ) continue; } goto LABEL_8; } *(_BYTE *)(*(_QWORD *)(v19 + 8) + 28LL) = a4; *(_BYTE *)(*(_QWORD *)(v19 + 8) + 29LL) = 0; } else { LABEL_8: if ( a3 ) { p_m_pUpdatesNegList = &this->m_pUpdatesNegList; if ( a3 >= 0 ) p_m_pUpdatesNegList = &this->m_pUpdatesPosList; cocos2d::CCScheduler::priorityIn(this, p_m_pUpdatesNegList, a2, a3, a4); } else { cocos2d::CCScheduler::appendIn(this, &this->m_pUpdates0List, a2, a4); } } }