// // PlayerObject::updateDashAnimation from 0x43596c to 0x435abc (336 bytes) // // 1 xrefs: // > PlayerObject::update @ 0x4492c4 // // 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:18 +0000 // int __fastcall PlayerObject::updateDashAnimation(PlayerObject *this) { float v2; // s15 int v3; // r0 int result; // r0 int v5; // r1 const char *v6; // r6 int v7; // r0 cocos2d::CCArray *v8; // r0 int v9; // r5 cocos2d::CCString *v10; // r0 const char *CString; // r8 cocos2d::CCString *v12; // r0 const char *v13; // r9 int v14; // r6 int (__fastcall *v15)(int, int); // r10 cocos2d::CCSpriteFrameCache *v16; // r0 int v17; // r0 cocos2d::CCSpriteFrameCache *v18; // r0 void (__fastcall *v19)(int, int); // r6 cocos2d::CCSpriteFrameCache *v20; // r0 int v21; // r0 const cocos2d::CCSize *v22; // r0 int (__fastcall *v23)(int, _BYTE *); // r6 float v24[2]; // [sp+4h] [bp-14h] BYREF _BYTE v25[8]; // [sp+Ch] [bp-Ch] BYREF v2 = *((double *)this + 266) / (float)((float)(0.04 / *((float *)this + 503)) * (float)(1.0 - (float)((float)(fabsf((*(float (__fastcall **)(_DWORD))(**((_DWORD **)this + 347) + 184))(*((_DWORD *)this + 347))) / 70.0) * 0.4))); v3 = (int)floorf(v2); v5 = v3 % 12; result = v3 / 12; v6 = (const char *)(v5 + 1); if ( v5 + 1 != *((_DWORD *)this + 500) ) { v7 = *((_DWORD *)this + 347); *((_DWORD *)this + 500) = v6; v8 = (cocos2d::CCArray *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 244))(v7); v9 = cocos2d::CCArray::objectAtIndex(v8, 0); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"playerDash2_%03d.png", v6); CString = (const char *)cocos2d::CCString::getCString(v10); v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"playerDash2_outline_%03d.png", v6); result = cocos2d::CCString::getCString(v12); v13 = (const char *)result; if ( CString ) { v14 = *((_DWORD *)this + 347); v15 = *(int (__fastcall **)(int, int))(*(_DWORD *)v14 + 580); v16 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)result); v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, CString); v18 = (cocos2d::CCSpriteFrameCache *)v15(v14, v17); v19 = *(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 580); v20 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v18); v21 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v20, v13); v19(v9, v21); v22 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 347) + 164))(*((_DWORD *)this + 347)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v24, v22); v23 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v24[0] * 0.5, v24[1] * 0.5); return v23(v9, v25); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source