//
// HardStreak::clearBehindXPos from 0x569fa4 to 0x56a01a (118 bytes)
//
// 1 xrefs:
// > PlayerObject::update @ 0x44906e
//
// 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:52:30 +0000
//
unsigned int __fastcall HardStreak::clearBehindXPos(cocos2d::CCArray **this, float a2)
{
unsigned int result; // r0
int v5; // r0
float v6[2]; // [sp+4h] [bp-Ch] BYREF
result = cocos2d::CCArray::count(*(this + 86));
if ( result > 1 )
{
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 86));
if ( result <= 1 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(this + 86), 1u);
result = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, (const cocos2d::CCPoint *)(v5 + 52));
if ( v6[0] >= a2 )
break;
cocos2d::CCArray::removeObjectAtIndex(*(this + 86), 0, 1);
}
}
return result;
}