//
// sub_6D6FC from 0x6d6fc to 0x6d7c4 (200 bytes)
//
// 2 xrefs:
// > sub_5CE24 @ 0x5cec0
// > FMOD::System::get3DListenerAttributes @ 0xdd058
//
// 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_6D6FC(__int64 a1, signed int a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
unsigned int v6; // w8
__int64 v7; // x8
__int64 v8; // x8
int v9; // w10
__int64 v10; // x8
__int64 v11; // x8
int v12; // w10
__int64 v13; // x8
__int64 v14; // x9
int v15; // w11
__int64 v16; // x9
if ( (unsigned int)a2 <= 7 )
{
if ( a3 )
{
v7 = *(_QWORD *)(a1 + 112LL * a2 + 68208);
*(_DWORD *)(a3 + 8) = *(_DWORD *)(a1 + 112LL * a2 + 68216);
*(_QWORD *)a3 = v7;
}
if ( a4 )
{
v8 = a1 + 112LL * a2;
v9 = *(_DWORD *)(v8 + 68240);
v10 = *(_QWORD *)(v8 + 68232);
*(_DWORD *)(a4 + 8) = v9;
*(_QWORD *)a4 = v10;
}
if ( a5 )
{
v11 = a1 + 112LL * a2;
v12 = *(_DWORD *)(v11 + 68288);
v13 = *(_QWORD *)(v11 + 68280);
*(_DWORD *)(a5 + 8) = v12;
*(_QWORD *)a5 = v13;
}
v6 = 0;
if ( a6 )
{
v14 = a1 + 112LL * a2;
v15 = *(_DWORD *)(v14 + 68264);
v16 = *(_QWORD *)(v14 + 68256);
*(_DWORD *)(a6 + 8) = v15;
*(_QWORD *)a6 = v16;
}
}
else
{
return 31;
}
return v6;
}