//
// jpeg_write_m_header from 0x877050 to 0x87708c (60 bytes)
//
// 0 xrefs:
//
// 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:03 +0000
//
int __fastcall jpeg_write_m_header(_DWORD *a1, int a2, int a3)
{
if ( a1[66] || (unsigned int)(a1[5] - 101) > 2 )
{
*(_DWORD *)(*a1 + 20) = 21;
*(_DWORD *)(*a1 + 24) = a1[5];
(*(void (__fastcall **)(_DWORD *))*a1)(a1);
}
return (*(int (__fastcall **)(_DWORD *, int, int))(a1[102] + 20))(a1, a2, a3);
}