//
// CheckpointObject::setObject from 0x5d2ce4 to 0x5d2d30 (76 bytes)
//
// 2 xrefs:
// > PlayLayer::createCheckpoint @ 0x5e3e7c
// > ??> @ 0x83ef8
//
// 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
//
void CheckpointObject::setObject(CheckpointObject *a1, GameObject *a2)
{
GameObject *m_physicalCheckpointObject; // x2
m_physicalCheckpointObject = a1->m_physicalCheckpointObject;
if ( m_physicalCheckpointObject != a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
m_physicalCheckpointObject = a1->m_physicalCheckpointObject;
}
if ( m_physicalCheckpointObject )
cocos2d::CCObject::release(m_physicalCheckpointObject);
a1->m_physicalCheckpointObject = a2;
}
}