//
// SecretLayer5::create from 0x100479ef0 to 0x10047a02a (314 bytes)
//
// 1 xrefs:
// > SecretLayer5::scene @ 0x100479ec7
//
// 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
//
SecretLayer5 *__fastcall SecretLayer5::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x288u);
cocos2d::CCLayer::CCLayer(v0);
*(_QWORD *)v0 = off_10093B270;
*((_QWORD *)v0 + 40) = off_10093B728;
*((_QWORD *)v0 + 41) = &off_10093B798;
*((_QWORD *)v0 + 42) = off_10093B7B0;
*((_QWORD *)v0 + 43) = off_10093B7D0;
*((_QWORD *)v0 + 44) = off_10093B7F0;
*((_QWORD *)v0 + 51) = off_10093B818;
*((_QWORD *)v0 + 52) = &off_10093B860;
*((_QWORD *)v0 + 53) = &off_10093B878;
*((_QWORD *)v0 + 54) = off_10093B890;
*(_OWORD *)(v0 + 440) = 0xFFFFFFFFFFFFFFFFLL;
*((_QWORD *)v0 + 57) = 0xFFFFFFFF00000000LL;
v0[488] = 0;
*((_QWORD *)v0 + 63) = 0;
v0[512] = 0;
*((_OWORD *)v0 + 37) = 0;
*((_QWORD *)v0 + 76) = 0;
*((_OWORD *)v0 + 29) = 0;
*(_OWORD *)(v0 + 516) = 0;
*(_OWORD *)(v0 + 529) = 0;
*((_DWORD *)v0 + 154) = -1;
if ( SecretLayer5::init((SecretLayer5 *)v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return (SecretLayer5 *)v0;
}