//
// EditorUI::updateGroupIDLabel from 0x100472d6c to 0x100472e88 (284 bytes)
//
// 9 xrefs:
// > LevelEditorLayer::updateOptions @ 0x1003f7618
// > EditorUI::init @ 0x10047075c
// > EditorUI::onGoToLayer @ 0x100472c10
// > EditorUI::onGroupUp @ 0x100472c7c
// > EditorUI::onGroupDown @ 0x100472c98
// > EditorUI::onGoToBaseLayer @ 0x100472cac
// > EditorUI::onGoToFreeLayer @ 0x100472cfc
// > EditorUI::onLockLayer @ 0x100472d5c
// > EditorUI::showUI @ 0x100473998
//
// 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::updateGroupIDLabel(__int64 a1)
{
void *v2; // x0
const char *CString; // x1
__int64 isLayerLocked; // x20
__int64 v5; // x20
if ( *(__int16 *)(*(_QWORD *)(a1 + 1440) + 14210LL) < 0 )
{
CString = "All";
}
else
{
v2 = sub_1003065B0("%i", *(__int16 *)(*(_QWORD *)(a1 + 1440) + 14210LL));
CString = (const char *)cocos2d::CCString::getCString((__int64)v2);
}
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 1280) + 928LL))(*(_QWORD *)(a1 + 1280), CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 1280), 38.0, 0.6, 0.0);
isLayerLocked = LevelEditorLayer::isLayerLocked(
*(_QWORD *)(a1 + 1440),
*(__int16 *)(*(_QWORD *)(a1 + 1440) + 14210LL));
(*(void (**)(void))(**(_QWORD **)(a1 + 1280) + 1072LL))();
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1576) + 344LL))(*(_QWORD *)(a1 + 1576), isLayerLocked);
v5 = *(unsigned __int16 *)(*(_QWORD *)(a1 + 1440) + 14210LL) >> 15;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1304) + 344LL))(
*(_QWORD *)(a1 + 1304),
(unsigned int)v5 ^ 1);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1184) + 344LL))(*(_QWORD *)(a1 + 1184), v5);
}