//
// EditorUI::updateGroupIDLabel from 0x4842f0 to 0x484398 (168 bytes)
//
// 9 xrefs:
// > LevelEditorLayer::updateOptions @ 0x45fc84
// > EditorUI::onGoToLayer @ 0x484416
// > EditorUI::onGoToBaseLayer @ 0x48442a
// > EditorUI::onGroupUp @ 0x48443c
// > EditorUI::onGroupDown @ 0x484452
// > EditorUI::onLockLayer @ 0x484478
// > EditorUI::onGoToFreeLayer @ 0x4852ea
// > EditorUI::showUI @ 0x489c44
// > EditorUI::init @ 0x48bdce
//
// 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::updateGroupIDLabel(EditorUI *this, int a2)
{
const char *v3; // r1
cocos2d::CCString *v4; // r0
const char *CString; // r1
_BOOL4 isLayerLocked; // r6
int v7; // r0
void (__fastcall *v8)(int, __int16 *); // r3
__int16 *v9; // r1
_DWORD v11[2]; // [sp+0h] [bp-8h] BYREF
v11[0] = this;
v11[1] = a2;
v3 = (const char *)*(__int16 *)(*((_DWORD *)this + 236) + 11826);
if ( (int)v3 < 0 )
{
CString = "All";
}
else
{
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v3);
CString = (const char *)cocos2d::CCString::getCString(v4);
}
(*(void (__fastcall **)(_DWORD, const char *))(**((_DWORD **)this + 215) + 464))(*((_DWORD *)this + 215), CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 215), 38.0, 0.6, 0.0);
isLayerLocked = LevelEditorLayer::isLayerLocked(
*((LevelEditorLayer **)this + 236),
*(__int16 *)(*((_DWORD *)this + 236) + 11826));
v7 = *((_DWORD *)this + 215);
v8 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v7 + 536);
if ( isLayerLocked )
{
v9 = (__int16 *)v11;
LOWORD(v11[0]) = -26881;
BYTE2(v11[0]) = 0;
}
else
{
v9 = word_BEBDD8;
}
v8(v7, v9);
(*(void (__fastcall **)(_DWORD, _BOOL4))(**((_DWORD **)this + 261) + 172))(*((_DWORD *)this + 261), isLayerLocked);
return EditorUI::updateGroupIDBtn2(this);
}