//
// sub_10066EEA8 from 0x10066eea8 to 0x10066ef00 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009b0f28
//
// 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 11:11:06 +0000
//
__int64 __fastcall sub_10066EEA8(__int64 a1)
{
__int64 v1; // x19
int v2; // w0
v1 = *(_QWORD *)(*(_QWORD *)a1 + 536LL);
if ( v1 )
{
off_1009E5FD8(*(void **)(v1 + 8));
*(_QWORD *)v1 = 0;
*(_QWORD *)(v1 + 8) = 0;
v2 = *(_DWORD *)(v1 + 16);
if ( v2 != -1 )
close(v2);
*(_DWORD *)(v1 + 16) = -1;
}
return 0;
}