//
// 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 (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:10 +0000
//
__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;
}