//
// EditorUI::onSettings from 0x7c0564 to 0x7c05f4 (144 bytes)
//
// 3 xrefs:
// > ??> @ 0x93ad8
// > EditorUI::init @ 0x7cffdc
// > ??> @ 0x1543fc0
//
// This function is hookable on this platform (idp: arm, 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:54:06 +0000
//
__int64 __fastcall EditorUI::onSettings(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x1
__int64 v3; // x19
EditorSFXManager *v4; // x0
LevelEditorLayer *v5; // x2
__int64 *v6; // x2
__int64 v7; // x0
__int64 v8; // x1
__int64 v9; // x3
if ( !*(_BYTE *)(this + 1588) )
{
v2 = *(_QWORD *)(*(_QWORD *)(this + 1440) + 1936LL);
if ( !v2 || *(_DWORD *)(v2 + 1140) == 2 )
{
v3 = this;
v4 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)this);
EditorSFXManager::playAction(v4, 220);
v6 = (__int64 *)LevelSettingsLayer::create(
*(LevelSettingsLayer **)(*(_QWORD *)(v3 + 1440) + 3272LL),
*(LevelSettingsObject **)(v3 + 1440),
v5);
v7 = *(_QWORD *)(v3 + 1440);
v8 = 0;
if ( v7 )
v8 = v7 + 13992;
v9 = *v6;
v6[106] = v8;
return (*(__int64 (__fastcall **)(__int64 *))(v9 + 1312))(v6);
}
}
return this;
}