//
// EditorUI::editObjectOptions from 0x100019d70 to 0x100019def (127 bytes)
//
// 1 xrefs:
// > EditorUI::handleEditorAction @ 0x10060c9d6
//
// 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:55 +0000
//
__int64 __fastcall EditorUI::editObjectOptions(_QWORD *a1)
{
__int64 result; // rax
__int64 v3; // rdi
__int64 v4; // rax
__int64 v5; // rax
if ( a1[187] || (result = sub_1007FEF90(a1[112]), (_DWORD)result) )
{
v3 = a1[180];
++*(_DWORD *)(v3 + 14720);
v3 += 14704;
EditorBuildStats::noteAction(v3);
v4 = EditorSFXManager::sharedState(v3);
EditorSFXManager::playAction(v4, 108, 107);
v5 = SetupObjectOptionsPopup::create(a1[187], a1[112]);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
return result;
}