//
// sub_1800D5260 from 0x1800d5260 to 0x1800d52b0 (80 bytes)
//
// 4 xrefs:
// > sub_180018CF0 @ 0x180018d4e
// > sub_180025F50 @ 0x180025fae
// > sub_1800363B0 @ 0x18003640e
// > sub_18003D900 @ 0x18003d95e
//
// 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:11 +0000
//
__int64 __fastcall sub_1800D5260(_DWORD *a1, _DWORD *a2, int a3)
{
if ( a3 == 256 )
{
*a2 = a1[767];
return 0;
}
else if ( a3 == 1024 )
{
*a2 = *((unsigned __int8 *)a1 + a1[767] + 656);
return 0;
}
else
{
if ( a3 == 512 )
*a2 = a1[766];
else
*a2 = a1[534];
return 0;
}
}