//
// sub_1800E3DD0 from 0x1800e3dd0 to 0x1800e3e76 (166 bytes)
//
// 4 xrefs:
// > FMOD::System::getAdvancedSettings @ 0x1800acc90
// > ??> @ 0x18018d470
// > ??> @ 0x18018d480
// > ??> @ 0x1801ffb58
//
// This function is hookable on this platform (idp: pc, 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 10:54:16 +0000
//
__int64 __fastcall sub_1800E3DD0(__int64 a1, int *a2)
{
size_t v4; // rsi
__int64 v5; // rbp
__int64 v6; // rbx
__int64 i; // rdx
if ( !a2 )
return 31;
v4 = *a2;
if ( (unsigned int)(v4 - 49) > 0x37 )
return 31;
if ( (v4 & 3) != 0 )
return 31;
v5 = a2[8];
if ( (unsigned int)v5 > 0x20 )
return 31;
v6 = *((_QWORD *)a2 + 6);
memmove(a2, (const void *)(a1 + 69632), v4);
*((_QWORD *)a2 + 6) = v6;
*a2 = v4;
if ( v6 && (int)v5 > 0 )
{
for ( i = 0; i < v5; ++i )
*(_DWORD *)(*((_QWORD *)a2 + 6) + 4 * i) = *(_DWORD *)(a1 + 4 * i + 73128);
}
return 0;
}