//
// cocos2d::CCGrid3D::reuse from 0x180023790 to 0x18002380e (126 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e7280
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af064
//
// 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::CCGrid3D::reuse(cocos2d::CCGrid3D *this)
{
unsigned __int64 v2; // rax
float v3; // xmm2_4
if ( this->m_nReuseGrid > 0 )
{
v2 = 0;
v3 = (float)((float)(this->m_sGridSize.height + 1.0) * (float)(this->m_sGridSize.width + 1.0)) * 12.0;
if ( v3 >= 9.223372e18 )
{
v3 = v3 - 9.223372e18;
if ( v3 < 9.223372e18 )
v2 = 0x8000000000000000uLL;
}
memcpy(*((void **)this + 17), *((const void **)this + 16), v2 + (unsigned int)(int)v3);
--this->m_nReuseGrid;
}
}