//
// EditorSoundConfigInfoLayer::textChanged from 0xccfa80 to 0xccfb48 (200 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::textChanged @ 0xccfb4c
// > ??> @ 0xec908
// > ??> @ 0x14fedd8
//
// 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:06:26 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::textChanged(EditorSoundConfigInfoLayer *this, CCTextInputNode *a2)
{
__int64 v2; // x20
CCTextInputNode *v3; // x0
__int64 *v5; // x0
__int64 v6[2]; // [xsp+30h] [xbp+30h] BYREF
void *v7; // [xsp+40h] [xbp+40h]
v2 = *((_QWORD *)this + 136);
if ( v2 )
{
v3 = *((CCTextInputNode **)this + 154);
if ( v3 == a2 )
{
CCTextInputNode::getString(v3, v6);
v5 = (__int64 *)(v2 + 376);
if ( (__int64 *)(v2 + 376) != v6 )
{
if ( (v6[0] & 1) != 0 )
std::string::assign(v5, v7, v6[1]);
else
std::string::assign(v5, (char *)v6 + 1, LOBYTE(v6[0]) >> 1);
}
if ( (v6[0] & 1) != 0 )
operator delete(v7);
}
}
return _stack_chk_guard;
}