// // SpriteAnimationManager::createAnimations from 0x58e5f0 to 0x58f4c4 (3796 bytes) // // 3 xrefs: // > ObjectManager::setup @ 0x58b930 // > SpriteAnimationManager::initWithOwner @ 0x5917d8 // > @ 0x54b58 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall SpriteAnimationManager::createAnimations(const char **a1) { ObjectManager *v2; // x0 ObjectManager *v4; // x0 const char **v5; // x19 ObjectManager *v6; // x0 cocos2d::CCDictionary *Definition; // x19 void *v8; // x0 unsigned int v9; // w0 cocos2d::CCString *v10; // x0 char *CString; // x0 const std::string *v12; // x19 cocos2d::CCDictionary *v13; // x0 const std::string *v14; // x23 cocos2d::CCDictionary *v15; // x19 cocos2d::CCString *v16; // x0 std::string v17; // x1 cocos2d::CCString *v18; // x21 __int64 *v19; // x0 float v20; // s8 cocos2d::CCArray *v21; // x0 const std::string *v22; // x23 cocos2d::CCString *v23; // x0 std::string v24; // x1 cocos2d::CCString *v25; // x21 __int64 *v26; // x0 _BOOL4 v27; // w26 cocos2d::CCString *v28; // x21 char *v29; // x0 cocos2d::CCString *v30; // x0 size_t v31; // x0 __int64 v32; // x28 char *v33; // x0 cocos2d::CCString *v34; // x0 char *v35; // x0 char *v36; // x0 cocos2d::CCSpriteFrameCache *v37; // x0 cocos2d::CCSpriteFrame *v38; // x19 cocos2d::CCString *v39; // x0 const char *v40; // x0 void *v41; // x0 stl::StringData::Internal *m_data; // x1 char *v43; // x0 __int64 v44; // x1 __int64 *v45; // x0 unsigned int *v46; // x1 int v47; // w2 cocos2d::CCString *v48; // x0 _BOOL4 v49; // w21 void *v50; // x0 cocos2d::CCString *v51; // x0 int v52; // w21 void *v53; // x0 unsigned int v54; // w19 cocos2d::CCSpriteFrameCache *v55; // x27 cocos2d::CCString *v56; // x0 const char *v57; // x0 cocos2d::CCSpriteFrame *v58; // x1 cocos2d::CCAnimation *v59; // x19 cocos2d::CCString *v60; // x0 const char *v61; // x0 unsigned int *v62; // x1 int v63; // w2 unsigned int *v64; // x1 int v65; // w2 unsigned int *v66; // x1 int v67; // w2 unsigned int *v68; // x1 int v69; // w2 unsigned int *v70; // x1 int v71; // w2 const std::string *v72; // x1 bool (__fastcall **p_canEncode)(cocos2d::CCObject *__hidden); // x0 unsigned int *v74; // x1 int v75; // w2 cocos2d::CCString *v76; // x0 char *v77; // x0 void *v78; // x0 cocos2d::CCArray *v79; // x0 cocos2d::CCArray *v80; // x27 __int64 v81; // x21 __int64 v82; // x3 unsigned __int64 v83; // x19 __int64 v84; // x28 const std::string *v85; // x1 cocos2d::CCObject *v86; // x0 void *v87; // x0 void *v88; // x0 unsigned int *v89; // x1 int v90; // w2 unsigned int *v91; // x1 int v92; // w2 unsigned int *v93; // x1 int v94; // w2 unsigned int *v95; // x1 int v96; // w2 void *v97; // x0 void *v98; // x0 unsigned int i; // w19 cocos2d::CCString *v100; // x0 const char *v101; // x0 cocos2d::CCSpriteFrame *v102; // x1 cocos2d::CCString *v103; // x0 unsigned int v104; // w21 char *v105; // x1 __int64 *v106; // x0 unsigned int *v107; // x1 int v108; // w2 unsigned int *p_setTag; // x1 int setTag; // w2 unsigned int *v111; // x1 int v112; // w2 unsigned int *v113; // x1 int v114; // w2 unsigned int *v115; // x1 int v116; // w2 unsigned int *v117; // x1 int v118; // w2 unsigned int *v119; // x1 int v120; // w2 _QWORD v121[15]; // [xsp+0h] [xbp+0h] BYREF int *p_m_nTag; // [xsp+78h] [xbp+78h] cocos2d::CCAnimationCache *v123; // [xsp+80h] [xbp+80h] char *v124; // [xsp+88h] [xbp+88h] int v125[2]; // [xsp+90h] [xbp+90h] int v126[2]; // [xsp+98h] [xbp+98h] cocos2d::CCDictionary *v127; // [xsp+A0h] [xbp+A0h] const char **v128; // [xsp+A8h] [xbp+A8h] cocos2d::CCArray *v129; // [xsp+B0h] [xbp+B0h] int v130[2]; // [xsp+B8h] [xbp+B8h] unsigned int *p_m_uID; // [xsp+C0h] [xbp+C0h] cocos2d::CCSpriteFrameCache *v132; // [xsp+C8h] [xbp+C8h] unsigned int v133; // [xsp+D4h] [xbp+D4h] cocos2d::CCArray *v134; // [xsp+D8h] [xbp+D8h] __int64 v135; // [xsp+F0h] [xbp+F0h] BYREF __int64 v136; // [xsp+F8h] [xbp+F8h] BYREF __int64 v137; // [xsp+100h] [xbp+100h] BYREF std::string v138; // [xsp+108h] [xbp+108h] BYREF std::string v139; // [xsp+110h] [xbp+110h] BYREF std::string v140; // [xsp+118h] [xbp+118h] BYREF cocos2d::CCString v141; // [xsp+120h] [xbp+120h] BYREF v128 = a1; v2 = ObjectManager::instance(); if ( !ObjectManager::animLoaded(v2, *a1) ) { v4 = ObjectManager::instance(); v5 = v128; ObjectManager::setLoaded(v4, *v128); v123 = cocos2d::CCAnimationCache::sharedAnimationCache(); v6 = ObjectManager::instance(); Definition = ObjectManager::getDefinition(v6, *v5); sub_D153B8((unsigned int)v121 + 336, "animations"); v127 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey( Definition, (const std::string *)&v141.m_uOrderOfArrival); v8 = (void *)(*(_QWORD *)&v141.m_uOrderOfArrival - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.m_uOrderOfArrival - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v119 = (unsigned int *)(*(_QWORD *)&v141.m_uOrderOfArrival - 8LL); do v120 = __ldaxr(v119); while ( __stlxr(v120 - 1, v119) ); } else { v120 = *(_DWORD *)(*(_QWORD *)&v141.m_uOrderOfArrival - 8LL); *(_DWORD *)(*(_QWORD *)&v141.m_uOrderOfArrival - 8LL) = v120 - 1; } if ( v120 <= 0 ) operator delete(v8); } *(_QWORD *)v130 = &v135; v133 = 0; *(_QWORD *)v125 = &v136; v129 = cocos2d::CCDictionary::allKeys(v127); v124 = "delay"; *(_QWORD *)v126 = &v137; while ( 1 ) { v9 = cocos2d::CCArray::count(v129); if ( v133 >= v9 ) return _stack_chk_guard; v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v129, v133); CString = (char *)cocos2d::CCString::getCString(v10); v12 = *(const std::string **)v130; sub_D153B8(v130[0], CString); v13 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(v127, v12); v14 = *(const std::string **)v125; v15 = v13; sub_D153B8(v125[0], v124); v16 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v15, v14); v17.m_data.m_data = v14->m_data.m_data; v18 = v16; v19 = (__int64 *)((char *)v14->m_data.m_data - 24); if ( v19 == &qword_124B6B0 ) goto LABEL_7; if ( &pthread_create ) { v68 = (unsigned int *)((char *)v17.m_data.m_data - 8); do v69 = __ldaxr(v68); while ( __stlxr(v69 - 1, v68) ); } else { v69 = *((_DWORD *)v17.m_data.m_data - 2); *((_DWORD *)v17.m_data.m_data - 2) = v69 - 1; } if ( v69 > 0 ) { LABEL_7: if ( !v18 ) goto LABEL_58; } else { operator delete(v19); if ( !v18 ) { LABEL_58: v20 = 0.0; goto LABEL_9; } } v20 = cocos2d::CCString::floatValue(v18); LABEL_9: v21 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v19); v22 = *(const std::string **)v126; v134 = v21; sub_D153B8(v126[0], "usesParts"); v23 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v15, v22); v24.m_data.m_data = v22->m_data.m_data; v25 = v23; v26 = (__int64 *)((char *)v22->m_data.m_data - 24); if ( v26 == &qword_124B6B0 ) goto LABEL_10; if ( &pthread_create ) { v66 = (unsigned int *)((char *)v24.m_data.m_data - 8); do v67 = __ldaxr(v66); while ( __stlxr(v67 - 1, v66) ); } else { v67 = *((_DWORD *)v24.m_data.m_data - 2); *((_DWORD *)v24.m_data.m_data - 2) = v67 - 1; } if ( v67 > 0 ) { LABEL_10: if ( !v25 ) goto LABEL_52; } else { operator delete(v26); if ( !v25 ) { LABEL_52: v27 = 0; goto LABEL_12; } } v27 = cocos2d::CCString::boolValue(v25); LABEL_12: sub_D153B8((int)&v138, "animFrameName"); v28 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v15, &v138); v29 = (char *)v138.m_data.m_data - 24; if ( (__int64 *)v138.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v91 = (unsigned int *)((char *)v138.m_data.m_data - 8); do v92 = __ldaxr(v91); while ( __stlxr(v92 - 1, v91) ); } else { v92 = *((_DWORD *)v138.m_data.m_data - 2); *((_DWORD *)v138.m_data.m_data - 2) = v92 - 1; } if ( v92 <= 0 ) operator delete(v29); } v138.m_data.m_data = (stl::StringData::Internal *)&byte_124B6C8; if ( v28 ) v30 = v28; else v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%s", *v128, **(_QWORD **)v130); v132 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCString::getCString(v30); v31 = strlen((const char *)v132); sub_D1798C(&v138, v132, v31); sub_D153B8((int)&v139, "singleFrame"); v32 = cocos2d::CCDictionary::objectForKey(v15, &v139); v33 = (char *)v139.m_data.m_data - 24; if ( (__int64 *)v139.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_16; if ( &pthread_create ) { v46 = (unsigned int *)((char *)v139.m_data.m_data - 8); do v47 = __ldaxr(v46); while ( __stlxr(v47 - 1, v46) ); } else { v47 = *((_DWORD *)v139.m_data.m_data - 2); *((_DWORD *)v139.m_data.m_data - 2) = v47 - 1; } if ( v47 > 0 ) { LABEL_16: if ( !v32 ) goto LABEL_29; } else { operator delete(v33); if ( !v32 ) { LABEL_29: p_m_uID = &v141.m_uID; sub_D153B8((int)&v141.m_uID, "other"); v48 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v15, (const std::string *)&v141.m_uID); v49 = cocos2d::CCString::boolValue(v48); v50 = (void *)(*(_QWORD *)&v141.m_uID - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.m_uID - 24LL) == &qword_124B6B0 ) goto LABEL_30; if ( &pthread_create ) { v74 = (unsigned int *)(*(_QWORD *)&v141.m_uID - 8LL); do v75 = __ldaxr(v74); while ( __stlxr(v75 - 1, v74) ); } else { v75 = *(_DWORD *)(*(_QWORD *)&v141.m_uID - 8LL); *(_DWORD *)(*(_QWORD *)&v141.m_uID - 8LL) = v75 - 1; } if ( v75 > 0 ) { LABEL_30: if ( v49 ) goto LABEL_72; } else { operator delete(v50); if ( v49 ) { LABEL_72: v121[14] = &v141.m_uAutoReleaseCount; sub_D153B8((int)&v141.m_uAutoReleaseCount, "frames"); v76 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey( v15, (const std::string *)&v141.m_uAutoReleaseCount); v77 = (char *)cocos2d::CCString::getCString(v76); p_m_nTag = &v141.m_nTag; sub_D153B8((int)&v141.m_nTag, v77); v78 = (void *)(*(_QWORD *)&v141.m_uAutoReleaseCount - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.m_uAutoReleaseCount - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v113 = (unsigned int *)(*(_QWORD *)&v141.m_uAutoReleaseCount - 8LL); do v114 = __ldaxr(v113); while ( __stlxr(v114 - 1, v113) ); } else { v114 = *(_DWORD *)(*(_QWORD *)&v141.m_uAutoReleaseCount - 8LL); *(_DWORD *)(*(_QWORD *)&v141.m_uAutoReleaseCount - 8LL) = v114 - 1; } if ( v114 <= 0 ) operator delete(v78); } v79 = (cocos2d::CCArray *)sub_D153B8((int)&v141.m_uIndexInArray, *(char **)p_m_nTag); v80 = (cocos2d::CCArray *)cocos2d::CCArray::create(v79); v81 = sub_D168E0((unsigned int)v121 + 320, " ", 0, 1u); v82 = v81; v83 = 0; v132 = (cocos2d::CCSpriteFrameCache *)" "; v84 = *(_QWORD *)(*(_QWORD *)&v141.m_uIndexInArray - 24LL); while ( 1 ) { sub_D14F84(&v141.m_unknown2, &v141.m_uIndexInArray, v83, v82); if ( v84 == v83 && !*(_QWORD *)(*(_QWORD *)&v141.m_unknown2 - 24LL) ) goto LABEL_78; sub_D153B8((int)&v141.m_uOrderOfArrival, *(char **)&v141.m_unknown2); v86 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v141.m_uOrderOfArrival, v85); cocos2d::CCArray::addObject(v80, v86); v87 = (void *)(*(_QWORD *)&v141.m_uOrderOfArrival - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.m_uOrderOfArrival - 24LL) == &qword_124B6B0 ) goto LABEL_78; if ( &pthread_create ) { v95 = (unsigned int *)(*(_QWORD *)&v141.m_uOrderOfArrival - 8LL); do v96 = __ldaxr(v95); while ( __stlxr(v96 - 1, v95) ); } else { v96 = *(_DWORD *)(*(_QWORD *)&v141.m_uOrderOfArrival - 8LL); *(_DWORD *)(*(_QWORD *)&v141.m_uOrderOfArrival - 8LL) = v96 - 1; } if ( v96 > 0 ) { LABEL_78: if ( v81 == -1 ) goto LABEL_102; } else { operator delete(v87); if ( v81 == -1 ) { LABEL_102: v97 = (void *)(*(_QWORD *)&v141.m_unknown2 - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.m_unknown2 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v117 = (unsigned int *)(*(_QWORD *)&v141.m_unknown2 - 8LL); do v118 = __ldaxr(v117); while ( __stlxr(v118 - 1, v117) ); } else { v118 = *(_DWORD *)(*(_QWORD *)&v141.m_unknown2 - 8LL); *(_DWORD *)(*(_QWORD *)&v141.m_unknown2 - 8LL) = v118 - 1; } if ( v118 <= 0 ) operator delete(v97); } v98 = (void *)(*(_QWORD *)&v141.m_uIndexInArray - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.m_uIndexInArray - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v115 = (unsigned int *)(*(_QWORD *)&v141.m_uIndexInArray - 8LL); do v116 = __ldaxr(v115); while ( __stlxr(v116 - 1, v115) ); } else { v116 = *(_DWORD *)(*(_QWORD *)&v141.m_uIndexInArray - 8LL); *(_DWORD *)(*(_QWORD *)&v141.m_uIndexInArray - 8LL) = v116 - 1; } if ( v116 <= 0 ) operator delete(v98); } for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v80); ++i ) { v103 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v80, i); v104 = cocos2d::CCString::intValue(v103); if ( v27 ) { v102 = (cocos2d::CCSpriteFrame *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%03d.png", (const char *)v138.m_data.m_data, v104); v102->m_eObjType = 1; } else { v132 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v100 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%03d.png", (const char *)v138.m_data.m_data, v104); v101 = cocos2d::CCString::getCString(v100); v102 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v132, v101); v102->m_eObjType = 2; } cocos2d::CCArray::addObject(v134, v102); } v105 = *(char **)p_m_nTag; v106 = (__int64 *)(*(_QWORD *)p_m_nTag - 24LL); if ( v106 != &qword_124B6B0 ) { if ( &pthread_create ) { v107 = (unsigned int *)(v105 - 8); do v108 = __ldaxr(v107); while ( __stlxr(v108 - 1, v107) ); } else { v108 = *((_DWORD *)v105 - 2); *((_DWORD *)v105 - 2) = v108 - 1; } if ( v108 <= 0 ) operator delete(v106); } goto LABEL_36; } } v83 = v81 + 1; v81 = sub_D168E0((int)&v141.m_uIndexInArray, v132, (int)v81 + 1, 1u); v88 = (void *)(*(_QWORD *)&v141.m_unknown2 - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.m_unknown2 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v89 = (unsigned int *)(*(_QWORD *)&v141.m_unknown2 - 8LL); do v90 = __ldaxr(v89); while ( __stlxr(v90 - 1, v89) ); } else { v90 = *(_DWORD *)(*(_QWORD *)&v141.m_unknown2 - 8LL); *(_DWORD *)(*(_QWORD *)&v141.m_unknown2 - 8LL) = v90 - 1; } if ( v90 <= 0 ) operator delete(v88); } v82 = v81 - v83; if ( *(_QWORD *)(*(_QWORD *)&v141.m_uIndexInArray - 24LL) < v83 ) sub_D13C5C( "%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::substr", v83, *(_QWORD *)(*(_QWORD *)&v141.m_uIndexInArray - 24LL)); } } } sub_D153B8((int)&v141.m_nTag, "frames"); v51 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v15, (const std::string *)&v141.m_nTag); v52 = cocos2d::CCString::intValue(v51); v53 = (void *)(*(_QWORD *)&v141.m_nTag - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.m_nTag - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v111 = (unsigned int *)(*(_QWORD *)&v141.m_nTag - 8LL); do v112 = __ldaxr(v111); while ( __stlxr(v112 - 1, v111) ); } else { v112 = *(_DWORD *)(*(_QWORD *)&v141.m_nTag - 8LL); *(_DWORD *)(*(_QWORD *)&v141.m_nTag - 8LL) = v112 - 1; } if ( v112 <= 0 ) operator delete(v53); } v54 = 1; if ( v52 > 0 ) { do { if ( v27 ) { v58 = (cocos2d::CCSpriteFrame *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%03d.png", (const char *)v138.m_data.m_data, v54); v58->m_eObjType = 1; } else { v55 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v56 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%03d.png", (const char *)v138.m_data.m_data, v54); v57 = cocos2d::CCString::getCString(v56); v58 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v55, v57); v58->m_eObjType = 2; } cocos2d::CCArray::addObject(v134, v58); ++v54; } while ( v52 >= (int)v54 ); } LABEL_36: v59 = cocos2d::CCAnimation::createWithSpriteFrames(v134, v20); v60 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%s", *v128, **(_QWORD **)v130); v61 = cocos2d::CCString::getCString(v60); cocos2d::CCAnimationCache::addAnimation(v123, v59, v61); m_data = v138.m_data.m_data; v43 = (char *)v138.m_data.m_data - 24; if ( (__int64 *)v138.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_22; goto LABEL_37; } } sub_D153B8((int)&v140, "singleFrame"); v34 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v15, &v140); v35 = (char *)cocos2d::CCString::getCString(v34); sub_D153B8((int)&v141.m_uOrderOfArrival, v35); v36 = (char *)v140.m_data.m_data - 24; if ( (__int64 *)v140.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_18; if ( &pthread_create ) { v70 = (unsigned int *)((char *)v140.m_data.m_data - 8); do v71 = __ldaxr(v70); while ( __stlxr(v71 - 1, v70) ); } else { v71 = *((_DWORD *)v140.m_data.m_data - 2); *((_DWORD *)v140.m_data.m_data - 2) = v71 - 1; } if ( v71 > 0 ) { LABEL_18: if ( !v27 ) goto LABEL_19; } else { operator delete(v36); if ( !v27 ) { LABEL_19: v37 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v38 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v37, *(const char **)&v141.m_uOrderOfArrival); v38->m_eObjType = 2; goto LABEL_20; } } sub_D153B8((int)&v141, *(char **)&v141.m_uOrderOfArrival); v38 = (cocos2d::CCSpriteFrame *)cocos2d::CCString::create(&v141, v72); p_canEncode = &v141.__vftable[-1].canEncode; if ( (__int64 *)&v141.__vftable[-1].canEncode != &qword_124B6B0 ) { if ( &pthread_create ) { p_setTag = (unsigned int *)&v141.__vftable[-1].setTag; do setTag = __ldaxr(p_setTag); while ( __stlxr(setTag - 1, p_setTag) ); } else { setTag = (int)v141.__vftable[-1].setTag; LODWORD(v141.__vftable[-1].setTag) = setTag - 1; } if ( setTag <= 0 ) operator delete(p_canEncode); } v38->m_eObjType = 1; LABEL_20: v39 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_%s", *v128, **(_QWORD **)v130); v40 = cocos2d::CCString::getCString(v39); cocos2d::CCAnimationCache::addAnimation(v123, (cocos2d::CCAnimation *)v38, v40); v41 = (void *)(*(_QWORD *)&v141.m_uOrderOfArrival - 24LL); if ( (__int64 *)(*(_QWORD *)&v141.m_uOrderOfArrival - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v93 = (unsigned int *)(*(_QWORD *)&v141.m_uOrderOfArrival - 8LL); do v94 = __ldaxr(v93); while ( __stlxr(v94 - 1, v93) ); } else { v94 = *(_DWORD *)(*(_QWORD *)&v141.m_uOrderOfArrival - 8LL); *(_DWORD *)(*(_QWORD *)&v141.m_uOrderOfArrival - 8LL) = v94 - 1; } if ( v94 <= 0 ) operator delete(v41); } m_data = v138.m_data.m_data; v43 = (char *)v138.m_data.m_data - 24; if ( (__int64 *)v138.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_22; LABEL_37: if ( &pthread_create ) { v62 = (unsigned int *)((char *)m_data - 8); do v63 = __ldaxr(v62); while ( __stlxr(v63 - 1, v62) ); } else { v63 = *((_DWORD *)m_data - 2); *((_DWORD *)m_data - 2) = v63 - 1; } if ( v63 <= 0 ) { operator delete(v43); v44 = **(_QWORD **)v130; v45 = (__int64 *)(**(_QWORD **)v130 - 24LL); if ( v45 == &qword_124B6B0 ) goto LABEL_23; goto LABEL_42; } LABEL_22: v44 = **(_QWORD **)v130; v45 = (__int64 *)(**(_QWORD **)v130 - 24LL); if ( v45 == &qword_124B6B0 ) goto LABEL_23; LABEL_42: if ( &pthread_create ) { v64 = (unsigned int *)(v44 - 8); do v65 = __ldaxr(v64); while ( __stlxr(v65 - 1, v64) ); } else { v65 = *(_DWORD *)(v44 - 8); *(_DWORD *)(v44 - 8) = v65 - 1; } if ( v65 <= 0 ) operator delete(v45); LABEL_23: ++v133; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source