//
// PlayerCheckpoint::dPlayerCheckpoint from 0x1005d7100 to 0x1005d71e0 (224 bytes)
//
// 2 xrefs:
// > sub_1005D71F0 @ 0x1005d71f5
// > sub_1005D7200 @ 0x1005d7209
//
// 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:32:58 +0000
//
__int64 __fastcall PlayerCheckpoint::dPlayerCheckpoint(__int64 a1)
{
_DWORD *v2; // rdi
_QWORD *v3; // rdi
_QWORD *v4; // r14
void *v5; // rdi
_QWORD *v6; // rdi
_QWORD *v7; // r14
void *v8; // rdi
void *v9; // rdi
*(_QWORD *)a1 = off_100B7E7F0;
v2 = *(_DWORD **)(a1 + 1064);
if ( v2 )
cocos2d::CCObject::release(v2);
sub_10001ADF0(a1 + 1312, *(_QWORD **)(a1 + 1320));
v3 = *(_QWORD **)(a1 + 1088);
if ( v3 )
{
do
{
v4 = (_QWORD *)*v3;
operator delete(v3);
v3 = v4;
}
while ( v4 );
}
v5 = *(void **)(a1 + 1072);
*(_QWORD *)(a1 + 1072) = 0;
if ( v5 )
operator delete(v5);
v6 = *(_QWORD **)(a1 + 832);
if ( v6 )
{
do
{
v7 = (_QWORD *)*v6;
operator delete(v6);
v6 = v7;
}
while ( v7 );
}
v8 = *(void **)(a1 + 816);
*(_QWORD *)(a1 + 816) = 0;
if ( v8 )
operator delete(v8);
v9 = *(void **)(a1 + 488);
if ( v9 )
{
*(_QWORD *)(a1 + 496) = v9;
operator delete(v9);
}
return cocos2d::CCNode::dCCNode(a1);
}