//
// EditorUI::updateGroupIDLabel from 0x10000ac40 to 0x10000ad52 (274 bytes)
//
// 9 xrefs:
// > EditorUI::init @ 0x1000076bd
// > EditorUI::onGoToLayer @ 0x10000a9ab
// > EditorUI::onGroupUp @ 0x10000aaf3
// > EditorUI::onGroupDown @ 0x10000ab24
// > EditorUI::onGoToBaseLayer @ 0x10000ab45
// > EditorUI::onGoToFreeLayer @ 0x10000abc8
// > EditorUI::onLockLayer @ 0x10000ac26
// > EditorUI::showUI @ 0x10000bd00
// > LevelEditorLayer::updateOptions @ 0x1000ab3e0
//
// 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:49 +0000
//
__int64 __fastcall EditorUI::updateGroupIDLabel(__int64 a1)
{
__int64 v2; // rax
const char *CString; // rsi
unsigned __int8 isLayerLocked; // r14
__int64 *v5; // rdi
__int64 v6; // rax
__int16 *v7; // rsi
unsigned int v8; // r14d
char v10; // [rsp+0h] [rbp-20h]
__int16 v11; // [rsp+Ch] [rbp-14h] BYREF
char v12; // [rsp+Eh] [rbp-12h]
if ( *(__int16 *)(*(_QWORD *)(a1 + 1440) + 14210LL) < 0 )
{
CString = "All";
}
else
{
v2 = sub_10088E820("%i", v10);
CString = (const char *)cocos2d::CCString::getCString(v2);
}
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 1280) + 928LL))(*(_QWORD *)(a1 + 1280), CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 1280), 38.0, 0.60000002, 0.0);
isLayerLocked = LevelEditorLayer::isLayerLocked(
*(_QWORD *)(a1 + 1440),
(unsigned int)*(__int16 *)(*(_QWORD *)(a1 + 1440) + 14210LL));
v5 = *(__int64 **)(a1 + 1280);
if ( isLayerLocked )
{
v12 = 0;
v11 = -26881;
v6 = *v5;
v7 = &v11;
}
else
{
v6 = *v5;
v7 = (__int16 *)&unk_100A038D0;
}
(*(void (__fastcall **)(__int64 *, __int16 *))(v6 + 1072))(v5, v7);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1576) + 344LL))(*(_QWORD *)(a1 + 1576), isLayerLocked);
v8 = *(unsigned __int16 *)(*(_QWORD *)(a1 + 1440) + 14210LL);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 1304) + 344LL))(*(_QWORD *)(a1 + 1304), (v8 & 0x8000u) == 0);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1184) + 344LL))(
*(_QWORD *)(a1 + 1184),
v8 >> 15);
}