//
// PlayerObject::propellPlayer from 0x43a998 to 0x43aae8 (336 bytes)
//
// 2 xrefs:
// > PlayerObject::bumpPlayer @ 0x4466d4
// > GJBaseGameLayer::gravBumpPlayer @ 0x5a4bd6
//
// 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:48:21 +0000
//
int __fastcall PlayerObject::propellPlayer(PlayerObject *this, float a2, int a3, int a4)
{
int v8; // r2
float v9; // s17
int v10; // s15
double v11; // r0
int v12; // r5
int v13; // r7
int v14; // r2
int v15; // r3
int v16; // r7
int v17; // r2
int v18; // r3
int v19; // r0
int v21; // [sp+8h] [bp-14h] BYREF
int v22; // [sp+Ch] [bp-10h]
int v23; // [sp+10h] [bp-Ch]
int v24; // [sp+14h] [bp-8h]
v8 = _stack_chk_guard;
*((_BYTE *)this + 2052) = 1;
*((_BYTE *)this + 1603) = 1;
v24 = v8;
*((_BYTE *)this + 2036) = 0;
*((_BYTE *)this + 1961) = 0;
*((_BYTE *)this + 1944) = 0;
*((_BYTE *)this + 1945) = 0;
v9 = 0.8;
if ( *((float *)this + 502) == 1.0 )
v9 = 1.0;
v10 = PlayerObject::flipMod(this);
LODWORD(v11) = this;
PlayerObject::setYVelocity(v11, (float)((float)((float)(a2 * 16.0) * (float)v10) * v9), 44);
if ( *((_BYTE *)this + 1955) || *((_BYTE *)this + 1958) || *((_BYTE *)this + 1964) )
*((double *)this + 241) = *((double *)this + 241) * 0.600000024;
PlayerObject::runRotateAction(this, 0, 7);
if ( !a3 )
PlayerObject::playBumpEffect((cocos2d::CCNode **)this, a4, nullptr);
v12 = *((unsigned __int8 *)this + 1957);
if ( *((_BYTE *)this + 1957) )
{
v13 = *((_DWORD *)this + 433);
v21 = 0;
v22 = 0;
v23 = 0;
std::string::__init(&v21, "jump_start", 0xAu);
CCAnimatedSprite::runAnimation(v13, (int)&v21, v14, v15);
LABEL_13:
std::string::~string((int)&v21);
goto LABEL_14;
}
if ( *((_BYTE *)this + 1958) )
{
v16 = *((_DWORD *)this + 434);
v21 = *((unsigned __int8 *)this + 1957);
v22 = v12;
v23 = v12;
std::string::__init(&v21, "fall_loop", 9u);
CCAnimatedSprite::runAnimation(v16, (int)&v21, v17, v18);
goto LABEL_13;
}
LABEL_14:
PlayerObject::activateStreak((cocos2d::CCNode **)this);
v19 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this);
return cocos2d::CCPoint::operator=((char *)this + 2068, v19);
}