//
// cocos2d::CCGrid3D::reuse from 0x180023ce0 to 0x180023d5e (126 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800ed2e0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9148
//
// This function is hookable on this platform (idp: pc, 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 11:21:29 +0000
//
void __fastcall cocos2d::CCGrid3D::reuse(cocos2d::CCGrid3D *this)
{
unsigned __int64 v2; // rax
float v3; // xmm2_4
if ( *((int *)this + 15) > 0 )
{
v2 = 0;
v3 = (float)((float)(*((float *)this + 17) + 1.0) * (float)(*((float *)this + 16) + 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);
--*((_DWORD *)this + 15);
}
}