//
// sub_1005DB82C from 0x1005db82c to 0x1005db898 (108 bytes)
//
// 3 xrefs:
// > sub_1005746A4 @ 0x10057482c
// > sub_1005D0DD8 @ 0x1005d0e24
// > sub_1005D0DD8 @ 0x1005d0e64
//
// 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 11:09:37 +0000
//
__int64 __fastcall sub_1005DB82C(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;
}