// // cocos2d::ccArrayShrink from 0xb20eec to 0xb20f4c (96 bytes) // // 2 xrefs: // > cocos2d::CCArray::reduceMemoryFootprint @ 0xad4788 // > @ 0x88680 // // 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 // int *__fastcall cocos2d::ccArrayShrink(int *result) { int v1; // w2 size_t v2; // x1 int *v3; // x19 void *v4; // x0 v1 = *result; if ( result[1] > (unsigned int)*result && *(_QWORD *)result != 0x100000000LL ) { if ( v1 ) { v2 = 8LL * (unsigned int)*result; } else { v2 = 8; v1 = 1; } v3 = result; v4 = *((void **)result + 2); v3[1] = v1; result = (int *)realloc(v4, v2); *((_QWORD *)v3 + 2) = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source