//
// sub_1001D84A4 from 0x1001d84a4 to 0x1001d84e8 (68 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007bfd70
//
// 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_1001D84A4(__int64 a1)
{
__int64 result; // x0
result = *(_QWORD *)(a1 + 112);
if ( result )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)result + 1008LL))(result);
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 112) + 992LL))(*(_QWORD *)(a1 + 112));
}
*(_DWORD *)(a1 + 108) = 0;
return result;
}