//
// jpeg_destroy from 0xe7723c to 0xe77270 (52 bytes)
//
// 4 xrefs:
// > jpeg_destroy_compress @ 0xe67d2c
// > jpeg_destroy_decompress @ 0xe7a560
// > sub_E8C1D8 @ 0xe8c1f8
// > ??> @ 0x848f8
//
// 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:40 +0000
//
__int64 __fastcall jpeg_destroy(__int64 result)
{
__int64 v1; // x1
__int64 v2; // x19
v1 = *(_QWORD *)(result + 8);
v2 = result;
if ( v1 )
result = (*(__int64 (**)(void))(v1 + 80))();
*(_QWORD *)(v2 + 8) = 0;
*(_DWORD *)(v2 + 36) = 0;
return result;
}