// // cocos2d::ccArrayShrink from 0xd91a34 to 0xd91a94 (96 bytes) // // 2 xrefs: // > cocos2d::CCArray::reduceMemoryFootprint @ 0xd475a8 // > @ 0xb4e20 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:08:19 +0000 // 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