//
// SetupCameraEdgePopup::textChanged from 0x1405ab0a0 to 0x1405ab1af (271 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407edad0
// > ??> @ 0x14092d728
//
// 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 11:34:40 +0000
//
void __fastcall SetupCameraEdgePopup::textChanged(__int64 a1, __int64 a2)
{
_BYTE *v3; // rax
size_t v4; // r8
const char *v5; // rcx
int v6; // eax
unsigned __int64 v7; // rdx
char *v8; // rcx
char *String[2]; // [rsp+38h] [rbp-30h] BYREF
__int128 v10; // [rsp+48h] [rbp-20h]
if ( !*(_BYTE *)(a1 + 200) )
{
v3 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a2 + 592) + 600LL) + 8LL))(*(_QWORD *)(a2 + 592) + 600LL);
*(_OWORD *)String = 0;
v4 = -1;
v10 = 0;
do
++v4;
while ( v3[v4] );
sub_14003D230(String, v3, v4);
v5 = (const char *)String;
if ( *((_QWORD *)&v10 + 1) > 0xFu )
v5 = String[0];
v6 = atoi(v5);
v7 = *((_QWORD *)&v10 + 1);
*(_DWORD *)(a1 + 464) = v6;
if ( v7 > 0xF )
{
v8 = String[0];
if ( v7 + 1 >= 0x1000 )
{
v8 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v8 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v8);
}
SetupCameraEdgePopup::updateTargetID(a1 - 544);
SetupTriggerPopup::updateEditorLabel(a1 - 544);
}
}