//
// PlayLayer::checkpointWithID from 0x1000bd890 to 0x1000bd8fd (109 bytes)
//
// 0 xrefs:
//
// 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 *__fastcall PlayLayer::checkpointWithID(PlayLayer *a1, int a2)
{
CheckpointObject *v2; // rbx
unsigned int v3; // r12d
CheckpointObject *v4; // rax
v2 = nullptr;
if ( (unsigned int)sub_100720070(a1->m_checkpointArray) )
{
v3 = 0;
while ( 1 )
{
v4 = (CheckpointObject *)sub_1007200C0(a1->m_checkpointArray, v3);
if ( v4->m_uniqueID == a2 )
break;
if ( ++v3 >= (unsigned int)sub_100720070(a1->m_checkpointArray) )
return v2;
}
return v4;
}
return v2;
}