//
// jinit_forward_dct from 0xbf7948 to 0xbf79d4 (140 bytes)
//
// 2 xrefs:
// > jinit_compress_master @ 0xbfb450
// > ??> @ 0xacbc0
//
// 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 **__fastcall jinit_forward_dct(__int64 a1))(__int64 result)
{
int v2; // w21
__int64 (__fastcall **result)(__int64); // x0
int v4; // w1
__int64 v5; // x20
int v6; // w1
v2 = 0;
result = (__int64 (__fastcall **)(__int64))(**(__int64 (***)(void))(a1 + 8))();
*(_QWORD *)(a1 + 552) = result;
v4 = *(_DWORD *)(a1 + 92);
v5 = *(_QWORD *)(a1 + 104);
*result = sub_BF6C60;
if ( v4 > 0 )
{
do
{
++v2;
v5 += 96;
result = (__int64 (__fastcall **)(__int64))(**(__int64 (__fastcall ***)(__int64))(a1 + 8))(a1);
v6 = *(_DWORD *)(a1 + 92);
*(_QWORD *)(v5 - 8) = result;
}
while ( v6 > v2 );
}
return result;
}