//
// jinit_forward_dct from 0xe6db08 to 0xe6db94 (140 bytes)
//
// 2 xrefs:
// > jinit_compress_master @ 0xe71610
// > ??> @ 0xe2300
//
// 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:10:35 +0000
//
__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_E6CE20;
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;
}