//
// cocos2d::CCGrid3D::create_1 from 0x1004e3c50 to 0x1004e3cd2 (130 bytes)
//
// 1 xrefs:
// > cocos2d::CCGrid3DAction::getGrid @ 0x10020a279
//
// 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
//
cocos2d::CCGrid3D *__fastcall cocos2d::CCGrid3D::create_1(const cocos2d::CCSize *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x98u);
cocos2d::CCObject::CCObject((__int64)v1);
*(_QWORD *)v1 = off_100955CC0;
sub_10028CF90((_QWORD *)v1 + 8);
sub_10028CC30((_QWORD *)v1 + 10);
*(_QWORD *)v1 = off_100955D38;
*(_OWORD *)(v1 + 120) = 0;
*(_OWORD *)(v1 + 136) = 0;
if ( cocos2d::CCGridBase::initWithSize_1((cocos2d::CCGridBase *)v1, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (cocos2d::CCGrid3D *)v1;
}