//
// jpeg_idct_2x1 from 0x699288 to 0x6992c8 (64 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_2x1(int a1, int a2, __int16 *a3, int *a4, int a5)
{
_DWORD *v5; // r4
int v6; // r5
int v7; // r2
int result; // r0
int v9; // r1
int v10; // r5
unsigned int v11; // r3
unsigned int v12; // r2
_BYTE *v13; // r1
v5 = *(_DWORD **)(a2 + 84);
v6 = a3[1];
v7 = *v5 * *a3 + 4100;
result = *(_DWORD *)(a1 + 336) - 384;
v9 = v5[1] * v6;
v10 = *a4;
v11 = v7 + v9;
v12 = ((unsigned int)(v7 - v9) >> 3) & 0x3FF;
v13 = (_BYTE *)(v10 + a5);
*v13 = *(_BYTE *)(result + ((v11 >> 3) & 0x3FF));
v13[1] = *(_BYTE *)(result + v12);
return result;
}