//
// 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 (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:40:43 +0000
//
int __fastcall sub_50CE2(int fd)
{
if ( fd != -1 && (shutdown(fd, 2), close(fd) == -1) )
return 43;
else
return 0;
}