//
// jpeg_write_tables from 0x667014 to 0x66705c (72 bytes)
//
// 0 xrefs:
//
// 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_write_tables(_DWORD *a1)
{
if ( a1[5] != 100 )
{
*(_DWORD *)(*a1 + 20) = 21;
*(_DWORD *)(*a1 + 24) = a1[5];
(*(void (__fastcall **)(_DWORD *))*a1)(a1);
}
(*(void (__fastcall **)(_DWORD *))(*a1 + 16))(a1);
(*(void (__fastcall **)(_DWORD *))(a1[6] + 8))(a1);
jinit_marker_writer(a1);
(*(void (__fastcall **)(_DWORD *))(a1[102] + 16))(a1);
return (*(int (__fastcall **)(_DWORD *))(a1[6] + 16))(a1);
}