//
// sub_E609C from 0xe609c to 0xe610c (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x10f390
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:14:59 +0000
//
__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;
}