//
// sub_BFBEE from 0xbfbee to 0xbfc20 (50 bytes)
//
// 0 xrefs:
//
// 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_BFBEE(int a1, void *ptr, size_t a3, int a4)
{
if ( fwrite(ptr, 1u, a3, *(FILE **)(a1 + 4)) != a3 || a4 && fflush(*(FILE **)(a1 + 4)) )
return 13;
else
return 0;
}