//
// GJGroundLayer::create from 0x91705c to 0x917164 (264 bytes)
//
// 5 xrefs:
// > MenuGameLayer::init @ 0x7db0c8
// > LevelSelectLayer::init @ 0x8c51ec
// > GJBaseGameLayer::createGroundLayer @ 0x9998d4
// > GJBaseGameLayer::createGroundLayer @ 0x999910
// > ??> @ 0xde478
//
// 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 12:57:19 +0000
//
__int64 __fastcall GJGroundLayer::create(GJGroundLayer *this, int a2)
{
int v2; // w21
__int64 v4; // x19
v2 = (int)this;
v4 = operator new(0x1D8u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v4);
*(_QWORD *)(v4 + 408) = 0;
*(_QWORD *)v4 = &off_14683A0;
*(_QWORD *)(v4 + 320) = off_1468848;
*(_QWORD *)(v4 + 328) = &off_14688B8;
*(_QWORD *)(v4 + 336) = off_14688D0;
*(_QWORD *)(v4 + 344) = off_14688F0;
*(_QWORD *)(v4 + 352) = off_1468918;
*(_QWORD *)(v4 + 416) = 0;
*(_QWORD *)(v4 + 432) = 0;
*(_BYTE *)(v4 + 440) = 0;
*(_BYTE *)(v4 + 441) = 0;
*(_DWORD *)(v4 + 448) = 0;
*(_BYTE *)(v4 + 456) = 1;
*(_BYTE *)(v4 + 457) = 1;
*(_BYTE *)(v4 + 464) = 0;
*(_DWORD *)(v4 + 424) = 0;
*(_DWORD *)(v4 + 452) = 0;
*(_DWORD *)(v4 + 460) = 0;
if ( (unsigned __int8)GJGroundLayer::init((GJGroundLayer *)v4, v2, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
return 0;
}
}