//
// png_colorspace_set_ICC from 0x650354 to 0x6503b2 (94 bytes)
//
// 1 xrefs:
// > png_set_iCCP @ 0x6600c6
//
// 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_colorspace_set_ICC(int a1, int a2, int a3, unsigned int a4, unsigned __int8 *a5, char a6)
{
if ( *(__int16 *)(a2 + 74) < 0
|| !png_icc_check_length(a1, a2, a3, a4)
|| !png_icc_check_header(a1, a2, a3, a4, a5, a6)
|| !png_icc_check_tag_table(a1, a2, a3, a4, a5) )
{
return 0;
}
png_icc_set_sRGB(a1, a2, a5, 0);
return 1;
}