//
// jpeg_idct_1x2 from 0x69c914 to 0x69c956 (66 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_idct_1x2(int a1, int a2, __int16 *a3, _DWORD *a4, int a5)
{
_DWORD *v5; // r4
int v6; // r5
int v7; // r2
int result; // r0
int v9; // r1
v5 = *(_DWORD **)(a2 + 84);
v6 = a3[8];
v7 = *v5 * *a3 + 4100;
result = *(_DWORD *)(a1 + 336) - 384;
v9 = v5[8] * v6;
*(_BYTE *)(*a4 + a5) = *(_BYTE *)(result + (((unsigned int)(v7 + v9) >> 3) & 0x3FF));
*(_BYTE *)(a4[1] + a5) = *(_BYTE *)(result + (((unsigned int)(v7 - v9) >> 3) & 0x3FF));
return result;
}