//
// sub_1004B5730 from 0x1004b5730 to 0x1004b5794 (100 bytes)
//
// 7 xrefs:
// > sub_100480138 @ 0x100480290
// > sub_100480138 @ 0x1004802a8
// > sub_100480138 @ 0x1004802c0
// > sub_100480138 @ 0x1004802d8
// > sub_100480138 @ 0x1004802f0
// > sub_1004B9BE4 @ 0x1004b9ce0
// > sub_1004BB0C8 @ 0x1004bb134
//
// 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_1004B5730(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;
}