//
// sub_100115174 from 0x100115174 to 0x1001151c0 (76 bytes)
//
// 2 xrefs:
// > sub_1001150DC @ 0x100115170
// > sub_100241060 @ 0x1002411a8
//
// 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_100115174(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x9
void *v4; // x0
v3 = *(_QWORD *)(a1 + 8);
v2 = *(_QWORD *)(a1 + 16);
if ( v2 != v3 )
*(_QWORD *)(a1 + 16) = v2 + ((v3 - v2 + 7) & 0xFFFFFFFFFFFFFFF8LL);
v4 = *(void **)a1;
if ( *(_QWORD *)a1 )
operator delete(v4);
return a1;
}