//
// SetupAudioTriggerPopup::onProxMode from 0xb6c064 to 0xb6c138 (212 bytes)
//
// 3 xrefs:
// > ??> @ 0xabf10
// > SetupAudioTriggerPopup::addProxVolControls @ 0xb6e2a4
// > ??> @ 0x1544de0
//
// 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:02:18 +0000
//
__int64 __fastcall SetupAudioTriggerPopup::onProxMode(cocos2d::CCDictionary **this, cocos2d::CCObject *a2)
{
unsigned int v3; // w19
int v4; // w24
__int64 result; // x0
__int64 v6; // x20
__int64 v7; // x22
bool v8; // zf
const char *v9; // x1
ButtonSprite *v10; // x0
v3 = 0;
v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
SetupTriggerPopup::updateValue(this, 0x1CAu, (float)v4);
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 127));
if ( v3 >= (unsigned int)result )
break;
v6 = cocos2d::CCArray::objectAtIndex(*(this + 127), v3);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1072LL))(v6);
v8 = v4 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 64LL))(v6);
v9 = "GJ_button_04.png";
v10 = (ButtonSprite *)v7;
if ( v8 )
{
v10 = (ButtonSprite *)v7;
v9 = "GJ_button_02.png";
}
++v3;
ButtonSprite::updateBGImage(v10, v9);
}
return result;
}