//
// EditorUI::updateGroupIDLabel from 0x14011f4e0 to 0x14011f61b (315 bytes)
//
// 12 xrefs:
// > EditorUI::init @ 0x1400e1658
// > EditorUI::showUI @ 0x140111a86
// > EditorUI::onGoToLayer @ 0x1401147b8
// > EditorUI::onGoToBaseLayer @ 0x1401147f0
// > EditorUI::onGroupUp @ 0x14011f49e
// > EditorUI::onGroupDown @ 0x14011f4d5
// > EditorUI::onLockLayer @ 0x14011f6d1
// > EditorUI::onLockLayer @ 0x14011f6e5
// > EditorUI::keyDown @ 0x140125ebf
// > EditorUI::keyDown @ 0x140125efb
// > LevelEditorLayer::updateOptions @ 0x1402d33e0
// > ??> @ 0x1406c9540
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EditorUI::updateGroupIDLabel(EditorUI *a1)
{
const char *CString; // r9
int m_currentLayer; // edx
cocos2d::CCString *v4; // rax
LevelEditorLayer *m_editorLayer; // rax
unsigned __int64 v6; // rcx
unsigned __int64 v7; // rdx
int v8; // r8d
cocos2d::CCLabelBMFont *m_currentLayerLabel; // rcx
int v10; // r8d
bool v11; // di
__int16 *v12; // rdx
__int16 v13; // [rsp+30h] [rbp+8h] BYREF
char v14; // [rsp+32h] [rbp+Ah]
CString = "All";
m_currentLayer = a1->m_editorLayer->m_currentLayer;
if ( m_currentLayer > -1 )
{
v4 = cocos2d::CCString::createWithFormat("%i", m_currentLayer);
CString = cocos2d::CCString::getCString(v4);
}
a1->m_currentLayerLabel->setString(&a1->m_currentLayerLabel->cocos2d::CCLabelProtocol, CString);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_currentLayerLabel, 38.0, 0.60000002, 0.0);
m_editorLayer = a1->m_editorLayer;
v6 = m_editorLayer->m_currentLayer;
if ( (unsigned __int16)v6 > 0x270Fu || !m_editorLayer->m_layerLockingEnabled )
{
m_currentLayerLabel = a1->m_currentLayerLabel;
v11 = 0;
goto LABEL_8;
}
v7 = v6 >> 5;
v8 = 1 << (v6 & 0x1F);
m_currentLayerLabel = a1->m_currentLayerLabel;
v10 = m_editorLayer->m_lockedLayers._Myvec._Mypair._Myval2._Myfirst[v7] & v8;
v11 = v10 != 0;
if ( !v10 )
{
LABEL_8:
v12 = &word_140529A48;
goto LABEL_9;
}
v13 = -26881;
v12 = &v13;
v14 = 0;
LABEL_9:
m_currentLayerLabel->setColor(&m_currentLayerLabel->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)v12);
a1->m_layerLockSprite->setVisible(a1->m_layerLockSprite, v11);
a1->m_goToBaseBtn->setVisible(a1->m_goToBaseBtn, a1->m_editorLayer->m_currentLayer >= 0);
}