//
// SetupAudioTriggerPopup::onProxMode from 0x1405db980 to 0x1405dba51 (209 bytes)
//
// 4 xrefs:
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1405db6f1
// > ??> @ 0x1408e1a30
// > ??> @ 0x1408e1a40
// > ??> @ 0x14092ec28
//
// This function is hookable on this platform (idp: pc, 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 11:34:59 +0000
//
unsigned int __fastcall SetupAudioTriggerPopup::onProxMode(__int64 a1, __int64 a2)
{
int v3; // r14d
unsigned int v4; // esi
unsigned int result; // eax
struct cocos2d::CCObject *v6; // rbx
__int64 v7; // rdi
int v8; // eax
const char *v9; // rdx
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
SetupTriggerPopup::updateValue(a1, 458);
v4 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1000));
if ( result )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1000), v4);
v7 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 952LL))(v6);
v8 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 56LL))(v6);
v9 = "GJ_button_04.png";
if ( v8 == v3 )
v9 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v7, v9);
++v4;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1000));
}
while ( v4 < result );
}
return result;
}