//
// sub_66FF0 from 0x66ff0 to 0x67040 (80 bytes)
//
// 6 xrefs:
// > sub_66E18 @ 0x66f0c
// > sub_67970 @ 0x67a08
// > sub_69164 @ 0x69180
// > sub_78B30 @ 0x79884
// > sub_8B4AC @ 0x8b4bc
// > sub_A75CC @ 0xa7630
//
// 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
//
__int64 __fastcall sub_66FF0(__int64 a1)
{
void *v2; // x0
__int64 (__fastcall *v3)(__int64); // x1
v2 = *(void **)(a1 + 320);
*(_DWORD *)(a1 + 344) = 0;
if ( v2 )
memset(v2, 0, *(unsigned int *)(a1 + 340));
v3 = *(__int64 (__fastcall **)(__int64))(a1 + 176);
if ( v3 )
return v3(a1);
else
return 0;
}