//
// DrawGridLayer::create from 0x1000aba40 to 0x1000abb5b (283 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::init @ 0x1000aa9fb
//
// 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 12:20:17 +0000
//
char *__fastcall DrawGridLayer::create(__int64 a1, __int64 a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x260u);
cocos2d::CCLayer::CCLayer(v2);
*(_QWORD *)v2 = off_100AC4180;
*((_QWORD *)v2 + 40) = off_100AC4610;
*((_QWORD *)v2 + 41) = &off_100AC4680;
*((_QWORD *)v2 + 42) = off_100AC4698;
*((_QWORD *)v2 + 43) = off_100AC46B8;
*((_QWORD *)v2 + 44) = off_100AC46E0;
*((_OWORD *)v2 + 27) = 0;
*((_OWORD *)v2 + 28) = 0;
*((_DWORD *)v2 + 116) = 1065353216;
*((_DWORD *)v2 + 118) = -1082130432;
*((_WORD *)v2 + 300) = 0;
*((_QWORD *)v2 + 60) = 0;
*(_QWORD *)(v2 + 485) = 0;
*(_OWORD *)(v2 + 504) = 0;
*(_OWORD *)(v2 + 520) = 0;
*(_OWORD *)(v2 + 536) = 0;
*(_OWORD *)(v2 + 552) = 0;
*(_OWORD *)(v2 + 564) = 0;
*((_DWORD *)v2 + 151) = 1106247680;
if ( (unsigned __int8)DrawGridLayer::init(v2, a1, a2) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}