//
// SetGroupIDLayer::updateEditorLabel from 0x63adcc to 0x63ae52 (134 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::onNextFreeEditorLayer1 @ 0x63aea2
// > SetGroupIDLayer::onPaste @ 0x63b144
// > SetGroupIDLayer::onArrow @ 0x63b34e
// > SetGroupIDLayer::init @ 0x63e080
//
// 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:55:24 +0000
//
int __fastcall SetGroupIDLayer::updateEditorLabel(SetGroupIDLayer *this)
{
const char *v1; // r1
cocos2d::CCString *v3; // r0
const char *CString; // r8
size_t v5; // r0
int v6; // r9
int result; // r0
int v8[3]; // [sp+0h] [bp-14h] BYREF
v1 = *((const char **)this + 145);
*((_BYTE *)this + 609) = 1;
if ( (int)v1 < 0 )
{
CString = (const char *)&unk_B6B226;
}
else
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v1);
CString = (const char *)cocos2d::CCString::getCString(v3);
}
memset(v8, 0, sizeof(v8));
v5 = strlen(CString);
v6 = *((_DWORD *)this + 135);
std::string::__init(v8, CString, v5);
CCTextInputNode::setString(v6, (int)v8);
result = std::string::~string((int)v8);
*((_BYTE *)this + 609) = 0;
return result;
}