//
// SetupAnimationPopup::textChanged from 0x140409ce0 to 0x140409e8a (426 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405da6c0
// > ??> @ 0x1406d8a50
//
// 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 SetupAnimationPopup::textChanged(SetupAnimationPopup *a1, CCTextInputNode *a2)
{
bool v4; // zf
cocos2d::CCLabelProtocol_vtbl *v5; // rax
_BYTE *v6; // rax
size_t v7; // r8
const char *v8; // rcx
int v9; // eax
unsigned __int64 v10; // rdx
char *v11; // rcx
_BYTE *v12; // rax
size_t v13; // r8
const char *v14; // rcx
int v15; // eax
unsigned __int64 v16; // rdx
char *v17; // rcx
char *String[2]; // [rsp+28h] [rbp-30h] BYREF
__int128 v19; // [rsp+38h] [rbp-20h]
if ( !LOBYTE(a1->m_fSkewX) )
{
v4 = a2->getTag(a2) == 0;
v5 = a2->m_textField->__vftable;
if ( v4 )
{
v6 = (_BYTE *)((__int64 (*)(void))v5->getString)();
*(_OWORD *)String = 0;
v7 = -1;
v19 = 0;
do
++v7;
while ( v6[v7] );
sub_14003A930(String, v6, v7);
v8 = (const char *)String;
if ( *((_QWORD *)&v19 + 1) > 0xFu )
v8 = String[0];
v9 = atoi(v8);
v10 = *((_QWORD *)&v19 + 1);
LODWORD(a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable) = v9;
if ( v10 > 0xF )
{
v11 = String[0];
if ( v10 + 1 >= 0x1000 )
{
v11 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v11 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v11);
}
SetupAnimationPopup::updateTargetID((SetupAnimationPopup *)((char *)a1 - 632));
SetupTriggerPopup::updateEditorLabel((SetupAnimationPopup *)((char *)a1 - 632));
}
else
{
v12 = (_BYTE *)((__int64 (*)(void))v5->getString)();
*(_OWORD *)String = 0;
v13 = -1;
v19 = 0;
do
++v13;
while ( v12[v13] );
sub_14003A930(String, v12, v13);
v14 = (const char *)String;
if ( *((_QWORD *)&v19 + 1) > 0xFu )
v14 = String[0];
v15 = atoi(v14);
v16 = *((_QWORD *)&v19 + 1);
HIDWORD(a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable) = v15;
if ( v16 > 0xF )
{
v17 = String[0];
if ( v16 + 1 >= 0x1000 )
{
v17 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v17 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v17);
}
SetupAnimationPopup::updateAnimationID((SetupAnimationPopup *)((char *)a1 - 632));
}
}
}