//
// sub_1005F66E0 from 0x1005f66e0 to 0x1005f67a5 (197 bytes)
//
// 1 xrefs:
// > serializeCheckpoint @ 0x1005f81e6
//
// 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 12:34:26 +0000
//
_QWORD *__fastcall sub_1005F66E0(_QWORD *a1, __int64 a2)
{
__int64 v3; // [rsp+8h] [rbp-248h] BYREF
_QWORD v4[2]; // [rsp+10h] [rbp-240h] BYREF
void *v5; // [rsp+20h] [rbp-230h]
_BYTE v6[504]; // [rsp+28h] [rbp-228h] BYREF
__int16 v7; // [rsp+220h] [rbp-30h]
char v8; // [rsp+222h] [rbp-2Eh]
void *__p; // [rsp+230h] [rbp-20h]
v3 = a2;
v4[0] = 0;
v4[1] = 500;
v5 = v6;
v7 = 11266;
v8 = 0;
sub_1005BEBB0((__int64)v4, &v3);
sub_1005BED90(a1, (__int64)v4);
if ( (v7 & 1) != 0 )
operator delete(__p);
if ( v5 != v6 && v5 != nullptr )
operator delete[](v5);
return a1;
}