//
// sub_1004AE968 from 0x1004ae968 to 0x1004ae994 (44 bytes)
//
// 0 xrefs:
//
// 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_1004AE968(__int64 result)
{
__int64 v1; // x8
v1 = *(_QWORD *)(result + 24);
*(_BYTE *)(v1 + 8) = 1;
if ( !*(_BYTE *)(result + 312) )
{
*(_BYTE *)(result + 312) = 1;
*(_QWORD *)(result + 304) = *(_QWORD *)(v1 + 432);
*(_QWORD *)(v1 + 432) = result;
}
return result;
}