//
// sub_1004D4978 from 0x1004d4978 to 0x1004d4a00 (136 bytes)
//
// 1 xrefs:
// > FMOD::System::getRecordPosition @ 0x1004cd478
//
// 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_1004D4978(__int64 a1, unsigned int a2, _DWORD *a3)
{
__int64 result; // x0
__int64 v7; // x8
__int64 v8; // x10
result = sub_1004D41B4(a1);
if ( !(_DWORD)result )
{
if ( (a2 & 0x80000000) != 0 || *(_DWORD *)(a1 + 1684) <= (signed int)a2 )
{
return 31;
}
else
{
v7 = *(_QWORD *)(a1 + 1696);
if ( a3 )
{
v8 = *(_QWORD *)(v7 + 56LL * a2 + 48);
if ( v8 )
LODWORD(v8) = *(_DWORD *)(v8 + 52);
*a3 = v8;
}
if ( (*(_BYTE *)(v7 + 56LL * a2 + 24) & 1) != 0 )
return 0;
else
return 80;
}
}
return result;
}