//
// sub_1004FA990 from 0x1004fa990 to 0x1004fa9dc (76 bytes)
//
// 1 xrefs:
// > sub_1004FA84C @ 0x1004fa8c4
//
// 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_1004FA990(__int64 a1)
{
__int64 v1; // x19
void *v2; // x0
__int64 (__fastcall *v3)(__int64); // x8
__int64 result; // x0
v1 = *(_QWORD *)(a1 + 288);
if ( !v1 )
return 0;
*(_DWORD *)(v1 + 344) = 0;
v2 = *(void **)(v1 + 320);
if ( v2 )
bzero(v2, *(unsigned int *)(v1 + 340));
v3 = *(__int64 (__fastcall **)(__int64))(v1 + 176);
if ( !v3 )
return 0;
result = v3(v1);
if ( !(_DWORD)result )
return 0;
return result;
}