//
// sub_1004D24C4 from 0x1004d24c4 to 0x1004d2570 (172 bytes)
//
// 2 xrefs:
// > sub_1004ADFA8 @ 0x1004ae060
// > FMOD::System::get3DListenerAttributes @ 0x1004cb028
//
// 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
//
__int64 __fastcall sub_1004D24C4(__int64 a1, unsigned int a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
__int64 v7; // x9
__int64 v8; // x9
__int64 v9; // x9
__int64 v10; // x10
if ( a2 > 7 )
return 31;
if ( a3 )
{
v7 = *(_QWORD *)(a1 + 112LL * a2 + 68208);
*(_DWORD *)(a3 + 8) = *(_DWORD *)(a1 + 112LL * a2 + 68216);
*(_QWORD *)a3 = v7;
}
if ( a4 )
{
v8 = *(_QWORD *)(a1 + 112LL * a2 + 68232);
*(_DWORD *)(a4 + 8) = *(_DWORD *)(a1 + 112LL * a2 + 68240);
*(_QWORD *)a4 = v8;
}
if ( a5 )
{
v9 = *(_QWORD *)(a1 + 112LL * a2 + 68280);
*(_DWORD *)(a5 + 8) = *(_DWORD *)(a1 + 112LL * a2 + 68288);
*(_QWORD *)a5 = v9;
}
if ( a6 )
{
v10 = *(_QWORD *)(a1 + 112LL * a2 + 68256);
*(_DWORD *)(a6 + 8) = *(_DWORD *)(a1 + 112LL * a2 + 68264);
*(_QWORD *)a6 = v10;
}
return 0;
}