//
// jinit_marker_writer from 0xbff28c to 0xbff318 (140 bytes)
//
// 4 xrefs:
// > jpeg_write_tables @ 0xbf1f18
// > jinit_compress_master @ 0xbfb498
// > jpeg_write_coefficients @ 0xc03fb0
// > ??> @ 0x77550
//
// 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
//
__int64 __fastcall jinit_marker_writer(__int64 a1)
{
__int64 result; // x0
result = (**(__int64 (***)(void))(a1 + 8))();
*(_QWORD *)(a1 + 528) = result;
*(_DWORD *)(result + 56) = 0;
*(_QWORD *)result = sub_BFC00C;
*(_QWORD *)(result + 8) = sub_BFE2C8;
*(_QWORD *)(result + 16) = sub_BFD428;
*(_QWORD *)(result + 24) = sub_BFB7E0;
*(_QWORD *)(result + 32) = sub_BFCF48;
*(_QWORD *)(result + 40) = sub_BFB978;
*(_QWORD *)(result + 48) = sub_BFB770;
return result;
}