//
// jpeg_fdct_2x1 from 0xc1d234 to 0xc1d29c (104 bytes)
//
// 3 xrefs:
// > ??> @ 0x478f8
// > sub_BF6C60 @ 0xbf73fc
// > ??> @ 0x122a4a0
//
// 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_2x1(_DWORD *a1, _QWORD *a2, unsigned int a3)
{
unsigned __int8 *v6; // x2
int v7; // w0
int v8; // w1
__int64 result; // x0
memset(a1, 0, 0x100u);
v6 = (unsigned __int8 *)(*a2 + a3);
v7 = *v6;
LODWORD(v6) = v6[1];
v8 = v7 + (_DWORD)v6;
result = (unsigned int)(32 * (v7 - (_DWORD)v6));
a1[1] = result;
*a1 = 32 * (v8 - 256);
return result;
}