//
// png_chunk_report from 0x8611cc to 0x8611ec (32 bytes)
//
// 16 xrefs:
// > sub_85D108 @ 0x85d1ae
// > png_icc_check_length @ 0x85dd52
// > png_colorspace_set_gamma @ 0x85fed4
// > png_colorspace_set_gamma @ 0x85ff00
// > png_colorspace_set_gamma @ 0x85ff1e
// > png_colorspace_set_sRGB @ 0x860124
// > png_colorspace_set_sRGB @ 0x8601e4
// > png_icc_set_sRGB @ 0x86033e
// > png_icc_set_sRGB @ 0x860386
// > png_icc_set_sRGB @ 0x8603ba
// > png_set_text_2 @ 0x87037a
// > png_set_text_2 @ 0x8703cc
// > png_set_text_2 @ 0x87040a
// > png_set_sPLT @ 0x8706c0
// > png_set_unknown_chunks @ 0x8707e6
// > png_set_unknown_chunks @ 0x8707f8
//
// 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:43 +0000
//
int __fastcall png_chunk_report(int a1, const char *a2, int a3)
{
if ( (*(_DWORD *)(a1 + 308) & 0x8000) != 0 )
{
if ( a3 <= 1 )
return png_chunk_warning(a1, a2);
else
return png_chunk_benign_error(a1, a2);
}
else if ( a3 <= 0 )
{
return png_app_warning(a1, a2);
}
else
{
return png_app_error(a1, a2);
}
}