//
// sub_69F0D4 from 0x69f0d4 to 0x69f16a (150 bytes)
//
// 0 xrefs:
//
// 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
//
_DWORD *__fastcall sub_69F0D4(_DWORD *a1, unsigned int a2, unsigned int a3)
{
int v5; // r4
int v6; // r8
_DWORD *large; // r5
int v8; // r6
int v10; // r3
v5 = a3;
v6 = a1[1];
if ( a3 > 0x3B9AC9F0 )
{
*(_DWORD *)(*a1 + 20) = 56;
*(_DWORD *)(*a1 + 24) = 3;
(*(void (__fastcall **)(_DWORD *))*a1)(a1);
}
if ( (v5 & 7) != 0 )
v5 = v5 + 8 - (v5 & 7);
if ( a2 > 1 )
{
*(_DWORD *)(*a1 + 20) = 15;
*(_DWORD *)(*a1 + 24) = a2;
(*(void (__fastcall **)(_DWORD *))*a1)(a1);
}
large = (_DWORD *)jpeg_get_large((int)a1, v5 + 16);
if ( !large )
{
*(_DWORD *)(*a1 + 20) = 56;
*(_DWORD *)(*a1 + 24) = 4;
(*(void (__fastcall **)(_DWORD *))*a1)(a1);
}
v8 = v6 + 4 * a2;
*(_DWORD *)(v6 + 76) += 16 + v5;
v10 = *(_DWORD *)(v8 + 60);
large[1] = v5;
large[2] = 0;
*large = v10;
*(_DWORD *)(v8 + 60) = large;
return large + 4;
}