//
// sub_CD975C from 0xcd975c to 0xcd97d4 (120 bytes)
//
// 2 xrefs:
// > sub_CD97D4 @ 0xcd97e4
// > ??> @ 0x111dfe0
//
// 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_CD975C(_QWORD *a1)
{
void *v2; // x20
__int64 v3; // x0
v2 = (void *)a1[4];
*a1 = off_111DFE0;
if ( v2 != (void *)sub_CEA320() && v2 )
operator delete[](v2);
v3 = a1[2];
if ( v3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 8LL))(v3);
sub_D1F8A4(a1 + 3);
return nullsub_23(a1);
}