//
// EditorUI::onGoToFreeLayer from 0x4852a8 to 0x485308 (96 bytes)
//
// 1 xrefs:
// > EditorUI::handleEditorAction @ 0x6f21aa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:24 +0000
//
int __fastcall EditorUI::onGoToFreeLayer(EditorUI *this, cocos2d::CCObject *a2)
{
LevelEditorLayer *v3; // r0
__int16 NextFreeEditorLayer; // r7
int v5; // r1
_DWORD v7[5]; // [sp+0h] [bp-1Ch] BYREF
v3 = *((LevelEditorLayer **)this + 236);
memset(v7, 0, 16);
v7[4] = 1065353216;
NextFreeEditorLayer = LevelEditorLayer::getNextFreeEditorLayer(v3, (int)v7);
std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)v7);
*(_WORD *)(*((_DWORD *)this + 236) + 11826) = NextFreeEditorLayer;
return EditorUI::updateGroupIDLabel(this, v5);
}