// // jpeg_read_raw_data from 0x674968 to 0x6749f8 (144 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_read_raw_data(_DWORD *a1, int a2, unsigned int a3) { unsigned int v6; // r3 int v7; // r1 unsigned int v8; // r5 int result; // r0 if ( a1[5] != 206 ) { *(_DWORD *)(*a1 + 20) = 21; *(_DWORD *)(*a1 + 24) = a1[5]; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } v6 = a1[35]; if ( v6 >= a1[29] ) { *(_DWORD *)(*a1 + 20) = 126; (*(void (__fastcall **)(_DWORD *, int))(*a1 + 4))(a1, -1); return 0; } else { v7 = a1[2]; if ( v7 ) { *(_DWORD *)(v7 + 4) = v6; *(_DWORD *)(a1[2] + 8) = a1[29]; (*(void (__fastcall **)(_DWORD *))a1[2])(a1); } v8 = a1[82] * a1[80]; if ( v8 > a3 ) { *(_DWORD *)(*a1 + 20) = 24; (*(void (__fastcall **)(_DWORD *))*a1)(a1); } result = (*(int (__fastcall **)(_DWORD *, int))(a1[113] + 12))(a1, a2); if ( result ) { result = v8; a1[35] += v8; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source