//
// SetupAudioTriggerPopup::onProxMode from 0xa3d910 to 0xa3d9e4 (212 bytes)
//
// 3 xrefs:
// > ??> @ 0x813d8
// > SetupAudioTriggerPopup::addProxVolControls @ 0xa3ebbc
// > ??> @ 0x122c5b0
//
// 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 SetupAudioTriggerPopup::onProxMode(SetupAudioTriggerPopup *a1, cocos2d::CCObject *a2)
{
unsigned int v3; // w19
int v4; // w24
__int64 v5; // x20
__int64 v6; // x22
bool v7; // zf
const char *v8; // x1
ButtonSprite *v9; // x0
v3 = 0;
v4 = a2->getTag(a2);
SetupTriggerPopup::updateValue(a1, 458, (float)v4);
while ( v3 < (unsigned int)cocos2d::CCArray::count(a1->m_proximityButtons) )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_proximityButtons, v3);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1056LL))(v5);
v7 = v4 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5);
v8 = "GJ_button_04.png";
v9 = (ButtonSprite *)v6;
if ( v7 )
{
v9 = (ButtonSprite *)v6;
v8 = "GJ_button_02.png";
}
++v3;
ButtonSprite::updateBGImage(v9, v8);
}
}