//
// jpeg_idct_1x2 from 0xc27814 to 0xc27870 (92 bytes)
//
// 3 xrefs:
// > ??> @ 0x51420
// > sub_C09320 @ 0xc0a058
// > ??> @ 0x122a9d0
//
// 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_1x2(__int64 a1, __int64 a2, __int16 *a3, _QWORD *a4, unsigned int a5)
{
_DWORD *v5; // x5
__int64 v6; // x1
int v7; // w0
int v8; // w2
__int64 result; // x0
v5 = *(_DWORD **)(a2 + 88);
v6 = *(_QWORD *)(a1 + 440) - 384LL;
v7 = *a3 * *v5;
v8 = a3[8] * v5[8];
v7 += 4100;
*(_BYTE *)(*a4 + a5) = *(_BYTE *)(v6 + (((unsigned __int64)(unsigned int)(v7 + v8) >> 3) & 0x3FF));
result = *(unsigned __int8 *)(v6 + (((unsigned __int64)(unsigned int)(v7 - v8) >> 3) & 0x3FF));
*(_BYTE *)(a4[1] + a5) = result;
return result;
}