//
// SetTextPopup::updateTextInputLabel from 0x8d3374 to 0x8d3474 (256 bytes)
//
// 3 xrefs:
// > SetTextPopup::init @ 0x8d3ac4
// > SetTextPopup::onResetValue @ 0x8d43e0
// > ??> @ 0x457f8
//
// 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::updateTextInputLabel(SetTextPopup *a1)
{
CCTextInputNode *m_input; // x22
unsigned __int8 *v3; // x0
unsigned int *v4; // x2
int v5; // w1
const unsigned __int8 *v6; // [xsp+40h] [xbp+40h] BYREF
a1->m_disableDelegate = 1;
m_input = a1->m_input;
sub_D18D28(&v6);
CCTextInputNode::setString(m_input, &v6);
v3 = (unsigned __int8 *)(v6 - 24);
if ( v6 - 24 != (const unsigned __int8 *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v4 = (unsigned int *)(v6 - 8);
do
v5 = __ldaxr(v4);
while ( __stlxr(v5 - 1, v4) );
}
else
{
v5 = *((_DWORD *)v6 - 2);
*((_DWORD *)v6 - 2) = v5 - 1;
}
if ( v5 <= 0 )
operator delete(v3);
}
a1->m_disableDelegate = 0;
}