//
// EditorUI::editGroup from 0x100472ae4 to 0x100472b94 (176 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x100162d34
// > EditorUI::init @ 0x10046ffac
//
// 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 11:05:39 +0000
//
__int64 __fastcall EditorUI::editGroup(__int64 *a1)
{
__int64 result; // x0
__int64 v3; // x8
__n128 v4; // q0
__int64 v5; // x0
_DWORD *v6; // x20
__int64 v7; // x0
int v8; // w19
_OWORD v9[2]; // [xsp+0h] [xbp-40h] BYREF
int v10; // [xsp+20h] [xbp-20h]
if ( a1[187] || (result = sub_1002E757C(a1[112]), (_DWORD)result) )
{
v3 = a1[180];
++*(_DWORD *)(v3 + 14720);
EditorBuildStats::noteAction(v3 + 14704);
v5 = EditorSFXManager::sharedState(v4);
EditorSFXManager::playAction(v5, 108, 107);
v6 = SetGroupIDLayer::create(a1[187], a1[112]);
v7 = a1[180];
memset(v9, 0, sizeof(v9));
v10 = 1065353216;
v8 = sub_100400CC4(v7, (__int64)v9);
sub_1000184EC((__int64)v9);
v6[202] = v8;
return (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v6 + 1312LL))(v6);
}
return result;
}