//
// sub_1005DB7BC from 0x1005db7bc to 0x1005db80c (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x100861080
//
// 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_1005DB7BC(__int64 a1, void *__ptr, unsigned int a3)
{
if ( !__ptr || !*(_DWORD *)(a1 + 24) )
return 0;
if ( (unsigned int)fwrite(__ptr, (int)a3, 1u, *(FILE **)(a1 + 48)) )
return a3;
return 0;
}