// // EnhancedGameObject::updateSyncedAnimation from 0x9b0ccc to 0x9b23c8 (5884 bytes) // // 41 xrefs: // > SpecialAnimGameObject::updateSyncedAnimation @ 0x9b2414 // > @ 0x2e578 // > @ 0x11543a8 // > @ 0x1162558 // > @ 0x1162d58 // > @ 0x1163558 // > @ 0x1163d58 // > @ 0x1164558 // > @ 0x1164d58 // > @ 0x1165558 // > @ 0x1167528 // > @ 0x1167d28 // > @ 0x1168528 // > @ 0x1168d68 // > @ 0x1169568 // > @ 0x1169d68 // > @ 0x116a568 // > @ 0x116ad68 // > @ 0x116b578 // > @ 0x116bd78 // > @ 0x116c578 // > @ 0x116cd78 // > @ 0x116d578 // > @ 0x116dd78 // > @ 0x116e578 // > @ 0x116ed78 // > @ 0x116fd78 // > @ 0x1170578 // > @ 0x1170d78 // > @ 0x1171578 // > @ 0x1171d78 // > @ 0x1172578 // > @ 0x1172d78 // > @ 0x1173578 // > @ 0x1173d78 // > @ 0x1174578 // > @ 0x1174d78 // > @ 0x1175578 // > @ 0x1175d78 // > @ 0x1176578 // > @ 0x1176d78 // // 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 // // local variable allocation has failed, the output may be wrong! void EnhancedGameObject::updateSyncedAnimation(EnhancedGameObject *a1, float a2, int a3) { _BOOL4 m_animateOnTrigger; // w3 int m_animationRandomizedStartValue; // s8 _BOOL4 v7; // w24 float v8; // s8 float m_animationStart; // s2 float m_unk544; // s3 int v11; // w2 _BOOL4 v12; // w23 int m_frames; // w22 float v14; // s1 int v15; // w0 int m_singleFrame; // w1 int v17; // w1 int v18; // w0 cocos2d::CCSprite *v19; // x0 GLubyte v20; // w0 int v21; // w25 int m_objectID; // w0 int v23; // w25 cocos2d::CCSprite *v24; // x24 cocos2d::CCSprite *v25; // x24 int v26; // w0 unsigned int v27; // w25 bool v28; // w27 int v29; // w26 GameManager *v30; // x0 cocos2d::CCArray *v31; // x0 cocos2d::CCString *v32; // x0 void (__fastcall *v33)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x25 cocos2d::CCSpriteFrameCache *v34; // x0 cocos2d::CCSpriteFrame *v35; // x0 _BOOL4 m_visible; // w0 cocos2d::CCSprite *v37; // x24 int v38; // w0 unsigned int v39; // w25 bool v40; // w26 int v41; // w27 GameManager *v42; // x0 cocos2d::CCArray *v43; // x0 cocos2d::CCString *v44; // x0 void (__fastcall *v45)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x27 cocos2d::CCSpriteFrameCache *v46; // x0 cocos2d::CCSpriteFrame *v47; // x0 cocos2d::CCSprite *v48; // x0 cocos2d::CCSprite *v49; // x24 int v50; // w27 GameManager *v51; // x0 cocos2d::CCArray *v52; // x0 cocos2d::CCString *v53; // x0 void (__fastcall *v54)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x25 cocos2d::CCSpriteFrameCache *v55; // x0 cocos2d::CCSpriteFrame *v56; // x0 int v57; // w26 GameManager *v58; // x0 unsigned int v59; // w24 cocos2d::CCArray *v60; // x0 cocos2d::CCString *v61; // x0 void (__fastcall *v62)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x26 cocos2d::CCSpriteFrameCache *v63; // x0 cocos2d::CCSpriteFrame *v64; // x0 cocos2d::CCSprite *v65; // x0 __int64 v66; // x26 int v67; // w25 GameManager *v68; // x0 cocos2d::CCArray *v69; // x0 cocos2d::CCString *v70; // x0 void (__fastcall *v71)(__int64, cocos2d::CCSpriteFrame *); // x24 cocos2d::CCSpriteFrameCache *v72; // x0 cocos2d::CCSpriteFrame *v73; // x0 int v74; // w24 GameManager *v75; // x0 unsigned int v76; // w25 cocos2d::CCArray *v77; // x0 cocos2d::CCString *v78; // x0 void (__fastcall *v79)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x24 cocos2d::CCSpriteFrameCache *v80; // x0 cocos2d::CCSpriteFrame *v81; // x0 int v82; // w24 cocos2d::CCDictionary *m_detailFramesForAnimation; // x0 intptr_t v84; // x1 cocos2d::CCArray *v85; // x0 unsigned int v86; // w1 cocos2d::CCString *v87; // x0 cocos2d::CCSprite *v88; // x24 void (__fastcall *v89)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x25 cocos2d::CCSpriteFrameCache *v90; // x0 cocos2d::CCSpriteFrame *v91; // x0 float v92; // s3 float v93; // s0 int v94; // w2 int v95; // w0 float v96; // s0 float v97; // s9 float v98; // s0 cocos2d::CCArray *m_pChildren; // x0 cocos2d::ccArray *data; // x1 char *arr; // x25 __int64 v102; // x0 char *v103; // x26 __int64 v104; // x24 unsigned int v105; // w27 int v106; // w24 GameManager *v107; // x0 cocos2d::CCArray *v108; // x0 cocos2d::CCString *v109; // x0 void (__fastcall *v110)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x26 cocos2d::CCSpriteFrameCache *v111; // x0 cocos2d::CCSpriteFrame *v112; // x0 int m_unkAnimationInt; // w1 int v114; // w0 float v115; // s0 unsigned int v116; // w0 int m_maybeAnimationVariableXInt; // w3 float v118; // s0 int v119; // w2 float v120; // s0 unsigned int v121; // w24 int v122; // w0 const char *v123; // x1 void (__fastcall *v124)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x26 cocos2d::CCSpriteFrameCache *v125; // x0 cocos2d::CCSpriteFrame *v126; // x0 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCNode *v128; // x0 cocos2d::CCNode *v129; // x24 const char *v130; // x1 void (__fastcall *v131)(cocos2d::CCNode *__hidden, float); // x25 cocos2d::CCSpriteFrameCache *v132; // x0 cocos2d::CCSpriteFrame *v133; // x0 const cocos2d::CCSize *v134; // x0 void (__fastcall *v135)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 int v136; // w0 _BOOL4 m_shouldNotHideAnimFreeze; // w1 const char *v138; // x25 const char *v139; // x24 const char *v140; // x1 void (__fastcall *v141)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x26 cocos2d::CCSpriteFrameCache *v142; // x0 cocos2d::CCSpriteFrame *v143; // x0 cocos2d::CCNode *v144; // x26 cocos2d::CCNode *v145; // x24 void (__fastcall *v146)(cocos2d::CCNode *__hidden, float); // x26 cocos2d::CCSpriteFrameCache *v147; // x0 cocos2d::CCSpriteFrame *v148; // x0 int v149; // w24 GameManager *v150; // x0 unsigned int v151; // w25 cocos2d::CCArray *v152; // x0 cocos2d::CCString *v153; // x0 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x24 cocos2d::CCSpriteFrameCache *v155; // x0 cocos2d::CCSpriteFrame *v156; // x0 const char *v157; // x27 cocos2d::CCNode *v158; // x0 cocos2d::CCNode *v159; // x24 void (__fastcall *setSkewY)(cocos2d::CCNode *__hidden, float); // x28 cocos2d::CCSpriteFrameCache *v161; // x0 cocos2d::CCSpriteFrame *v162; // x0 int v163; // w24 GameManager *v164; // x0 cocos2d::CCArray *v165; // x0 cocos2d::CCString *v166; // x0 cocos2d::CCSprite *m_colorSprite; // x24 void (__fastcall *v168)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x25 cocos2d::CCSpriteFrameCache *v169; // x0 cocos2d::CCSpriteFrame *v170; // x0 int v171; // w24 GameManager *v172; // x0 unsigned int v173; // w25 cocos2d::CCArray *v174; // x0 cocos2d::CCString *v175; // x0 void (__fastcall *v176)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x24 cocos2d::CCSpriteFrameCache *v177; // x0 cocos2d::CCSpriteFrame *v178; // x0 int v179; // w24 GameManager *v180; // x0 cocos2d::CCArray *v181; // x0 cocos2d::CCString *v182; // x0 const char *v183; // x24 cocos2d::CCArray *v184; // x0 __int64 v185; // x25 void (__fastcall *v186)(__int64, cocos2d::CCSpriteFrame *); // x26 cocos2d::CCSpriteFrameCache *v187; // x0 cocos2d::CCSpriteFrame *v188; // x0 float v189; // s0 float m_randomFrameTime; // s1 float m_animationSpeed; // s2 int v192; // w1 int v193; // w25 int v194; // w24 unsigned int v195; // w24 int v196; // w26 GameManager *v197; // x0 cocos2d::CCArray *v198; // x0 cocos2d::CCString *v199; // x0 int v200; // w26 GameManager *v201; // x0 cocos2d::CCArray *v202; // x0 cocos2d::CCString *v203; // x0 const char *v204; // x28 cocos2d::CCNode *v205; // x26 cocos2d::CCArray *v206; // x0 __int64 v207; // x24 void (__fastcall *v208)(cocos2d::CCNode *__hidden, float); // x27 cocos2d::CCSpriteFrameCache *v209; // x0 cocos2d::CCSpriteFrame *v210; // x0 void (__fastcall *v211)(__int64, cocos2d::CCSpriteFrame *); // x27 cocos2d::CCSpriteFrameCache *v212; // x0 cocos2d::CCSpriteFrame *v213; // x0 float v214; // s0 int v215; // w0 float v216; // s9 float v217; // s0 char *v218; // x0 unsigned int v219; // w24 int v220; // w25 GameManager *v221; // x0 cocos2d::CCArray *v222; // x0 cocos2d::CCString *v223; // x0 void (__fastcall *v224)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x25 cocos2d::CCSpriteFrameCache *v225; // x0 cocos2d::CCSpriteFrame *v226; // x0 int v227; // w25 GameManager *v228; // x0 int v229; // w24 GameManager *v230; // x0 cocos2d::CCArray *v231; // x0 cocos2d::CCString *v232; // x0 const char *v233; // x24 cocos2d::CCNode *v234; // x0 cocos2d::CCNode *v235; // x26 void (__fastcall *v236)(cocos2d::CCNode *__hidden, float); // x27 cocos2d::CCSpriteFrameCache *v237; // x0 cocos2d::CCSpriteFrame *v238; // x0 const char *v239; // x26 cocos2d::CCNode *v240; // x0 cocos2d::CCNode *v241; // x24 void (__fastcall *v242)(cocos2d::CCNode *__hidden, float); // x28 cocos2d::CCSpriteFrameCache *v243; // x0 cocos2d::CCSpriteFrame *v244; // x0 __int64 v245; // x0 cocos2d::CCDictionary *m_mainFramesForAnimation; // x0 intptr_t v247; // x1 cocos2d::CCArray *v248; // x0 cocos2d::CCString *v249; // x0 void (__fastcall *v250)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x25 cocos2d::CCSpriteFrameCache *v251; // x0 cocos2d::CCSpriteFrame *v252; // x0 int v253; // w0 cocos2d::CCDictionary *v254; // x0 intptr_t v255; // x1 cocos2d::CCArray *v256; // x0 cocos2d::CCString *v257; // x0 const char *v258; // x0 cocos2d::CCSprite *v259; // x24 void (__fastcall *v260)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x25 cocos2d::CCSpriteFrameCache *v261; // x0 cocos2d::CCSpriteFrame *v262; // x0 const cocos2d::CCSize *v263; // x0 cocos2d::CCSprite *v264; // x25 void (__fastcall *v265)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 int m_maybeAnimationVariableYInt; // w0 void (__fastcall *v267)(cocos2d::CCNode *__hidden, float); // x27 cocos2d::CCSpriteFrameCache *v268; // x0 cocos2d::CCSpriteFrame *v269; // x0 int v270; // w0 char *v271[2]; // [xsp+70h] [xbp+70h] const char *v272; // [xsp+70h] [xbp+70h] const char *v273; // [xsp+70h] [xbp+70h] const char *v274; // [xsp+70h] [xbp+70h] const char *v275; // [xsp+70h] [xbp+70h] const char *v276; // [xsp+70h] [xbp+70h] const char *v277; // [xsp+70h] [xbp+70h] const char *v278; // [xsp+70h] [xbp+70h] const char *v279; // [xsp+70h] [xbp+70h] float v280; // [xsp+70h] [xbp+70h] const char *v281; // [xsp+70h] [xbp+70h] const char *v282; // [xsp+70h] [xbp+70h] const char *v283; // [xsp+70h] [xbp+70h] const char *CString; // [xsp+70h] [xbp+70h] const char *v285; // [xsp+70h] [xbp+70h] const char *v286; // [xsp+70h] [xbp+70h] const char *v287; // [xsp+70h] [xbp+70h] const char *v288; // [xsp+70h] [xbp+70h] const char *v289; // [xsp+70h] [xbp+70h] const char *v290; // [xsp+70h] [xbp+70h] cocos2d::CCSize v291; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCSize v292; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCPoint v293; // [xsp+90h] [xbp+90h] BYREF m_animateOnTrigger = a1->m_animateOnTrigger; if ( a1->m_animateOnTrigger ) { if ( !a1->m_animationTriggered ) return; m_animationRandomizedStartValue = a1->m_animationRandomizedStartValue; if ( *(float *)&m_animationRandomizedStartValue == 0.0 ) { *(float *)&m_animationRandomizedStartValue = -a2; *(float *)&a1->m_animationRandomizedStartValue = -a2; } } else { m_animationRandomizedStartValue = a1->m_animationRandomizedStartValue; } v7 = 0; if ( a1->m_animationShouldUseSpeed ) v7 = a1->m_animationSpeed < 0.0; v8 = a2 + *(float *)&m_animationRandomizedStartValue; if ( !a1->m_visible ) { if ( !m_animateOnTrigger ) { m_frames = a1->m_frames; v12 = 0; v11 = 0; v14 = floorf(v8 / a1->m_frameTime); if ( v14 > 0.0 ) goto LABEL_10; goto LABEL_69; } goto LABEL_67; } m_animationStart = a1->m_animationStart; m_unk544 = a1->m_unk544; v8 = v8 + m_unk544; if ( m_animationStart <= 0.0 ) { LABEL_67: v11 = 0; goto LABEL_9; } if ( (float)(v8 - (float)(m_animationStart + a1->m_unk540)) < 0.0 ) { v11 = 1; } else { v11 = 0; v8 = v8 - m_animationStart; a1->m_unk544 = m_unk544 - m_animationStart; a1->m_animationStart = 0.0; } LABEL_9: v12 = 1; m_frames = a1->m_frames + 1; v14 = floorf(v8 / a1->m_frameTime); if ( v14 > 0.0 ) { LABEL_10: v15 = (int)v14; goto LABEL_11; } LABEL_69: v15 = 0; LABEL_11: m_singleFrame = a1->m_singleFrame; if ( m_singleFrame > 0 ) { if ( a1->m_animationOffset ) { v15 += m_singleFrame; } else { v17 = m_singleFrame - 1; if ( !m_animateOnTrigger ) v15 = v17; } } v18 = v15 % m_frames + 1; if ( v7 ) v18 = m_frames - v18 + 1; if ( a3 <= 0 ) a3 = v18; if ( a3 != a1->m_maybeAnimationVariableXInt && !v11 || a1->m_usesSpecialAnimation ) { if ( a1->m_blackChildOpacityLocked || a1->_realOpacity || (v19 = a1->m_colorSprite) != nullptr && (*(_OWORD *)v271 = *(_OWORD *)&a2, v20 = v19->getOpacity(v19), *(_OWORD *)&a2 = *(_OWORD *)v271, v20) || a1->m_isDisabled2 || a1->m_maybeAnimationVariableXInt <= 0 ) { v21 = a3; if ( v12 ) { v21 = a1->m_frames; v12 = v21 + 1 == a3; if ( v21 + 1 != a3 ) v21 = a3; } m_objectID = a1->m_objectID; if ( m_objectID == 1855 ) { GameManager::sharedState(); v149 = a1->m_objectID; v150 = GameManager::sharedState(); v151 = v21 - 1; v152 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v150->m_mainFramesForAnimation, v149); v153 = cocos2d::CCArray::stringAtIndex(v152, v151); CString = cocos2d::CCString::getCString(v153); if ( CString ) { setDisplayFrame = a1->setDisplayFrame; v155 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v156 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v155, CString); setDisplayFrame(a1, v156); } switch ( a3 ) { case 8: v157 = "gj_drops05_2_008.png"; break; case 9: v157 = "gj_drops05_2_009.png"; break; case 10: v157 = "gj_drops05_2_010.png"; break; case 11: v157 = "gj_drops05_2_011.png"; break; case 12: v157 = "gj_drops05_2_012.png"; break; case 13: v157 = "gj_drops05_2_013.png"; break; case 14: v157 = "gj_drops05_2_014.png"; break; case 15: v157 = "gj_drops05_2_015.png"; break; case 16: v157 = "gj_drops05_2_016.png"; break; default: v157 = "gj_drops05_2_001.png"; break; } v158 = a1->getChildByTag(a1, 2); v159 = v158; if ( v158 ) { setSkewY = v158->__vftable[1].setSkewY; v161 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v162 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v161, v157); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))setSkewY)(v159, v162); } if ( a1->m_colorSprite ) { GameManager::sharedState(); v163 = a1->m_objectID; v164 = GameManager::sharedState(); v165 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v164->m_detailFramesForAnimation, v163); v166 = cocos2d::CCArray::stringAtIndex(v165, v151); v285 = cocos2d::CCString::getCString(v166); if ( v285 ) { m_colorSprite = a1->m_colorSprite; v168 = m_colorSprite->setDisplayFrame; v169 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v170 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v169, v285); v168(m_colorSprite, v170); } switch ( a3 ) { case 8: v138 = "gj_drops05_2_color_008.png"; break; case 9: v138 = "gj_drops05_2_color_009.png"; break; case 10: v138 = "gj_drops05_2_color_010.png"; break; case 11: v138 = "gj_drops05_2_color_011.png"; break; case 12: v138 = "gj_drops05_2_color_012.png"; break; case 13: v138 = "gj_drops05_2_color_013.png"; break; case 14: v138 = "gj_drops05_2_color_014.png"; break; case 15: v138 = "gj_drops05_2_color_015.png"; break; case 16: v138 = "gj_drops05_2_color_016.png"; break; default: v138 = "gj_drops05_2_color_001.png"; break; } v145 = a1->m_colorSprite->getChildByTag(a1->m_colorSprite, 2); if ( v145 ) { LABEL_175: v146 = v145->__vftable[1].setSkewY; v147 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v148 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v147, v138); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))v146)(v145, v148); } } goto LABEL_57; } if ( m_objectID > 1855 ) { if ( m_objectID <= 2865 ) { if ( m_objectID < 2864 ) { if ( m_objectID > 2045 ) { if ( m_objectID < 2047 || m_objectID > 2050 && m_objectID != 2055 ) goto LABEL_105; } else if ( m_objectID < 2020 ) { if ( m_objectID == 1858 ) { switch ( v21 ) { case 1: v138 = "gj_drops06_3_001.png"; v139 = "gj_drops06_2_001.png"; v140 = "gj_drops06_001.png"; goto LABEL_172; case 2: v138 = "gj_drops06_3_002.png"; v139 = "gj_drops06_2_002.png"; v140 = "gj_drops06_002.png"; goto LABEL_172; case 3: v138 = "gj_drops06_3_003.png"; v139 = "gj_drops06_2_003.png"; v140 = "gj_drops06_003.png"; goto LABEL_172; case 4: v138 = "gj_drops06_3_004.png"; v139 = "gj_drops06_2_004.png"; v140 = "gj_drops06_004.png"; goto LABEL_172; case 5: v138 = "gj_drops06_3_005.png"; v139 = "gj_drops06_2_005.png"; v140 = "gj_drops06_005.png"; goto LABEL_172; case 6: v138 = "gj_drops06_3_006.png"; v139 = "gj_drops06_2_006.png"; v140 = "gj_drops06_006.png"; goto LABEL_172; case 7: v138 = "gj_drops06_3_007.png"; v139 = "gj_drops06_2_007.png"; v140 = "gj_drops06_007.png"; goto LABEL_172; case 8: v138 = "gj_drops06_3_008.png"; v139 = "gj_drops06_2_008.png"; v140 = "gj_drops06_008.png"; LABEL_172: v283 = v140; v141 = a1->setDisplayFrame; v142 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v143 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v142, v283); v141(a1, v143); v144 = a1->getChildByTag(a1, 2); if ( v144 ) { v267 = v144->__vftable[1].setSkewY; v268 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v269 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v268, v139); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))v267)(v144, v269); } v145 = a1->getChildByTag(a1, 3); if ( v145 ) goto LABEL_175; goto LABEL_57; default: goto LABEL_57; } } if ( m_objectID < 1858 || (unsigned int)(m_objectID - 1936) > 3 ) goto LABEL_105; } } } else if ( m_objectID <= 2893 ) { if ( m_objectID >= 2892 ) { if ( m_objectID == 2892 ) v189 = 0.025; else v189 = 0.033333; m_randomFrameTime = a1->m_randomFrameTime; if ( a1->m_animationShouldUseSpeed ) { m_animationSpeed = a1->m_animationSpeed; if ( m_animationSpeed != 0.0 ) m_randomFrameTime = fabsf(m_animationSpeed); } v192 = (int)vcvtms_s32_f32(v8 / (float)(v189 / m_randomFrameTime)) % 16; v193 = v192 + 1; if ( v7 ) v193 = 16 - v192; if ( a1->m_maybeAnimationVariableXInt != v193 ) { a1->m_maybeAnimationVariableXInt = v193; if ( m_objectID == 2892 ) v194 = 2; else v194 = 4; v195 = v193 % v194; GameManager::sharedState(); v196 = a1->m_objectID; v197 = GameManager::sharedState(); v198 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v197->m_mainFramesForAnimation, v196); v199 = cocos2d::CCArray::stringAtIndex(v198, v195); v287 = cocos2d::CCString::getCString(v199); GameManager::sharedState(); v200 = a1->m_objectID; v201 = GameManager::sharedState(); v202 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v201->m_detailFramesForAnimation, v200); v203 = cocos2d::CCArray::stringAtIndex(v202, v195); v204 = cocos2d::CCString::getCString(v203); v205 = a1->getChildByTag(a1, 1); v206 = a1->m_colorSprite->getChildren(a1->m_colorSprite); v207 = cocos2d::CCArray::objectAtIndex(v206, 0); v208 = v205->__vftable[1].setSkewY; v209 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v210 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v209, v287); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))v208)(v205, v210); v211 = *(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v207 + 1144LL); v212 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v213 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v212, v204); v211(v207, v213); v214 = (float)v193; if ( a1->m_objectID == 2892 ) v215 = (int)(float)(v214 * -22.5); else v215 = (int)(float)(floorf(v214 * 0.25) * -90.0); v216 = (float)v215; v205->setRotation(v205, (float)v215); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v207 + 344LL))(v207, v216); } goto LABEL_57; } if ( m_objectID < 2867 ) goto LABEL_105; } else if ( m_objectID != 2894 ) { if ( (unsigned int)(m_objectID - 3000) <= 2 ) { v37 = (cocos2d::CCSprite *)((__int64 (__fastcall *)(EnhancedGameObject *, __int64, long double))a1->getChildByTag)( a1, 1, *(long double *)&a2); if ( v37 ) { v38 = a1->m_objectID; if ( v38 == 3000 ) { switch ( v21 ) { case 4: LABEL_289: v39 = 2; v40 = 1; break; case 5: LABEL_288: v39 = 1; v40 = 1; break; case 9: v39 = 7; v40 = 1; break; case 10: v39 = 6; v40 = 1; break; default: LABEL_82: v39 = v21 - 1; v40 = 0; break; } } else if ( v38 < 3000 || v38 > 3002 ) { v39 = v21 - 1; v40 = 1; } else { switch ( v21 ) { case 7: v39 = 4; v40 = 1; break; case 8: v39 = 3; v40 = 1; break; case 9: goto LABEL_289; case 10: goto LABEL_288; default: goto LABEL_82; } } GameManager::sharedState(); v41 = a1->m_objectID; v42 = GameManager::sharedState(); v43 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v42->m_mainFramesForAnimation, v41); v44 = cocos2d::CCArray::stringAtIndex(v43, v39); v273 = cocos2d::CCString::getCString(v44); if ( v273 ) { v45 = v37->setDisplayFrame; v46 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v47 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v46, v273); v45(v37, v47); } cocos2d::CCSprite::setFlipX(v37, v40); v48 = a1->m_colorSprite; if ( v48 ) { v49 = (cocos2d::CCSprite *)v48->getChildByTag(v48, 1); if ( v49 ) { GameManager::sharedState(); v50 = a1->m_objectID; v51 = GameManager::sharedState(); v52 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v51->m_detailFramesForAnimation, v50); v53 = cocos2d::CCArray::stringAtIndex(v52, v39); v274 = cocos2d::CCString::getCString(v53); if ( v274 ) { v54 = v49->setDisplayFrame; v55 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v56 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v55, v274); v54(v49, v56); } cocos2d::CCSprite::setFlipX(v49, v40); } } } goto LABEL_57; } goto LABEL_105; } } else { if ( m_objectID == 1516 ) goto LABEL_228; if ( m_objectID > 1516 ) { if ( m_objectID == 1593 ) { m_unkAnimationInt = 1; v116 = 0; a1->m_unkAnimationInt = 1; } else { if ( m_objectID > 1593 ) { if ( m_objectID != 1697 ) { if ( m_objectID <= 1697 ) { if ( m_objectID == 1614 ) { v23 = v21 - 1; cocos2d::CCSize::CCSize(&v291); switch ( v23 ) { case 0: v239 = "smallCoin_01_001.png"; goto LABEL_250; case 1: v239 = "smallCoin_02_001.png"; goto LABEL_250; case 2: v239 = "smallCoin_03_001.png"; goto LABEL_250; case 3: v239 = "smallCoin_04_001.png"; LABEL_250: v240 = a1->getChildByTag(a1, 1); v241 = v240; if ( v240 ) { v242 = v240->__vftable[1].setSkewY; v243 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v244 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v243, v239); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))v242)(v241, v244); v245 = (__int64)v241->getContentSize(v241); cocos2d::CCSize::operator=(&v291, v245); } break; default: a1->getChildByTag(a1, 1); break; } v24 = a1->m_colorSprite; if ( v24 ) { switch ( v23 ) { case 0: v123 = "smallCoin_01_color_001.png"; goto LABEL_151; case 1: v123 = "smallCoin_02_color_001.png"; goto LABEL_151; case 2: v123 = "smallCoin_03_color_001.png"; goto LABEL_151; case 3: v123 = "smallCoin_04_color_001.png"; LABEL_151: v281 = v123; v124 = v24->setDisplayFrame; v125 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v126 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v125, v281); v124(v24, v126); v24 = a1->m_colorSprite; break; default: break; } setPosition = v24->setPosition; cocos2d::CCPoint::CCPoint(&v293, v291.width * 0.5, v291.height * 0.5); setPosition(v24, &v293); } v128 = a1->getChildByTag(a1, 2); v129 = v128; if ( v128 ) { switch ( v23 ) { case 0: v130 = "smallCoin_01_highlight_001.png"; goto LABEL_156; case 1: v130 = "smallCoin_02_highlight_001.png"; goto LABEL_156; case 2: v130 = "smallCoin_03_highlight_001.png"; goto LABEL_156; case 3: v130 = "smallCoin_04_highlight_001.png"; LABEL_156: v282 = v130; v131 = v128->__vftable[1].setSkewY; v132 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v133 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v132, v282); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))v131)(v129, v133); break; default: break; } v134 = a1->getContentSize(a1); cocos2d::CCSize::CCSize(&v292, v134); v135 = v129->setPosition; cocos2d::CCPoint::CCPoint(&v293, v292.width * 0.5, v292.height * 0.5); v135(v129, &v293); } LABEL_57: m_visible = a1->m_visible; a1->m_maybeAnimationVariableXInt = a3; if ( m_visible ) { if ( v12 ) { v136 = rand(); m_shouldNotHideAnimFreeze = a1->m_shouldNotHideAnimFreeze; a1->m_unk540 = v8; a1->m_animationStart = (float)((float)((float)v136 * 4.6566e-10) * 0.5) + 0.2; if ( !m_shouldNotHideAnimFreeze ) a1->m_isDisabled2 = 1; } else if ( !a1->m_shouldNotHideAnimFreeze ) { a1->m_isDisabled2 = 0; } } if ( a1->m_animateOnTrigger && a1->m_animationTriggered && m_frames == a1->m_maybeAnimationVariableXInt ) { EnhancedGameObject::waitForAnimationTrigger(a1); } return; } goto LABEL_105; } if ( (unsigned int)(m_objectID - 1839) <= 3 ) { v92 = a1->m_randomFrameTime; if ( a1->m_animationShouldUseSpeed ) { v93 = a1->m_animationSpeed; if ( v93 != 0.0 ) v92 = fabsf(v93); } v94 = (int)(float)(40.0 / v92); v95 = (int)vcvtms_s32_f32(v8 / (float)(0.02 / v92)) % v94 + 1; if ( v7 ) v95 = v94 - v95 + 1; if ( a1->m_maybeAnimationVariableXInt == v95 ) goto LABEL_57; if ( a1->m_animationStart == -1.0 ) { a1->m_maybeAnimationVariableXInt = v94; } else { a1->m_maybeAnimationVariableXInt = v95; if ( v95 != v94 ) { v96 = (float)((float)v95 * (float)(0.02 / v92)) / (float)((float)((float)v94 * (float)(0.02 / v92)) * 0.5); if ( v96 < 1.0 ) v97 = (float)((float)(v96 * 0.7) * v96) + 0.1; else v97 = (float)((float)((float)((float)((float)(v96 - 1.0) - 2.0) * (float)(v96 - 1.0)) + -1.0) * -0.7) + 0.1; if ( v95 < v94 / 3 ) v98 = 255.0; else v98 = (float)((v95 - v94 / 3) * (255 / (v94 / 3 - v94)) + 255); LABEL_125: m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; if ( data->num ) { arr = (char *)data->arr; v102 = 8LL * data->num - 8; v103 = &arr[v102]; if ( arr <= &arr[v102] ) { v104 = *(_QWORD *)arr; if ( *(_QWORD *)arr ) { v105 = (unsigned __int8)(int)(float)((float)((float)a1->_realOpacity / 255.0) * v98); do { arr += 8; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v104 + 160LL))(v104, v97); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v104 + 896LL))(v104, v105); if ( v103 < arr ) break; v104 = *(_QWORD *)arr; } while ( *(_QWORD *)arr ); } } } } goto LABEL_57; } } v98 = 0.0; v97 = 1.0; goto LABEL_125; } LABEL_105: GameManager::sharedState(); v74 = a1->m_objectID; v75 = GameManager::sharedState(); v76 = v21 - 1; v77 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v75->m_mainFramesForAnimation, v74); v78 = cocos2d::CCArray::stringAtIndex(v77, v76); v277 = cocos2d::CCString::getCString(v78); if ( v277 ) { v79 = a1->setDisplayFrame; v80 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v81 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v80, v277); v79(a1, v81); } if ( !a1->m_colorSprite ) goto LABEL_57; goto LABEL_108; } v217 = (float)rand() * 4.6566e-10; if ( v217 > 0.7 ) { LODWORD(v218) = 3; } else { if ( v217 <= 0.35 ) { m_maybeAnimationVariableYInt = a1->m_maybeAnimationVariableYInt; v219 = m_maybeAnimationVariableYInt == 1; if ( m_maybeAnimationVariableYInt == 1 ) LODWORD(v218) = 2; else LODWORD(v218) = 1; goto LABEL_223; } v218 = (char *)&dword_0 + 2; } if ( a1->m_maybeAnimationVariableYInt == (_DWORD)v218 ) { v219 = 0; LODWORD(v218) = 1; } else { v219 = (_DWORD)v218 - 1; } LABEL_223: a1->m_maybeAnimationVariableYInt = (int)v218; GameManager::sharedState(); v220 = a1->m_objectID; v221 = GameManager::sharedState(); v222 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v221->m_mainFramesForAnimation, v220); v223 = cocos2d::CCArray::stringAtIndex(v222, v219); v288 = cocos2d::CCString::getCString(v223); if ( v288 ) { v224 = a1->setDisplayFrame; v225 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v226 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v225, v288); v224(a1, v226); } if ( !a1->m_colorSprite ) goto LABEL_57; GameManager::sharedState(); v227 = a1->m_objectID; v228 = GameManager::sharedState(); v85 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v228->m_detailFramesForAnimation, v227); v86 = v219; goto LABEL_110; } if ( m_objectID != 1591 ) { if ( m_objectID > 1591 ) { GameManager::sharedState(); v57 = a1->m_objectID; v58 = GameManager::sharedState(); v59 = v21 - 1; v60 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v58->m_mainFramesForAnimation, v57); v61 = cocos2d::CCArray::stringAtIndex(v60, v21 - 1); v275 = cocos2d::CCString::getCString(v61); if ( v275 ) { v62 = a1->setDisplayFrame; v63 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v64 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v63, v275); v62(a1, v64); } v65 = a1->m_colorSprite; if ( v65 ) { v66 = (__int64)v65->getChildByTag(v65, 1); if ( v66 ) { if ( v21 > 1 ) v59 = 9 - v21; GameManager::sharedState(); v67 = a1->m_objectID; v68 = GameManager::sharedState(); v69 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v68->m_detailFramesForAnimation, v67); v70 = cocos2d::CCArray::stringAtIndex(v69, v59); v276 = cocos2d::CCString::getCString(v70); if ( v276 ) { v71 = *(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v66 + 1144LL); v72 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v73 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v72, v276); v71(v66, v73); } } } goto LABEL_57; } if ( m_objectID != 1518 ) goto LABEL_105; LABEL_228: GameManager::sharedState(); v229 = a1->m_objectID; v230 = GameManager::sharedState(); v76 = v21 - 1; v231 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v230->m_mainFramesForAnimation, v229); v232 = cocos2d::CCArray::stringAtIndex(v231, v76); v233 = cocos2d::CCString::getCString(v232); if ( v233 ) { v234 = a1->getChildByTag(a1, 1); v235 = v234; if ( v234 ) { v236 = v234->__vftable[1].setSkewY; v237 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v238 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v237, v233); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))v236)(v235, v238); } } if ( !a1->m_colorSprite ) goto LABEL_57; LABEL_108: GameManager::sharedState(); v82 = a1->m_objectID; m_detailFramesForAnimation = GameManager::sharedState()->m_detailFramesForAnimation; v84 = v82; LABEL_109: v85 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(m_detailFramesForAnimation, v84); v86 = v76; LABEL_110: v87 = cocos2d::CCArray::stringAtIndex(v85, v86); v278 = cocos2d::CCString::getCString(v87); if ( v278 ) { v88 = a1->m_colorSprite; v89 = v88->setDisplayFrame; v90 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v91 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v90, v278); v89(v88, v91); } goto LABEL_57; } m_unkAnimationInt = a1->m_unkAnimationInt; if ( !m_unkAnimationInt ) { v280 = a2; v114 = rand(); v115 = v280; if ( (float)((float)v114 * 4.6566e-10) <= 0.7 ) { v270 = rand(); v115 = v280; if ( (float)((float)v270 * 4.6566e-10) <= 0.7 ) { m_unkAnimationInt = 1; v116 = 0; a1->m_unkAnimationInt = 1; } else { m_unkAnimationInt = 3; v116 = 2; a1->m_unkAnimationInt = 3; } } else { m_unkAnimationInt = 2; v116 = 1; a1->m_unkAnimationInt = 2; } v8 = 0.0; m_maybeAnimationVariableXInt = -1; a1->m_maybeAnimationVariableXInt = -1; *(float *)&a1->m_animationRandomizedStartValue = -v115; goto LABEL_143; } v116 = m_unkAnimationInt - 1; if ( (unsigned int)(m_unkAnimationInt - 1) > 2 ) { m_maybeAnimationVariableXInt = a1->m_maybeAnimationVariableXInt; v119 = 1; v118 = 1.0; LABEL_144: v120 = floorf(v8 / v118); if ( v120 <= 0.0 ) { v122 = 1; v121 = 0; } else { v121 = (int)v120 % v119; v122 = v121 + 1; } if ( m_maybeAnimationVariableXInt != v122 ) { if ( m_maybeAnimationVariableXInt >= v119 && a1->m_objectID != 1593 ) { a1->m_unkAnimationInt = 0; return; } a1->m_maybeAnimationVariableXInt = v122; if ( m_unkAnimationInt == 2 ) { GameManager::sharedState(); m_mainFramesForAnimation = GameManager::sharedState()->m_mainFramesForAnimation; v247 = 2059; } else if ( m_unkAnimationInt == 3 ) { GameManager::sharedState(); m_mainFramesForAnimation = GameManager::sharedState()->m_mainFramesForAnimation; v247 = 2060; } else { GameManager::sharedState(); m_mainFramesForAnimation = GameManager::sharedState()->m_mainFramesForAnimation; v247 = 2058; } v248 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(m_mainFramesForAnimation, v247); v249 = cocos2d::CCArray::stringAtIndex(v248, v121); v289 = cocos2d::CCString::getCString(v249); if ( v289 ) { v250 = a1->setDisplayFrame; v251 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v252 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v251, v289); v250(a1, v252); } if ( a1->m_colorSprite ) { v253 = a1->m_unkAnimationInt; if ( v253 == 2 ) { GameManager::sharedState(); v254 = GameManager::sharedState()->m_detailFramesForAnimation; v255 = 2059; } else if ( v253 == 3 ) { GameManager::sharedState(); v254 = GameManager::sharedState()->m_detailFramesForAnimation; v255 = 2060; } else { GameManager::sharedState(); v254 = GameManager::sharedState()->m_detailFramesForAnimation; v255 = 2058; } v256 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v254, v255); v257 = cocos2d::CCArray::stringAtIndex(v256, v121); v258 = cocos2d::CCString::getCString(v257); v259 = a1->m_colorSprite; v290 = v258; v260 = v259->setDisplayFrame; v261 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v262 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v261, v290); v260(v259, v262); if ( a1->m_colorSpriteLocked ) { v263 = a1->getContentSize(a1); cocos2d::CCSize::CCSize(&v292, v263); v264 = a1->m_colorSprite; v265 = v264->setPosition; cocos2d::CCPoint::CCPoint(&v293, v292.width * 0.5, v292.height * 0.5); v265(v264, &v293); } } } goto LABEL_57; } } m_maybeAnimationVariableXInt = a1->m_maybeAnimationVariableXInt; LABEL_143: v118 = flt_F011B0[v116]; v119 = word_F011C0[v116]; goto LABEL_144; } if ( m_objectID > 924 ) { if ( m_objectID < 1050 ) goto LABEL_105; if ( m_objectID <= 1052 ) { v25 = (cocos2d::CCSprite *)((__int64 (__fastcall *)(EnhancedGameObject *, __int64, long double))a1->getChildByTag)( a1, 1, *(long double *)&a2); if ( v25 ) { v26 = a1->m_objectID; if ( v26 == 1050 ) { switch ( v21 ) { case 4: LABEL_284: v27 = 2; v28 = 1; break; case 5: LABEL_283: v27 = 1; v28 = 1; break; case 9: v27 = 7; v28 = 1; break; case 10: v27 = 6; v28 = 1; break; default: LABEL_53: v27 = v21 - 1; v28 = 0; break; } } else if ( v26 < 1050 || v26 > 1052 ) { v27 = v21 - 1; v28 = 1; } else { switch ( v21 ) { case 7: v27 = 4; v28 = 1; break; case 8: v27 = 3; v28 = 1; break; case 9: goto LABEL_284; case 10: goto LABEL_283; default: goto LABEL_53; } } GameManager::sharedState(); v29 = a1->m_objectID; v30 = GameManager::sharedState(); v31 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v30->m_mainFramesForAnimation, v29); v32 = cocos2d::CCArray::stringAtIndex(v31, v27); v272 = cocos2d::CCString::getCString(v32); if ( v272 ) { v33 = v25->setDisplayFrame; v34 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v35 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v34, v272); v33(v25, v35); } cocos2d::CCSprite::setFlipX(v25, v28); } goto LABEL_57; } if ( m_objectID != 1329 ) goto LABEL_105; LABEL_135: v76 = v21 - 1; v106 = (-a1->m_hasUniqueCoin ^ m_objectID) + a1->m_hasUniqueCoin; GameManager::sharedState(); v107 = GameManager::sharedState(); v108 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v107->m_mainFramesForAnimation, v106); v109 = cocos2d::CCArray::stringAtIndex(v108, v76); v279 = cocos2d::CCString::getCString(v109); if ( v279 ) { v110 = a1->setDisplayFrame; v111 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v112 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v111, v279); v110(a1, v112); } if ( !a1->m_colorSprite ) goto LABEL_57; GameManager::sharedState(); m_detailFramesForAnimation = GameManager::sharedState()->m_detailFramesForAnimation; v84 = v106; goto LABEL_109; } if ( m_objectID < 923 ) { if ( m_objectID == 142 ) goto LABEL_135; if ( m_objectID < 142 || (unsigned int)(m_objectID - 920) > 1 ) goto LABEL_105; } } GameManager::sharedState(); v171 = a1->m_objectID; v172 = GameManager::sharedState(); v173 = v21 - 1; v174 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v172->m_mainFramesForAnimation, v171); v175 = cocos2d::CCArray::stringAtIndex(v174, v173); v286 = cocos2d::CCString::getCString(v175); if ( v286 ) { v176 = a1->setDisplayFrame; v177 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v178 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v177, v286); v176(a1, v178); } if ( a1->m_colorSprite ) { GameManager::sharedState(); v179 = a1->m_objectID; v180 = GameManager::sharedState(); v181 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v180->m_detailFramesForAnimation, v179); v182 = cocos2d::CCArray::stringAtIndex(v181, v173); v183 = cocos2d::CCString::getCString(v182); if ( v183 ) { v184 = a1->m_colorSprite->getChildren(a1->m_colorSprite); v185 = cocos2d::CCArray::objectAtIndex(v184, 0); v186 = *(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v185 + 1144LL); v187 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v188 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v187, v183); v186(v185, v188); } } goto LABEL_57; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source