//
// SetupAudioTriggerPopup::onProxMode from 0x10017f050 to 0x10017f11c (204 bytes)
//
// 1 xrefs:
// > SetupAudioTriggerPopup::addProxVolControls @ 0x10017ec64
//
// 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 __fastcall SetupAudioTriggerPopup::onProxMode(SetupAudioTriggerPopup *a1, cocos2d::CCObject *a2)
{
int v3; // w20
__int64 v4; // x21
__int64 v5; // x22
ButtonSprite *v6; // x23
const char *v7; // x1
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
SetupTriggerPopup::updateValue(a1, 458, (float)v3);
if ( (unsigned int)sub_10024A36C(a1->m_proximityButtons) )
{
v4 = 0;
do
{
v5 = sub_10024A388(a1->m_proximityButtons, v4);
v6 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1056LL))(v5);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) == v3 )
v7 = "GJ_button_02.png";
else
v7 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v6, v7);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_proximityButtons) );
}
}