//
// SetGroupIDLayer::updateZOrderLabel from 0xabb4d0 to 0xabb680 (432 bytes)
//
// 6 xrefs:
// > SetGroupIDLayer::onPaste @ 0xabba50
// > SetGroupIDLayer::onArrow @ 0xabc36c
// > SetGroupIDLayer::onArrow @ 0xabc4cc
// > SetGroupIDLayer::onArrow @ 0xabc548
// > SetGroupIDLayer::init @ 0xac05d8
// > ??> @ 0x5d5f8
//
// 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::updateZOrderLabel(SetGroupIDLayer *this)
{
const char *v2; // x1
cocos2d::CCString *v3; // x0
const char *CString; // x24
size_t v5; // x0
size_t v6; // x20
_QWORD *v7; // x25
unsigned __int64 v8; // x0
char *v9; // x3
int v11; // w2
cocos2d::CCString *v12; // x0
__int64 v13; // [xsp+50h] [xbp+50h] BYREF
size_t v14; // [xsp+58h] [xbp+58h]
void *v15; // [xsp+60h] [xbp+60h]
v2 = (const char *)*((unsigned int *)this + 194);
*((_BYTE *)this + 797) = 1;
if ( (_DWORD)v2 == -1000 )
{
v11 = *((_DWORD *)this + 195);
if ( !v11 )
{
v13 = 0;
v7 = *((_QWORD **)this + 90);
v6 = 5;
v14 = 0;
CString = "Mixed";
v15 = nullptr;
v9 = (char *)&v13 + 1;
LOBYTE(v13) = 10;
goto LABEL_6;
}
if ( v11 <= 0 )
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s%i", &byte_1226080);
else
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s%i", "M+");
CString = (const char *)cocos2d::CCString::getCString(v12);
}
else
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v2);
CString = (const char *)cocos2d::CCString::getCString(v3);
}
v13 = 0;
v14 = 0;
v15 = nullptr;
v5 = strlen(CString);
v6 = v5;
v7 = *((_QWORD **)this + 90);
if ( v5 > 0xFFFFFFFFFFFFFFEFLL )
sub_62E7DC();
if ( v5 > 0x16 )
{
v8 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v13 = v8 | 1;
v9 = (char *)operator new(v8);
v15 = v9;
v14 = v6;
LABEL_6:
v9 = (char *)memcpy(v9, CString, v6);
goto LABEL_7;
}
LOBYTE(v13) = 2 * v5;
v9 = (char *)&v13 + 1;
if ( v5 )
goto LABEL_6;
LABEL_7:
v9[v6] = 0;
CCTextInputNode::setString(v7, (char *)&v13);
if ( (v13 & 1) != 0 )
operator delete(v15);
*((_BYTE *)this + 797) = 0;
return _stack_chk_guard;
}