// // cocos2d::CCScheduler::removeUpdateFromHash from 0x7b5668 to 0x7b580a (418 bytes) // // 4 xrefs: // > cocos2d::CCScheduler::update @ 0x7b594a // > cocos2d::CCScheduler::update @ 0x7b5960 // > cocos2d::CCScheduler::update @ 0x7b5974 // > cocos2d::CCScheduler::unscheduleUpdateForTarget @ 0x7b5a44 // // 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::removeUpdateFromHash(int a1, unsigned __int8 *a2) { int result; // r0 const void *v4; // r6 _DWORD *v5; // r7 int v6; // r1 unsigned int v7; // r2 unsigned int v8; // r3 int v9; // r1 unsigned int v10; // r2 unsigned int v11; // r3 int v12; // r1 _DWORD *v13; // r4 int v14; // r3 _DWORD *v15; // r3 _DWORD *v16; // r1 _DWORD *v17; // r2 bool v18; // zf _DWORD *v19; // r3 int *v20; // r3 _DWORD *v21; // r2 int v22; // r3 int v23; // r7 cocos2d::CCObject *v24; // r6 int v25; // r3 int v26; // r2 int v27; // r3 int v28; // r1 int v29; // r2 int v30; // r2 _DWORD *v31; // r1 int v32; // r3 int v33; // r2 int v34; // r3 int v35; // r3 result = *(_DWORD *)(a1 + 68); if ( result ) { v4 = a2 + 8; v5 = *(_DWORD **)(result + 12); v6 = (a2[8] + 17973517 + (a2[11] << 24) + (a2[10] << 16) + (a2[9] << 8)) ^ 0x7F76D; v7 = (-1622558010 - v6) ^ (v6 << 8); v8 = (-17973517 - v6 - v7) ^ (v7 >> 13); v9 = (v6 - v7 - v8) ^ (v8 >> 12); v10 = (v7 - v8 - v9) ^ (v9 << 16); v11 = (v8 - v9 - v10) ^ (v10 >> 5); v12 = (v9 - v10 - v11) ^ (v11 >> 3); v13 = *(_DWORD **)(*v5 + 12 * (((v11 - v12 - ((v10 - v11 - v12) ^ (v12 << 10))) ^ (((v10 - v11 - v12) ^ (v12 << 10)) >> 15)) & (v5[1] - 1))); if ( v13 ) v13 = (_DWORD *)((char *)v13 - v5[5]); while ( v13 ) { if ( v13[9] == 4 ) { result = memcmp((const void *)v13[8], v4, 4u); if ( !result ) { v15 = (_DWORD *)v13[1]; v16 = (_DWORD *)*v13; v17 = (_DWORD *)*v15; if ( (_DWORD *)*v15 == v15 ) { *v16 = 0; } else { v18 = v15 == (_DWORD *)*v16; v19 = (_DWORD *)v15[1]; if ( v18 ) { *v19 = v17; *(_DWORD *)*v13 = *(_DWORD *)(v13[1] + 4); } else { v17[1] = v19; v20 = (int *)v13[1]; v21 = (_DWORD *)v20[1]; v22 = *v20; if ( !v21 ) v21 = *(_DWORD **)*v13; *v21 = v22; } } free((void *)v13[1]); v23 = v13[4]; v24 = (cocos2d::CCObject *)v13[2]; v25 = *(_DWORD *)(a1 + 68); if ( v23 || v13[5] ) { v26 = *(_DWORD *)(v25 + 12); v27 = *(_DWORD *)(v26 + 20); if ( v13 == (_DWORD *)(*(_DWORD *)(v26 + 16) - v27) ) *(_DWORD *)(v26 + 16) = v27 + v23; v28 = v13[4]; v29 = v13[5]; if ( v28 ) *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 68) + 12) + 20) + v28 + 8) = v29; else *(_DWORD *)(a1 + 68) = v29; v30 = v13[5]; if ( v30 ) *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 68) + 12) + 20) + v30 + 4) = v13[4]; v31 = *(_DWORD **)(*(_DWORD *)(a1 + 68) + 12); v32 = 12 * (v13[10] & (v31[1] - 1)); --*(_DWORD *)(*v31 + v32 + 4); v33 = **(_DWORD **)(*(_DWORD *)(a1 + 68) + 12); if ( *(_DWORD **)(v33 + v32) == v13 + 3 ) *(_DWORD *)(v33 + v32) = v13[7]; v34 = v13[6]; if ( v34 ) *(_DWORD *)(v34 + 16) = v13[7]; v35 = v13[7]; if ( v35 ) *(_DWORD *)(v35 + 12) = v13[6]; --*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 68) + 12) + 12); } else { free(**(void ***)(v25 + 12)); free(*(void **)(*(_DWORD *)(a1 + 68) + 12)); *(_DWORD *)(a1 + 68) = 0; } free(v13); return cocos2d::CCObject::release(v24); } } v14 = v13[7]; if ( !v14 ) return result; v13 = (_DWORD *)(v14 - v5[5]); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source