//
// HardStreak::clearBehindXPos from 0x100065110 to 0x1000651a5 (149 bytes)
//
// 1 xrefs:
// > PlayerObject::update @ 0x1003eae03
//
// This function is hookable on this platform (idp: pc, 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:19:42 +0000
//
__int64 __fastcall HardStreak::clearBehindXPos(__int64 a1, float a2)
{
__int64 result; // rax
__int64 v3; // rax
float v4[2]; // [rsp+4h] [rbp-1Ch] BYREF
float v5; // [rsp+Ch] [rbp-14h]
v5 = a2;
result = sub_1007FEF90(*(_QWORD *)(a1 + 416));
if ( (unsigned int)result >= 2 )
{
result = sub_1007FEF90(*(_QWORD *)(a1 + 416));
if ( (unsigned int)result >= 2 )
{
do
{
v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 416), 1);
result = sub_1002782D0(v4, v3 + 56);
if ( v5 <= v4[0] )
break;
sub_1007FF150(*(_QWORD *)(a1 + 416), 0, 1);
result = sub_1007FEF90(*(_QWORD *)(a1 + 416));
}
while ( (unsigned int)result > 1 );
}
}
return result;
}