// // SpriteAnimationManager::loadAnimations from 0x6b15e0 to 0x6b1d7c (1948 bytes) // // 2 xrefs: // > SpriteAnimationManager::initWithOwner @ 0x6b1f10 // > @ 0xcdf60 // // 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 12:50:51 +0000 // __int64 __fastcall SpriteAnimationManager::loadAnimations(_QWORD *a1, char *a2) { ObjectManager *v3; // x0 const char *v4; // x1 __int64 Definition; // x20 unsigned int v6; // w23 cocos2d::CCArray *v7; // x27 cocos2d::CCString *v8; // x26 const char *CString; // x0 size_t v10; // x0 __int64 v11; // x20 cocos2d::CCString *v12; // x0 cocos2d::CCString *v13; // x0 cocos2d::CCString *v14; // x0 int v15; // w24 cocos2d::CCString *v16; // x0 cocos2d::CCString *v17; // x22 size_t v18; // x0 _BOOL4 v19; // w25 cocos2d::CCString *v20; // x0 float v21; // s0 const char *v22; // x0 size_t v23; // x0 char v24; // w21 int v25; // w0 const char *v26; // x22 size_t v27; // x0 size_t v28; // x21 _BYTE *v29; // x0 __int64 v30; // x21 const char *v31; // x0 const char *v32; // x24 size_t v33; // x0 unsigned __int64 v34; // x21 size_t v35; // x25 unsigned __int64 v36; // x22 char *v37; // x0 unsigned __int64 v38; // x0 __int64 v39; // x22 __int64 v40; // x20 cocos2d::CCSequence *v41; // x20 cocos2d::CCObject *v42; // x25 const char *v43; // x0 size_t v44; // x0 cocos2d::CCAnimation *v46; // x1 __int64 v47; // x21 cocos2d::CCSequence *v48; // x0 cocos2d::CCFiniteTimeAction *v49; // x0 float v50; // [xsp+60h] [xbp+60h] cocos2d::CCAnimationCache *v51; // [xsp+90h] [xbp+90h] cocos2d::CCDictionary *v52; // [xsp+98h] [xbp+98h] int v53; // [xsp+A4h] [xbp+A4h] char *v55; // [xsp+B0h] [xbp+B0h] char *v56; // [xsp+B0h] [xbp+B0h] unsigned int v57; // [xsp+B0h] [xbp+B0h] float v58; // [xsp+B0h] [xbp+B0h] unsigned int v59; // [xsp+C0h] [xbp+C0h] cocos2d::CCActionInterval *v60; // [xsp+C0h] [xbp+C0h] char *v61; // [xsp+C8h] [xbp+C8h] unsigned int v62; // [xsp+C8h] [xbp+C8h] __int64 v63[2]; // [xsp+D8h] [xbp+D8h] BYREF void *v64; // [xsp+E8h] [xbp+E8h] __int64 v65; // [xsp+F0h] [xbp+F0h] BYREF __int64 v66; // [xsp+F8h] [xbp+F8h] void *v67; // [xsp+100h] [xbp+100h] unsigned __int64 v68; // [xsp+108h] [xbp+108h] BYREF unsigned __int64 v69; // [xsp+110h] [xbp+110h] _BYTE *v70; // [xsp+118h] [xbp+118h] _BYTE v71[504]; // [xsp+120h] [xbp+120h] BYREF v51 = (cocos2d::CCAnimationCache *)cocos2d::CCAnimationCache::sharedAnimationCache(_stack_chk_guard); v3 = (ObjectManager *)ObjectManager::instance(v51); v4 = a2 + 1; if ( (*a2 & 1) != 0 ) v4 = *((const char **)a2 + 2); Definition = ObjectManager::getDefinition(v3, v4); v68 = 0; v69 = 0; v70 = nullptr; std::string::__init((__int64 *)&v68, "animations", 0xAu); v52 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(Definition, &v68); if ( (v68 & 1) != 0 ) operator delete(v70); v6 = 0; v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v52); if ( (unsigned int)cocos2d::CCArray::count(v7) ) { do { v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, v6); CString = (const char *)cocos2d::CCString::getCString(v8); v68 = 0; v69 = 0; v70 = nullptr; v61 = (char *)CString; v10 = strlen(CString); std::string::__init((__int64 *)&v68, v61, v10); v11 = cocos2d::CCDictionary::objectForKey(v52, &v68); if ( (v68 & 1) != 0 ) operator delete(v70); v68 = 0; v69 = 0; v70 = nullptr; std::string::__init((__int64 *)&v68, "prio", 4u); v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v11, &v68); v62 = cocos2d::CCString::intValue(v12); if ( (v68 & 1) != 0 ) operator delete(v70); v68 = 0; v69 = 0; v70 = nullptr; std::string::__init((__int64 *)&v68, "looped", 6u); v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v11, &v68); v59 = (unsigned __int8)cocos2d::CCString::boolValue(v13); if ( (v68 & 1) != 0 ) operator delete(v70); v68 = 0; v69 = 0; v70 = nullptr; std::string::__init((__int64 *)&v68, "usesParts", 9u); v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v11, &v68); v15 = (unsigned __int8)cocos2d::CCString::boolValue(v14); if ( (v68 & 1) != 0 ) operator delete(v70); v68 = 0; v69 = 0; v70 = nullptr; std::string::__init((__int64 *)&v68, "dontPlayNext", 0xCu); v16 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v11, &v68); v53 = (unsigned __int8)cocos2d::CCString::boolValue(v16); if ( (v68 & 1) != 0 ) operator delete(v70); v68 = 0; v69 = 0; v70 = nullptr; std::string::__init((__int64 *)&v68, "sound", 5u); v17 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v11, &v68); if ( (v68 & 1) != 0 ) operator delete(v70); if ( v17 ) { v55 = (char *)cocos2d::CCString::getCString(v17); v65 = 0; v66 = 0; v67 = nullptr; v18 = strlen(v55); std::string::__init(&v65, v55, v18); v68 = 0; v69 = 0; v70 = nullptr; std::string::__init((__int64 *)&v68, "0", 1u); v19 = sub_6AF58C((__int64)&v65, (__int64)&v68); if ( (v68 & 1) != 0 ) operator delete(v70); if ( (v65 & 1) != 0 ) operator delete(v67); if ( !v19 ) { v68 = 0; v69 = 0; v70 = nullptr; std::string::__init((__int64 *)&v68, "soundDelay", 0xAu); v20 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v11, &v68); cocos2d::CCString::floatValue(v20); if ( (v68 & 1) != 0 ) { v58 = v21; operator delete(v70); v21 = v58; } v50 = v21; v22 = (const char *)cocos2d::CCString::getCString(v8); v68 = 0; v69 = 0; v70 = nullptr; v56 = (char *)v22; v23 = strlen(v22); std::string::__init((__int64 *)&v68, v56, v23); SpriteAnimationManager::storeSoundForAnimation((__int64)a1, v17, v50); if ( (v68 & 1) != 0 ) operator delete(v70); } } v24 = *a2; v70 = v71; v68 = 0; if ( v15 ) v25 = 2; else v25 = 1; v69 = 500; v57 = v25; if ( (v24 & 1) != 0 ) { v26 = *((const char **)a2 + 2); if ( !v26 ) { v30 = 1; goto LABEL_37; } } else { v26 = a2 + 1; } v27 = strlen(v26); v28 = v27; if ( v27 <= 0x1F4 ) { v68 = v27; if ( !v27 ) { v26 = nullptr; v30 = 1; goto LABEL_37; } v29 = v71; } else { fmt::internal::Array::grow(&v68, v27); v29 = v70; v68 = v28; } memmove(v29, v26, v28); v26 = (const char *)v68; v30 = v68 + 1; if ( v68 + 1 > v69 ) fmt::internal::Array::grow(&v68, v68 + 1); LABEL_37: v68 = v30; v26[(_QWORD)v70] = 95; v31 = (const char *)cocos2d::CCString::getCString(v8); v32 = v31; if ( !v31 ) { v34 = v68; v38 = v69; if ( v68 <= v69 ) goto LABEL_41; v36 = v68; v35 = 0; LABEL_64: fmt::internal::Array::grow(&v68, v36); v68 = v36; v37 = v70; if ( !v35 ) { LABEL_40: v38 = v69; v34 = v36; goto LABEL_41; } goto LABEL_65; } v33 = strlen(v31); v34 = v68; v35 = v33; v36 = v33 + v68; if ( v33 + v68 > v69 ) goto LABEL_64; v68 += v33; v37 = v70; if ( !v35 ) goto LABEL_40; LABEL_65: memmove(&v37[v34], v32, v35); v34 = v68; v38 = v69; LABEL_41: if ( v34 + 1 > v38 ) fmt::internal::Array::grow(&v68, v34 + 1); v70[v34] = 0; v39 = cocos2d::CCAnimationCache::animationByName(v51, v70); v63[0] = 0; v63[1] = 0; v64 = nullptr; std::string::__init(v63, "singleFrame", 0xBu); v40 = cocos2d::CCDictionary::objectForKey(v11, v63); if ( (v63[0] & 1) != 0 ) { operator delete(v64); if ( !v40 ) { LABEL_54: v47 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v39 + 72), 0); if ( *(_DWORD *)(v47 + 28) == 14 ) v47 = *(_QWORD *)(v47 + 56); v48 = (cocos2d::CCSequence *)cocos2d::CCAnimate::create((cocos2d::CCAnimate *)v39, v46); v41 = v48; *((_DWORD *)v48 + 7) = 0; if ( v59 ) { v42 = (cocos2d::CCObject *)cocos2d::CCRepeatForever::create(v48, (cocos2d::CCActionInterval *)v59); } else { v42 = v48; if ( !v53 ) { v49 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create( a1, SpriteAnimationManager::animationFinished, 0); v42 = (cocos2d::CCObject *)cocos2d::CCSequence::create(v41, v49, 0); } } *((_DWORD *)v42 + 7) = 0; v39 = v47; goto LABEL_46; } } else if ( !v40 ) { goto LABEL_54; } v41 = (cocos2d::CCSequence *)v39; *(_DWORD *)(v39 + 28) = 2; v42 = (cocos2d::CCObject *)v39; LABEL_46: v43 = (const char *)cocos2d::CCString::getCString(v8); v65 = 0; v66 = 0; v67 = nullptr; v60 = (cocos2d::CCActionInterval *)v43; v44 = strlen(v43); std::string::__init(&v65, v60, v44); SpriteAnimationManager::storeAnimation(a1, v41, v42, (__int64)&v65, v62, v57, (cocos2d::CCObject *)v39); if ( (v65 & 1) != 0 ) operator delete(v67); if ( v70 != v71 && v70 ) operator delete[](v70); ++v6; } while ( v6 < (unsigned int)cocos2d::CCArray::count(v7) ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source