//
// sub_FF6ADC from 0xff6adc to 0xff6b3c (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x13ff9e8
//
// 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:15:48 +0000
//
__int64 __fastcall sub_FF6ADC(__int64 result)
{
__int64 v1; // x19
int v2; // w1
FILE *v3; // x0
v1 = result;
if ( result )
{
v2 = *(_DWORD *)(result + 28);
result = 1;
if ( v2 )
{
if ( *(_DWORD *)(v1 + 24) )
{
v3 = *(FILE **)(v1 + 48);
if ( v3 )
{
fclose(v3);
*(_QWORD *)(v1 + 48) = 0;
*(_DWORD *)(v1 + 32) = 0;
}
}
*(_DWORD *)(v1 + 24) = 0;
return 1;
}
}
return result;
}