//
// sub_10038E980 from 0x10038e980 to 0x10038e9dc (92 bytes)
//
// 2 xrefs:
// > sub_10038E9DC @ 0x10038e9dc
// > sub_10038E9E0 @ 0x10038e9e8
//
// 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_10038E980(_QWORD *a1)
{
void *v2; // x0
void *v3; // x0
*a1 = off_1007F8100;
a1[40] = off_1007F8848;
a1[43] = off_1007F88C8;
v2 = (void *)a1[234];
if ( v2 )
{
a1[235] = v2;
operator delete(v2);
}
v3 = (void *)a1[230];
if ( v3 )
{
a1[231] = v3;
operator delete(v3);
}
return GameObject::dGameObject((__int64)a1);
}