//
// sub_100581FC4 from 0x100581fc4 to 0x100582028 (100 bytes)
//
// 2 xrefs:
// > ??> @ 0x10082ed88
// > ??> @ 0x10082ee08
//
// 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_100581FC4(__int64 a1, __int64 a2)
{
__int64 v4; // x21
v4 = *(_QWORD *)(*(_QWORD *)a1 + 536LL);
off_10085DEB8(*(void **)(v4 + 8));
*(_QWORD *)(v4 + 8) = 0;
off_10085DEB8(*(void **)(*(_QWORD *)a1 + 536LL));
*(_QWORD *)(*(_QWORD *)a1 + 536LL) = 0;
return a2;
}