//
// jpeg_idct_1x2 from 0xe9d9d4 to 0xe9da30 (92 bytes)
//
// 3 xrefs:
// > ??> @ 0x71290
// > sub_E7F4E0 @ 0xe80218
// > ??> @ 0x1542d58
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:11:05 +0000
//
__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;
}