// // sub_54C30 from 0x54c30 to 0x54ce8 (184 bytes) // // 1 xrefs: // > FMOD::SoundGroup::setVolume @ 0xb6ae4 // // 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 // int __fastcall sub_54C30(int a1, float a2) { float v2; // s0 _DWORD *v4; // r11 int v5; // r0 int v6; // r8 _DWORD **i; // r1 _DWORD *v8; // r6 int v10; // [sp+8h] [bp-20h] BYREF v2 = a2; if ( a2 < 0.0 ) v2 = 0.0; if ( v2 > 1.0 ) v2 = 1.0; *(float *)(a1 + 68) = v2; j_FMOD_OS_CriticalSection_Enter(*(int *)((char *)&dword_10C + (_DWORD)off_E8000)); v4 = (_DWORD *)(a1 + 20); while ( 1 ) { v4 = (_DWORD *)*v4; if ( v4 == (_DWORD *)(a1 + 20) ) break; v5 = *(_DWORD *)(a1 + 12); v6 = v4[2]; for ( i = (_DWORD **)(v5 + 592); ; i = (_DWORD **)(v8 + 70) ) { v8 = *i; if ( *i ) v8 -= 70; if ( v8 == (_DWORD *)(v5 + 312) ) break; if ( v8[83] ) { v10 = 0; sub_4C64A((int)v8, &v10); if ( v10 == v6 ) (*(void (__fastcall **)(_DWORD *, _DWORD, _DWORD))(*v8 + 16))(v8, v8[6], 0); v5 = *(_DWORD *)(a1 + 12); } } } j_FMOD_OS_CriticalSection_Leave(*(int *)((char *)&dword_10C + (_DWORD)off_E8000)); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source