//
// jpeg_abort from 0xe771e4 to 0xe7723c (88 bytes)
//
// 6 xrefs:
// > jpeg_abort_compress @ 0xe67d30
// > jpeg_finish_compress @ 0xe67ef4
// > jpeg_abort_decompress @ 0xe7a564
// > jpeg_read_header @ 0xe7a8ec
// > jpeg_finish_decompress @ 0xe7aa24
// > ??> @ 0x86728
//
// 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_abort(__int64 result)
{
__int64 v1; // x1
__int64 v2; // x19
v1 = *(_QWORD *)(result + 8);
v2 = result;
if ( v1 )
{
(*(void (**)(void))(v1 + 72))();
if ( *(_DWORD *)(v2 + 32) )
{
*(_QWORD *)(v2 + 408) = 0;
*(_DWORD *)(v2 + 36) = 200;
return 200;
}
else
{
result = 100;
*(_DWORD *)(v2 + 36) = 100;
}
}
return result;
}