//
// jpeg_set_marker_processor from 0xe89188 to 0xe891e8 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x48a60
//
// 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:51 +0000
//
_QWORD *__fastcall jpeg_set_marker_processor(_QWORD *result, int a2, __int64 a3)
{
__int64 v3; // x5
__int64 (__fastcall **v4)(_QWORD); // x2
v3 = result[77];
if ( a2 == 254 )
{
*(_QWORD *)(v3 + 40) = a3;
}
else if ( (unsigned int)(a2 - 224) > 0xF )
{
v4 = (__int64 (__fastcall **)(_QWORD))*result;
*((_DWORD *)v4 + 11) = a2;
*((_DWORD *)v4 + 10) = 70;
return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))*result)(result);
}
else
{
*(_QWORD *)(v3 + 8LL * (a2 - 224) + 48) = a3;
}
return result;
}