//
// png_chunk_report from 0xe4342c to 0xe43454 (40 bytes)
//
// 17 xrefs:
// > sub_E3B438 @ 0xe3b560
// > png_icc_check_length @ 0xe3cbc4
// > png_colorspace_set_gamma @ 0xe3fac0
// > png_colorspace_set_gamma @ 0xe3fb10
// > png_colorspace_set_gamma @ 0xe3fb40
// > png_colorspace_set_sRGB @ 0xe40034
// > png_colorspace_set_sRGB @ 0xe401a4
// > png_icc_set_sRGB @ 0xe403c0
// > png_icc_set_sRGB @ 0xe4044c
// > png_icc_set_sRGB @ 0xe404a0
// > png_set_text_2 @ 0xe5a7c0
// > png_set_text_2 @ 0xe5a848
// > png_set_text_2 @ 0xe5a878
// > png_set_sPLT @ 0xe5ac90
// > png_set_unknown_chunks @ 0xe5ae2c
// > png_set_unknown_chunks @ 0xe5ae5c
// > ??> @ 0x470f8
//
// 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:04 +0000
//
__int64 __fastcall png_chunk_report(__int64 a1, const char *a2, int a3)
{
if ( (*(_DWORD *)(a1 + 356) & 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);
}
}