//
// EditorUI::updateGroupIDLabel from 0x1401beaf0 to 0x1401bec45 (341 bytes)
//
// 13 xrefs:
// > EditorUI::init @ 0x1401ac0ee
// > EditorUI::showUI @ 0x1401b40e8
// > EditorUI::onGoToLayer @ 0x1401b5536
// > EditorUI::onGoToFreeLayer @ 0x1401b5698
// > EditorUI::onGoToBaseLayer @ 0x1401b56b0
// > EditorUI::onGroupUp @ 0x1401beaae
// > EditorUI::onGroupDown @ 0x1401beae5
// > EditorUI::onLockLayer @ 0x1401bed47
// > EditorUI::handleEditorAction @ 0x1401c3671
// > EditorUI::handleEditorAction @ 0x1401c36ae
// > EditorUI::handleEditorAction @ 0x1401c3800
// > LevelEditorLayer::updateOptions @ 0x1403ef55a
// > ??> @ 0x14091a4f8
//
// 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 11:28:02 +0000
//
__int64 __fastcall EditorUI::updateGroupIDLabel(__int64 a1, __int64 a2, __int64 a3)
{
const char *CString; // r9
__int64 v5; // rdx
cocos2d::CCString *v6; // rax
__int64 v7; // rax
unsigned __int64 v8; // rcx
int v9; // r8d
bool v10; // bl
void (__fastcall ***v11)(_QWORD, __int16 *); // rcx
__int16 *v12; // rdx
__int16 v13; // bx
__int16 v15; // [rsp+30h] [rbp+8h] BYREF
char v16; // [rsp+32h] [rbp+Ah]
CString = "All";
v5 = (unsigned int)*(__int16 *)(*(_QWORD *)(a1 + 1512) + 14866LL);
if ( (int)v5 > -1 )
{
v6 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v5, a3, "All");
CString = cocos2d::CCString::getCString(v6);
}
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 1328) + 360LL))(
*(_QWORD *)(a1 + 1328) + 360LL,
CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 1328), 38.0, 0.60000002, 0.0);
v7 = *(_QWORD *)(a1 + 1512);
v8 = *(__int16 *)(v7 + 14866);
if ( (unsigned __int16)v8 > 0x270Fu || !*(_BYTE *)(v7 + 14666) )
{
v10 = 0;
v11 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 1328) + 368LL);
goto LABEL_8;
}
v9 = *(_DWORD *)(*(_QWORD *)(v7 + 15208) + 4 * (v8 >> 5)) & (1 << v8);
v10 = v9 != 0;
v11 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 1328) + 368LL);
if ( !v9 )
{
LABEL_8:
v12 = &word_14070329C;
goto LABEL_9;
}
v15 = -26881;
v12 = &v15;
v16 = 0;
LABEL_9:
(**v11)(v11, v12);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 1648) + 336LL))(*(_QWORD *)(a1 + 1648), v10);
v13 = *(_WORD *)(*(_QWORD *)(a1 + 1512) + 14866LL) >> 15;
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 1352) + 336LL))(
*(_QWORD *)(a1 + 1352),
*(_WORD *)(*(_QWORD *)(a1 + 1512) + 14866LL) >= 0);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1232) + 336LL))(
*(_QWORD *)(a1 + 1232),
(unsigned __int8)v13);
}