//
// sub_DF3988 from 0xdf3988 to 0xdf3a20 (152 bytes)
//
// 2 xrefs:
// > ??> @ 0x13fbd20
// > ??> @ 0x13fbda0
//
// 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:09:19 +0000
//
__int64 __fastcall sub_DF3988(__int64 *a1, _DWORD *a2, unsigned int a3)
{
unsigned int v3; // w3
__int64 v5; // x1
int v6; // w2
int v7; // w1
int v8; // w2
__int64 v10; // x2
v3 = a3;
if ( !a3 )
return v3;
if ( *((_DWORD *)a1 + 434) )
{
v10 = a1[201];
*a2 = *(_DWORD *)(a1[206] + 608);
if ( v10 )
return 0x10000;
else
return 1;
}
else
{
v5 = *a1;
*a2 = *((_DWORD *)a1 + 152);
if ( !*(_BYTE *)(v5 + 1558) )
{
v6 = *((_DWORD *)a1 + 154);
if ( v6 == -1 )
{
v7 = 1;
v3 = 1;
}
else
{
v7 = 2;
a2[1] = v6;
v3 = 131073;
}
v8 = *((_DWORD *)a1 + 155);
if ( v8 != -1 )
{
a2[v7] = v8;
v3 |= 1 << (v7 + 16);
}
return v3;
}
a2[1] = *((_DWORD *)a1 + 153);
return 131075;
}
}