//
// sub_E609C from 0xe609c to 0xe610c (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x10f390
//
// 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
//
__int64 __fastcall sub_E609C(__int64 a1, void *ptr, size_t n, _DWORD *a4)
{
int v5; // w21
int v7; // w0
v5 = n;
v7 = fread(ptr, 1u, (unsigned int)n, *(FILE **)(a1 + 8));
*a4 = v7;
if ( v7 == v5 )
return 0;
if ( feof(*(FILE **)(a1 + 8)) )
return 16;
return 13;
}