//
// SetGroupIDLayer::updateEditorLabel2 from 0x63aec4 to 0x63af4a (134 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::onNextFreeEditorLayer2 @ 0x63af9a
// > SetGroupIDLayer::onPaste @ 0x63b14a
// > SetGroupIDLayer::onArrow @ 0x63b36a
// > SetGroupIDLayer::init @ 0x63e086
//
// 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::updateEditorLabel2(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 + 146);
*((_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 + 136);
std::string::__init(v8, CString, v5);
CCTextInputNode::setString(v6, (int)v8);
result = std::string::~string((int)v8);
*((_BYTE *)this + 609) = 0;
return result;
}