// // jinit_compress_master from 0xbfb3a4 to 0xbfb504 (352 bytes) // // 2 xrefs: // > jpeg_start_compress @ 0xbf1fb0 // > @ 0x91bd8 // // 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_compress_master(_QWORD **a1) { int v1; // w1 void (__fastcall **v3)(_QWORD); // x2 unsigned int v4; // w0 void (__fastcall *v5)(_QWORD **); // x2 int v6; // w1 void (__fastcall *v7)(_QWORD **); // x2 _BOOL4 v8; // w1 v1 = *((_DWORD *)a1 + 22); if ( v1 != 8 ) { v3 = (void (__fastcall **)(_QWORD))*a1; *((_DWORD *)v3 + 11) = v1; *((_DWORD *)v3 + 10) = 16; ((void (__fastcall *)(_QWORD **))**a1)(a1); } if ( !*((_DWORD *)a1 + 13) || (v4 = *((_DWORD *)a1 + 12)) == 0 || (v6 = *((_DWORD *)a1 + 14), v6 <= 0) ) { v5 = (void (__fastcall *)(_QWORD **))**a1; *((_DWORD *)*a1 + 10) = 33; v5(a1); v4 = *((_DWORD *)a1 + 12); v6 = *((_DWORD *)a1 + 14); } if ( v4 * (__int64)v6 != v4 * v6 ) { v7 = (void (__fastcall *)(_QWORD **))**a1; *((_DWORD *)*a1 + 10) = 72; v7(a1); } jinit_c_master_control(a1, 0); if ( !*((_DWORD *)a1 + 72) ) { jinit_color_converter((void (__fastcall ***)(_QWORD))a1); jinit_downsampler(a1); jinit_c_prep_controller(a1, 0); } jinit_forward_dct((__int64)a1); if ( *((_DWORD *)a1 + 73) ) jinit_arith_encoder((__int64)a1); else jinit_huff_encoder((__int64)a1); v8 = 1; if ( *((int *)a1 + 68) <= 1 ) v8 = *((_DWORD *)a1 + 74) != 0; jinit_c_coef_controller((__int64)a1, v8); jinit_c_main_controller(a1, 0); jinit_marker_writer(a1); ((void (__fastcall *)(_QWORD **))a1[1][6])(a1); return ((__int64 (__fastcall *)(_QWORD **))*a1[66])(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source