//
// jpeg_fdct_1x2 from 0xc1f500 to 0xc1f568 (104 bytes)
//
// 3 xrefs:
// > ??> @ 0x51468
// > sub_BF6C60 @ 0xbf77bc
// > ??> @ 0x122a9e0
//
// 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_fdct_1x2(_DWORD *a1, _QWORD *a2, unsigned int a3)
{
int v6; // w0
int v7; // w2
int v8; // w1
__int64 result; // x0
memset(a1, 0, 0x100u);
v6 = *(unsigned __int8 *)(*a2 + a3);
v7 = *(unsigned __int8 *)(a2[1] + a3);
v8 = v6 + v7;
result = (unsigned int)(32 * (v6 - v7));
a1[8] = result;
*a1 = 32 * (v8 - 256);
return result;
}