//
// SetupAudioTriggerPopup::onProxMode from 0x6af770 to 0x6af7e4 (116 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:38 +0000
//
unsigned int __fastcall SetupAudioTriggerPopup::onProxMode(cocos2d::CCDictionary **this, cocos2d::CCObject *a2)
{
unsigned int v3; // r4
int v4; // r7
unsigned int result; // r0
int v6; // r0
int v7; // r6
char *v8; // r8
const char *v9; // r1
v3 = 0;
v4 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
SetupTriggerPopup::updateValue(this, 458, (float)v4);
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 178));
if ( v3 >= result )
break;
v6 = cocos2d::CCArray::objectAtIndex(*(this + 178), v3++);
v7 = v6;
v8 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 536))(v6);
if ( (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 32))(v7) == v4 )
v9 = "GJ_button_02.png";
else
v9 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v8, v9);
}
return result;
}