//
// EffectGameObject::restoreObject from 0x14064a0c0 to 0x14064a0eb (43 bytes)
//
// 37 xrefs:
// > ??> @ 0x140820188
// > ??> @ 0x1408208e0
// > ??> @ 0x140820f98
// > ??> @ 0x140821db8
// > ??> @ 0x140822498
// > ??> @ 0x140822b50
// > ??> @ 0x140823460
// > ??> @ 0x140823ba8
// > ??> @ 0x140824a58
// > ??> @ 0x140825110
// > ??> @ 0x1408257c8
// > ??> @ 0x140826038
// > ??> @ 0x140826830
// > ??> @ 0x140826fd8
// > ??> @ 0x140827708
// > ??> @ 0x140827dc0
// > ??> @ 0x140828518
// > ??> @ 0x140828d60
// > ??> @ 0x140829b98
// > ??> @ 0x14082a318
// > ??> @ 0x14082a9d0
// > ??> @ 0x14082b088
// > ??> @ 0x14082ba98
// > ??> @ 0x14082c1c8
// > ??> @ 0x14082c880
// > ??> @ 0x14082cf38
// > ??> @ 0x14082d5f0
// > ??> @ 0x14082ddc0
// > ??> @ 0x14082e568
// > ??> @ 0x14082ec20
// > ??> @ 0x14082f2d8
// > ??> @ 0x14082f990
// > ??> @ 0x140830048
// > ??> @ 0x140830700
// > ??> @ 0x140830db8
// > ??> @ 0x1408315d8
// > ??> @ 0x140831d58
//
// 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:35:38 +0000
//
__int64 __fastcall EffectGameObject::restoreObject(__int64 a1, __int64 a2)
{
__int64 result; // rax
if ( *(_DWORD *)(a1 + 1036) != 2063 )
{
*(_BYTE *)(a1 + 978) = 0;
LOBYTE(a2) = -1;
*(_BYTE *)(a1 + 774) = 0;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 + 320) + 40LL))(a1 + 320, a2);
}
return result;
}