//
// SetGroupIDLayer::textChanged from 0xabbbf4 to 0xabbed8 (740 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetGroupIDLayer::textChanged @ 0xabbedc
// > ??> @ 0x9d2e8
// > ??> @ 0x14a9800
//
// 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::textChanged(SetGroupIDLayer *this, CCTextInputNode *a2)
{
char *v4; // x21
char *v5; // x21
int v6; // w0
char *v7; // x21
char *v8; // x21
char *v9; // x21
char *v10; // x21
__int64 v12[2]; // [xsp+40h] [xbp+40h] BYREF
char *v13; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 797) )
{
if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
CCTextInputNode::getString(a2, v12);
if ( (v12[0] & 1) != 0 )
{
v5 = v13;
*((_DWORD *)this + 191) = atoi(v13);
operator delete(v5);
v6 = *((_DWORD *)this + 191);
}
else
{
v6 = atoi((const char *)v12 + 1);
}
if ( v6 > 9999 )
v6 = 9999;
*((_DWORD *)this + 191) = v6;
}
else if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 5 )
{
CCTextInputNode::getString(a2, v12);
if ( (v12[0] & 1) != 0 )
{
v7 = v13;
*((_DWORD *)this + 192) = atoi(v13);
operator delete(v7);
}
else
{
*((_DWORD *)this + 192) = atoi((const char *)v12 + 1);
}
SetGroupIDLayer::updateEditorLayerID(this);
}
else if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 6 )
{
CCTextInputNode::getString(a2, v12);
if ( (v12[0] & 1) != 0 )
{
v8 = v13;
*((_DWORD *)this + 193) = atoi(v13);
operator delete(v8);
}
else
{
*((_DWORD *)this + 193) = atoi((const char *)v12 + 1);
}
SetGroupIDLayer::updateEditorLayerID2(this);
}
else if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 7 )
{
CCTextInputNode::getString(a2, v12);
if ( (v12[0] & 1) != 0 )
{
v9 = v13;
*((_DWORD *)this + 194) = atoi(v13);
operator delete(v9);
}
else
{
*((_DWORD *)this + 194) = atoi((const char *)v12 + 1);
}
SetGroupIDLayer::updateZOrder(this);
}
else if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
CCTextInputNode::getString(a2, v12);
if ( (v12[0] & 1) != 0 )
{
v10 = v13;
*((_DWORD *)this + 198) = atoi(v13);
operator delete(v10);
}
else
{
*((_DWORD *)this + 198) = atoi((const char *)v12 + 1);
}
SetGroupIDLayer::updateEditorOrder(this);
}
else if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 4 )
{
CCTextInputNode::getString(a2, v12);
if ( (v12[0] & 1) != 0 )
{
v4 = v13;
*((_DWORD *)this + 189) = atoi(v13);
operator delete(v4);
}
else
{
*((_DWORD *)this + 189) = atoi((const char *)v12 + 1);
}
SetGroupIDLayer::updateOrderChannel(this);
}
}
return _stack_chk_guard;
}