//
// sub_1001F4710 from 0x1001f4710 to 0x1001f4809 (249 bytes)
//
// 2 xrefs:
// > sub_1001F3D80 @ 0x1001f3d85
// > sub_1001F3D90 @ 0x1001f3d99
//
// 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_1001F4710(_QWORD *a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // r14
void *v4; // rdi
_QWORD *v5; // rdi
_QWORD *v6; // r14
void *v7; // rdi
void *v8; // rdi
*a1 = off_1008CF218;
a1[40] = off_1008CF960;
a1[43] = off_1008CF9E0;
v2 = (_QWORD *)a1[240];
if ( v2 )
{
do
{
v3 = (_QWORD *)*v2;
operator delete(v2);
v2 = v3;
}
while ( v3 );
}
v4 = (void *)a1[238];
a1[238] = 0;
if ( v4 )
operator delete(v4);
v5 = (_QWORD *)a1[235];
if ( v5 )
{
do
{
v6 = (_QWORD *)*v5;
operator delete(v5);
v5 = v6;
}
while ( v6 );
}
v7 = (void *)a1[233];
a1[233] = 0;
if ( v7 )
operator delete(v7);
*a1 = off_1008D8B90;
a1[40] = off_1008D92D8;
a1[43] = off_1008D9358;
v8 = (void *)a1[230];
if ( v8 )
{
a1[231] = v8;
operator delete(v8);
}
return GameObject::dGameObject(a1);
}