//
// jinit_arith_encoder from 0xbf46f4 to 0xbf4790 (156 bytes)
//
// 3 xrefs:
// > jinit_compress_master @ 0xbfb460
// > jpeg_write_coefficients @ 0xc03ff4
// > ??> @ 0x87678
//
// 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_arith_encoder(__int64 a1)
{
__int64 result; // x0
result = (**(__int64 (***)(void))(a1 + 8))();
*(_QWORD *)(a1 + 560) = result;
*(_QWORD *)result = sub_BF2254;
*(_QWORD *)(result + 16) = sub_BF3264;
*(_QWORD *)(result + 104) = 0;
*(_QWORD *)(result + 112) = 0;
*(_QWORD *)(result + 120) = 0;
*(_QWORD *)(result + 128) = 0;
*(_QWORD *)(result + 136) = 0;
*(_QWORD *)(result + 144) = 0;
*(_QWORD *)(result + 152) = 0;
*(_QWORD *)(result + 160) = 0;
*(_QWORD *)(result + 168) = 0;
*(_QWORD *)(result + 176) = 0;
*(_QWORD *)(result + 184) = 0;
*(_QWORD *)(result + 192) = 0;
*(_QWORD *)(result + 200) = 0;
*(_QWORD *)(result + 208) = 0;
*(_QWORD *)(result + 216) = 0;
*(_QWORD *)(result + 224) = 0;
*(_QWORD *)(result + 232) = 0;
*(_QWORD *)(result + 240) = 0;
*(_QWORD *)(result + 248) = 0;
*(_QWORD *)(result + 256) = 0;
*(_QWORD *)(result + 264) = 0;
*(_QWORD *)(result + 272) = 0;
*(_QWORD *)(result + 280) = 0;
*(_QWORD *)(result + 288) = 0;
*(_QWORD *)(result + 296) = 0;
*(_QWORD *)(result + 304) = 0;
*(_QWORD *)(result + 312) = 0;
*(_QWORD *)(result + 320) = 0;
*(_QWORD *)(result + 328) = 0;
*(_QWORD *)(result + 336) = 0;
*(_QWORD *)(result + 344) = 0;
*(_QWORD *)(result + 352) = 0;
*(_BYTE *)(result + 360) = 113;
return result;
}