//
// SetupAreaMoveTriggerPopup::onMode from 0xb3bc6c to 0xb3bdf0 (388 bytes)
//
// 3 xrefs:
// > ??> @ 0xf84a0
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xb3ec74
// > ??> @ 0x1547898
//
// 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:48 +0000
//
__int64 __fastcall SetupAreaMoveTriggerPopup::onMode(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
unsigned int v4; // w19
int v5; // w0
__int64 v6; // x20
ButtonSprite *v7; // x23
bool v9; // [xsp+52h] [xbp+52h] BYREF
bool v10; // [xsp+53h] [xbp+53h] BYREF
int v11; // [xsp+54h] [xbp+54h] BYREF
v4 = 0;
v5 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
SetupAreaMoveTriggerPopup::getModeValues((SetupAreaMoveTriggerPopup *)this, v5, &v11, &v9, &v10);
(*((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169))(this, 99, v11 == 0);
SetupTriggerPopup::valueChanged((SetupTriggerPopup *)this, 262, (float)v11);
SetupTriggerPopup::valueChanged((SetupTriggerPopup *)this, 276, (float)v9);
SetupTriggerPopup::valueChanged((SetupTriggerPopup *)this, 283, (float)v10);
if ( (unsigned int)cocos2d::CCArray::count(*(this + 127)) )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(*(this + 127), v4);
v7 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1072LL))(v6);
LODWORD(v6) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 64LL))(v6);
++v4;
if ( (_DWORD)v6 == (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) )
ButtonSprite::updateBGImage(v7, "GJ_button_02.png");
else
ButtonSprite::updateBGImage(v7, "GJ_button_04.png");
}
while ( v4 < (unsigned int)cocos2d::CCArray::count(*(this + 127)) );
}
return _stack_chk_guard;
}