// // cocos2d::CCScheduler::unscheduleSelector from 0x1800c2830 to 0x1800c2a16 (486 bytes) // // 10 xrefs: // > cocos2d::CCNode::unschedule @ 0x18000545f // > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0x1800a87b1 // > cocos2d::CCTimer::update @ 0x1800c2f06 // > @ 0x18014216c // > @ 0x180142184 // > @ 0x18014219c // > @ 0x1801421b0 // > @ 0x1801421c0 // > @ 0x1801438a8 // > @ 0x1801b95d0 // // 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::unscheduleSelector(cocos2d::CCScheduler *this, __int64 a2, __int64 a3) { int v3; // r9d cocos2d::_hashSelectorEntry *m_pHashForTimers; // r11 __int64 v7; // r11 int v8; // edx unsigned int v9; // r8d unsigned int v10; // ecx int v11; // edx unsigned int v12; // r8d unsigned int v13; // ecx int v14; // edx __int64 v15; // rbx __int64 v16; // rcx __int64 v17; // rbx __int64 v18; // rbx __int64 v19; // rdi unsigned int v20; // edx __int64 v21; // rcx unsigned int v22; // eax if ( a3 ) { v3 = a3; if ( a2 ) { m_pHashForTimers = this->m_pHashForTimers; if ( m_pHashForTimers ) { v7 = *((_QWORD *)m_pHashForTimers + 5); v8 = (((BYTE1(a3) + ((BYTE2(a3) + (BYTE3(a3) << 8)) << 8)) << 8) + (unsigned __int8)a3 + 17973517) ^ 0x7F76D; v9 = (v8 << 8) ^ (-1622558010 - v8); v10 = (v9 >> 13) ^ (-17973517 - v9 - v8); v11 = (v10 >> 12) ^ (v8 - v9 - v10); v12 = (v11 << 16) ^ (v9 - v11 - v10); v13 = (v12 >> 5) ^ (v10 - v12 - v11); v14 = (v13 >> 3) ^ (v11 - v12 - v13); v15 = *(_QWORD *)(*(_QWORD *)v7 + 16 * ((unsigned int)(*(_DWORD *)(v7 + 8) - 1) & (((unsigned __int64)((v14 << 10) ^ (v12 - v14 - v13)) >> 15) ^ (v13 - ((v14 << 10) ^ (v12 - v14 - v13)) - v14)))); if ( v15 ) { v16 = *(_QWORD *)(v7 + 32); v17 = v15 - v16; if ( v17 ) { while ( *(_DWORD *)(v17 + 88) != 4 || **(_DWORD **)(v17 + 80) != v3 ) { v18 = *(_QWORD *)(v17 + 72); if ( v18 ) { v17 = v18 - v16; if ( v17 ) continue; } return; } v19 = 0; v20 = **(_DWORD **)v17; if ( v20 ) { while ( 1 ) { v21 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)v17 + 16LL) + 8 * v19); if ( a2 == *(_QWORD *)(v21 + 88) ) break; v19 = (unsigned int)(v19 + 1); if ( (unsigned int)v19 >= v20 ) return; } if ( v21 == *(_QWORD *)(v17 + 24) && !*(_BYTE *)(v17 + 32) ) { cocos2d::CCObject::retain(*(cocos2d::CCObject **)(v17 + 24)); *(_BYTE *)(v17 + 32) = 1; } sub_18009DEE0(*(_QWORD *)v17, v19, 1); v22 = *(_DWORD *)(v17 + 16); if ( v22 >= (unsigned int)v19 ) *(_DWORD *)(v17 + 16) = v22 - 1; if ( !**(_DWORD **)v17 ) { if ( this->m_pCurrentTarget == (cocos2d::_hashSelectorEntry *)v17 ) this->m_bCurrentTargetSalvaged = 1; else cocos2d::CCScheduler::removeHashElement(this, (struct cocos2d::_hashSelectorEntry *)v17); } } } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source