// // FMOD::Codec::defaultGetWaveFormat from 0x1005af49c to 0x1005af4f8 (92 bytes) // // 3 xrefs: // > sub_1005AEF6C @ 0x1005af3d8 // > sub_1005E26D8 @ 0x1005e2794 // > @ 0x1008ac338 // // This function is hookable on this platform (idp: arm, 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:09:10 +0000 // __int64 __fastcall FMOD::Codec::defaultGetWaveFormat(__int64 a1, int a2, __int64 a3) { __int64 v3; // x8 int v4; // w9 __int128 *v7; // x8 __int128 v8; // q0 __int128 v9; // q1 __int128 v10; // q2 v3 = *(_QWORD *)(a1 + 8); if ( !v3 ) return 53; if ( a2 < 0 ) return 31; v4 = *(_DWORD *)(a1 + 24); if ( a2 ) { if ( !v4 ) return 31; } if ( v4 >= 1 && v4 <= a2 ) return 31; v7 = (__int128 *)(v3 + 56LL * (unsigned int)a2); v8 = *v7; v9 = v7[1]; v10 = v7[2]; *(_QWORD *)(a3 + 48) = *((_QWORD *)v7 + 6); *(_OWORD *)(a3 + 16) = v9; *(_OWORD *)(a3 + 32) = v10; *(_OWORD *)a3 = v8; return 0; }