//
// PlayerObject::stopDashing from 0x758ab8 to 0x759090 (1496 bytes)
//
// 9 xrefs:
// > PlayerObject::playerDestroyed @ 0x7590b8
// > PlayerObject::collidedWithObjectInternal @ 0x75bc18
// > PlayerObject::collidedWithObjectInternal @ 0x75c2c8
// > PlayerObject::resetObject @ 0x75deac
// > PlayerObject::touchedObject @ 0x7663e4
// > PlayerObject::releaseButton @ 0x766810
// > PlayerObject::update @ 0x7691a8
// > PlayerObject::playCompleteEffect @ 0xb536c4
// > ??> @ 0xcb4a0
//
// 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:59 +0000
//
__int64 __fastcall PlayerObject::stopDashing(PlayerObject *this)
{
int v2; // w0
__int64 v3; // x0
double v4; // d1
float v5; // s0
__int64 v6; // x2
const char *v7; // x1
float v8; // s8
float v9; // s0
float v10; // s1
float v11; // s0
float v12; // s0
char v13; // w0
__int64 v14; // x22
__int64 v15; // x0
__int64 v16; // x1
GameManager *v18; // x21
__int64 v19; // x0
const char *v20; // x1
cocos2d::CCNode *v21; // x23
void (__fastcall *v22)(cocos2d::CCNode *, __int64 *); // x25
void (__fastcall *v23)(GameManager *, __int64 *); // x25
__int64 v24; // x26
void (__fastcall *v25)(GameManager *, float); // x25
float v26; // s0
void (__fastcall *v27)(GameManager *, float); // x25
float v28; // s0
void (__fastcall *v29)(GameManager *, __int64); // x25
__int64 v30; // x0
float v31; // s0
float v32; // s9
cocos2d::CCScaleTo *v33; // x0
float v34; // s0
cocos2d::CCSequence *v35; // x25
cocos2d::CCFiniteTimeAction *v36; // x0
cocos2d::CCAction *v37; // x0
const cocos2d::CCPoint *v38; // x1
cocos2d::CCAction *v39; // x0
unsigned __int8 v40; // w1
cocos2d::CCAction *v41; // x0
unsigned __int8 v42; // w1
cocos2d::CCAction *v43; // x0
__int64 v44; // [xsp+70h] [xbp+70h] BYREF
__int64 v45; // [xsp+78h] [xbp+78h] BYREF
__int64 v46; // [xsp+80h] [xbp+80h] BYREF
__int64 v47; // [xsp+88h] [xbp+88h]
void *v48; // [xsp+90h] [xbp+90h]
if ( *((_BYTE *)this + 2460) )
{
v2 = *((unsigned __int8 *)this + 2832);
*((_BYTE *)this + 2460) = 0;
*((_QWORD *)this + 313) = 0;
if ( v2 )
{
v3 = *((_QWORD *)this + 177);
if ( v3 )
{
v4 = *(float *)(v3 + 1848);
v5 = v4 * *((double *)this + 173);
*(float *)&v4 = v4 * *((double *)this + 174);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, v5, *(float *)&v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, (const cocos2d::CCPoint *)&v44);
PlayerObject::updatePlayerForce((__int64)this, (float *)&v45, 0);
if ( *(_BYTE *)(*((_QWORD *)this + 177) + 1857LL) )
PlayerObject::handlePlayerCommand((__int64)this, 543);
}
}
v6 = *((_QWORD *)this + 204);
*((_QWORD *)this + 177) = 0;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);
if ( *((_BYTE *)this + 1972) && !*((_BYTE *)this + 1969) )
{
v18 = (GameManager *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"playerDash2_001.png", v7);
v19 = GameManager::sharedState(v18);
(*(void (__fastcall **)(_QWORD, GameManager *, __int64))(**(_QWORD **)(*(_QWORD *)(v19 + 544) + 3920LL) + 464LL))(
*(_QWORD *)(*(_QWORD *)(v19 + 544) + 3920LL),
v18,
40);
(*(void (__fastcall **)(GameManager *, __int64))(*(_QWORD *)v18 + 1080LL))(v18, 0x100000302LL);
v21 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"playerDash2_outline_001.png",
v20);
(*(void (__fastcall **)(GameManager *, cocos2d::CCNode *, __int64))(*(_QWORD *)v18 + 464LL))(v18, v21, 1);
(*(void (__fastcall **)(__int64 *__return_ptr, GameManager *))(*(_QWORD *)v18 + 336LL))(&v44, v18);
v22 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v21 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, *(float *)&v44 * 0.5, *((float *)&v44 + 1) * 0.5);
v22(v21, &v45);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v21 + 912LL))(v21, 4294967190LL);
v23 = *(void (__fastcall **)(GameManager *, __int64 *))(*(_QWORD *)v18 + 184LL);
v24 = (*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 204) + 192LL))(*((_QWORD *)this + 204));
cocos2d::CCPoint::operator+(&v45, v24);
v23(v18, &v45);
v25 = *(void (__fastcall **)(GameManager *, float))(*(_QWORD *)v18 + 128LL);
v26 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 204) + 136LL))(*((_QWORD *)this + 204));
v25(v18, v26 * *((float *)this + 618));
v27 = *(void (__fastcall **)(GameManager *, float))(*(_QWORD *)v18 + 144LL);
v28 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 204) + 152LL))(*((_QWORD *)this + 204));
v27(v18, v28 * *((float *)this + 618));
v29 = *(void (__fastcall **)(GameManager *, __int64))(*(_QWORD *)v18 + 960LL);
v30 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 204) + 944LL))(*((_QWORD *)this + 204));
v29(v18, v30);
v31 = *((double *)this + 175);
(*(void (__fastcall **)(GameManager *, float))(*(_QWORD *)v18 + 360LL))(v18, -v31);
v32 = (*(float (__fastcall **)(GameManager *))(*(_QWORD *)v18 + 136LL))(v18);
v33 = (cocos2d::CCScaleTo *)(*(__int64 (__fastcall **)(GameManager *))(*(_QWORD *)v18 + 152LL))(v18);
v35 = (cocos2d::CCSequence *)cocos2d::CCScaleTo::create(v33, 0.2, v32 * 0.2, v34 * 0.2);
v36 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v18, 536, 1);
v37 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v35, v36, 0);
cocos2d::CCNode::runAction(v18, v37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, -20.0, 0.0);
v39 = (cocos2d::CCAction *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)&v45, 0.2, v38);
cocos2d::CCNode::runAction(v18, v39);
v41 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create(nullptr, 0.2, v40);
cocos2d::CCNode::runAction(v18, v41);
v43 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create(nullptr, 0.2, v42);
cocos2d::CCNode::runAction(v21, v43);
}
cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 276));
if ( !(unsigned __int8)PlayerObject::isFlying(this) && !*((_BYTE *)this + 2421) && !*((_BYTE *)this + 2422) )
{
v8 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 225) + 368LL))(*((_QWORD *)this + 225));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 225) + 160LL))(*((_QWORD *)this + 225), 1.0);
cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)this + 225));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 225) + 360LL))(*((_QWORD *)this + 225), 0.0);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 228) + 160LL))(*((_QWORD *)this + 228), 1.0);
cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)this + 228));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 228) + 360LL))(*((_QWORD *)this + 228), 0.0);
(*(void (__fastcall **)(PlayerObject *, float))(*(_QWORD *)this + 360LL))(this, v8);
if ( *((_BYTE *)this + 2832) )
{
v9 = *((double *)this + 173);
v10 = *((double *)this + 174);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, v9, v10);
v11 = sqrtf((float)(*((float *)&v45 + 1) * *((float *)&v45 + 1)) + (float)(*(float *)&v45 * *(float *)&v45));
if ( v11 > 17.31 )
v12 = 2.0;
else
v12 = (float)((float)(v11 / 17.31) * 1.5) + 0.5;
PlayerObject::runNormalRotation(this, 1, v12);
}
}
if ( *((_BYTE *)this + 2419) )
{
if ( !*((_BYTE *)this + 2832) || (PlayerObject::stopRotation(this), *((_BYTE *)this + 2419)) )
PlayerObject::runBallRotation((__int64)this, 1.0);
}
if ( *((_BYTE *)this + 2500) )
{
if ( *((_BYTE *)this + 2421) )
{
v13 = *((_BYTE *)this + 2944);
v46 = 0;
v47 = 0;
v48 = nullptr;
v14 = *((_QWORD *)this + 267);
if ( (v13 & 1) != 0 )
{
std::string::__init(&v46, *((void **)this + 370), *((_QWORD *)this + 369));
}
else
{
v15 = *((_QWORD *)this + 368);
v16 = *((_QWORD *)this + 369);
v48 = *((void **)this + 370);
v46 = v15;
v47 = v16;
}
CCAnimatedSprite::runAnimation(v14, (char *)&v46);
if ( (v46 & 1) != 0 )
operator delete(v48);
}
else if ( *((_BYTE *)this + 2422) )
{
PlayerObject::playDynamicSpiderRun(this);
}
}
if ( *((_QWORD *)this + 377) )
PlayerObject::gameEventTriggered((__int64)this, 24, 0);
}
return _stack_chk_guard;
}