//
// EditorUI::onSettings from 0x1000092c0 to 0x100009348 (136 bytes)
//
// 1 xrefs:
// > EditorUI::init @ 0x100006899
//
// 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:18:48 +0000
//
__int64 __fastcall EditorUI::onSettings(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rax
_QWORD *v3; // rax
__int64 v4; // rcx
__int64 v5; // rdx
if ( !*(_BYTE *)(a1 + 1588) )
{
result = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 1936LL);
if ( !result || *(_DWORD *)(result + 1140) == 2 )
{
v2 = EditorSFXManager::sharedState(a1);
EditorSFXManager::playAction_1(v2, 220);
v3 = (_QWORD *)LevelSettingsLayer::create(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3272LL));
v4 = *(_QWORD *)(a1 + 1440);
v5 = v4 + 13992;
if ( !v4 )
v5 = 0;
v3[106] = v5;
return (*(__int64 (__fastcall **)(_QWORD *))(*v3 + 1312LL))(v3);
}
}
return result;
}