//
// SetupAudioTriggerPopup::onProxMode from 0x1004b0a70 to 0x1004b0b2b (187 bytes)
//
// 1 xrefs:
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1004b081e
//
// 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 12:30:59 +0000
//
__int64 __fastcall SetupAudioTriggerPopup::onProxMode(_QWORD *a1, __int64 a2)
{
int v2; // r14d
__int64 result; // rax
unsigned int v4; // r15d
__int64 v5; // r12
__int64 v6; // r13
const char *v7; // rsi
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
SetupTriggerPopup::updateValue(a1, 0x1CAu, (float)v2);
result = sub_1007FEF90(a1[127]);
if ( (_DWORD)result )
{
v4 = 0;
do
{
v5 = sub_1007FEFE0(a1[127], v4);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1072LL))(v5);
v7 = "GJ_button_04.png";
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) == v2 )
v7 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v6, (__int64)v7);
++v4;
result = sub_1007FEF90(a1[127]);
}
while ( v4 < (unsigned int)result );
}
return result;
}