//
// sub_D788E8 from 0xd788e8 to 0xd78948 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x1122428
//
// 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_D788E8(__int64 a1, void *ptr, int a3)
{
unsigned int v3; // w19
v3 = a3;
if ( !ptr || !*(_DWORD *)(a1 + 24) )
return 0;
if ( !(unsigned int)fwrite(ptr, a3, 1u, *(FILE **)(a1 + 48)) )
return 0;
return v3;
}