//
// inflateEnd from 0xf3b094 to 0xf3b0f8 (100 bytes)
//
// 23 xrefs:
// > cocos2d::ZipUtils::ccInflateMemoryWithHint @ 0xd99fdc
// > cocos2d::ZipUtils::ccInflateMemoryWithHint @ 0xd9a024
// > cocos2d::ZipUtils::ccInflateMemoryWithHint @ 0xd9a03c
// > cocos2d::ZipUtils::ccInflateMemoryWithHint @ 0xd9a04c
// > cocos2d::unzCloseCurrentFile @ 0xd9f3f4
// > sub_E140FC @ 0xe14174
// > sub_E140FC @ 0xe141f0
// > sub_E140FC @ 0xe142bc
// > sub_E140FC @ 0xe142d0
// > sub_E140FC @ 0xe1430c
// > sub_E140FC @ 0xe1431c
// > sub_E14404 @ 0xe14608
// > sub_E14404 @ 0xe146c0
// > sub_E14404 @ 0xe14724
// > sub_E14758 @ 0xe14774
// > sub_E3A9D0 @ 0xe3acd4
// > sub_E3A9D0 @ 0xe3adb4
// > sub_E3AE50 @ 0xe3af94
// > png_destroy_read_struct @ 0xe4bf28
// > uncompress @ 0xf3e6a4
// > uncompress @ 0xf3e6f0
// > gzclose_r @ 0xf3fe18
// > ??> @ 0xa5e20
//
// 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:13:04 +0000
//
__int64 __fastcall inflateEnd(_QWORD *a1)
{
__int64 v1; // x1
void (__fastcall *v2)(_QWORD, __int64); // x2
if ( !a1 )
return 4294967294LL;
v1 = a1[7];
if ( !v1 )
return 4294967294LL;
v2 = (void (__fastcall *)(_QWORD, __int64))a1[9];
if ( !v2 )
return 4294967294LL;
if ( *(_QWORD *)(v1 + 64) )
{
v2(a1[10], *(_QWORD *)(v1 + 64));
v2 = (void (__fastcall *)(_QWORD, __int64))a1[9];
v1 = a1[7];
}
v2(a1[10], v1);
a1[7] = 0;
return 0;
}