//
// SecretLayer2::create from 0x100496040 to 0x100496157 (279 bytes)
//
// 2 xrefs:
// > SecretLayer2::scene @ 0x100496017
// > SecretLayer3::onBack @ 0x10049eee7
//
// This function is hookable on this platform (idp: pc, 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:30:48 +0000
//
char *SecretLayer2::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x208u);
cocos2d::CCLayer::CCLayer(v0);
*(_QWORD *)v0 = off_100B50378;
*((_QWORD *)v0 + 40) = off_100B50830;
*((_QWORD *)v0 + 41) = &off_100B508A0;
*((_QWORD *)v0 + 42) = off_100B508B8;
*((_QWORD *)v0 + 43) = off_100B508D8;
*((_QWORD *)v0 + 44) = off_100B50900;
*((_QWORD *)v0 + 51) = off_100B50930;
*((_QWORD *)v0 + 52) = &off_100B50978;
*((_QWORD *)v0 + 53) = &off_100B50990;
*((_OWORD *)v0 + 27) = 0xFFFFFFFFFFFFFFFFLL;
*((_QWORD *)v0 + 56) = 0xFFFFFFFF00000000LL;
*((_QWORD *)v0 + 60) = 0;
v0[488] = 0;
*(_OWORD *)(v0 + 456) = 0;
*((_DWORD *)v0 + 123) = -1;
*((_OWORD *)v0 + 31) = 0;
*((_QWORD *)v0 + 64) = 0;
if ( (unsigned __int8)SecretLayer2::init(v0) )
{
cocos2d::CCObject::autorelease((__int64)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return v0;
}