// // SpriteAnimationManager::switchToFirstFrameOfAnimation from 0x3d8244 to 0x3d8306 (194 bytes) // // 0 xrefs: // // 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:46:45 +0000 // int __fastcall SpriteAnimationManager::switchToFirstFrameOfAnimation(int a1, int a2, int a3, int a4) { int result; // r0 int AnimType; // r8 int v8; // r8 const char *v9; // r1 cocos2d::CCString *v10; // r0 const char *CString; // r0 const char *v12; // r5 size_t v13; // r0 int v14; // r5 int v15; // [sp+0h] [bp-10h] BYREF int v16; // [sp+4h] [bp-Ch] int v17; // [sp+8h] [bp-8h] int v18; // [sp+Ch] [bp-4h] v15 = a1; v16 = a2; v17 = a3; v18 = a4; result = cocos2d::CCDictionary::objectForKey(*(_DWORD *)(a1 + 300), a2); if ( !*(_DWORD *)(result + 24) ) { std::string::basic_string(&v15, a2); AnimType = SpriteAnimationManager::getAnimType(a1, (int)&v15); std::string::~string((int)&v15); CCAnimatedSprite::switchToMode(*(_DWORD *)(a1 + 264), AnimType); v8 = *(_DWORD *)(a1 + 300); if ( (*(_BYTE *)a2 & 1) != 0 ) v9 = *(const char **)(a2 + 8); else v9 = (const char *)(a2 + 1); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_first", v9); CString = (const char *)cocos2d::CCString::getCString(v10); v15 = 0; v16 = 0; v17 = 0; v12 = CString; v13 = strlen(CString); std::string::__init(&v15, v12, v13); v14 = cocos2d::CCDictionary::objectForKey(v8, &v15); result = std::string::~string((int)&v15); if ( (unsigned int)(*(_DWORD *)(v14 + 24) - 1) <= 1 ) return (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(*(_DWORD *)(a1 + 264) + 536) + 580))( *(_DWORD *)(*(_DWORD *)(a1 + 264) + 536), v14); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source