//
// HardStreak::clearAboveXPos from 0x456328 to 0x45639e (118 bytes)
//
// 1 xrefs:
// > PlayerObject::update @ 0x34f5f8
//
// 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 HardStreak::clearAboveXPos(HardStreak *a1, float a2)
{
int v4; // r0
cocos2d::CCPoint v5; // [sp+4h] [bp-Ch] BYREF
if ( cocos2d::CCArray::count(a1->m_pointArray) > 1u )
{
while ( cocos2d::CCArray::count(a1->m_pointArray) > 1u )
{
v4 = cocos2d::CCArray::objectAtIndex(a1->m_pointArray, 1u);
cocos2d::CCPoint::CCPoint(&v5, (const cocos2d::CCPoint *)(v4 + 52));
if ( v5.x <= a2 )
break;
cocos2d::CCArray::removeObjectAtIndex(a1->m_pointArray, 0, 1);
}
}
}