//
// jpeg_idct_2x1 from 0x8a9308 to 0x8a9348 (64 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:03:46 +0000
//
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;
}