//
// EditorUI::onGoToFreeLayer from 0x100472cb0 to 0x100472d10 (96 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x100163608
// > EditorUI::init @ 0x100470534
//
// 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::onGoToFreeLayer(__int64 a1)
{
__int64 v2; // x0
__int16 v3; // w20
_OWORD v5[2]; // [xsp+0h] [xbp-40h] BYREF
int v6; // [xsp+20h] [xbp-20h]
v2 = *(_QWORD *)(a1 + 1440);
memset(v5, 0, sizeof(v5));
v6 = 1065353216;
v3 = sub_10040158C(v2, (__int64)v5);
sub_1000184EC((__int64)v5);
*(_WORD *)(*(_QWORD *)(a1 + 1440) + 14210LL) = v3;
return EditorUI::updateGroupIDLabel(a1);
}