//
// cocos2d::CCGrid3D::reuse from 0xd4ea18 to 0xd4ea7c (100 bytes)
//
// 2 xrefs:
// > ??> @ 0xff760
// > ??> @ 0x1516ff8
//
// 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:07:39 +0000
//
__int64 __fastcall cocos2d::CCGrid3D::reuse(__int64 this)
{
__int64 v1; // x19
if ( *(int *)(this + 60) > 0 )
{
v1 = this;
memcpy(
*(void **)(this + 136),
*(const void **)(v1 + 128),
(unsigned __int64)(float)((float)((float)(*(float *)(this + 64) + 1.0) * (float)(*(float *)(v1 + 68) + 1.0)) * 12.0));
this = (unsigned int)(*(_DWORD *)(v1 + 60) - 1);
*(_DWORD *)(v1 + 60) = this;
}
return this;
}