//
// LevelSettingsObject::create from 0x1402eab20 to 0x1402eac51 (305 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::init @ 0x1402d29b3
// > LevelSettingsObject::objectFromDict @ 0x1402eca6d
// > PlayLayer::setupHasCompleted @ 0x1403a685e
// > StartPosObject::init @ 0x1404b2004
// > ??> @ 0x1406d383c
//
// 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
//
// Hidden C++ exception states: #wind=1
LevelSettingsObject *LevelSettingsObject::create()
{
char *v0; // rbx
bool (*v1)(LevelSettingsObject *); // rdx
bool v2; // al
v0 = (char *)operator new(0x1D8u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v0);
*(_QWORD *)v0 = &LevelSettingsObject::`vftable';
*((_QWORD *)v0 + 40) = 0;
*((_DWORD *)v0 + 84) = 0;
*((_WORD *)v0 + 170) = 0;
*((_DWORD *)v0 + 86) = 0;
*((_WORD *)v0 + 174) = 0;
v0[350] = 0;
*((_QWORD *)v0 + 44) = 0;
*((_QWORD *)v0 + 45) = 0;
*((_DWORD *)v0 + 92) = 0;
*(_QWORD *)(v0 + 372) = 0;
*((_QWORD *)v0 + 48) = 0;
*(_OWORD *)(v0 + 392) = 0;
*((_QWORD *)v0 + 51) = 0;
*((_QWORD *)v0 + 52) = 15;
v0[392] = 0;
v0[424] = 0;
*(_QWORD *)(v0 + 428) = 0;
*((_WORD *)v0 + 218) = 0;
v0[438] = 0;
*((_QWORD *)v0 + 55) = 0;
v0[448] = 0;
*(_QWORD *)(v0 + 452) = 0;
*(_QWORD *)(v0 + 460) = 0;
v0[468] = 0;
v1 = *(bool (**)(LevelSettingsObject *))(*(_QWORD *)v0 + 72LL);
if ( v1 == LevelSettingsObject::init )
v2 = LevelSettingsObject::init((LevelSettingsObject *)v0);
else
v2 = v1((LevelSettingsObject *)v0);
if ( v2 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return (LevelSettingsObject *)v0;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);
return nullptr;
}
}