//
// SetupCameraEdgePopup::textChanged from 0x9ef114 to 0x9ef1f0 (220 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupCameraEdgePopup::textChanged @ 0x9ef1f4
// > ??> @ 0x86a90
// > ??> @ 0x11cd5c8
//
// 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 SetupCameraEdgePopup::textChanged(SetupCameraEdgePopup *a1, CCTextInputNode *a2)
{
char *v3; // x21
char *v4; // x0
unsigned int *v5; // x21
int v6; // w1
char *v7; // [xsp+40h] [xbp+40h] BYREF
if ( !a1->m_disableTextDelegate )
{
CCTextInputNode::getString(a2, (__int64)&v7);
v3 = v7;
a1->m_targetID = atoi(v7);
v4 = v3 - 24;
if ( v3 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v5 = (unsigned int *)(v3 - 8);
do
v6 = __ldaxr(v5);
while ( __stlxr(v6 - 1, v5) );
}
else
{
v6 = *((_DWORD *)v3 - 2);
*((_DWORD *)v3 - 2) = v6 - 1;
}
if ( v6 <= 0 )
operator delete(v4);
}
SetupCameraEdgePopup::updateTargetID(a1);
SetupTriggerPopup::updateEditorLabel(a1);
}
}