//
// png_zstream_error from 0xe3c8f8 to 0xe3c9c8 (208 bytes)
//
// 12 xrefs:
// > sub_E54808 @ 0xe548d8
// > sub_E54930 @ 0xe54a1c
// > sub_E54B1C @ 0xe54cf0
// > sub_E54B1C @ 0xe54d08
// > sub_E54B1C @ 0xe54da0
// > sub_E54B1C @ 0xe54dc8
// > sub_E55000 @ 0xe55100
// > png_read_IDAT_data @ 0xe58e40
// > sub_E60CF0 @ 0xe60f7c
// > sub_E61154 @ 0xe612a4
// > png_compress_IDAT @ 0xe620c8
// > ??> @ 0xfa8b8
//
// 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:01 +0000
//
__int64 __fastcall png_zstream_error(__int64 result, int a2)
{
if ( !*(_QWORD *)(result + 424) )
{
switch ( a2 )
{
case -7:
*(_QWORD *)(result + 424) = "unexpected zlib return";
break;
case -6:
*(_QWORD *)(result + 424) = "unsupported zlib version";
break;
case -5:
*(_QWORD *)(result + 424) = "truncated";
break;
case -4:
*(_QWORD *)(result + 424) = "insufficient memory";
break;
case -3:
*(_QWORD *)(result + 424) = "damaged LZ stream";
break;
case -2:
*(_QWORD *)(result + 424) = "bad parameters to zlib";
break;
case -1:
*(_QWORD *)(result + 424) = "zlib IO error";
break;
case 1:
*(_QWORD *)(result + 424) = "unexpected end of LZ stream";
break;
case 2:
*(_QWORD *)(result + 424) = "missing LZ dictionary";
break;
default:
*(_QWORD *)(result + 424) = "unexpected zlib return code";
break;
}
}
return result;
}