//
// sub_10012778C from 0x10012778c to 0x1001277c4 (56 bytes)
//
// 2 xrefs:
// > sub_10012761C @ 0x100127710
// > sub_10012761C @ 0x100127718
//
// 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_10012778C(__int64 a1)
{
void *v2; // x0
sub_100124E88(a1, *(_QWORD **)(a1 + 16));
v2 = *(void **)a1;
*(_QWORD *)a1 = 0;
if ( v2 )
operator delete(v2);
return a1;
}