// // cocos2d::CCScheduler::unscheduleAllForTarget from 0x100443320 to 0x1004434ab (395 bytes) // // 5 xrefs: // > cocos2d::CCNode::cleanup @ 0x100272de3 // > cocos2d::CCNode::unscheduleAllSelectors @ 0x100272e7f // > cocos2d::CCNode::setScheduler @ 0x10027407c // > cocos2d::CCScheduler::unscheduleAllWithMinPriority @ 0x10044325b // > sub_10056EBF0 @ 0x10056ec1e // // 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; // rax int v3; // r9d unsigned int v4; // ecx unsigned int v5; // edx int v6; // r8d unsigned int v7; // r9d unsigned int v8; // ecx int v9; // edx unsigned int v10; // r8d __int64 v11; // rcx __int64 v12; // rdx cocos2d::_hashSelectorEntry *v13; // rbx if ( a2 ) { m_pHashForTimers = a1->m_pHashForTimers; if ( m_pHashForTimers ) { v3 = ((_DWORD)a2 + 17973517) ^ 0x7F76D; v4 = (-1622558010 - v3) ^ (v3 << 8); v5 = (-17973517 - v3 - v4) ^ (v4 >> 13); v6 = (v3 - v4 - v5) ^ (v5 >> 12); v7 = (v4 - v5 - v6) ^ (v6 << 16); v8 = (v5 - v6 - v7) ^ (v7 >> 5); v9 = (v6 - v7 - v8) ^ (v8 >> 3); v10 = (v8 - (((v7 - v8 - v9) ^ (v9 << 10)) + v9)) ^ (((v7 - v8 - v9) ^ (v9 << 10)) >> 15); v11 = *((_QWORD *)m_pHashForTimers + 5); v12 = *(_QWORD *)(*(_QWORD *)v11 + 16LL * (v10 & (*(_DWORD *)(v11 + 8) - 1))); if ( v12 ) { while ( 1 ) { v13 = (cocos2d::_hashSelectorEntry *)(v12 - *(_QWORD *)(v11 + 32)); if ( *((_DWORD *)v13 + 22) == 4 && **((_DWORD **)v13 + 10) == (_DWORD)a2 ) break; v12 = *((_QWORD *)v13 + 9); if ( !v12 ) goto LABEL_15; } if ( (unsigned __int8)sub_100667500(*(_QWORD *)v13, *((_QWORD *)v13 + 3)) && !*((_BYTE *)v13 + 32) ) { cocos2d::CCObject::retain(*((cocos2d::CCObject **)v13 + 3)); *((_BYTE *)v13 + 32) = 1; } sub_100667360(*(_QWORD *)v13); if ( a1->m_pCurrentTarget == v13 ) a1->m_bCurrentTargetSalvaged = 1; else cocos2d::CCScheduler::removeHashElement(a1, v13); } } LABEL_15: cocos2d::CCScheduler::unscheduleUpdateForTarget(a1, a2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source