//
// SetGroupIDLayer::updateGroupIDLabel from 0xabb680 to 0xabb7ec (364 bytes)
//
// 5 xrefs:
// > SetGroupIDLayer::onNextGroupID1 @ 0xabb86c
// > SetGroupIDLayer::onPaste @ 0xabba38
// > SetGroupIDLayer::onArrow @ 0xabc3b4
// > SetGroupIDLayer::init @ 0xac05c0
// > ??> @ 0xc0fb8
//
// 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 13:01:02 +0000
//
__int64 __fastcall SetGroupIDLayer::updateGroupIDLabel(SetGroupIDLayer *this)
{
const char *v2; // x1
cocos2d::CCString *v3; // x0
const char *CString; // x25
size_t v5; // x0
size_t v6; // x21
_QWORD *v7; // x24
unsigned __int64 v8; // x0
char *v9; // x3
IDNameInput *v10; // x0
__int64 v12; // [xsp+50h] [xbp+50h] BYREF
size_t v13; // [xsp+58h] [xbp+58h]
void *v14; // [xsp+60h] [xbp+60h]
*((_BYTE *)this + 797) = 1;
v2 = (const char *)*((unsigned int *)this + 191);
if ( ((unsigned int)v2 & 0x80000000) != 0 )
{
v7 = *((_QWORD **)this + 91);
v12 = 0;
v6 = 0;
v13 = 0;
v9 = (char *)&v12 + 1;
v14 = nullptr;
}
else
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v2);
v12 = 0;
CString = (const char *)cocos2d::CCString::getCString(v3);
v13 = 0;
v14 = nullptr;
v5 = strlen(CString);
v6 = v5;
v7 = *((_QWORD **)this + 91);
if ( v5 > 0xFFFFFFFFFFFFFFEFLL )
sub_62E7DC();
if ( v5 > 0x16 )
{
v8 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v12 = v8 | 1;
v9 = (char *)operator new(v8);
v14 = v9;
v13 = v6;
LABEL_5:
v9 = (char *)memcpy(v9, CString, v6);
goto LABEL_6;
}
LOBYTE(v12) = 2 * v5;
v9 = (char *)&v12 + 1;
if ( v5 )
goto LABEL_5;
}
LABEL_6:
v9[v6] = 0;
CCTextInputNode::setString(v7, (char *)&v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
v10 = *((IDNameInput **)this + 107);
*((_BYTE *)this + 797) = 0;
if ( v10 )
IDNameInput::refreshLabel(v10);
return _stack_chk_guard;
}