//
// SetupAreaMoveTriggerPopup::onMode from 0xa09af8 to 0xa09c7c (388 bytes)
//
// 3 xrefs:
// > ??> @ 0xbe758
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xa0a978
// > ??> @ 0x122e9a0
//
// 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 SetupAreaMoveTriggerPopup::onMode(SetupAreaMoveTriggerPopup *a1, cocos2d::CCObject *a2)
{
unsigned int v4; // w19
int v5; // w0
__int64 v6; // x20
ButtonSprite *v7; // x23
bool v8; // [xsp+52h] [xbp+52h] BYREF
bool v9; // [xsp+53h] [xbp+53h] BYREF
int v10; // [xsp+54h] [xbp+54h] BYREF
v4 = 0;
v5 = a2->getTag(a2);
SetupAreaMoveTriggerPopup::getModeValues(a1, v5, &v10, &v8, &v9);
a1->toggleGroup(a1, 99, v10 == 0);
SetupTriggerPopup::valueChanged(a1, 262, (float)v10);
SetupTriggerPopup::valueChanged(a1, 276, (float)v8);
SetupTriggerPopup::valueChanged(a1, 283, (float)v9);
if ( (unsigned int)cocos2d::CCArray::count(a1->m_modeButtons) )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(a1->m_modeButtons, v4);
v7 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1056LL))(v6);
LODWORD(v6) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 64LL))(v6);
++v4;
if ( (_DWORD)v6 == a2->getTag(a2) )
ButtonSprite::updateBGImage(v7, "GJ_button_02.png");
else
ButtonSprite::updateBGImage(v7, "GJ_button_04.png");
}
while ( v4 < (unsigned int)cocos2d::CCArray::count(a1->m_modeButtons) );
}
}