//
// sub_DFDC10 from 0xdfdc10 to 0xdfdce4 (212 bytes)
//
// 1 xrefs:
// > sub_E1251C @ 0xe12b44
//
// 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:27 +0000
//
__int64 __fastcall sub_DFDC10(__int64 a1, _BYTE *a2)
{
__int64 result; // x0
__int64 (__fastcall *v5)(__int64, _BYTE *); // x2
*a2 = 0;
if ( *(_BYTE *)(a1 + 965) )
{
if ( *(_BYTE *)(a1 + 967) )
{
result = *(_QWORD *)(*(_QWORD *)(a1 + 1024) + 48LL);
if ( !result )
{
*a2 = 1;
return result;
}
return 0;
}
}
else if ( *(_BYTE *)(a1 + 967) )
{
return 0;
}
result = sub_E22C98(a1, 0);
if ( (_DWORD)result )
return result;
if ( *(_DWORD *)(a1 + 384) == 2 && !*(_BYTE *)(a1 + 985)
|| *(_BYTE *)(a1 + 969) && *(_BYTE *)(a1 + 958) && *(_DWORD *)(a1 + 1808) != 2 )
{
return 0;
}
v5 = *(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)(a1 + 1024) + 40LL);
if ( !v5 )
{
*a2 = 1;
goto LABEL_13;
}
result = v5(a1, a2);
if ( !(_DWORD)result )
{
LABEL_13:
*(_BYTE *)(a1 + 967) = 1;
return 0;
}
return result;
}