//
// jinit_arith_encoder from 0xe6a8b4 to 0xe6a950 (156 bytes)
//
// 3 xrefs:
// > jinit_compress_master @ 0xe71620
// > jpeg_write_coefficients @ 0xe7a1b4
// > ??> @ 0xb3980
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:33 +0000
//
__int64 __fastcall jinit_arith_encoder(__int64 a1)
{
__int64 result; // x0
result = (**(__int64 (***)(void))(a1 + 8))();
*(_QWORD *)(a1 + 560) = result;
*(_QWORD *)result = sub_E68414;
*(_QWORD *)(result + 16) = sub_E69424;
*(_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;
}