//
// SecretLayer4::create from 0x1003b0b70 to 0x1003b0c6b (251 bytes)
//
// 1 xrefs:
// > SecretLayer4::scene @ 0x1003b0b47
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
SecretLayer4 *__fastcall SecretLayer4::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x1F0u);
cocos2d::CCLayer::CCLayer(v0);
*(_QWORD *)v0 = off_100929228;
*((_QWORD *)v0 + 40) = off_1009296D0;
*((_QWORD *)v0 + 41) = &off_100929740;
*((_QWORD *)v0 + 42) = off_100929758;
*((_QWORD *)v0 + 43) = off_100929778;
*((_QWORD *)v0 + 44) = off_100929798;
*((_QWORD *)v0 + 51) = off_1009297C0;
*((_QWORD *)v0 + 52) = &off_100929808;
*((_QWORD *)v0 + 53) = &off_100929820;
*((_OWORD *)v0 + 27) = 0xFFFFFFFFFFFFFFFFLL;
*((_QWORD *)v0 + 56) = 0xFFFFFFFF00000000LL;
*((_QWORD *)v0 + 60) = 0;
v0[488] = 0;
*(_OWORD *)(v0 + 456) = 0;
if ( SecretLayer4::init((SecretLayer4 *)v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return (SecretLayer4 *)v0;
}