//
// SetupRandTriggerPopup::textChanged from 0x635b24 to 0x635c20 (252 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetupRandTriggerPopup::textChanged @ 0x635c2c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:20 +0000
//
unsigned int __fastcall SetupRandTriggerPopup::textChanged(unsigned int this, CCTextInputNode *a2)
{
SetupRandTriggerPopup *v2; // r4
char *v4; // r0
char *v5; // r0
char *v6; // r0
double v7; // d8
const char *v8; // r1
cocos2d::CCString *v9; // r0
char v10; // [sp+0h] [bp-14h] BYREF
_BYTE v11[7]; // [sp+1h] [bp-13h] BYREF
char *v12; // [sp+8h] [bp-Ch]
v2 = (SetupRandTriggerPopup *)this;
if ( !*(_BYTE *)(this + 568) )
{
if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 3 )
{
CCTextInputNode::getString((CCTextInputNode *)&v10, (int)a2);
if ( (v10 & 1) != 0 )
v4 = v12;
else
v4 = v11;
*((_DWORD *)v2 + 183) = atoi(v4);
std::string::~string((int)&v10);
SetupRandTriggerPopup::updateTargetID(v2);
return SetupTriggerPopup::updateEditorLabel(v2);
}
if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 5 )
{
CCTextInputNode::getString((CCTextInputNode *)&v10, (int)a2);
if ( (v10 & 1) != 0 )
v5 = v12;
else
v5 = v11;
*((_DWORD *)v2 + 184) = atoi(v5);
std::string::~string((int)&v10);
SetupRandTriggerPopup::updateTargetID2(v2);
return SetupTriggerPopup::updateEditorLabel(v2);
}
this = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
if ( this == 4 )
{
CCTextInputNode::getString((CCTextInputNode *)&v10, (int)a2);
if ( (v10 & 1) != 0 )
v6 = v12;
else
v6 = v11;
v7 = atof(v6);
std::string::~string((int)&v10);
*(float *)&v7 = v7;
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.04f", v8, *(float *)&v7);
*((_DWORD *)v2 + 180) = cocos2d::CCString::floatValue(v9);
return SetupRandTriggerPopup::updateChance((unsigned int)v2);
}
}
return this;
}