//
// PlayLayer::checkpointWithID from 0x401df2 to 0x401e20 (46 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:24 +0000
//
int __fastcall PlayLayer::checkpointWithID(PlayLayer *this, int a2)
{
cocos2d::CCArray **v2; // r5
unsigned int i; // r4
int result; // r0
v2 = (cocos2d::CCArray **)((char *)this + 11848);
for ( i = 0; i < cocos2d::CCArray::count(*v2); ++i )
{
result = cocos2d::CCArray::objectAtIndex(*v2, i);
if ( *(_DWORD *)(result + 2304) == a2 )
return result;
}
return 0;
}