//
// sub_1800D51A0 from 0x1800d51a0 to 0x1800d51f5 (85 bytes)
//
// 4 xrefs:
// > sub_180018CF0 @ 0x180018d32
// > sub_180025F50 @ 0x180025f92
// > sub_1800363B0 @ 0x1800363f2
// > sub_18003D900 @ 0x18003d942
//
// 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_1800D51A0(__int64 a1, _DWORD *a2, int a3)
{
if ( a3 == 256 )
{
*a2 = *(_DWORD *)(a1 + 2284);
return 0;
}
else if ( a3 == 1024 )
{
*a2 = *(_DWORD *)(a1 + 2288);
return 0;
}
else
{
if ( a3 == 512 )
*a2 = *(_DWORD *)(*(_QWORD *)(a1 + 632) + 16LL * *(unsigned __int8 *)(*(int *)(a1 + 3068) + a1 + 656));
return 0;
}
}