//
// PlayerObject::updateDashArt from 0x755130 to 0x75564c (1308 bytes)
//
// 5 xrefs:
// > PlayerObject::redirectDash @ 0x7557b4
// > PlayerObject::startDashing @ 0x755a80
// > PlayerObject::rotateGameplay @ 0x75611c
// > PlayerObject::modeDidChange @ 0x756220
// > ??> @ 0xc1900
//
// 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:56 +0000
//
__int64 __fastcall PlayerObject::updateDashArt(PlayerObject *this)
{
long double v3; // q0
__int64 v4; // x23
void (__fastcall *v5)(__int64, float *); // x24
__int64 v6; // x23
float v7; // s8
cocos2d::CCRotateBy *v8; // x0
float v9; // s8
cocos2d::CCRepeatForever *v10; // x0
cocos2d::CCActionInterval *v11; // x1
cocos2d::CCAction *v12; // x21
cocos2d::CCRotateBy *v13; // x0
cocos2d::CCRepeatForever *v14; // x0
cocos2d::CCActionInterval *v15; // x1
cocos2d::CCAction *v16; // x21
__int64 v17; // x22
void (__fastcall *v18)(__int64, float *); // x23
__int64 v19; // x22
void (__fastcall *v20)(__int64, float *); // x23
__int64 v21; // x22
void (__fastcall *v22)(__int64, float *); // x23
__int64 v23; // x23
void (__fastcall *v24)(__int64, float *); // x24
__int64 v25; // x23
float v26; // s0
float v27; // s1
float v28; // s0
float v29; // [xsp+58h] [xbp+58h] BYREF
float v30; // [xsp+5Ch] [xbp+5Ch]
__int64 v31; // [xsp+60h] [xbp+60h] BYREF
__int64 v32; // [xsp+68h] [xbp+68h]
void *v33; // [xsp+70h] [xbp+70h]
if ( !*((_BYTE *)this + 2460) )
return _stack_chk_guard;
cocos2d::CCNode::stopActionByTag(*((cocos2d::CCNode **)this + 225), 12);
cocos2d::CCNode::stopActionByTag(*((cocos2d::CCNode **)this + 228), 12);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 225) + 360LL))(*((_QWORD *)this + 225), 0.0);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 228) + 360LL))(*((_QWORD *)this + 228), 0.0);
if ( *((_BYTE *)this + 2427) )
{
*(double *)&v3 = 90.0 - *((double *)this + 175);
*(float *)&v3 = *(double *)&v3;
if ( !*((_BYTE *)this + 2426) )
{
LABEL_5:
(*(void (__fastcall **)(PlayerObject *, long double))(*(_QWORD *)this + 360LL))(this, v3);
cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)this + 204));
if ( !*((_BYTE *)this + 2417) )
goto LABEL_6;
LABEL_20:
v17 = *((_QWORD *)this + 204);
v18 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v17 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 0.0, -2.0);
v18(v17, &v29);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 128LL))(*((_QWORD *)this + 204), 1.0);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 144LL))(*((_QWORD *)this + 204), 0.85);
goto LABEL_12;
}
}
else
{
*(double *)&v3 = 0.0 - *((double *)this + 175);
*(float *)&v3 = *(double *)&v3;
if ( !*((_BYTE *)this + 2426) )
goto LABEL_5;
}
(*(void (__fastcall **)(PlayerObject *, float))(*(_QWORD *)this + 360LL))(this, *(float *)&v3 + 180.0);
cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)this + 204));
if ( *((_BYTE *)this + 2417) )
goto LABEL_20;
LABEL_6:
if ( *((_BYTE *)this + 2418) )
{
v19 = *((_QWORD *)this + 204);
v20 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v19 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 0.0, 0.0);
v20(v19, &v29);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 128LL))(*((_QWORD *)this + 204), 0.95);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 144LL))(*((_QWORD *)this + 204), 0.9);
}
else
{
if ( *((_BYTE *)this + 2421) )
{
v23 = *((_QWORD *)this + 204);
v24 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v23 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 1.0, 0.0);
v24(v23, &v29);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 128LL))(*((_QWORD *)this + 204), 0.9);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 144LL))(*((_QWORD *)this + 204), 0.85);
v25 = *((_QWORD *)this + 267);
v31 = 0;
v32 = 0;
v33 = nullptr;
std::string::__init(&v31, "fall_loop", 9u);
CCAnimatedSprite::runAnimation(v25, (char *)&v31);
LABEL_10:
if ( (v31 & 1) != 0 )
operator delete(v33);
goto LABEL_12;
}
if ( *((_BYTE *)this + 2422) )
{
v4 = *((_QWORD *)this + 204);
v5 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 1.0, 0.0);
v5(v4, &v29);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 128LL))(*((_QWORD *)this + 204), 0.95);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 144LL))(*((_QWORD *)this + 204), 0.8);
v6 = *((_QWORD *)this + 268);
v31 = 0;
v32 = 0;
v33 = nullptr;
std::string::__init(&v31, "fall_loop", 9u);
CCAnimatedSprite::runAnimation(v6, (char *)&v31);
goto LABEL_10;
}
v21 = *((_QWORD *)this + 204);
v22 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v21 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 0.0, 0.0);
v22(v21, &v29);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 128LL))(*((_QWORD *)this + 204), 0.9);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 144LL))(*((_QWORD *)this + 204), 0.8);
}
LABEL_12:
if ( !(unsigned __int8)PlayerObject::isFlying(this) && !*((_BYTE *)this + 2421) && !*((_BYTE *)this + 2422) )
{
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 225) + 160LL))(*((_QWORD *)this + 225), 0.9);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 228) + 160LL))(*((_QWORD *)this + 228), 0.9);
if ( *((unsigned __int8 *)this + 2427) == *((unsigned __int8 *)this + 2423) )
v7 = 288.0;
else
v7 = -288.0;
v8 = (cocos2d::CCRotateBy *)*((unsigned __int8 *)this + 2832);
v9 = v7 * *((float *)this + 713);
if ( *((_BYTE *)this + 2832) )
{
v26 = *((double *)this + 173);
v27 = *((double *)this + 174);
v8 = (cocos2d::CCRotateBy *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, v26, v27);
v28 = sqrtf((float)(v30 * v30) + (float)(v29 * v29));
if ( v28 > 17.31 )
v9 = v9 * 2.0;
else
v9 = v9 * (float)((float)((float)(v28 / 17.31) * 1.7) + 0.3);
}
v10 = (cocos2d::CCRepeatForever *)cocos2d::CCRotateBy::create(v8, 0.3, v9);
v12 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v10, v11);
(*(void (__fastcall **)(cocos2d::CCAction *, __int64))(*(_QWORD *)v12 + 72LL))(v12, 12);
v13 = (cocos2d::CCRotateBy *)cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 225), v12);
v14 = (cocos2d::CCRepeatForever *)cocos2d::CCRotateBy::create(v13, 0.3, v9);
v16 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v14, v15);
(*(void (__fastcall **)(cocos2d::CCAction *, __int64))(*(_QWORD *)v16 + 72LL))(v16, 12);
cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 228), v16);
}
return _stack_chk_guard;
}