//
// sub_1004D0968 from 0x1004d0968 to 0x1004d09e0 (120 bytes)
//
// 1 xrefs:
// > FMOD::System::getAdvancedSettings @ 0x1004c8da8
//
// 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_1004D0968(__int64 a1, _DWORD *__dst)
{
size_t v3; // x20
__int64 v5; // x21
if ( !__dst )
return 31;
v3 = (unsigned int)*__dst;
if ( (unsigned int)(v3 - 105) < 0xFFFFFFC8 || (v3 & 3) != 0 || __dst[8] > 0x20u )
return 31;
v5 = *((_QWORD *)__dst + 6);
memcpy(__dst, (const void *)(a1 + 69640), v3);
*__dst = v3;
*((_QWORD *)__dst + 6) = v5;
return 0;
}