//
// SetGroupIDLayer::textChanged from 0x63aaac to 0x63ac36 (394 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetGroupIDLayer::textChanged @ 0x63ac40
//
// 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
//
char *__fastcall SetGroupIDLayer::textChanged(char *this, CCTextInputNode *a2)
{
SetGroupIDLayer *v2; // r5
char *v4; // r0
int v5; // r2
char *v6; // r0
char *v7; // r0
char *v8; // r0
char *v9; // r0
char *v10; // r0
char v11; // [sp+0h] [bp-14h] BYREF
_BYTE v12[7]; // [sp+1h] [bp-13h] BYREF
char *v13; // [sp+8h] [bp-Ch]
v2 = (SetGroupIDLayer *)this;
if ( !*(this + 609) )
{
if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 1 )
{
CCTextInputNode::getString((CCTextInputNode *)&v11, (int)a2);
if ( (v11 & 1) != 0 )
v4 = v13;
else
v4 = v12;
*((_DWORD *)v2 + 144) = atoi(v4);
this = (char *)std::string::~string((int)&v11);
v5 = *((_DWORD *)v2 + 144);
if ( v5 > 9999 )
*((_DWORD *)v2 + 144) = 9999;
else
*((_DWORD *)v2 + 144) = v5;
}
else if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 5 )
{
CCTextInputNode::getString((CCTextInputNode *)&v11, (int)a2);
if ( (v11 & 1) != 0 )
v6 = v13;
else
v6 = v12;
*((_DWORD *)v2 + 145) = atoi(v6);
std::string::~string((int)&v11);
return (char *)SetGroupIDLayer::updateEditorLayerID((unsigned int)v2);
}
else if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 6 )
{
CCTextInputNode::getString((CCTextInputNode *)&v11, (int)a2);
if ( (v11 & 1) != 0 )
v7 = v13;
else
v7 = v12;
*((_DWORD *)v2 + 146) = atoi(v7);
std::string::~string((int)&v11);
return (char *)SetGroupIDLayer::updateEditorLayerID2((unsigned int)v2);
}
else if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 7 )
{
CCTextInputNode::getString((CCTextInputNode *)&v11, (int)a2);
if ( (v11 & 1) != 0 )
v8 = v13;
else
v8 = v12;
*((_DWORD *)v2 + 147) = atoi(v8);
std::string::~string((int)&v11);
return (char *)SetGroupIDLayer::updateZOrder(v2);
}
else if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 3 )
{
CCTextInputNode::getString((CCTextInputNode *)&v11, (int)a2);
if ( (v11 & 1) != 0 )
v9 = v13;
else
v9 = v12;
*((_DWORD *)v2 + 151) = atoi(v9);
std::string::~string((int)&v11);
return (char *)SetGroupIDLayer::updateEditorOrder(v2);
}
else
{
this = (char *)(*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
if ( this == byte_4 )
{
CCTextInputNode::getString((CCTextInputNode *)&v11, (int)a2);
if ( (v11 & 1) != 0 )
v10 = v13;
else
v10 = v12;
*((_DWORD *)v2 + 142) = atoi(v10);
std::string::~string((int)&v11);
return (char *)SetGroupIDLayer::updateOrderChannel(v2);
}
}
}
return this;
}