//
// SetupCameraEdgePopup::textChanged from 0x1005892b0 to 0x100589393 (227 bytes)
//
// 2 xrefs:
// > sub_1005893A0 @ 0x1005893ac
// > ??> @ 0x10096fb18
//
// 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 __fastcall SetupCameraEdgePopup::textChanged(SetupCameraEdgePopup *a1, CCTextInputNode *a2)
{
double v2; // xmm0_8
int m_targetID; // eax
char *v5; // r14
int v6; // ecx
int v7; // esi
EffectGameObject *m_gameObject; // rdi
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v10; // r14d
EffectGameObject *v11; // rax
_QWORD v12[2]; // [rsp-30h] [rbp-30h] BYREF
char *v13; // [rsp-20h] [rbp-20h]
if ( !a1->m_disableTextDelegate )
{
CCTextInputNode::getString(v12, (__int64)a2, v2);
if ( (v12[0] & 1) != 0 )
{
v5 = v13;
a1->m_targetID = atoi(v13);
operator delete(v5);
m_targetID = a1->m_targetID;
}
else
{
m_targetID = atoi((const char *)v12 + 1);
}
v6 = 0;
if ( m_targetID > 0 )
v6 = m_targetID;
v7 = 9999;
if ( v6 < 9999 )
v7 = v6;
a1->m_targetID = v7;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
EffectGameObject::setTargetID(m_gameObject, v7);
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )
{
v10 = 0;
do
{
v11 = (EffectGameObject *)sub_1007200C0(a1->m_gameObjects, v10);
EffectGameObject::setTargetID(v11, a1->m_targetID);
++v10;
}
while ( v10 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
SetupTriggerPopup::updateEditorLabel(a1);
}
}