//
// sub_1001D851C from 0x1001d851c to 0x1001d8550 (52 bytes)
//
// 2 xrefs:
// > ??> @ 0x1007bfd78
// > ??> @ 0x1007e7010
//
// 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_1001D851C(__int64 a1)
{
__int64 result; // x0
result = *(_QWORD *)(a1 + 112);
if ( result )
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1008LL))(result);
*(_DWORD *)(a1 + 108) = 0;
return result;
}