//
// png_colorspace_set_ICC from 0x8603d4 to 0x860432 (94 bytes)
//
// 1 xrefs:
// > png_set_iCCP @ 0x870146
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:02:42 +0000
//
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;
}