//
// SetupRandTriggerPopup::textChanged from 0x140440bb0 to 0x140440e84 (724 bytes)
//
// 4 xrefs:
// > ??> @ 0x1405ec2e8
// > ??> @ 0x1406a2034
// > ??> @ 0x1406a2044
// > ??> @ 0x1406da370
//
// 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 SetupRandTriggerPopup::textChanged(SetupRandTriggerPopup *a1, CCTextInputNode *a2)
{
const char *v4; // rax
size_t v5; // r8
const char *v6; // rcx
int v7; // eax
unsigned __int64 v8; // rdx
char *v9; // rcx
const char *v10; // rax
size_t v11; // r8
const char *v12; // rcx
int v13; // eax
unsigned __int64 v14; // rdx
char *v15; // rcx
const char *v16; // rax
size_t v17; // r8
const char *v18; // rcx
float v19; // xmm6_4
char *v20; // rcx
cocos2d::CCString *v21; // rax
char *String[2]; // [rsp+28h] [rbp-38h] BYREF
__int128 v23; // [rsp+38h] [rbp-28h]
if ( !LOBYTE(a1->m_fSkewX) )
{
if ( a2->getTag(a2) == 3 )
{
v4 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);
*(_OWORD *)String = 0;
v5 = -1;
v23 = 0;
do
++v5;
while ( v4[v5] );
sub_14003A930(String, v4, v5);
v6 = (const char *)String;
if ( *((_QWORD *)&v23 + 1) > 0xFu )
v6 = String[0];
v7 = atoi(v6);
v8 = *((_QWORD *)&v23 + 1);
LODWORD(a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable) = v7;
if ( v8 > 0xF )
{
v9 = String[0];
if ( v8 + 1 >= 0x1000 )
{
v9 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v9 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v9);
}
SetupRandTriggerPopup::updateTargetID((SetupRandTriggerPopup *)((char *)a1 - 632));
SetupTriggerPopup::updateEditorLabel((SetupRandTriggerPopup *)((char *)a1 - 632));
}
else if ( a2->getTag(a2) == 5 )
{
v10 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);
*(_OWORD *)String = 0;
v11 = -1;
v23 = 0;
do
++v11;
while ( v10[v11] );
sub_14003A930(String, v10, v11);
v12 = (const char *)String;
if ( *((_QWORD *)&v23 + 1) > 0xFu )
v12 = String[0];
v13 = atoi(v12);
v14 = *((_QWORD *)&v23 + 1);
HIDWORD(a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable) = v13;
if ( v14 > 0xF )
{
v15 = String[0];
if ( v14 + 1 >= 0x1000 )
{
v15 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v15 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v15);
}
SetupRandTriggerPopup::updateTargetID2((SetupRandTriggerPopup *)((char *)a1 - 632));
SetupTriggerPopup::updateEditorLabel((SetupRandTriggerPopup *)((char *)a1 - 632));
}
else if ( a2->getTag(a2) == 4 )
{
v16 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);
*(_OWORD *)String = 0;
v17 = -1;
v23 = 0;
do
++v17;
while ( v16[v17] );
sub_14003A930(String, v16, v17);
v18 = (const char *)String;
if ( *((_QWORD *)&v23 + 1) > 0xFu )
v18 = String[0];
v19 = atof(v18);
if ( *((_QWORD *)&v23 + 1) > 0xFu )
{
v20 = String[0];
if ( (unsigned __int64)(*((_QWORD *)&v23 + 1) + 1LL) >= 0x1000 )
{
v20 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v20 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v20);
}
v21 = cocos2d::CCString::createWithFormat("%.04f", v19);
*(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = cocos2d::CCString::floatValue(v21);
GJFollowCommandLayer::updateDuration((__int64)&a1[-1].cocos2d::CCMouseDelegate);
}
}
}