//
// sub_180017310 from 0x180017310 to 0x180017363 (83 bytes)
//
// 2 xrefs:
// > sub_180016420 @ 0x18001648c
// > ??> @ 0x1801f71c4
//
// 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_180017310(__int64 a1)
{
__int64 v1; // rbx
void *v2; // rcx
__int64 (__fastcall *v3)(__int64); // rax
__int64 result; // rax
v1 = *(_QWORD *)(a1 + 288);
if ( !v1 )
return 0;
v2 = *(void **)(v1 + 320);
*(_DWORD *)(v1 + 344) = 0;
if ( v2 )
memset(v2, 0, *(unsigned int *)(v1 + 340));
v3 = *(__int64 (__fastcall **)(__int64))(v1 + 176);
if ( !v3 )
return 0;
result = v3(v1);
if ( !(_DWORD)result )
return 0;
return result;
}