//
// PlayerObject::stopDashing from 0x43b7d8 to 0x43bc38 (1120 bytes)
//
// 8 xrefs:
// > PlayerObject::playerDestroyed @ 0x43bc4c
// > PlayerObject::collidedWithObjectInternal @ 0x43d1f2
// > PlayerObject::collidedWithObjectInternal @ 0x43d200
// > PlayerObject::resetObject @ 0x44033c
// > PlayerObject::touchedObject @ 0x446940
// > PlayerObject::releaseButton @ 0x446bbc
// > PlayerObject::update @ 0x4494e8
// > PlayerObject::playCompleteEffect @ 0x69e412
//
// 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:22 +0000
//
char *__fastcall PlayerObject::stopDashing(char *this)
{
int v1; // r4
int v2; // r3
double v3; // d7
float v4; // s13
int v5; // r0
const char *v6; // r1
float v7; // r9
GameManager *v8; // r5
int v9; // r0
const char *v10; // r1
cocos2d::CCNode *v11; // r10
void (__fastcall *v12)(cocos2d::CCNode *, float *); // r11
void (__fastcall *v13)(GameManager *, float *); // r11
int v14; // r0
float v15; // r0
float v16; // r0
void (__fastcall *v17)(GameManager *, int); // r11
int v18; // r0
float v19; // s14
float v20; // s17
float v21; // r0
float v22; // r3
cocos2d::CCSequence *v23; // r11
cocos2d::CCFiniteTimeAction *v24; // r0
cocos2d::CCAction *v25; // r0
const cocos2d::CCPoint *v26; // r2
cocos2d::CCAction *v27; // r0
unsigned __int8 v28; // r2
cocos2d::CCAction *v29; // r0
unsigned __int8 v30; // r2
cocos2d::CCAction *v31; // r0
int v32; // r5
float v33; // s13
float v34; // s15
float Length; // s15
float v36; // s15
int v37; // r6
int v38; // r2
int v39; // r3
int v40; // [sp+4h] [bp-38h]
void (__fastcall *v41)(GameManager *, _DWORD); // [sp+4h] [bp-38h]
void (__fastcall *v42)(GameManager *, _DWORD); // [sp+4h] [bp-38h]
float v43[2]; // [sp+10h] [bp-2Ch] BYREF
_BYTE v44[8]; // [sp+18h] [bp-24h] BYREF
float v45[2]; // [sp+20h] [bp-1Ch] BYREF
int v46[3]; // [sp+28h] [bp-14h] BYREF
v1 = (int)this;
if ( *(this + 1996) )
{
*(this + 1996) = 0;
*((_QWORD *)this + 255) = 0;
if ( *(this + 2320) )
{
v2 = *((_DWORD *)this + 306);
if ( v2 )
{
v3 = *(float *)(v2 + 1656);
v4 = v3 * *((double *)this + 149);
*((float *)&v3 + 1) = v3 * *((double *)this + 150);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v4, *((float *)&v3 + 1));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, (const cocos2d::CCPoint *)v44);
PlayerObject::updatePlayerForce((_BYTE *)v1, v45, 0);
if ( *(_BYTE *)(*(_DWORD *)(v1 + 1224) + 1665) )
PlayerObject::handlePlayerCommand(v1, 543);
}
}
v5 = *(_DWORD *)(v1 + 1388);
*(_DWORD *)(v1 + 1224) = 0;
(*(void (__fastcall **)(int))(*(_DWORD *)v5 + 172))(v5);
if ( *(_BYTE *)(v1 + 1604) )
{
LODWORD(v7) = *(unsigned __int8 *)(v1 + 1601);
if ( !*(_BYTE *)(v1 + 1601) )
{
v8 = (GameManager *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"playerDash2_001.png", v6);
v9 = GameManager::sharedState(v8);
(*(void (__fastcall **)(_DWORD, GameManager *, int))(**(_DWORD **)(*(_DWORD *)(v9 + 404) + 2436) + 232))(
*(_DWORD *)(*(_DWORD *)(v9 + 404) + 2436),
v8,
40);
(*(void (__fastcall **)(GameManager *, int, int))(*(_DWORD *)v8 + 540))(v8, 770, 1);
v11 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"playerDash2_outline_001.png",
v10);
(*(void (__fastcall **)(GameManager *, cocos2d::CCNode *, int))(*(_DWORD *)v8 + 232))(v8, v11, 1);
(*(void (__fastcall **)(float *, GameManager *))(*(_DWORD *)v8 + 168))(v43, v8);
v12 = *(void (__fastcall **)(cocos2d::CCNode *, float *))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v43[0] * 0.5, v43[1] * 0.5);
v12(v11, v45);
(*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v11 + 456))(v11, 150);
v13 = *(void (__fastcall **)(GameManager *, float *))(*(_DWORD *)v8 + 92);
v40 = (*(int (__fastcall **)(int))(*(_DWORD *)v1 + 96))(v1);
v14 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 1388) + 96))(*(_DWORD *)(v1 + 1388));
cocos2d::CCPoint::operator+(v45, v40, v14);
v13(v8, v45);
v41 = *(void (__fastcall **)(GameManager *, _DWORD))(*(_DWORD *)v8 + 64);
v15 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 1388) + 68))(*(_DWORD *)(v1 + 1388)));
v41(v8, v15 * *(float *)(v1 + 2008));
v42 = *(void (__fastcall **)(GameManager *, _DWORD))(*(_DWORD *)v8 + 72);
v16 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 1388) + 76))(*(_DWORD *)(v1 + 1388)));
v42(v8, v16 * *(float *)(v1 + 2008));
v17 = *(void (__fastcall **)(GameManager *, int))(*(_DWORD *)v8 + 480);
v18 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 1388) + 472))(*(_DWORD *)(v1 + 1388));
v17(v8, v18);
v19 = *(double *)(v1 + 1208);
(*(void (__fastcall **)(GameManager *, _DWORD))(*(_DWORD *)v8 + 180))(v8, -v19);
v20 = COERCE_FLOAT((*(int (__fastcall **)(GameManager *))(*(_DWORD *)v8 + 68))(v8));
v21 = (*(float (__fastcall **)(GameManager *))(*(_DWORD *)v8 + 76))(v8);
v23 = (cocos2d::CCSequence *)cocos2d::CCScaleTo::create(
(cocos2d::CCScaleTo *)0x3E4CCCCD,
v20 * 0.2,
v21 * 0.2,
v22);
LODWORD(v45[0]) = 268;
LODWORD(v45[1]) = 1;
v24 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v8, 268, 1);
v25 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v23, v24, v7);
cocos2d::CCNode::runAction(v8, v25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, -20.0, 0.0);
v27 = (cocos2d::CCAction *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)0x3E4CCCCD, COERCE_FLOAT(v44), v26);
cocos2d::CCNode::runAction(v8, v27);
v29 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3E4CCCCD, v7, v28);
cocos2d::CCNode::runAction(v8, v29);
v31 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3E4CCCCD, v7, v30);
cocos2d::CCNode::runAction(v11, v31);
}
}
cocos2d::CCParticleSystem::stopSystem(*(cocos2d::CCParticleSystem **)(v1 + 1768));
this = (char *)PlayerObject::isFlying((PlayerObject *)v1);
if ( !this && !*(_BYTE *)(v1 + 1957) && !*(_BYTE *)(v1 + 1958) )
{
v32 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 1492) + 184))(*(_DWORD *)(v1 + 1492));
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1492) + 80))(*(_DWORD *)(v1 + 1492), 1065353216);
cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(v1 + 1492));
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v1 + 1492) + 180))(*(_DWORD *)(v1 + 1492), 0);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1504) + 80))(*(_DWORD *)(v1 + 1504), 1065353216);
cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(v1 + 1504));
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v1 + 1504) + 180))(*(_DWORD *)(v1 + 1504), 0);
this = (char *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v1 + 180))(v1, v32);
if ( *(_BYTE *)(v1 + 2320) )
{
v33 = *(double *)(v1 + 1192);
v34 = *(double *)(v1 + 1200);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v33, v34);
Length = cocos2d::CCPoint::getLength((cocos2d::CCPoint *)v44);
if ( Length > 17.31 )
v36 = 2.0;
else
v36 = (float)((float)(Length / 17.31) * 1.5) + 0.5;
this = (char *)PlayerObject::runNormalRotation((PlayerObject *)v1, 1, v36);
}
}
if ( *(_BYTE *)(v1 + 1955) && *(_BYTE *)(v1 + 2320) )
this = PlayerObject::stopRotation((PlayerObject *)v1, 0, 5);
if ( *(_BYTE *)(v1 + 1955) )
this = (char *)PlayerObject::runBallRotation(v1, 1.0);
if ( *(_BYTE *)(v1 + 2036) )
{
if ( *(_BYTE *)(v1 + 1957) )
{
v37 = *(_DWORD *)(v1 + 1732);
std::string::basic_string(v46, v1 + 2400);
CCAnimatedSprite::runAnimation(v37, (int)v46, v38, v39);
this = (char *)std::string::~string((int)v46);
}
else if ( *(_BYTE *)(v1 + 1958) )
{
this = (char *)PlayerObject::playDynamicSpiderRun(v1);
}
}
if ( *(_DWORD *)(v1 + 2440) )
return (char *)PlayerObject::gameEventTriggered((PlayerObject *)v1, 24, 0);
}
return this;
}