//
// jpeg_abort from 0x671788 to 0x6717ac (36 bytes)
//
// 5 xrefs:
// > jpeg_abort_compress @ 0x666e30
// > jpeg_finish_compress @ 0x666f54
// > jpeg_abort_decompress @ 0x67446c
// > jpeg_read_header @ 0x6746a4
// > jpeg_finish_decompress @ 0x674762
//
// 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
//
int __fastcall jpeg_abort(int result)
{
int v1; // r3
_DWORD *v2; // r4
v1 = *(_DWORD *)(result + 4);
v2 = (_DWORD *)result;
if ( v1 )
{
result = (*(int (**)(void))(v1 + 36))();
if ( v2[4] )
{
v2[5] = 200;
v2[78] = 0;
}
else
{
v2[5] = 100;
}
}
return result;
}