//
// HardStreak::clearAboveXPos from 0x95880c to 0x9588c0 (180 bytes)
//
// 2 xrefs:
// > PlayerObject::update @ 0x7695e0
// > ??> @ 0x97390
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:57:26 +0000
//
__int64 __fastcall HardStreak::clearAboveXPos(cocos2d::CCArray **this, float a2)
{
__int64 v4; // x0
float v6; // [xsp+30h] [xbp+30h] BYREF
if ( (unsigned int)cocos2d::CCArray::count(*(this + 52)) > 1 )
{
while ( (unsigned int)cocos2d::CCArray::count(*(this + 52)) > 1 )
{
v4 = cocos2d::CCArray::objectAtIndex(*(this + 52), 1u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v6, (const cocos2d::CCPoint *)(v4 + 56));
if ( v6 <= a2 )
break;
cocos2d::CCArray::removeObjectAtIndex(*(this + 52), 0, 1);
}
}
return _stack_chk_guard;
}