//
// sub_1800D5200 from 0x1800d5200 to 0x1800d522e (46 bytes)
//
// 4 xrefs:
// > sub_180018CF0 @ 0x180018d78
// > sub_180025F50 @ 0x180025fd8
// > sub_1800363B0 @ 0x180036438
// > sub_18003D900 @ 0x18003d988
//
// 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_1800D5200(__int64 a1, int a2, _DWORD *a3)
{
if ( a2 < 0 || a2 >= *(_DWORD *)(a1 + 968) || !a3 )
return 31;
*a3 = *(_DWORD *)(*(_QWORD *)(a1 + 8LL * a2 + 976) + 240LL);
return 0;
}