// // PlayerObject::updateDashAnimation from 0x1404f4f40 to 0x1404f5103 (451 bytes) // // 4 xrefs: // > PlayerObject::update @ 0x1404e80a4 // > @ 0x1408d4f7c // > @ 0x1408d4fb0 // > @ 0x14092a074 // // This function is hookable on this platform (idp: pc, 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 11:33:20 +0000 // __int64 __fastcall PlayerObject::updateDashAnimation(__int64 a1) { float v2; // xmm0_4 float v3; // xmm0_4 __int64 result; // rax int v5; // ebx __int64 v6; // rcx cocos2d::CCArray *v7; // rax struct cocos2d::CCObject *v8; // r14 cocos2d::CCString *v9; // rax const char *CString; // rbp cocos2d::CCString *v11; // rax __int64 v12; // rdx __int64 v13; // rcx const char *v14; // r15 __int64 *v15; // rdi __int64 v16; // rbx cocos2d::CCSpriteFrameCache *v17; // rax struct cocos2d::CCSpriteFrame *v18; // rax __int64 v19; // rbx __int64 v20; // rdx __int64 v21; // rcx cocos2d::CCSpriteFrameCache *v22; // rax struct cocos2d::CCSpriteFrame *v23; // rax const struct cocos2d::CCSize *v24; // rax __int64 v25; // rbx __int64 v26; // rax float v27; // [rsp+50h] [rbp+8h] BYREF float v28; // [rsp+54h] [rbp+Ch] char v29; // [rsp+58h] [rbp+10h] BYREF v2 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1640) + 360LL))(*(_QWORD *)(a1 + 1640)); v3 = floorf( *(double *)(a1 + 2728) / (float)((float)(1.0 - (float)((float)(fabs(v2) / 70.0) * 0.40000001)) * (float)(0.039999999 / *(float *)(a1 + 2556)))); result = (unsigned int)(12 * ((int)v3 / 12)); v5 = (int)v3 % 12 + 1; if ( v5 != *(_DWORD *)(a1 + 2544) ) { v6 = *(_QWORD *)(a1 + 1640); *(_DWORD *)(a1 + 2544) = v5; v7 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 480LL))(v6); v8 = cocos2d::CCArray::objectAtIndex(v7, 0); v9 = cocos2d::CCString::createWithFormat("playerDash2_%03d.png", v5); CString = cocos2d::CCString::getCString(v9); v11 = cocos2d::CCString::createWithFormat("playerDash2_outline_%03d.png", v5); result = (__int64)cocos2d::CCString::getCString(v11); v14 = (const char *)result; if ( CString ) { v15 = *(__int64 **)(a1 + 1640); v16 = *v15; v17 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v13, v12); v18 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, CString); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v16 + 1008))(v15, v18); v19 = *(_QWORD *)v8; v22 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v21, v20); v23 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v22, v14); (*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCSpriteFrame *))(v19 + 1008))(v8, v23); v24 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1640) + 320LL))(*(_QWORD *)(a1 + 1640)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v27, v24); v25 = *(_QWORD *)v8; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, v27 * 0.5, v28 * 0.5); return (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64))(v25 + 184))(v8, v26); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source