//
// SetupCameraEdgePopup::textChanged from 0x100649300 to 0x1006493e3 (227 bytes)
//
// 2 xrefs:
// > sub_1006493F0 @ 0x1006493fc
// > ??> @ 0x100b823b8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:34:46 +0000
//
void __fastcall SetupCameraEdgePopup::textChanged(__int64 a1, __int64 a2)
{
int v3; // eax
char *v4; // r14
int v5; // ecx
int v6; // esi
__int64 v7; // rdi
__int64 v8; // rdi
unsigned int v9; // r14d
__int64 v10; // rax
_QWORD v11[2]; // [rsp-30h] [rbp-30h] BYREF
char *v12; // [rsp-20h] [rbp-20h]
if ( !*(_BYTE *)(a1 + 744) )
{
CCTextInputNode::getString(v11, a2);
if ( (v11[0] & 1) != 0 )
{
v4 = v12;
*(_DWORD *)(a1 + 1024) = atoi(v12);
operator delete(v4);
v3 = *(_DWORD *)(a1 + 1024);
}
else
{
v3 = atoi((const char *)v11 + 1);
}
v5 = 0;
if ( v3 > 0 )
v5 = v3;
v6 = 9999;
if ( v5 < 9999 )
v6 = v5;
*(_DWORD *)(a1 + 1024) = v6;
v7 = *(_QWORD *)(a1 + 680);
if ( v7 )
{
EffectGameObject::setTargetID(v7, v6);
}
else
{
v8 = *(_QWORD *)(a1 + 688);
if ( v8 && (unsigned int)sub_1007FEF90(v8) )
{
v9 = 0;
do
{
v10 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), v9);
EffectGameObject::setTargetID(v10, *(_DWORD *)(a1 + 1024));
++v9;
}
while ( v9 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) );
}
}
SetupTriggerPopup::updateEditorLabel(a1);
}
}