//
// jpeg_abort from 0x881808 to 0x88182c (36 bytes)
//
// 5 xrefs:
// > jpeg_abort_compress @ 0x876eb0
// > jpeg_finish_compress @ 0x876fd4
// > jpeg_abort_decompress @ 0x8844ec
// > jpeg_read_header @ 0x884724
// > jpeg_finish_decompress @ 0x8847e2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:03:10 +0000
//
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;
}