//
// png_default_write_data from 0xe5c444 to 0xe5c490 (76 bytes)
//
// 3 xrefs:
// > ??> @ 0x62680
// > png_set_write_fn @ 0xe5c528
// > ??> @ 0x15425a0
//
// 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 13:10:21 +0000
//
size_t __fastcall png_default_write_data(size_t result, void *ptr, size_t a3)
{
__int64 v3; // x19
if ( result )
{
v3 = result;
result = fwrite(ptr, 1u, a3, *(FILE **)(result + 320));
if ( result != a3 )
png_error(v3, "Write Error");
}
return result;
}