//
// SetupAdvFollowRetargetPopup::valueDidChange from 0x100064ab8 to 0x100064c0c (340 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007770c8
//
// 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 __fastcall SetupAdvFollowRetargetPopup::valueDidChange(SetupAdvFollowRetargetPopup *a1, int a2, float a3)
{
cocos2d::CCObject *v6; // x19
std::string *v7; // x1
void *__p[2]; // [xsp+0h] [xbp-50h] BYREF
char v9; // [xsp+17h] [xbp-39h]
std::string v10; // [xsp+18h] [xbp-38h] BYREF
if ( (unsigned int)(a2 - 138) > 0x3F || ((1LL << ((unsigned __int8)a2 + 118)) & 0xC000000000000001LL) == 0 )
return;
SetupTriggerPopup::valueChanged(a1, 71, 0.0);
sub_100009900(&v10, "0");
if ( a3 != 0.0 )
{
if ( a2 == 138 )
{
std::string::assign(&v10, "P1");
}
else
{
SetupTriggerPopup::updateValue(a1, 138, 0.0);
if ( a2 == 200 )
{
std::string::assign(&v10, "P2");
goto LABEL_10;
}
}
SetupTriggerPopup::updateValue(a1, 200, 0.0);
if ( a2 == 201 )
{
std::string::assign(&v10, "C");
goto LABEL_11;
}
LABEL_10:
SetupTriggerPopup::updateValue(a1, 201, 0.0);
}
LABEL_11:
v6 = cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, 71);
if ( v6 )
{
if ( (v10.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v7 = &v10;
else
v7 = (std::string *)v10.__r_.__value_.__r.__words[0];
sub_100009900(__p, (char *)v7);
CCTextInputNode::setString(v6, __p);
if ( v9 < 0 )
operator delete(__p[0]);
}
if ( SHIBYTE(v10.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v10.__r_.__value_.__l.__data_);
}