// // cocos2d::CCAnimationCache::animationByName from 0xd852b4 to 0xd853ac (248 bytes) // // 3 xrefs: // > SpriteAnimationManager::loadAnimations @ 0x6b1a28 // > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0xd86800 // > @ 0xcaa98 // // 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 13:08:12 +0000 // __int64 __fastcall cocos2d::CCAnimationCache::animationByName(cocos2d::CCAnimationCache *this, const char *a2) { __int64 v2; // x23 size_t v3; // x0 size_t v4; // x19 const char *v5; // x1 char *v6; // x3 __int64 v7; // x19 unsigned __int64 v9; // x0 __int64 v10; // x21 char *v11; // x0 __int64 v13; // [xsp+50h] [xbp+50h] BYREF size_t v14; // [xsp+58h] [xbp+58h] void *v15; // [xsp+60h] [xbp+60h] v2 = *((_QWORD *)this + 7); v13 = 0; v14 = 0; v15 = nullptr; v3 = strlen(a2); v4 = v3; v5 = a2; if ( v3 > 0x16 ) { v9 = (v3 + 16) & 0xFFFFFFFFFFFFFFF0LL; v10 = v9 | 1; v11 = (char *)operator new(v9); v13 = v10; v5 = a2; v6 = v11; v15 = v11; v14 = v4; } else { LOBYTE(v13) = 2 * v3; v6 = (char *)&v13 + 1; if ( !v3 ) goto LABEL_3; } v6 = (char *)memcpy(v6, v5, v4); LABEL_3: v6[v4] = 0; v7 = cocos2d::CCDictionary::objectForKey(v2, (__int64)&v13); if ( (v13 & 1) != 0 ) operator delete(v15); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source