//
// SetupAdvFollowPopup::valueDidChange from 0xb4c584 to 0xb4c7b4 (560 bytes)
//
// 2 xrefs:
// > ??> @ 0xff910
// > ??> @ 0x14bd230
//
// This function is hookable on this platform (idp: arm, 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 13:01:56 +0000
//
__int64 __fastcall SetupAdvFollowPopup::valueDidChange(cocos2d::CCDictionary **this, int a2, float a3)
{
_QWORD *v7; // x20
const char *v8; // x1
size_t v9; // x0
char *v10; // [xsp+48h] [xbp+48h]
__int64 v11[2]; // [xsp+58h] [xbp+58h] BYREF
void *v12; // [xsp+68h] [xbp+68h]
__int64 v13[2]; // [xsp+70h] [xbp+70h] BYREF
void *v14; // [xsp+80h] [xbp+80h]
if ( a2 > 201 )
{
if ( a2 == 306 )
{
if ( a3 != 0.0 )
SetupTriggerPopup::updateValue(this, 0x133u, 0.0);
}
else if ( a2 == 307 && a3 != 0.0 )
{
SetupTriggerPopup::updateValue(this, 0x132u, 0.0);
}
return _stack_chk_guard;
}
if ( a2 < 200 && a2 != 138 )
return _stack_chk_guard;
SetupTriggerPopup::valueChanged((SetupTriggerPopup *)this, 71, 0.0);
v11[0] = 0;
v11[1] = 0;
v12 = nullptr;
std::string::__init(v11, "0", 1u);
if ( a3 != 0.0 )
{
if ( a2 == 138 )
{
std::string::assign(v11, "P1");
}
else
{
SetupTriggerPopup::updateValue(this, 0x8Au, 0.0);
if ( a2 == 200 )
{
std::string::assign(v11, "P2");
LABEL_15:
SetupTriggerPopup::updateValue(this, 0xC9u, 0.0);
goto LABEL_16;
}
}
SetupTriggerPopup::updateValue(this, 0xC8u, 0.0);
if ( a2 == 201 )
{
std::string::assign(v11, "C");
goto LABEL_16;
}
goto LABEL_15;
}
LABEL_16:
v7 = (_QWORD *)cocos2d::CCDictionary::objectForKey(*(this + 95), 71);
if ( v7 )
{
v8 = (char *)v11 + 1;
if ( (v11[0] & 1) != 0 )
v8 = (const char *)v12;
v10 = (char *)v8;
v13[0] = 0;
v13[1] = 0;
v14 = nullptr;
v9 = strlen(v8);
std::string::__init(v13, v10, v9);
CCTextInputNode::setString(v7, (char *)v13);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
}
if ( (v11[0] & 1) != 0 )
operator delete(v12);
return _stack_chk_guard;
}