// // GJBaseGameLayer::updateGradientLayers from 0x85db0c to 0x85ef54 (5192 bytes) // // 8 xrefs: // > PlayLayer::resetLevel @ 0x5e5654 // > PlayLayer::resetLevel @ 0x5e5a8c // > LevelEditorLayer::updateArt @ 0x65cf8c // > LevelEditorLayer::onPlaytest @ 0x664444 // > LevelEditorLayer::updateEditor @ 0x67c000 // > GJBaseGameLayer::update @ 0x89d8d0 // > GJBaseGameLayer::update @ 0x89e50c // > @ 0x65e08 // // 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 // void GJBaseGameLayer::updateGradientLayers(GJBaseGameLayer *a1) { cocos2d::CCDirector *v2; // x0 float v3; // s8 const cocos2d::CCPoint *v4; // x0 float v5; // s8 cocos2d::CCDictionary *m_gradientLayers; // x0 cocos2d::CCDictElement *m_pElements; // x22 cocos2d::CCDictElement *i; // x24 cocos2d::CCObject *m_pObject; // x19 __int64 v10; // x20 float v11; // s8 int v12; // w0 int v13; // w22 int m_uID; // w1 GLubyte v15; // w3 GJEffectManager *m_effectManager; // x0 GJSpriteColor *MainColor; // x23 GJSpriteColor *SecondaryColor; // x28 float v19; // s9 float v20; // s8 float v21; // s10 float v22; // s13 float v23; // s0 float v24; // s0 float v25; // s1 GameObject *v26; // x23 GameObject *v27; // x22 __int64 v28; // x0 float v29; // s0 float v30; // s1 float v31; // s0 float v32; // s1 _BOOL4 v33; // w0 int m_uUnknown; // w1 ShaderLayer *m_shaderLayer; // x0 int m_minBlendingLayer; // w2 GJShaderState *p_m_state; // x0 int m_unknown2; // w1 float v39; // s0 float v40; // s1 float v41; // s0 float v42; // s1 float v43; // s0 float v44; // s1 float v45; // s0 float v46; // s1 float v47; // s0 float v48; // s1 float v49; // s0 float v50; // s1 float v51; // s0 float v52; // s1 float v53; // s0 float v54; // s1 float x; // s3 float v56; // s4 float v57; // s4 float v58; // s4 float y; // s7 float v60; // s10 float v61; // s10 float v62; // s10 float v63; // s0 float v64; // s1 float v65; // s0 const cocos2d::CCPoint *v66; // x0 float v67; // s0 const cocos2d::CCPoint *v68; // x0 float v69; // s0 float v70; // s1 float v71; // s0 float v72; // s1 float v73; // s0 float v74; // s1 float v75; // s0 float v76; // s1 float v77; // s0 float v78; // s1 float v79; // s0 float v80; // s1 float v81; // s0 float v82; // s1 float v83; // s0 const cocos2d::CCPoint *v84; // x0 float v85; // s0 const cocos2d::CCPoint *v86; // x0 float v87; // s0 const cocos2d::CCPoint *v88; // x0 float v89; // s0 const cocos2d::CCPoint *v90; // x0 float v91; // s0 float v92; // s1 float v93; // s3 float v94; // s4 float v95; // s4 float v96; // s7 float v97; // s10 float v98; // s10 float v99; // s3 float v100; // s0 float v101; // s0 float v102; // s10 float v103; // s10 float v104; // s10 float v105; // s3 float v106; // s0 float v107; // s0 float v108; // s8 float v109; // s0 float v110; // s1 float v111; // s0 float v112; // s1 GameObject *v113; // [xsp+F8h] [xbp+F8h] GameObject *MainObject; // [xsp+100h] [xbp+100h] cocos2d::CCPoint *getTag; // [xsp+118h] [xbp+118h] cocos2d::ccColor3B v116; // [xsp+130h] [xbp+130h] BYREF cocos2d::ccColor3B v117; // [xsp+138h] [xbp+138h] BYREF float v118; // [xsp+140h] [xbp+140h] float v119; // [xsp+144h] [xbp+144h] __int64 v120; // [xsp+148h] [xbp+148h] BYREF __int64 v121; // [xsp+150h] [xbp+150h] BYREF cocos2d::CCSize v122; // [xsp+158h] [xbp+158h] BYREF __int64 v123; // [xsp+160h] [xbp+160h] BYREF __int64 v124; // [xsp+168h] [xbp+168h] BYREF __int64 v125; // [xsp+170h] [xbp+170h] BYREF cocos2d::CCPoint v126; // [xsp+178h] [xbp+178h] BYREF cocos2d::CCPoint v127; // [xsp+180h] [xbp+180h] BYREF cocos2d::CCPoint v128; // [xsp+188h] [xbp+188h] BYREF cocos2d::CCPoint v129; // [xsp+190h] [xbp+190h] BYREF cocos2d::CCPoint v130; // [xsp+198h] [xbp+198h] BYREF cocos2d::CCPoint v131; // [xsp+1A0h] [xbp+1A0h] BYREF cocos2d::CCPoint v132; // [xsp+1A8h] [xbp+1A8h] BYREF cocos2d::CCPoint v133; // [xsp+1B0h] [xbp+1B0h] BYREF cocos2d::CCPoint v134; // [xsp+1B8h] [xbp+1B8h] BYREF __int64 v135; // [xsp+1C0h] [xbp+1C0h] BYREF __int64 v136; // [xsp+1C8h] [xbp+1C8h] BYREF cocos2d::CCPoint v137; // [xsp+1D0h] [xbp+1D0h] BYREF cocos2d::CCPoint v138; // [xsp+1D8h] [xbp+1D8h] BYREF cocos2d::CCPoint v139; // [xsp+1E0h] [xbp+1E0h] BYREF cocos2d::CCPoint v140; // [xsp+1E8h] [xbp+1E8h] BYREF cocos2d::CCPoint v141; // [xsp+1F0h] [xbp+1F0h] BYREF cocos2d::CCSize WinSize; // 0:kr00_8.8 cocos2d::CCPoint v143; // 0:s0.4,4:s1.4 cocos2d::CCPoint v144; // 0:s0.4,4:s1.4 cocos2d::CCPoint v145; // 0:s0.4,4:s1.4 cocos2d::CCPoint v146; // 0:s2.4,4:s3.4 cocos2d::CCPoint v147; // 0:s2.4,4:s3.4 cocos2d::CCPoint v148; // 0:s2.4,4:s3.4 cocos2d::CCPoint v149; // 0:s4.4,4:s5.4 cocos2d::CCPoint v150; // 0:s4.4,4:s5.4 cocos2d::CCPoint v151; // 0:s4.4,4:s5.4 v2 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v2); v3 = 1.0 / ((float (__fastcall *)(cocos2d::CCLayer *, float, float))a1->m_objectLayer->getScale)( a1->m_objectLayer, WinSize.width, WinSize.height); v4 = a1->m_objectLayer->getPosition(a1->m_objectLayer); cocos2d::CCPoint::operator*(v4, v3); cocos2d::CCPoint::operator-(&v120, &v141); cocos2d::CCPoint::CCPoint(&v140, v118, v119); cocos2d::CCPoint::operator*(&v140, v3); cocos2d::CCPoint::operator+(&v121, &v120, &v141); cocos2d::CCPoint::CCPoint(&v140, v118, v119); cocos2d::CCPoint::operator*(&v140, v3); cocos2d::CCSize::CCSize(&v122, &v141); cocos2d::CCPoint::CCPoint(&v140, &v122); cocos2d::CCPoint::operator*(&v140, 0.5); cocos2d::CCPoint::operator+(&v123, &v120, &v141); v5 = sqrtf((float)(v122.height * v122.height) + (float)(v122.width * v122.width)) * 0.5; cocos2d::CCPoint::CCPoint(&v141, v5, v5); cocos2d::CCPoint::operator-(&v124, &v123, &v141); cocos2d::CCPoint::CCPoint(&v141, v5, v5); cocos2d::CCPoint::operator+(&v125, &v123, &v141); cocos2d::CCPoint::CCPoint(&v126, &stru_1242DA8); cocos2d::CCPoint::CCPoint(&v127, v118, v119); if ( a1->m_gameState.m_cameraAngle != 0.0 ) { v108 = sqrtf((float)(v119 * v119) + (float)(v118 * v118)) * 0.5; cocos2d::CCPoint::CCPoint(&v141, -(float)(v108 - (float)(v118 * 0.5)), -(float)(v108 - (float)(v119 * 0.5))); cocos2d::CCPoint::operator=(&v126, v109, v110); cocos2d::CCPoint::CCPoint(&v141, v108 + (float)(v118 * 0.5), v108 + (float)(v119 * 0.5)); cocos2d::CCPoint::operator=(&v127, v111, v112); } *(float *)&v120 = *(float *)&v120 - 20.0; *((float *)&v120 + 1) = *((float *)&v120 + 1) - 20.0; *(float *)&v121 = *(float *)&v121 + 20.0; *((float *)&v121 + 1) = *((float *)&v121 + 1) + 20.0; cocos2d::CCPoint::CCPoint(&v128, -20.0, -20.0); cocos2d::CCPoint::CCPoint(&v129, v118 + 20.0, v119 + 20.0); a1->m_activeGradients = 0; m_gradientLayers = a1->m_gradientLayers; if ( m_gradientLayers ) { m_pElements = m_gradientLayers->m_pElements; if ( m_pElements ) { for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next ) { m_pObject = m_pElements->m_pObject; if ( !((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].~CCObject_0)(m_pObject) ) goto LABEL_10; v10 = *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount; if ( !v10 ) goto LABEL_10; if ( *(_DWORD *)(v10 + 1828) != m_pObject[10].m_nZOrder ) { m_pObject->__vftable[6].acceptVisitor(m_pObject, nullptr); *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount = 0; LOBYTE(m_pObject[10].m_uIndexInArray) = 0; LABEL_10: if ( !i ) return; goto LABEL_11; } v11 = a1->opacityForObject(a1, *(GameObject **)&m_pObject[10].m_uAutoReleaseCount); if ( a1->m_isEditor && a1->m_playbackMode != Playing ) v11 = v11 * *(float *)(v10 + 1852); *(cocos2d::ccColor3B *)&v12 = GJEffectManager::activeColorForIndex( a1->m_effectManager, HIDWORD(m_pObject[10].__vftable)); v13 = v12; m_uID = m_pObject[10].m_uID; v15 = BYTE1(v12); m_effectManager = a1->m_effectManager; v116.g = v15; v116.b = BYTE2(v13); v116.r = v13; v117 = GJEffectManager::activeColorForIndex(m_effectManager, m_uID); MainColor = GameObject::getMainColor((GameObject *)v10); if ( MainColor && (*(float *)&dword_1242DB0 != MainColor->m_hsv.h || *(float *)&dword_1242DB4 != MainColor->m_hsv.s || *(float *)&dword_1242DB8 != MainColor->m_hsv.v || *(unsigned __int16 *)&MainColor->m_hsv.absoluteSaturation != (unsigned __int16)word_1242DBC) ) { v116 = (cocos2d::ccColor3B)GameToolbox::transformColor( &v116.r, *(_QWORD *)&MainColor->m_hsv.h, *(_QWORD *)&MainColor->m_hsv.v); } SecondaryColor = GameObject::getSecondaryColor((GameObject *)v10); if ( SecondaryColor && (SecondaryColor->m_hsv.h != *(float *)&dword_1242DB0 || SecondaryColor->m_hsv.s != *(float *)&dword_1242DB4 || SecondaryColor->m_hsv.v != *(float *)&dword_1242DB8 || *(unsigned __int16 *)&SecondaryColor->m_hsv.absoluteSaturation != (unsigned __int16)word_1242DBC) ) { v117 = (cocos2d::ccColor3B)GameToolbox::transformColor( &v117.r, *(_QWORD *)&SecondaryColor->m_hsv.h, *(_QWORD *)&SecondaryColor->m_hsv.v); } v19 = (float)(GJEffectManager::activeOpacityForIndex(a1->m_effectManager, HIDWORD(m_pObject[10].__vftable)) * 255.0) * v11; v20 = (float)(GJEffectManager::activeOpacityForIndex(a1->m_effectManager, m_pObject[10].m_uID) * 255.0) * v11; if ( (v20 != 0.0 || v19 != 0.0) && (m_pObject[10].m_uUnknown != 1 || v116.r || v116.g || v116.b || v117.r || v117.g || v117.b) ) { break; } LABEL_26: ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[4].~CCObject)(m_pObject, 0); if ( !i ) return; LABEL_11: m_pElements = i; } v21 = (float)-(*(float (__fastcall **)(__int64))(*(_QWORD *)v10 + 352LL))(v10) * 0.017453; v22 = cosf(v21); v23 = sinf(v21); cocos2d::CCPoint::CCPoint(&v130, v22, v23); cocos2d::CCPoint::operator=(&m_pObject[10].m_nLuaID, v24, v25); MainObject = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v10 + 1832)); v113 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v10 + 1836)); v26 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v10 + 1840)); v27 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v10 + 1844)); if ( !*(_BYTE *)(v10 + 1848) ) { cocos2d::CCPoint::CCPoint(&v139, &stru_1242DA8); cocos2d::CCPoint::CCPoint(&v140, &stru_1242DA8); cocos2d::CCPoint::CCPoint(&v141, &stru_1242DA8); cocos2d::CCLayerColor::setVertices((cocos2d::CCLayerColor *)m_pObject, v143, v146, v149); getTag = (cocos2d::CCPoint *)m_pObject->__vftable[3].getTag; v28 = ((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[3].setTag)(m_pObject); ((void (__fastcall *)(cocos2d::CCObject *, __int64))getTag)(m_pObject, v28); cocos2d::CCPoint::CCPoint(&v137); cocos2d::CCPoint::CCPoint(&v138); if ( LOBYTE(m_pObject[10].m_uIndexInArray) ) { cocos2d::CCPoint::operator=(&v137, v29, v30); cocos2d::CCPoint::operator=(&v138, v31, v32); if ( v113 ) { v113->getRealPosition((GameObject *)&v141); v137.y = v141.y; } if ( v26 ) { ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))v26->getRealPosition)(&v141, v26); v137.x = v141.x; } if ( MainObject ) { MainObject->getRealPosition((GameObject *)&v141); v138.y = v141.y; } if ( v27 ) { ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))v27->getRealPosition)(&v141, v27); v138.x = v141.x; } m_pObject->__vftable[2].isEqual(m_pObject, (const cocos2d::CCObject *)&v137); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].encodeWithCoder)( m_pObject, (float)(v138.x - v137.x) / v118); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].getTag)( m_pObject, (float)(v138.y - v137.y) / v119); if ( v137.x > *(float *)&v125 || v137.y > *((float *)&v125 + 1) || v138.x < *(float *)&v124 ) goto LABEL_26; v33 = v138.y < *((float *)&v124 + 1); } else { cocos2d::CCPoint::operator=(&v137, v29, v30); cocos2d::CCPoint::operator=(&v138, v63, v64); if ( v113 ) { v113->getRealPosition((GameObject *)&v141); v137.y = v141.y; } if ( v26 ) { ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))v26->getRealPosition)(&v141, v26); v137.x = v141.x; } if ( MainObject ) { MainObject->getRealPosition((GameObject *)&v141); v138.y = v141.y; } if ( v27 ) { ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))v27->getRealPosition)(&v141, v27); v138.x = v141.x; } v65 = a1->m_objectLayer->getScale(a1->m_objectLayer); cocos2d::CCPoint::operator*(&v137, v65); v66 = a1->m_objectLayer->getPosition(a1->m_objectLayer); cocos2d::CCPoint::operator+(&v139, &v141, v66); v67 = a1->m_objectLayer->getScale(a1->m_objectLayer); cocos2d::CCPoint::operator*(&v138, v67); v68 = a1->m_objectLayer->getPosition(a1->m_objectLayer); cocos2d::CCPoint::operator+(&v140, &v141, v68); if ( v113 ) v137.y = v139.y; if ( v26 ) v137.x = v139.x; if ( MainObject ) v138.y = v140.y; if ( v27 ) v138.x = v140.x; m_pObject->__vftable[2].isEqual(m_pObject, (const cocos2d::CCObject *)&v137); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].encodeWithCoder)( m_pObject, (float)(v138.x - v137.x) / v118); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].getTag)( m_pObject, (float)(v138.y - v137.y) / v119); if ( v137.x > v118 || v137.y > v119 || v138.x < 0.0 ) goto LABEL_26; v33 = v138.y < 0.0; } goto LABEL_43; } cocos2d::CCPoint::CCPoint(&v131); cocos2d::CCPoint::CCPoint(&v132); cocos2d::CCPoint::CCPoint(&v133); cocos2d::CCPoint::CCPoint(&v134); if ( LOBYTE(m_pObject[10].m_uIndexInArray) ) { cocos2d::CCPoint::operator=(&v131, v39, v40); cocos2d::CCPoint::operator=(&v132, v41, v42); cocos2d::CCPoint::CCPoint(&v141, v131.x, v132.y); cocos2d::CCPoint::operator=(&v133, v43, v44); cocos2d::CCPoint::CCPoint(&v141, v132.x, v131.y); cocos2d::CCPoint::operator=(&v134, v45, v46); if ( MainObject ) { MainObject->getRealPosition((GameObject *)&v141); cocos2d::CCPoint::operator=(&v131, v47, v48); } if ( v113 ) { v113->getRealPosition((GameObject *)&v141); cocos2d::CCPoint::operator=(&v134, v49, v50); } if ( v26 ) { ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))v26->getRealPosition)(&v141, v26); cocos2d::CCPoint::operator=(&v133, v51, v52); } if ( v27 ) { ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))v27->getRealPosition)(&v141, v27); cocos2d::CCPoint::operator=(&v132, v53, v54); } ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[2].copyWithZone)(m_pObject, 1.0); m_pObject->__vftable[2].isEqual(m_pObject, (const cocos2d::CCObject *)&v131); cocos2d::CCPoint::operator-(&v139, &v134, &v131); cocos2d::CCPoint::operator-(&v140, &v133, &v131); cocos2d::CCPoint::operator-(&v141, &v132, &v131); cocos2d::CCLayerColor::setVertices((cocos2d::CCLayerColor *)m_pObject, v144, v147, v150); x = v131.x; if ( v133.x <= v132.x ) { if ( v134.x > v133.x ) { v58 = v133.x; if ( v133.x > v132.x ) { LABEL_67: if ( v131.x > v132.x ) { v56 = v132.x; goto LABEL_69; } goto LABEL_75; } LABEL_74: if ( v58 < v131.x ) { v56 = v132.x; if ( v133.x <= v132.x ) { if ( v133.x < v134.x ) { LABEL_70: v57 = v132.x; if ( v133.x <= v132.x ) v57 = v133.x; LABEL_76: if ( v57 > *(float *)&v125 ) goto LABEL_26; y = v131.y; if ( v133.y <= v132.y ) { if ( v134.y <= v133.y ) goto LABEL_79; v60 = v133.y; if ( v133.y <= v132.y ) { LABEL_80: if ( v60 < v131.y ) { v61 = v132.y; if ( v133.y <= v132.y ) v61 = v133.y; goto LABEL_83; } goto LABEL_186; } } else if ( v134.y <= v132.y ) { LABEL_79: v60 = v134.y; goto LABEL_80; } if ( v131.y > v132.y ) { v61 = v132.y; LABEL_83: if ( v61 >= v134.y ) { v62 = v134.y; } else { v62 = v132.y; if ( v133.y <= v132.y ) v62 = v133.y; } LABEL_187: if ( v62 > *((float *)&v125 + 1) ) goto LABEL_26; if ( v133.x >= v132.x ) { if ( v134.x >= v133.x ) goto LABEL_190; v104 = v133.x; if ( v133.x >= v132.x ) goto LABEL_191; } else if ( v134.x >= v132.x ) { LABEL_190: v104 = v134.x; LABEL_191: if ( v104 <= v131.x ) goto LABEL_197; v105 = v132.x; if ( v133.x >= v132.x ) v105 = v133.x; goto LABEL_194; } if ( v131.x >= v132.x ) goto LABEL_197; v105 = v132.x; LABEL_194: if ( v105 <= v134.x ) { x = v134.x; } else { x = v132.x; if ( v133.x >= v132.x ) x = v133.x; } LABEL_197: if ( x < *(float *)&v124 ) goto LABEL_26; if ( v133.y >= v132.y ) { if ( v134.y >= v133.y ) goto LABEL_200; v106 = v133.y; if ( v133.y >= v132.y ) { LABEL_201: if ( v106 > v131.y ) { v107 = v132.y; if ( v133.y >= v132.y ) v107 = v133.y; goto LABEL_204; } goto LABEL_207; } } else if ( v134.y >= v132.y ) { LABEL_200: v106 = v134.y; goto LABEL_201; } if ( v131.y < v132.y ) { v107 = v132.y; LABEL_204: y = v134.y; if ( v107 > v134.y ) { y = v132.y; if ( v133.y >= v132.y ) y = v133.y; } } LABEL_207: v33 = y < *((float *)&v124 + 1); goto LABEL_43; } LABEL_186: v62 = v131.y; goto LABEL_187; } LABEL_208: v57 = v134.x; goto LABEL_76; } LABEL_69: if ( v56 < v134.x ) goto LABEL_70; goto LABEL_208; } LABEL_75: v57 = v131.x; goto LABEL_76; } } else if ( v134.x > v132.x ) { goto LABEL_67; } v58 = v134.x; goto LABEL_74; } cocos2d::CCPoint::operator=(&v131, v39, v40); cocos2d::CCPoint::operator=(&v132, v69, v70); cocos2d::CCPoint::CCPoint(&v141, v131.x, v132.y); cocos2d::CCPoint::operator=(&v133, v71, v72); cocos2d::CCPoint::CCPoint(&v141, v132.x, v131.y); cocos2d::CCPoint::operator=(&v134, v73, v74); if ( MainObject ) { MainObject->getRealPosition((GameObject *)&v141); cocos2d::CCPoint::operator=(&v131, v75, v76); } if ( v113 ) { v113->getRealPosition((GameObject *)&v141); cocos2d::CCPoint::operator=(&v134, v77, v78); } if ( v26 ) { ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))v26->getRealPosition)(&v141, v26); cocos2d::CCPoint::operator=(&v133, v79, v80); } if ( v27 ) { ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))v27->getRealPosition)(&v141, v27); cocos2d::CCPoint::operator=(&v132, v81, v82); } v83 = a1->m_objectLayer->getScale(a1->m_objectLayer); cocos2d::CCPoint::operator*(&v131, v83); v84 = a1->m_objectLayer->getPosition(a1->m_objectLayer); cocos2d::CCPoint::operator+(&v135, &v141, v84); v85 = a1->m_objectLayer->getScale(a1->m_objectLayer); cocos2d::CCPoint::operator*(&v134, v85); v86 = a1->m_objectLayer->getPosition(a1->m_objectLayer); cocos2d::CCPoint::operator+(&v136, &v141, v86); v87 = a1->m_objectLayer->getScale(a1->m_objectLayer); cocos2d::CCPoint::operator*(&v132, v87); v88 = a1->m_objectLayer->getPosition(a1->m_objectLayer); cocos2d::CCPoint::operator+(&v137, &v141, v88); v89 = a1->m_objectLayer->getScale(a1->m_objectLayer); cocos2d::CCPoint::operator*(&v133, v89); v90 = a1->m_objectLayer->getPosition(a1->m_objectLayer); cocos2d::CCPoint::operator+(&v138, &v141, v90); if ( MainObject ) cocos2d::CCPoint::operator=(&v131, v91, v92); if ( v113 ) cocos2d::CCPoint::operator=(&v134, v91, v92); if ( v26 ) cocos2d::CCPoint::operator=(&v133, v91, v92); if ( v27 ) cocos2d::CCPoint::operator=(&v132, v91, v92); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[2].copyWithZone)(m_pObject, 1.0); m_pObject->__vftable[2].isEqual(m_pObject, (const cocos2d::CCObject *)&v131); cocos2d::CCPoint::operator-(&v139, &v134, &v131); cocos2d::CCPoint::operator-(&v140, &v133, &v131); cocos2d::CCPoint::operator-(&v141, &v132, &v131); cocos2d::CCLayerColor::setVertices((cocos2d::CCLayerColor *)m_pObject, v145, v148, v151); v93 = v131.x; if ( v133.x <= v132.x ) { if ( v134.x > v133.x ) { if ( v133.x > v132.x ) { LABEL_131: if ( v131.x > v132.x ) { v94 = v132.x; goto LABEL_133; } LABEL_138: v95 = v131.x; goto LABEL_139; } if ( v133.x >= v131.x ) goto LABEL_138; LABEL_167: v94 = v132.x; if ( v133.x <= v132.x ) { if ( v133.x < v134.x ) { LABEL_134: v95 = v132.x; if ( v133.x <= v132.x ) v95 = v133.x; LABEL_139: if ( v95 > v127.x ) goto LABEL_26; v96 = v131.y; if ( v133.y <= v132.y ) { if ( v134.y > v133.y ) { v102 = v133.y; if ( v133.y > v132.y ) goto LABEL_142; LABEL_177: if ( v102 >= v131.y ) goto LABEL_143; v103 = v132.y; if ( v133.y <= v132.y ) v103 = v133.y; goto LABEL_180; } } else if ( v134.y > v132.y ) { LABEL_142: if ( v131.y <= v132.y ) { LABEL_143: v97 = v131.y; goto LABEL_144; } v103 = v132.y; LABEL_180: if ( v103 >= v134.y ) { v97 = v134.y; } else { v97 = v132.y; if ( v133.y <= v132.y ) v97 = v133.y; } LABEL_144: if ( v97 > v127.y ) goto LABEL_26; if ( v133.x >= v132.x ) { if ( v134.x >= v133.x ) goto LABEL_147; v98 = v133.x; if ( v133.x >= v132.x ) goto LABEL_148; } else if ( v134.x >= v132.x ) { LABEL_147: v98 = v134.x; LABEL_148: if ( v98 <= v131.x ) goto LABEL_154; v99 = v132.x; if ( v133.x >= v132.x ) v99 = v133.x; goto LABEL_151; } if ( v131.x >= v132.x ) goto LABEL_154; v99 = v132.x; LABEL_151: if ( v99 <= v134.x ) { v93 = v134.x; } else { v93 = v132.x; if ( v133.x >= v132.x ) v93 = v133.x; } LABEL_154: if ( v93 < v126.x ) goto LABEL_26; if ( v133.y >= v132.y ) { if ( v134.y >= v133.y ) goto LABEL_157; v100 = v133.y; if ( v133.y >= v132.y ) { LABEL_158: if ( v100 > v131.y ) { v101 = v132.y; if ( v133.y >= v132.y ) v101 = v133.y; goto LABEL_161; } goto LABEL_164; } } else if ( v134.y >= v132.y ) { LABEL_157: v100 = v134.y; goto LABEL_158; } if ( v131.y < v132.y ) { v101 = v132.y; LABEL_161: v96 = v134.y; if ( v101 > v134.y ) { v96 = v132.y; if ( v133.y >= v132.y ) v96 = v133.y; } } LABEL_164: v33 = v96 < v126.y; LABEL_43: if ( !v33 ) { cocos2d::CCLayerGradient::setValues( (cocos2d::CCLayerGradient *)m_pObject, &v116, (unsigned int)v19, &v117, (unsigned int)v20, (const cocos2d::CCPoint *)&m_pObject[10].m_nLuaID); ((void (__fastcall *)(cocos2d::CCObject *, __int64))m_pObject->__vftable[4].~CCObject)(m_pObject, 1); m_uUnknown = m_pObject[10].m_uUnknown; ++a1->m_activeGradients; if ( m_uUnknown != 3 ) goto LABEL_10; if ( !((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].~CCObject_0)(m_pObject) ) goto LABEL_10; m_shaderLayer = a1->m_shaderLayer; if ( !m_shaderLayer ) goto LABEL_10; if ( !m_shaderLayer->m_state.m_usesShaders ) goto LABEL_10; m_minBlendingLayer = m_shaderLayer->m_state.m_minBlendingLayer; p_m_state = &m_shaderLayer->m_state; m_unknown2 = m_pObject[10].m_unknown2; if ( m_minBlendingLayer > m_unknown2 || m_unknown2 > p_m_state->m_maxBlendingLayer || m_unknown2 > 14 ) goto LABEL_10; } goto LABEL_26; } v102 = v134.y; goto LABEL_177; } LABEL_209: v95 = v134.x; goto LABEL_139; } LABEL_133: if ( v94 < v134.x ) goto LABEL_134; goto LABEL_209; } } else if ( v134.x > v132.x ) { goto LABEL_131; } if ( v134.x >= v131.x ) goto LABEL_138; goto LABEL_167; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source