//
// SecretLayer5::create from 0xbc35d0 to 0xbc36f8 (296 bytes)
//
// 2 xrefs:
// > SecretLayer5::scene @ 0xbc3714
// > ??> @ 0x74638
//
// 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:03:30 +0000
//
__int64 __fastcall SecretLayer5::create(SecretLayer5 *this)
{
__int64 v1; // x19
v1 = operator new(0x288u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v1);
*(_DWORD *)(v1 + 440) = -1;
*(_QWORD *)v1 = &off_14DFA40;
*(_QWORD *)(v1 + 320) = off_14DFF08;
*(_QWORD *)(v1 + 328) = &off_14DFF78;
*(_QWORD *)(v1 + 336) = off_14DFF90;
*(_QWORD *)(v1 + 344) = off_14DFFB0;
*(_QWORD *)(v1 + 352) = off_14DFFD8;
*(_QWORD *)(v1 + 408) = off_14E0008;
*(_DWORD *)(v1 + 444) = -1;
*(_DWORD *)(v1 + 448) = 0;
*(_QWORD *)(v1 + 416) = &off_14E0050;
*(_QWORD *)(v1 + 424) = &off_14E0068;
*(_QWORD *)(v1 + 432) = &off_14E0080;
*(_DWORD *)(v1 + 452) = 0;
*(_DWORD *)(v1 + 456) = 0;
*(_DWORD *)(v1 + 460) = -1;
*(_QWORD *)(v1 + 464) = 0;
*(_QWORD *)(v1 + 472) = 0;
*(_BYTE *)(v1 + 488) = 0;
*(_QWORD *)(v1 + 504) = 0;
*(_BYTE *)(v1 + 512) = 0;
*(_DWORD *)(v1 + 516) = 0;
*(_QWORD *)(v1 + 520) = 0;
*(_QWORD *)(v1 + 528) = 0;
*(_QWORD *)(v1 + 536) = 0;
*(_BYTE *)(v1 + 544) = 0;
*(_QWORD *)(v1 + 592) = 0;
*(_QWORD *)(v1 + 600) = 0;
*(_QWORD *)(v1 + 608) = 0;
*(_DWORD *)(v1 + 616) = -1;
if ( (unsigned __int8)SecretLayer5::init((SecretLayer5 *)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}