//
// SetupAdvFollowPopup::onMode from 0x1003094e0 to 0x100309571 (145 bytes)
//
// 3 xrefs:
// > SetupAdvFollowPopup::init @ 0x1003061fe
// > SetupAdvFollowPopup::init @ 0x10030634b
// > SetupAdvFollowPopup::init @ 0x10030649b
//
// 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 SetupAdvFollowPopup::onMode(SetupAdvFollowPopup *a1, cocos2d::CCObject *a2)
{
float v3; // xmm0_4
__int64 v4; // r14
unsigned int v5; // r15d
SetupAdvFollowPopup *v6; // rbx
v3 = (float)((int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
SetupTriggerPopup::updateValue(a1, 367, v3);
v4 = ((__int64 (__fastcall *)(SetupAdvFollowPopup *))a1->getParent)(a1);
v5 = ((__int64 (__fastcall *)(SetupAdvFollowPopup *))a1->getZOrder)(a1);
((void (__fastcall *)(SetupAdvFollowPopup *, _QWORD))a1->onClose)(a1, 0);
v6 = SetupAdvFollowPopup::create((AdvancedFollowTriggerObject *)a1->m_gameObject, a1->m_gameObjects);
(*(void (__fastcall **)(__int64, SetupAdvFollowPopup *, _QWORD))(*(_QWORD *)v4 + 448LL))(v4, v6, v5);
SetupTriggerPopup::goToPage(v6, 1, 0);
}