//
// EnhancedGameObject::restoreObject from 0x1402a1980 to 0x1402a19b5 (53 bytes)
//
// 5 xrefs:
// > ??> @ 0x14075ee08
// > ??> @ 0x14081f210
// > ??> @ 0x140821700
// > ??> @ 0x140829418
// > ??> @ 0x14091d9c0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:29:15 +0000
//
__int64 __fastcall EnhancedGameObject::restoreObject(__int64 a1, __int64 a2)
{
__int64 result; // rax
*(_BYTE *)(a1 + 978) = 0;
*(_BYTE *)(a1 + 774) = 0;
LOBYTE(a2) = -1;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 + 320) + 40LL))(a1 + 320, a2);
*(_WORD *)(a1 + 1460) = 0;
return result;
}