//
// SetupAreaMoveTriggerPopup::onMode from 0x5580cc to 0x5581c2 (246 bytes)
//
// 0 xrefs:
//
// 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; // r6
int v5; // r0
int v6; // r0
int v7; // r8
ButtonSprite *v8; // r9
int v9; // r8
const char *v10; // r1
bool v11; // [sp+Eh] [bp-Eh] BYREF
bool v12; // [sp+Fh] [bp-Dh] BYREF
int v13; // [sp+10h] [bp-Ch] BYREF
v4 = 0;
v5 = a2->getTag(a2);
SetupAreaMoveTriggerPopup::getModeValues(a1, v5, &v13, &v11, &v12);
a1->toggleGroup(a1, 99, v13 == 0);
SetupTriggerPopup::valueChanged(a1, 262, (float)v13);
SetupTriggerPopup::valueChanged(a1, 276, (float)v11);
SetupTriggerPopup::valueChanged(a1, 283, (float)v12);
while ( v4 < cocos2d::CCArray::count(a1->m_modeButtons) )
{
v6 = cocos2d::CCArray::objectAtIndex(a1->m_modeButtons, v4++);
v7 = v6;
v8 = (ButtonSprite *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 528))(v6);
v9 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 32))(v7);
if ( v9 == a2->getTag(a2) )
v10 = "GJ_button_02.png";
else
v10 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v8, v10);
}
}