//
// jpeg_idct_2x1 from 0xc25ce8 to 0xc25d44 (92 bytes)
//
// 3 xrefs:
// > ??> @ 0x30798
// > sub_C09320 @ 0xc09670
// > ??> @ 0x12296f8
//
// 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_idct_2x1(__int64 a1, __int64 a2, __int16 *a3, __int64 *a4, unsigned int a5)
{
_DWORD *v5; // x6
__int64 v6; // x1
int v7; // w0
__int64 v8; // x5
int v9; // w2
int v10; // w0
__int64 result; // x0
v5 = *(_DWORD **)(a2 + 88);
v6 = *(_QWORD *)(a1 + 440);
v7 = *a3;
v6 -= 384;
v8 = *a4;
v9 = a3[1] * v5[1];
v10 = v7 * *v5 + 4100;
*(_BYTE *)(v8 + a5) = *(_BYTE *)(v6 + (((unsigned __int64)(unsigned int)(v10 + v9) >> 3) & 0x3FF));
result = *(unsigned __int8 *)(v6 + (((unsigned __int64)(unsigned int)(v10 - v9) >> 3) & 0x3FF));
*(_BYTE *)(v8 + a5 + 1) = result;
return result;
}