//
// SetupAnimationPopup::textChanged from 0x1405a13a0 to 0x1405a161b (635 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407e91c0
// > ??> @ 0x1408de7e4
// > ??> @ 0x1408de7f4
// > ??> @ 0x14092d404
//
// 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:37 +0000
//
void __fastcall SetupAnimationPopup::textChanged(__int64 a1, _QWORD *a2)
{
bool v4; // zf
__int64 v5; // rax
_BYTE *v6; // rax
size_t v7; // r8
const char *v8; // rcx
int v9; // eax
unsigned __int64 v10; // rdx
char *v11; // rcx
int v12; // ecx
__int64 v13; // rax
cocos2d::CCArray *v14; // rcx
unsigned int v15; // edi
struct cocos2d::CCObject *v16; // rax
int v17; // ecx
_BYTE *v18; // rax
size_t v19; // r8
const char *v20; // rcx
int v21; // eax
unsigned __int64 v22; // rdx
char *v23; // rcx
char *String[2]; // [rsp+38h] [rbp-40h] BYREF
__int128 v25; // [rsp+48h] [rbp-30h]
if ( !*(_BYTE *)(a1 + 200) )
{
v4 = (*(unsigned int (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) == 0;
v5 = *(_QWORD *)(a2[74] + 600LL);
if ( v4 )
{
v6 = (_BYTE *)(*(__int64 (**)(void))(v5 + 8))();
*(_OWORD *)String = 0;
v7 = -1;
v25 = 0;
do
++v7;
while ( v6[v7] );
sub_14003D230(String, v6, v7);
v8 = (const char *)String;
if ( *((_QWORD *)&v25 + 1) > 0xFu )
v8 = String[0];
v9 = atoi(v8);
v10 = *((_QWORD *)&v25 + 1);
*(_DWORD *)(a1 + 472) = v9;
if ( v10 > 0xF )
{
v11 = String[0];
if ( v10 + 1 >= 0x1000 )
{
v11 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v11 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v11);
}
v12 = 0;
if ( *(int *)(a1 + 472) >= 0 )
v12 = *(_DWORD *)(a1 + 472);
v13 = *(_QWORD *)(a1 + 136);
if ( v12 > 9999 )
v12 = 9999;
*(_DWORD *)(a1 + 472) = v12;
if ( v13 )
{
*(_DWORD *)(v13 + 1480) = v12;
}
else
{
v14 = *(cocos2d::CCArray **)(a1 + 144);
if ( v14 )
{
v15 = 0;
if ( cocos2d::CCArray::count(v14) )
{
do
{
v16 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 144), v15);
v17 = *(_DWORD *)(a1 + 472);
if ( v17 < 0 )
v17 = 0;
if ( v17 > 9999 )
v17 = 9999;
++v15;
*((_DWORD *)v16 + 370) = v17;
}
while ( v15 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 144)) );
}
}
}
SetupTriggerPopup::updateEditorLabel(a1 - 544);
}
else
{
v18 = (_BYTE *)(*(__int64 (**)(void))(v5 + 8))();
*(_OWORD *)String = 0;
v19 = -1;
v25 = 0;
do
++v19;
while ( v18[v19] );
sub_14003D230(String, v18, v19);
v20 = (const char *)String;
if ( *((_QWORD *)&v25 + 1) > 0xFu )
v20 = String[0];
v21 = atoi(v20);
v22 = *((_QWORD *)&v25 + 1);
*(_DWORD *)(a1 + 476) = v21;
if ( v22 > 0xF )
{
v23 = String[0];
if ( v22 + 1 >= 0x1000 )
{
v23 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v23 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v23);
}
SetupAnimationPopup::updateAnimationID(a1 - 544);
}
}
}