//
// PlayerObject::updateDashArt from 0x439ce0 to 0x439ffa (794 bytes)
//
// 4 xrefs:
// > PlayerObject::redirectDash @ 0x43a18c
// > PlayerObject::startDashing @ 0x43a39c
// > PlayerObject::rotateGameplay @ 0x43a8c6
// > PlayerObject::modeDidChange @ 0x43a926
//
// 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::updateDashArt(int this)
{
int v1; // r4
double v2; // d7
float v3; // s14
int v4; // r6
void (__fastcall *v5)(int, _BYTE *); // r7
void (*v6)(void); // r3
int v7; // r8
void (__fastcall *v8)(int, _BYTE *); // r7
int v9; // r7
void (__fastcall *v10)(int, _BYTE *); // r7
int v11; // r7
int v12; // r2
int v13; // r3
void (__fastcall *v14)(int, _BYTE *); // r8
int v15; // r8
int v16; // r2
int v17; // r3
void (__fastcall *v18)(int, _BYTE *); // r7
float v19; // r2
float v20; // s15
float v21; // s16
float v22; // s13
float v23; // s15
float Length; // r0
float v25; // s15
cocos2d::CCRepeatForever *v26; // r0
cocos2d::CCActionInterval *v27; // r1
cocos2d::CCAction *v28; // r5
float v29; // r2
cocos2d::CCRepeatForever *v30; // r0
cocos2d::CCActionInterval *v31; // r1
cocos2d::CCAction *v32; // r5
_BYTE v33[8]; // [sp+0h] [bp-1Ch] BYREF
int v34; // [sp+8h] [bp-14h] BYREF
int v35; // [sp+Ch] [bp-10h]
int v36; // [sp+10h] [bp-Ch]
v1 = this;
if ( !*(_BYTE *)(this + 1996) )
return this;
cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(this + 1492), 12);
cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(v1 + 1504), 12);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v1 + 1492) + 180))(*(_DWORD *)(v1 + 1492), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v1 + 1504) + 180))(*(_DWORD *)(v1 + 1504), 0);
v2 = 90.0;
if ( !*(_BYTE *)(v1 + 1963) )
v2 = 0.0;
v3 = v2 - *(double *)(v1 + 1208);
if ( *(_BYTE *)(v1 + 1962) )
v3 = v3 + 180.0;
(*(void (__fastcall **)(int, float))(*(_DWORD *)v1 + 180))(v1, COERCE_FLOAT(LODWORD(v3)));
cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(v1 + 1388));
v4 = *(_DWORD *)(v1 + 1388);
if ( *(_BYTE *)(v1 + 1953) )
{
v5 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.0, -2.0);
v5(v4, v33);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1388) + 64))(*(_DWORD *)(v1 + 1388), 1065353216);
v6 = *(void (**)(void))(**(_DWORD **)(v1 + 1388) + 72);
LABEL_16:
v6();
goto LABEL_17;
}
v7 = *(unsigned __int8 *)(v1 + 1954);
if ( *(_BYTE *)(v1 + 1954) )
{
v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.0, 0.0);
v8(v4, v33);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1388) + 64))(*(_DWORD *)(v1 + 1388), 1064514355);
v6 = *(void (**)(void))(**(_DWORD **)(v1 + 1388) + 72);
goto LABEL_16;
}
v9 = *(unsigned __int8 *)(v1 + 1957);
if ( *(_BYTE *)(v1 + 1957) )
{
v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 1.0, 0.0);
v10(v4, v33);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1388) + 64))(*(_DWORD *)(v1 + 1388), 1063675494);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1388) + 72))(*(_DWORD *)(v1 + 1388), 1062836634);
v11 = *(_DWORD *)(v1 + 1732);
v34 = v7;
v35 = v7;
v36 = v7;
std::string::__init(&v34, "fall_loop", 9u);
CCAnimatedSprite::runAnimation(v11, (int)&v34, v12, v13);
}
else
{
if ( !*(_BYTE *)(v1 + 1958) )
{
v18 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.0, 0.0);
v18(v4, v33);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1388) + 64))(*(_DWORD *)(v1 + 1388), 1063675494);
v6 = *(void (**)(void))(**(_DWORD **)(v1 + 1388) + 72);
goto LABEL_16;
}
v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 1.0, 0.0);
v14(v4, v33);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1388) + 64))(*(_DWORD *)(v1 + 1388), 1064514355);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1388) + 72))(*(_DWORD *)(v1 + 1388), 1061997773);
v15 = *(_DWORD *)(v1 + 1736);
v34 = v9;
v35 = v9;
v36 = v9;
std::string::__init(&v34, "fall_loop", 9u);
CCAnimatedSprite::runAnimation(v15, (int)&v34, v16, v17);
}
std::string::~string((int)&v34);
LABEL_17:
this = PlayerObject::isFlying((PlayerObject *)v1);
if ( !this && !*(_BYTE *)(v1 + 1957) && !*(_BYTE *)(v1 + 1958) )
{
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1492) + 80))(*(_DWORD *)(v1 + 1492), 1063675494);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1504) + 80))(*(_DWORD *)(v1 + 1504), 1063675494);
LODWORD(v19) = *(unsigned __int8 *)(v1 + 1963);
v20 = -1.0;
if ( LODWORD(v19) == *(unsigned __int8 *)(v1 + 1959) )
v20 = 1.0;
v21 = (float)(v20 * 288.0) * *(float *)(v1 + 2340);
if ( *(_BYTE *)(v1 + 2320) )
{
v22 = *(double *)(v1 + 1192);
v23 = *(double *)(v1 + 1200);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v22, v23);
Length = cocos2d::CCPoint::getLength((cocos2d::CCPoint *)v33);
if ( Length > 17.31 )
v25 = 2.0;
else
v25 = (float)((float)(Length / 17.31) * 1.7) + 0.3;
v21 = v21 * v25;
}
v26 = (cocos2d::CCRepeatForever *)cocos2d::CCRotateBy::create((cocos2d::CCRotateBy *)0x3E99999A, v21, v19);
v28 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v26, v27);
(*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v28 + 36))(v28, 12);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(v1 + 1492), v28);
v30 = (cocos2d::CCRepeatForever *)cocos2d::CCRotateBy::create((cocos2d::CCRotateBy *)0x3E99999A, v21, v29);
v32 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v30, v31);
(*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v32 + 36))(v32, 12);
return cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(v1 + 1504), v32);
}
return this;
}