//
// SecretLayer::create from 0xa61f9c to 0xa62088 (236 bytes)
//
// 2 xrefs:
// > SecretLayer::scene @ 0xa620a4
// > ??> @ 0xbc5d8
//
// 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:15 +0000
//
__int64 __fastcall SecretLayer::create(SecretLayer *this)
{
__int64 v1; // x19
v1 = operator new(0x1E8u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v1);
*(_DWORD *)(v1 + 424) = -1;
*(_QWORD *)v1 = &off_148E980;
*(_QWORD *)(v1 + 320) = off_148EE30;
*(_QWORD *)(v1 + 328) = &off_148EEA0;
*(_QWORD *)(v1 + 336) = off_148EEB8;
*(_QWORD *)(v1 + 344) = off_148EED8;
*(_QWORD *)(v1 + 352) = off_148EF00;
*(_QWORD *)(v1 + 408) = off_148EF30;
*(_QWORD *)(v1 + 416) = &off_148EF78;
*(_DWORD *)(v1 + 428) = 0;
*(_DWORD *)(v1 + 432) = 0;
*(_DWORD *)(v1 + 436) = 0;
*(_DWORD *)(v1 + 440) = 0;
*(_QWORD *)(v1 + 448) = 0;
*(_QWORD *)(v1 + 456) = 0;
*(_QWORD *)(v1 + 472) = 0;
*(_DWORD *)(v1 + 480) = -1;
if ( (unsigned __int8)SecretLayer::init((SecretLayer *)v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}