//
// png_chunk_report from 0x65114c to 0x65116c (32 bytes)
//
// 16 xrefs:
// > sub_64D088 @ 0x64d12e
// > png_icc_check_length @ 0x64dcd2
// > png_colorspace_set_gamma @ 0x64fe54
// > png_colorspace_set_gamma @ 0x64fe80
// > png_colorspace_set_gamma @ 0x64fe9e
// > png_colorspace_set_sRGB @ 0x6500a4
// > png_colorspace_set_sRGB @ 0x650164
// > png_icc_set_sRGB @ 0x6502be
// > png_icc_set_sRGB @ 0x650306
// > png_icc_set_sRGB @ 0x65033a
// > png_set_text_2 @ 0x6602fa
// > png_set_text_2 @ 0x66034c
// > png_set_text_2 @ 0x66038a
// > png_set_sPLT @ 0x660640
// > png_set_unknown_chunks @ 0x660766
// > png_set_unknown_chunks @ 0x660778
//
// 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_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);
}
}