//
// png_default_read_data from 0xbd652c to 0xbd6578 (76 bytes)
//
// 3 xrefs:
// > ??> @ 0x68f88
// > png_set_read_fn @ 0xbd65f0
// > ??> @ 0x122b698
//
// 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
//
size_t __fastcall png_default_read_data(size_t result, void *ptr, size_t a3)
{
__int64 v3; // x19
if ( result )
{
v3 = result;
result = fread(ptr, 1u, a3, *(FILE **)(result + 320));
if ( result != a3 )
png_error(v3, "Read Error");
}
return result;
}