//
// SetTextPopup::textChanged from 0x8c46b0 to 0x8c47b0 (256 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'SetTextPopup::textChanged @ 0x8c47b4
// > ??> @ 0x3d860
// > ??> @ 0x119c698
// > ??> @ 0x11ebc68
//
// 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 SetTextPopup::textChanged(SetTextPopup *a1, CCTextInputNode *a2)
{
size_t v3; // x0
char *v4; // x0
unsigned int *v5; // x2
int v6; // w1
char *v7; // [xsp+28h] [xbp+28h]
char *v8; // [xsp+40h] [xbp+40h] BYREF
if ( !a1->m_disableDelegate )
{
CCTextInputNode::getString(a2, (__int64)&v8);
v7 = v8;
v3 = strlen(v8);
sub_D1798C(&a1->m_value, v7, v3);
v4 = v8 - 24;
if ( v8 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v5 = (unsigned int *)(v8 - 8);
do
v6 = __ldaxr(v5);
while ( __stlxr(v6 - 1, v5) );
}
else
{
v6 = *((_DWORD *)v8 - 2);
*((_DWORD *)v8 - 2) = v6 - 1;
}
if ( v6 <= 0 )
operator delete(v4);
}
}
}