//
// SetGroupIDLayer::updateGroupIDLabel from 0x140594030 to 0x1405940cd (157 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::init @ 0x14058ff6a
// > SetGroupIDLayer::onArrow @ 0x1405912ee
// > SetGroupIDLayer::onPaste @ 0x140591ad8
// > ??> @ 0x14092cf3c
//
// 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:34:33 +0000
//
void __fastcall SetGroupIDLayer::updateGroupIDLabel(__int64 a1)
{
int v1; // edx
char *CString; // rax
cocos2d::CCString *v4; // rax
size_t v5; // r8
__int64 v6; // rcx
__int128 v7; // [rsp+20h] [rbp-28h] BYREF
__int64 v8; // [rsp+30h] [rbp-18h]
__int64 v9; // [rsp+38h] [rbp-10h]
v1 = *(_DWORD *)(a1 + 764);
CString = &byte_1406ED6E0;
*(_BYTE *)(a1 + 797) = 1;
if ( v1 > -1 )
{
v4 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);
CString = (char *)cocos2d::CCString::getCString(v4);
}
v7 = 0;
v8 = 0;
v5 = -1;
v9 = 0;
do
++v5;
while ( CString[v5] );
sub_14003D230(&v7, CString, v5);
CCTextInputNode::setString(*(_QWORD **)(a1 + 728), &v7);
v6 = *(_QWORD *)(a1 + 856);
*(_BYTE *)(a1 + 797) = 0;
if ( v6 )
IDNameInput::refreshLabel(v6);
}