//
// SecretLayer4::create from 0xa9796c to 0xa97a64 (248 bytes)
//
// 2 xrefs:
// > SecretLayer4::scene @ 0xa97a80
// > ??> @ 0xf36e8
//
// 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 13:00:44 +0000
//
__int64 __fastcall SecretLayer4::create(SecretLayer4 *this)
{
__int64 v1; // x19
v1 = operator new(0x1F0u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v1);
*(_DWORD *)(v1 + 432) = -1;
*(_QWORD *)v1 = &off_149AD90;
*(_QWORD *)(v1 + 320) = off_149B248;
*(_QWORD *)(v1 + 328) = &off_149B2B8;
*(_QWORD *)(v1 + 336) = off_149B2D0;
*(_QWORD *)(v1 + 344) = off_149B2F0;
*(_QWORD *)(v1 + 352) = off_149B318;
*(_QWORD *)(v1 + 408) = off_149B348;
*(_QWORD *)(v1 + 416) = &off_149B390;
*(_QWORD *)(v1 + 424) = &off_149B3A8;
*(_QWORD *)(v1 + 436) = 0xFFFFFFFFLL;
*(_DWORD *)(v1 + 444) = 0;
*(_DWORD *)(v1 + 448) = 0;
*(_DWORD *)(v1 + 452) = -1;
*(_QWORD *)(v1 + 456) = 0;
*(_QWORD *)(v1 + 464) = 0;
*(_QWORD *)(v1 + 480) = 0;
*(_BYTE *)(v1 + 488) = 0;
if ( (unsigned __int8)SecretLayer4::init((SecretLayer4 *)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}