// // jpeg_save_markers from 0xc12ec4 to 0xc12fc8 (260 bytes) // // 1 xrefs: // > @ 0x59dc0 // // 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 jpeg_save_markers(_QWORD *a1, int a2, unsigned int a3) { __int64 v4; // x5 __int64 result; // x0 int v6; // w0 void *v7; // x4 __int64 (__fastcall **v8)(_QWORD); // x2 __int64 v9; // x1 v4 = a1[77]; result = *(_QWORD *)(a1[1] + 96LL) - 32LL; if ( result < a3 ) a3 = result; if ( a3 ) { if ( a3 <= 0xD && a2 == 224 ) { a3 = 14; goto LABEL_7; } if ( a3 <= 0xB && a2 == 238 ) { a3 = 12; LABEL_7: v6 = a2 - 224; v7 = sub_C12350; if ( (unsigned int)(a2 - 224) > 0xF ) { LABEL_8: v8 = (__int64 (__fastcall **)(_QWORD))*a1; *((_DWORD *)v8 + 11) = a2; *((_DWORD *)v8 + 10) = 70; return (*(__int64 (__fastcall **)(_QWORD *))*a1)(a1); } goto LABEL_14; } v7 = sub_C12350; } else { if ( a2 == 238 || a2 == 224 ) { v7 = sub_C12730; LABEL_13: v6 = a2 - 224; if ( (unsigned int)(a2 - 224) > 0xF ) goto LABEL_8; LABEL_14: v9 = v6 + 6LL; result = v4 + 4LL * v6; *(_QWORD *)(v4 + 8 * v9) = v7; *(_DWORD *)(result + 180) = a3; return result; } v7 = sub_C10058; } if ( a2 != 254 ) goto LABEL_13; *(_QWORD *)(v4 + 40) = v7; *(_DWORD *)(v4 + 176) = a3; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source