//
// GJMGLayer::create from 0x917f84 to 0x918088 (260 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::createMiddleground @ 0x999808
// > ??> @ 0x84700
//
// 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:20 +0000
//
__int64 __fastcall GJMGLayer::create(GJMGLayer *this)
{
unsigned int v1; // w20
__int64 v2; // x19
v1 = (unsigned int)this;
v2 = operator new(0x1E8u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v2);
*(_QWORD *)(v2 + 408) = 0;
*(_QWORD *)v2 = &off_1468F00;
*(_QWORD *)(v2 + 320) = off_1469398;
*(_QWORD *)(v2 + 328) = &off_1469408;
*(_QWORD *)(v2 + 336) = off_1469420;
*(_QWORD *)(v2 + 344) = off_1469440;
*(_QWORD *)(v2 + 352) = off_1469468;
*(_QWORD *)(v2 + 416) = 0;
*(_QWORD *)(v2 + 432) = 0;
*(_BYTE *)(v2 + 440) = 0;
*(_BYTE *)(v2 + 448) = 1;
*(_BYTE *)(v2 + 449) = 1;
*(_BYTE *)(v2 + 456) = 0;
*(_BYTE *)(v2 + 457) = 0;
*(_BYTE *)(v2 + 458) = 0;
*(_QWORD *)(v2 + 464) = 0;
*(_QWORD *)(v2 + 472) = 0;
*(_DWORD *)(v2 + 424) = 0;
*(_DWORD *)(v2 + 444) = 0;
*(_DWORD *)(v2 + 452) = 0;
*(_DWORD *)(v2 + 480) = 0;
*(_DWORD *)(v2 + 484) = 0;
if ( (unsigned __int8)GJMGLayer::init((GJMGLayer *)v2, v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return 0;
}
}