//
// SetGroupIDLayer::updateZOrderLabel from 0x140593f70 to 0x140594027 (183 bytes)
//
// 4 xrefs:
// > SetGroupIDLayer::init @ 0x14058ff82
// > SetGroupIDLayer::onArrow @ 0x1405913fa
// > SetGroupIDLayer::onPaste @ 0x140591af0
// > ??> @ 0x14092cf30
//
// 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::updateZOrderLabel(__int64 a1)
{
int v1; // edx
const char *CString; // rax
cocos2d::CCString *v4; // rax
int v5; // r8d
const char *v6; // rdx
size_t v7; // r8
__int128 v8; // [rsp+20h] [rbp-28h] BYREF
__int64 v9; // [rsp+30h] [rbp-18h]
__int64 v10; // [rsp+38h] [rbp-10h]
v1 = *(_DWORD *)(a1 + 776);
CString = "Mixed";
*(_BYTE *)(a1 + 797) = 1;
if ( v1 != -1000 )
{
v4 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);
LABEL_7:
CString = cocos2d::CCString::getCString(v4);
goto LABEL_8;
}
v5 = *(_DWORD *)(a1 + 780);
if ( v5 )
{
v6 = (const char *)&unk_14070EC04;
if ( v5 > 0 )
v6 = (const char *)&unk_1407E4184;
v4 = cocos2d::CCString::createWithFormat("%s%i", v6, v5);
goto LABEL_7;
}
LABEL_8:
v8 = 0;
v9 = 0;
v7 = -1;
v10 = 0;
do
++v7;
while ( CString[v7] );
sub_14003D230(&v8, CString, v7);
CCTextInputNode::setString(*(_QWORD **)(a1 + 720), &v8);
*(_BYTE *)(a1 + 797) = 0;
}