//
// jinit_marker_writer from 0x6702e8 to 0x670332 (74 bytes)
//
// 3 xrefs:
// > jpeg_write_tables @ 0x667042
// > jinit_compress_master @ 0x66daf4
// > jpeg_write_coefficients @ 0x674170
//
// 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 **__fastcall jinit_marker_writer(int a1))(int a1)
{
int (__fastcall **result)(int); // r0
result = (int (__fastcall **)(int))(**(int (***)(void))(a1 + 4))();
*(_DWORD *)(a1 + 408) = result;
*result = sub_66E158;
result[1] = (int (__fastcall *)(int))sub_66F898;
result[2] = (int (__fastcall *)(int))sub_66EEAC;
result[3] = (int (__fastcall *)(int))sub_66DCC8;
result[4] = (int (__fastcall *)(int))sub_66EBAC;
result[5] = (int (__fastcall *)(int))sub_66DD90;
result[6] = (int (__fastcall *)(int))sub_66DC94;
result[7] = nullptr;
return result;
}