// // FMOD::Sound::setDefaults from 0x1004be9f4 to 0x1004beb5c (360 bytes) // // 1 xrefs: // > sub_100452FC4 @ 0x100452fc8 // // 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::setDefaults(FMOD::Sound *a1, float a2, int a3) { __int64 v3; // x21 __int64 v6; // x2 int v7; // w3 int v8; // w4 int v9; // w5 int v10; // w6 int v11; // w7 __int64 v12; // x20 unsigned int v13; // w8 unsigned int v14; // w8 int v15; // w0 __int64 v16; // x24 int v17; // w3 int v18; // w4 int v19; // w5 int v20; // w6 int v21; // w7 int v22; // w0 int v23; // w3 int v24; // w4 int v25; // w5 int v26; // w6 int v27; // w7 __int64 v29; // [xsp+8h] [xbp-168h] BYREF unsigned int *v30; // [xsp+10h] [xbp-160h] BYREF __int16 v31[128]; // [xsp+18h] [xbp-158h] BYREF v3 = *(_QWORD *)&a3; v29 = 0; v12 = sub_1004C3CE0(a1, &v30, &v29); if ( !(_DWORD)v12 ) { v13 = atomic_load(v30 + 68); if ( v13 && (v14 = atomic_load(v30 + 68), v14 != 7) ) { v12 = 46; } else { v12 = (*(__int64 (__fastcall **)(unsigned int *, __int64, float))(*(_QWORD *)v30 + 56LL))(v30, v3, a2); if ( !(_DWORD)v12 ) goto LABEL_9; } } if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 ) { v15 = sub_100435DC4(v31, 0x100u, a2, v6, v7, v8, v9, v10, v11); v16 = v15; v22 = sub_100435EB4((__int16 *)((char *)v31 + v15), (unsigned int)(256 - v15), ", ", v17, v18, v19, v20, v21); sub_100435CDC((_BYTE *)v31 + v16 + v22, (unsigned int)(256 - (v16 + v22)), v3, v23, v24, v25, v26, v27); sub_10048489C(v12, 5, (__int64)a1, (__int64)"Sound::setDefaults", (__int64)v31); } LABEL_9: if ( v29 ) sub_100442B7C(v29, 0xDu); return (unsigned int)v12; }