//
// LevelSettingsLayer::create from 0x10026b540 to 0x10026b726 (486 bytes)
//
// 2 xrefs:
// > EditorUI::onSettings @ 0x10002abf8
// > EditorUI::editObject @ 0x10002b1dc
//
// 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
//
LevelSettingsLayer *__fastcall LevelSettingsLayer::create(LevelSettingsObject *a1, LevelEditorLayer *a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x370u);
cocos2d::CCLayerColor::CCLayerColor(v2);
*((_QWORD *)v2 + 72) = 0;
*((_DWORD *)v2 + 146) = 0;
v2[588] = 0;
*((_OWORD *)v2 + 34) = 0;
*(_OWORD *)(v2 + 553) = 0;
*((_OWORD *)v2 + 37) = 0;
*((_QWORD *)v2 + 76) = 0;
*((_DWORD *)v2 + 154) = -1;
*((_WORD *)v2 + 310) = 0;
*((_DWORD *)v2 + 156) = -1;
v2[628] = 0;
*(_QWORD *)v2 = off_1008EC440;
*((_QWORD *)v2 + 40) = off_1008EC990;
*((_QWORD *)v2 + 41) = &off_1008ECA00;
*((_QWORD *)v2 + 42) = off_1008ECA18;
*((_QWORD *)v2 + 43) = off_1008ECA38;
*((_QWORD *)v2 + 44) = off_1008ECA58;
*((_QWORD *)v2 + 51) = off_1008ECA80;
*((_QWORD *)v2 + 54) = off_1008ECB00;
*((_QWORD *)v2 + 79) = &off_1008ECB20;
*((_QWORD *)v2 + 80) = &off_1008ECB38;
*((_QWORD *)v2 + 81) = &off_1008ECB50;
*((_QWORD *)v2 + 82) = &off_1008ECB68;
*((_QWORD *)v2 + 83) = &off_1008ECB80;
*((_QWORD *)v2 + 84) = off_1008ECB98;
*((_QWORD *)v2 + 85) = 0;
*((_DWORD *)v2 + 172) = 0;
*(_OWORD *)(v2 + 856) = 0;
*(_OWORD *)(v2 + 840) = 0;
*(_OWORD *)(v2 + 824) = 0;
*(_OWORD *)(v2 + 808) = 0;
*(_OWORD *)(v2 + 792) = 0;
*(_OWORD *)(v2 + 776) = 0;
*(_OWORD *)(v2 + 760) = 0;
*(_OWORD *)(v2 + 744) = 0;
*(_OWORD *)(v2 + 728) = 0;
*(_OWORD *)(v2 + 712) = 0;
*(_OWORD *)(v2 + 696) = 0;
v2[872] = 0;
if ( LevelSettingsLayer::init((LevelSettingsLayer *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (LevelSettingsLayer *)v2;
}