//
// GJGroundLayer::create from 0x546208 to 0x5462b4 (172 bytes)
//
// 4 xrefs:
// > MenuGameLayer::init @ 0x493088
// > LevelSelectLayer::init @ 0x512738
// > GJBaseGameLayer::createGroundLayer @ 0x58be50
// > GJBaseGameLayer::createGroundLayer @ 0x58be76
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:23 +0000
//
cocos2d::CCLayer *__fastcall GJGroundLayer::create(GJGroundLayer *this, int a2, int a3)
{
cocos2d::CCLayer *v5; // r4
int v6; // r3
int *v7; // r0
v5 = (cocos2d::CCLayer *)operator new(0x168u);
cocos2d::CCLayer::CCLayer(v5);
*((_BYTE *)v5 + 348) = 1;
*((_BYTE *)v5 + 349) = 1;
*(_DWORD *)v5 = &off_CADDD8;
*((_DWORD *)v5 + 66) = &off_CAE02C;
*((_DWORD *)v5 + 67) = &off_CAE064;
*((_DWORD *)v5 + 68) = &off_CAE070;
*((_DWORD *)v5 + 69) = &off_CAE080;
*((_DWORD *)v5 + 70) = &off_CAE094;
*((_DWORD *)v5 + 81) = 0;
*((_DWORD *)v5 + 86) = 0;
*((_DWORD *)v5 + 88) = 0;
*((_DWORD *)v5 + 79) = 0;
*((_DWORD *)v5 + 80) = 0;
*((_DWORD *)v5 + 82) = 0;
*((_BYTE *)v5 + 332) = 0;
*((_BYTE *)v5 + 333) = 0;
*((_DWORD *)v5 + 85) = 0;
*((_BYTE *)v5 + 356) = 0;
if ( GJGroundLayer::init(v5, (const char *)this, a2) )
{
cocos2d::CCObject::autorelease(v5);
}
else
{
v6 = *(_DWORD *)v5;
v7 = (int *)v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v6 + 8))(v7);
}
return v5;
}