//
// sub_10036F998 from 0x10036f998 to 0x10036f9d0 (56 bytes)
//
// 2 xrefs:
// > sub_100366FC4 @ 0x100367a6c
// > sub_100367AA8 @ 0x100367bb0
//
// 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_10036F998(__int64 a1)
{
void *v2; // x0
sub_10036F9D0(a1, *(_QWORD *)(a1 + 16));
v2 = *(void **)a1;
*(_QWORD *)a1 = 0;
if ( v2 )
operator delete(v2);
return a1;
}