//
// sub_CEC5E8 from 0xcec5e8 to 0xcec640 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x121d650
//
// 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_CEC5E8(__int64 a1, char *ptr, size_t a3)
{
__int64 result; // x0
result = fread(ptr, 1u, a3, *(FILE **)(a1 + 64));
if ( result <= 0 )
*(_DWORD *)(a1 + 72) = -1;
else
*(_DWORD *)(a1 + 72) = (unsigned __int8)ptr[result - 1];
return result;
}