// // FMOD::Sound::setMusicChannelVolume from 0x1004c165c to 0x1004c17d0 (372 bytes) // // 1 xrefs: // > sub_100453224 @ 0x100453228 // // 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 // // local variable allocation has failed, the output may be wrong! FMOD_RESULT __fastcall FMOD::Sound::setMusicChannelVolume(FMOD::Sound *a1, int a2, float a3) { __int64 v4; // x21 int v6; // w3 int v7; // w4 int v8; // w5 int v9; // w6 int v10; // w7 __int64 v11; // x20 unsigned int v12; // w8 unsigned int v13; // w8 unsigned int v14; // w8 int v15; // w0 __int64 v16; // x21 int v17; // w3 int v18; // w4 int v19; // w5 int v20; // w6 int v21; // w7 int v22; // w0 __int64 v23; // x2 int v24; // w3 int v25; // w4 int v26; // w5 int v27; // w6 int v28; // w7 __int64 v30; // [xsp+8h] [xbp-158h] BYREF unsigned int *v31; // [xsp+10h] [xbp-150h] BYREF _BYTE v32[256]; // [xsp+18h] [xbp-148h] BYREF v4 = *(_QWORD *)&a2; v30 = 0; v11 = sub_1004C3CE0(a1, &v31, &v30); if ( !(_DWORD)v11 ) { v12 = atomic_load(v31 + 68); if ( !v12 || (v13 = atomic_load(v31 + 68), v13 == 7) || (v14 = atomic_load(v31 + 68), v14 == 5) ) { v11 = (*(__int64 (__fastcall **)(unsigned int *, __int64, float))(*(_QWORD *)v31 + 336LL))(v31, v4, a3); if ( !(_DWORD)v11 ) goto LABEL_10; } else { v11 = 46; } } if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 ) { v15 = sub_100435CDC(v32, 0x100u, v4, v6, v7, v8, v9, v10); v16 = v15; v22 = sub_100435EB4(&v32[v15], (unsigned int)(256 - v15), ", ", v17, v18, v19, v20, v21); sub_100435DC4((__int16 *)&v32[v16 + v22], (unsigned int)(256 - (v16 + v22)), a3, v23, v24, v25, v26, v27, v28); sub_10048489C(v11, 5, (__int64)a1, (__int64)"Sound::setMusicChannelVolume", (__int64)v32); } LABEL_10: if ( v30 ) sub_100442B7C(v30, 0xDu); return (unsigned int)v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source