//
// png_colorspace_set_ICC from 0xe404a8 to 0xe40554 (172 bytes)
//
// 2 xrefs:
// > png_set_iCCP @ 0xe5a488
// > ??> @ 0x4ef88
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:02 +0000
//
__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;
}