//
// sub_64BDF8 from 0x64bdf8 to 0x64be18 (32 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
//
ssize_t __fastcall sub_64BDF8(int a1, int fd, ssize_t *a3, void *buf, size_t n)
{
ssize_t result; // r0
bool v7; // zf
ssize_t v8; // r3
result = write(fd, buf, n);
v7 = result == -1;
if ( result == -1 )
{
v8 = 0;
result = -1;
}
else
{
v8 = result;
}
if ( !v7 )
result = 0;
*a3 = v8;
return result;
}