// // cocos2d::CCScheduler::unscheduleSelector from 0x7b4d20 to 0x7b4e76 (342 bytes) // // 4 xrefs: // > cocos2d::extension::CCHttpClient::~CCHttpClient @ 0x7b199a // > cocos2d::CCTimer::update @ 0x7b4ff8 // > cocos2d::CCNode::unschedule @ 0x7c4d96 // > cocos2d::CCTextureCache::addImageAsyncCallBack @ 0x8011b0 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:00:10 +0000 // int __fastcall cocos2d::CCScheduler::unscheduleSelector(int a1, int a2, int a3, int a4) { int result; // r0 int v8; // r1 _DWORD *v9; // r9 int v10; // r0 unsigned int v11; // r2 unsigned int v12; // r3 int v13; // r0 unsigned int v14; // r2 unsigned int v15; // r3 _DWORD *v16; // r7 int v17; // r3 unsigned int i; // r8 cocos2d::CCObject *v19; // r9 unsigned int v20; // r3 int v21; // [sp+4h] [bp-14h] BYREF _DWORD v22[2]; // [sp+8h] [bp-10h] BYREF int v23; // [sp+10h] [bp-8h] BYREF int v24; // [sp+14h] [bp-4h] result = (int)v22; v21 = a4; v22[0] = a2; v22[1] = a3; if ( a4 && (a2 || (a3 & 1) != 0) ) { v8 = *(_DWORD *)(a1 + 72); if ( v8 ) { v9 = *(_DWORD **)(v8 + 20); v10 = ((unsigned __int8)v21 + 17973517 + (HIBYTE(v21) << 24) + (BYTE2(v21) << 16) + (BYTE1(v21) << 8)) ^ 0x7F76D; v11 = (-1622558010 - v10) ^ (v10 << 8); v12 = (-17973517 - v10 - v11) ^ (v11 >> 13); v13 = (v10 - v11 - v12) ^ (v12 >> 12); v14 = (v11 - v12 - v13) ^ (v13 << 16); v15 = (v12 - v13 - v14) ^ (v14 >> 5); result = (v13 - v14 - v15) ^ (v15 >> 3); v16 = *(_DWORD **)(*v9 + 12 * (((v15 - result - ((v14 - v15 - result) ^ (result << 10))) ^ (((v14 - v15 - result) ^ (result << 10)) >> 15)) & (v9[1] - 1))); if ( v16 ) v16 = (_DWORD *)((char *)v16 - v9[5]); while ( v16 ) { if ( v16[11] == 4 ) { result = memcmp((const void *)v16[10], &v21, 4u); if ( !result ) { for ( i = 0; i < *(_DWORD *)*v16; ++i ) { v19 = *(cocos2d::CCObject **)(*(_DWORD *)(*v16 + 12) + 4 * i); result = (int)cocos2d::CCTimer::getSelector((cocos2d::CCTimer *)&v23, (int)v19); if ( a2 == v23 && (a3 == v24 || !a2 && ((v24 | a3) & 1) == 0) ) { if ( v19 == (cocos2d::CCObject *)v16[3] && !*((_BYTE *)v16 + 16) ) { cocos2d::CCObject::retain(v19); *((_BYTE *)v16 + 16) = 1; } result = cocos2d::ccArrayRemoveObjectAtIndex(*v16, i, 1); v20 = v16[2]; if ( v20 >= i ) v16[2] = v20 - 1; if ( !*(_DWORD *)*v16 ) { if ( *(_DWORD **)(a1 + 76) == v16 ) *(_BYTE *)(a1 + 80) = 1; else return cocos2d::CCScheduler::removeHashElement(a1, v16); } return result; } } return result; } } v17 = v16[9]; if ( !v17 ) return result; v16 = (_DWORD *)(v17 - v9[5]); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source