//
// SetupAreaMoveTriggerPopup::onMode from 0x68eca0 to 0x68ed96 (246 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:56:10 +0000
//
unsigned int __fastcall SetupAreaMoveTriggerPopup::onMode(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
unsigned int v4; // r6
int v5; // r0
unsigned int result; // r0
int v7; // r0
int v8; // r8
char *v9; // r9
int v10; // r8
const char *v11; // r1
bool v12; // [sp+Eh] [bp-Eh] BYREF
bool v13; // [sp+Fh] [bp-Dh] BYREF
int v14; // [sp+10h] [bp-Ch] BYREF
v4 = 0;
v5 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
SetupAreaMoveTriggerPopup::getModeValues((SetupAreaMoveTriggerPopup *)this, v5, &v14, &v12, &v13);
(*((void (__fastcall **)(cocos2d::CCArray **, int, bool))*this + 169))(this, 99, v14 == 0);
SetupTriggerPopup::valueChanged(this, 262, (float)v14);
SetupTriggerPopup::valueChanged(this, 276, (float)v12);
SetupTriggerPopup::valueChanged(this, 283, (float)v13);
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 178));
if ( v4 >= result )
break;
v7 = cocos2d::CCArray::objectAtIndex(*(this + 178), v4++);
v8 = v7;
v9 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 536))(v7);
v10 = (*(int (__fastcall **)(int))(*(_DWORD *)v8 + 32))(v8);
if ( v10 == (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) )
v11 = "GJ_button_02.png";
else
v11 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v9, v11);
}
return result;
}