//
// sub_1004B56C4 from 0x1004b56c4 to 0x1004b5730 (108 bytes)
//
// 3 xrefs:
// > sub_10044E53C @ 0x10044e6c4
// > sub_1004AAC70 @ 0x1004aacbc
// > sub_1004AAC70 @ 0x1004aacfc
//
// 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_1004B56C4(FILE *__stream, void *__ptr, size_t __nitems, _DWORD *a4)
{
int v5; // w21
int v7; // w0
v5 = __nitems;
v7 = fread(__ptr, 1u, (unsigned int)__nitems, __stream);
*a4 = v7;
if ( v7 == v5 )
return 0;
if ( feof(__stream) )
return 16;
return 13;
}