//
// png_image_error from 0x650ad4 to 0x650af6 (34 bytes)
//
// 17 xrefs:
// > sub_657580 @ 0x65758e
// > sub_657580 @ 0x65760c
// > png_image_begin_read_from_stdio @ 0x6577c6
// > png_image_begin_read_from_stdio @ 0x6577fe
// > png_image_begin_read_from_file @ 0x657822
// > png_image_begin_read_from_file @ 0x657882
// > png_image_begin_read_from_file @ 0x65788e
// > png_image_begin_read_from_memory @ 0x6578b6
// > png_image_begin_read_from_memory @ 0x6578da
// > png_image_finish_read @ 0x657936
// > png_image_finish_read @ 0x657a08
// > png_image_finish_read @ 0x657a2c
// > png_image_write_to_stdio @ 0x663318
// > png_image_write_to_stdio @ 0x6633c4
// > png_image_write_to_stdio @ 0x6633d6
// > png_image_write_to_file @ 0x663424
// > png_image_write_to_file @ 0x66348c
//
// 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
//
int __fastcall png_image_error(int a1, int a2)
{
png_safecat(a1 + 32, 64, 0, a2);
*(_DWORD *)(a1 + 28) |= 2u;
png_image_free(a1);
return 0;
}