//
// sub_CCE184 from 0xcce184 to 0xcce200 (124 bytes)
//
// 2 xrefs:
// > sub_CCE53C @ 0xcce568
// > sub_CCE57C @ 0xcce608
//
// 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
//
size_t __fastcall sub_CCE184(int fd, char *buf, size_t n)
{
size_t v6; // x19
ssize_t v7; // x0
v6 = n;
do
{
while ( 1 )
{
v7 = write(fd, buf, v6);
if ( v7 == -1 )
break;
v6 -= v7;
buf += v7;
if ( !v6 )
return n;
}
}
while ( *(_DWORD *)__errno() == 4 );
return n - v6;
}