//
// sub_1005039F0 from 0x1005039f0 to 0x100503a31 (65 bytes)
//
// 2 xrefs:
// > PlatformToolbox::hideCursor @ 0x1004c3e6f
// > PlatformToolbox::showCursor @ 0x1004c3e92
//
// 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
//
char __fastcall sub_1005039F0(_BYTE *a1, char a2)
{
char result; // al
result = a2 ^ 1;
a1[116] = a2 ^ 1;
if ( a1[118] == 1 )
{
if ( a2 || !a1[117] )
{
a1[118] = 0;
return CGDisplayShowCursor(0);
}
}
else if ( !a2 && a1[117] == 1 )
{
a1[118] = 1;
return CGDisplayHideCursor(0);
}
return result;
}