//
// PlayerObject::boostPlayer from 0x756438 to 0x7565bc (388 bytes)
//
// 3 xrefs:
// > PlayerObject::postCollision @ 0x76205c
// > PlayerObject::postCollision @ 0x762214
// > ??> @ 0xe1070
//
// 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:52:57 +0000
//
__int64 __fastcall PlayerObject::boostPlayer(PlayerObject *this, float a2)
{
__int64 v3; // x2
float v4; // s8
int v5; // w0
__int64 v6; // x0
__int64 v8; // x22
__int64 v9[2]; // [xsp+40h] [xbp+40h] BYREF
void *v10; // [xsp+50h] [xbp+50h]
__int64 v11; // [xsp+58h] [xbp+58h]
*((_BYTE *)this + 2516) = 1;
*((_BYTE *)this + 2500) = 0;
v3 = _stack_chk_guard;
*((_BYTE *)this + 2425) = 0;
*((_BYTE *)this + 1971) = 1;
*((_BYTE *)this + 2314) = 1;
v11 = v3;
PlayerObject::setYVelocity((__int64)this, a2);
if ( *((_BYTE *)this + 2460) )
goto LABEL_9;
if ( (unsigned __int8)PlayerObject::isFlying(this) || *((_BYTE *)this + 2419) || *((_BYTE *)this + 2421) )
{
if ( !*((_BYTE *)this + 2422) )
goto LABEL_9;
}
else if ( !*((_BYTE *)this + 2422) )
{
PlayerObject::stopRotation(this);
if ( *((float *)this + 618) == 1.0 )
v4 = 0.86667;
else
v4 = 0.66667;
v5 = PlayerObject::flipMod(this);
*((_BYTE *)this + 1784) = 1;
*((float *)this + 444) = (float)(-180 * v5) / v4;
goto LABEL_9;
}
v8 = *((_QWORD *)this + 268);
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, "fall_loop", 9u);
CCAnimatedSprite::tweenToAnimation(v8, (__int64)v9, 0.1);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
LABEL_9:
v6 = (*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this);
cocos2d::CCPoint::operator=((char *)this + 2532, v6);
return _stack_chk_guard;
}