//
// sub_1800D5440 from 0x1800d5440 to 0x1800d54a6 (102 bytes)
//
// 5 xrefs:
// > sub_1800DBAE0 @ 0x1800dbc35
// > sub_1800DBDF0 @ 0x1800dbf97
// > sub_1800DC0C0 @ 0x1800dc0ec
// > sub_1800DC150 @ 0x1800dc15e
// > sub_1800DC1C0 @ 0x1800dc69e
//
// 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_1800D5440(__int64 a1, unsigned int a2)
{
__int64 result; // rax
if ( a2 == 262145 )
{
*(_DWORD *)(a1 + 4) = 1;
}
else if ( a2 == 262146 )
{
*(_DWORD *)(a1 + 4) = 0;
}
result = (__int64)*(&xmmword_1801AB210 + 1);
if ( *(&xmmword_1801AB210 + 1) )
return (*(&xmmword_1801AB210 + 1))((unsigned int)((a1 - (__int64)&unk_1801A9F78) / 288), a2);
return result;
}