//
// sub_50CE2 from 0x50ce2 to 0x50d06 (36 bytes)
//
// 6 xrefs:
// > sub_52054 @ 0x52082
// > sub_522EC @ 0x523f2
// > sub_6B24C @ 0x6b2a8
// > sub_BC194 @ 0xbc4e4
// > sub_BCD40 @ 0xbcd4e
// > sub_BD0E4 @ 0xbd0ee
//
// 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
//
int __fastcall sub_50CE2(int fd)
{
if ( fd != -1 && (shutdown(fd, 2), close(fd) == -1) )
return 43;
else
return 0;
}