//
// png_image_error from 0xbcc860 to 0xbcc8a8 (72 bytes)
//
// 18 xrefs:
// > sub_BD5DF0 @ 0xbd5e10
// > sub_BD5DF0 @ 0xbd5ee4
// > png_image_begin_read_from_stdio @ 0xbd6184
// > png_image_begin_read_from_stdio @ 0xbd61e4
// > png_image_begin_read_from_file @ 0xbd6218
// > png_image_begin_read_from_file @ 0xbd62b0
// > png_image_begin_read_from_file @ 0xbd62c4
// > png_image_begin_read_from_memory @ 0xbd6300
// > png_image_begin_read_from_memory @ 0xbd634c
// > png_image_finish_read @ 0xbd63c0
// > png_image_finish_read @ 0xbd64e8
// > png_image_finish_read @ 0xbd6524
// > png_image_write_to_stdio @ 0xbe9028
// > png_image_write_to_stdio @ 0xbe9064
// > png_image_write_to_stdio @ 0xbe9148
// > png_image_write_to_file @ 0xbe9198
// > png_image_write_to_file @ 0xbe9248
// > ??> @ 0x519d8
//
// 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 png_image_error(__int64 a1, __int64 a2)
{
png_safecat(a1 + 36, 64, 0, a2);
*(_DWORD *)(a1 + 32) |= 2u;
png_image_free(a1);
return 0;
}