//
// CCTextInputNode::textChanged from 0x5a3bdc to 0x5a3cfc (288 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CCTextInputNode::textChanged @ 0x5a3d00
// > ??> @ 0x9f888
// > ??> @ 0x1141320
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void CCTextInputNode::textChanged(CCTextInputNode *a1)
{
char *v2; // x0
char *v3; // x0
TextInputDelegate *m_delegate; // x0
unsigned int *v5; // x2
int v6; // w1
_DWORD *v7; // [xsp+40h] [xbp+40h] BYREF
v2 = (char *)a1->m_textField->getString(a1->m_textField);
sub_D153B8((int)&v7, v2);
CCTextInputNode::updateLabel(a1, (const void **)&v7);
v3 = (char *)(v7 - 6);
if ( v7 - 6 != (_DWORD *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v5 = v7 - 2;
do
v6 = __ldaxr(v5);
while ( __stlxr(v6 - 1, v5) );
}
else
{
v6 = *(v7 - 2);
*(v7 - 2) = v6 - 1;
}
if ( v6 <= 0 )
operator delete(v3);
}
m_delegate = a1->m_delegate;
if ( m_delegate )
m_delegate->textChanged(m_delegate, a1);
}