//
// jpeg_set_marker_processor from 0xc12fc8 to 0xc13028 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x30c60
//
// 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
//
_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;
}