//
// PlayLayer::checkpointWithID from 0x5cf678 to 0x5cf6d8 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x80880
//
// 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
//
CheckpointObject *PlayLayer::checkpointWithID(PlayLayer *a1, int a2)
{
unsigned int v4; // w19
CheckpointObject *result; // x0
bool v6; // cf
unsigned int v7; // w1
v4 = 0;
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_checkpointArray);
v7 = v4++;
if ( v6 )
break;
result = (CheckpointObject *)cocos2d::CCArray::objectAtIndex(a1->m_checkpointArray, v7);
if ( result->m_uniqueID == a2 )
return result;
}
return nullptr;
}