// // jinit_d_coef_controller from 0xc07d6c to 0xc07f38 (460 bytes) // // 3 xrefs: // > jinit_master_decompress @ 0xc13f6c // > jpeg_read_coefficients @ 0xc15d8c // > @ 0x30378 // // 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 *__fastcall jinit_d_coef_controller(__int64 a1, int a2))(__int64 a1, __int64 a2) { __int64 (__fastcall **v4)(__int64); // x24 __int64 v5; // x19 int v6; // w21 __int64 *v7; // x22 __int64 v8; // x5 __int64 (__fastcall *v9)(__int64, __int64, __int64, _QWORD, __int64, __int64); // x23 unsigned int v10; // w26 __int64 v11; // x0 __int64 v12; // x0 int v13; // w1 char *v15; // x0 __int64 v16; // [xsp+50h] [xbp+50h] v4 = (__int64 (__fastcall **)(__int64))(**(__int64 (***)(void))(a1 + 8))(); *(_QWORD *)(a1 + 592) = v4; *v4 = sub_C079B4; v4[27] = nullptr; v4[2] = (__int64 (__fastcall *)(__int64))sub_C07070; if ( a2 ) { v5 = *(_QWORD *)(a1 + 304); v6 = 0; v7 = (__int64 *)(v4 + 17); if ( *(int *)(a1 + 56) > 0 ) { do { LODWORD(v8) = *(_DWORD *)(v5 + 12); v5 += 96; ++v6; if ( *(_DWORD *)(a1 + 316) ) v8 = (unsigned int)(3 * v8); else v8 = (unsigned int)v8; v9 = *(__int64 (__fastcall **)(__int64, __int64, __int64, _QWORD, __int64, __int64))(*(_QWORD *)(a1 + 8) + 40LL); v16 = v8; v10 = jround_up(*(unsigned int *)(v5 - 68), *(int *)(v5 - 88)); v11 = jround_up(*(unsigned int *)(v5 - 64), *(int *)(v5 - 84)); v12 = v9(a1, 1, 1, v10, v11, v16); v13 = *(_DWORD *)(a1 + 56); *v7++ = v12; } while ( v13 > v6 ); } v4[4] = (__int64 (__fastcall *)(__int64))(v4 + 17); v4[1] = sub_C068D8; v4[3] = (__int64 (__fastcall *)(__int64))sub_C06E74; return (__int64 (__fastcall *)(__int64, __int64))sub_C06E74; } else { v15 = (char *)(*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)(a1 + 8) + 8LL))(a1, 1, 1280); v4[8] = (__int64 (__fastcall *)(__int64))(v15 + 128); v4[9] = (__int64 (__fastcall *)(__int64))(v15 + 256); v4[10] = (__int64 (__fastcall *)(__int64))(v15 + 384); v4[11] = (__int64 (__fastcall *)(__int64))(v15 + 512); v4[12] = (__int64 (__fastcall *)(__int64))(v15 + 640); v4[13] = (__int64 (__fastcall *)(__int64))(v15 + 768); v4[14] = (__int64 (__fastcall *)(__int64))(v15 + 896); v4[15] = (__int64 (__fastcall *)(__int64))(v15 + 1024); v4[16] = (__int64 (__fastcall *)(__int64))(v15 + 1152); v4[7] = (__int64 (__fastcall *)(__int64))v15; if ( !*(_DWORD *)(a1 + 568) ) memset(v15, 0, 0x500u); v4[4] = nullptr; v4[1] = (__int64 (__fastcall *)(__int64))sub_C068D0; v4[3] = (__int64 (__fastcall *)(__int64))sub_C07A14; return sub_C07A14; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source