// // jpeg_resync_to_restart from 0x67e820 to 0x67e8f6 (214 bytes) // // 0 xrefs: // // 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 // int __fastcall jpeg_resync_to_restart(_DWORD *a1, int a2) { int v3; // r5 int result; // r0 v3 = a1[110]; *(_DWORD *)(*a1 + 20) = 124; *(_DWORD *)(*a1 + 24) = v3; *(_DWORD *)(*a1 + 28) = a2; (*(void (__fastcall **)(_DWORD *, int))(*a1 + 4))(a1, -1); while ( 1 ) { if ( v3 <= 191 ) goto LABEL_10; if ( (unsigned int)(v3 - 208) > 7 || ((a2 + 1) & 7) + 208 == v3 || (((_BYTE)a2 + 2) & 7) + 208 == v3 ) break; if ( (((_BYTE)a2 - 1) & 7) + 208 != v3 && (((_BYTE)a2 - 2) & 7) + 208 != v3 ) { *(_DWORD *)(*a1 + 20) = 99; *(_DWORD *)(*a1 + 24) = v3; *(_DWORD *)(*a1 + 28) = 1; (*(void (__fastcall **)(_DWORD *, int))(*a1 + 4))(a1, 4); a1[110] = 0; return 1; } LABEL_10: *(_DWORD *)(*a1 + 20) = 99; *(_DWORD *)(*a1 + 24) = v3; *(_DWORD *)(*a1 + 28) = 2; (*(void (__fastcall **)(_DWORD *, int))(*a1 + 4))(a1, 4); result = sub_67C8B0(a1); if ( !result ) return result; v3 = a1[110]; } *(_DWORD *)(*a1 + 20) = 99; *(_DWORD *)(*a1 + 24) = v3; *(_DWORD *)(*a1 + 28) = 3; (*(void (__fastcall **)(_DWORD *, int))(*a1 + 4))(a1, 4); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source