//
// jpeg_abort from 0xc01024 to 0xc0107c (88 bytes)
//
// 6 xrefs:
// > jpeg_abort_compress @ 0xbf1b70
// > jpeg_finish_compress @ 0xbf1d34
// > jpeg_abort_decompress @ 0xc043a4
// > jpeg_read_header @ 0xc0472c
// > jpeg_finish_decompress @ 0xc04864
// > ??> @ 0x629e8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}