// // cocos2d::ccArrayShrink from 0x5ec554 to 0x5ec578 (36 bytes) // // 1 xrefs: // > cocos2d::CCArray::reduceMemoryFootprint @ 0x5c21dc // // 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::ccArrayShrink(void *result) { int v1; // r1 unsigned int v2; // r3 _DWORD *v3; // r4 v1 = *(_DWORD *)result; v2 = *((_DWORD *)result + 1); v3 = result; if ( v2 > *(_DWORD *)result ) { if ( !v1 ) { if ( v2 == 1 ) return result; v1 = 1; } *((_DWORD *)result + 1) = v1; result = realloc(*((void **)result + 3), 4 * v1); v3[3] = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source