//
// png_colorspace_set_ICC from 0xbca2e8 to 0xbca394 (172 bytes)
//
// 2 xrefs:
// > png_set_iCCP @ 0xbe42c8
// > ??> @ 0x35dc0
//
// 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_colorspace_set_ICC(
__int64 a1,
__int64 a2,
__int64 a3,
unsigned int a4,
unsigned __int8 *a5,
char a6)
{
if ( *(__int16 *)(a2 + 74) < 0
|| !(unsigned int)png_icc_check_length(a1, a2, a3, a4)
|| !(unsigned int)png_icc_check_header(a1, a2, a3, a4, a5, a6)
|| !(unsigned int)png_icc_check_tag_table(a1, a2, a3, a4, a5) )
{
return 0;
}
png_icc_set_sRGB(a1, a2, a5, 0);
return 1;
}