//
// PlayerObject::updateDashAnimation from 0x140396d20 to 0x140396edc (444 bytes)
//
// 5 xrefs:
// > PlayerObject::update @ 0x140389e52
// > ??> @ 0x140697d28
// > ??> @ 0x140697d38
// > ??> @ 0x1406d63a4
// > ??> @ 0x1406d63b0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void PlayerObject::updateDashAnimation(PlayerObject *a1)
{
float v2; // xmm0_4
int v3; // ebx
cocos2d::CCSprite *m_dashFireSprite; // rcx
cocos2d::CCArray *v5; // rax
struct cocos2d::CCObject *v6; // r14
cocos2d::CCString *v7; // rax
const char *CString; // rsi
cocos2d::CCString *v9; // rax
const char *v10; // rbp
cocos2d::CCSprite *v11; // rcx
cocos2d::CCSprite_vtbl *v12; // rbx
cocos2d::CCSpriteFrameCache *v13; // rax
struct cocos2d::CCSpriteFrame *v14; // rax
cocos2d::CCObject_vtbl *v15; // rbx
__int64 v16; // rcx
cocos2d::CCSpriteFrameCache *v17; // rax
struct cocos2d::CCSpriteFrame *v18; // rax
const struct cocos2d::CCSize *v19; // rax
double v20; // xmm0_8
cocos2d::CCObject_vtbl *v21; // rbx
DS_Dictionary *v22; // rax
cocos2d::CCSize v23; // [rsp+40h] [rbp+8h] BYREF
v2 = a1->m_dashFireSprite->getRotation(a1->m_dashFireSprite);
v3 = (int)floorf(
a1->m_totalTime
/ (float)((float)(1.0 - (float)((float)(fabs(v2) / 70.0) * 0.40000001))
* (float)(0.039999999 / a1->m_playerSpeed)))
% 12
+ 1;
if ( v3 != a1->m_dashFireFrame )
{
m_dashFireSprite = a1->m_dashFireSprite;
a1->m_dashFireFrame = v3;
v5 = m_dashFireSprite->getChildren(m_dashFireSprite);
v6 = cocos2d::CCArray::objectAtIndex(v5, 0);
v7 = cocos2d::CCString::createWithFormat("playerDash2_%03d.png", v3);
CString = cocos2d::CCString::getCString(v7);
v9 = cocos2d::CCString::createWithFormat("playerDash2_outline_%03d.png", v3);
v10 = cocos2d::CCString::getCString(v9);
if ( CString )
{
v11 = a1->m_dashFireSprite;
v12 = v11->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v13 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v11);
v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, CString);
v12->setDisplayFrame(a1->m_dashFireSprite, v14);
v15 = v6->__vftable;
v17 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v16);
v18 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, v10);
((void (__fastcall *)(struct cocos2d::CCObject *, struct cocos2d::CCSpriteFrame *))v15[13].getTag)(v6, v18);
v19 = a1->m_dashFireSprite->getContentSize(a1->m_dashFireSprite);
v20 = cocos2d::CCSize::CCSize(&v23, v19);
v21 = v6->__vftable;
cocos2d::CCPoint::CCPoint(*(float *)&v20, v23.width * 0.5);
v21[2].encodeWithCoder(v6, v22);
}
}
}