//
// GJGroundLayer::create from 0x10002f268 to 0x10002f2d8 (112 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::createGroundLayer @ 0x1002786a0
// > GJBaseGameLayer::createGroundLayer @ 0x1002786d8
// > MenuGameLayer::init @ 0x100441cd4
// > LevelSelectLayer::init @ 0x100482354
//
// 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 10:57:30 +0000
//
void *__fastcall GJGroundLayer::create(__int64 a1, __int64 a2)
{
void *v4; // x19
v4 = operator new(0x1D8u);
GJGroundLayer::GJGroundLayer();
if ( (unsigned int)GJGroundLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}