//
// sub_1005DB898 from 0x1005db898 to 0x1005db8fc (100 bytes)
//
// 7 xrefs:
// > sub_1005A62A0 @ 0x1005a63f8
// > sub_1005A62A0 @ 0x1005a6410
// > sub_1005A62A0 @ 0x1005a6428
// > sub_1005A62A0 @ 0x1005a6440
// > sub_1005A62A0 @ 0x1005a6458
// > sub_1005DFD4C @ 0x1005dfe48
// > sub_1005E1230 @ 0x1005e129c
//
// 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_1005DB898(FILE *__stream, void *__ptr, size_t __nitems, int a4)
{
if ( fwrite(__ptr, 1u, (unsigned int)__nitems, __stream) != (unsigned int)__nitems || a4 && fflush(__stream) )
return 13;
else
return 0;
}