// // GJBaseGameLayer::updateGradientLayers from 0x14021fbe0 to 0x140220f9c (5052 bytes) // // 7 xrefs: // > GJBaseGameLayer::update @ 0x140238fe1 // > GJBaseGameLayer::update @ 0x1402392a9 // > LevelEditorLayer::updateEditor @ 0x1402d8c97 // > LevelEditorLayer::onPlaytest @ 0x1402e0531 // > PlayLayer::resetLevel @ 0x1403b97de // > @ 0x14067fc4c // > @ 0x1406cd494 // // 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) { GJBaseGameLayer *v1; // rdi cocos2d::CCDirector *v2; // rax __int64 v3; // rax double v4; // xmm0_8 __int64 v5; // rax double v6; // xmm0_8 __int64 v7; // rax float v8; // xmm1_4 float v9; // xmm0_4 double v10; // xmm0_8 float v11; // xmm6_4 __int64 v12; // rax double v13; // xmm0_8 double v14; // xmm0_8 float v15; // xmm1_4 float v16; // xmm0_4 float v17; // xmm8_4 float v18; // xmm8_4 __int64 v19; // rax double v20; // xmm0_8 __int64 v21; // rax double v22; // xmm0_8 cocos2d::CCDictionary *m_gradientLayers; // rsi cocos2d::CCDictElement *m_pElements; // rsi cocos2d::CCDictElement *i; // rax cocos2d::CCObject *m_pObject; // rsi __int64 v27; // rbx double v28; // xmm0_8 float v29; // xmm6_4 int m_uID; // edx ColorActionSprite *ColorSprite; // rax int m_nLuaID; // r11d ColorActionSprite *v33; // rax __int64 v34; // rcx __int64 v35; // rcx ColorActionSprite *v36; // rax float v37; // xmm9_4 float v38; // xmm9_4 ColorActionSprite *v39; // rax float v40; // xmm8_4 float v41; // xmm8_4 double v42; // xmm0_8 float v43; // xmm7_4 GameObject *MainObject; // r13 GameObject *v45; // r12 GameObject *v46; // r14 GameObject *v47; // r15 struct cocos2d::CCPoint v48; // rax struct cocos2d::CCPoint v49; // rdi struct cocos2d::CCPoint v50; // rax struct cocos2d::CCPoint v51; // rbx struct cocos2d::CCPoint v52; // rax cocos2d::CCObject_vtbl *v53; // rbx __int64 v54; // rax bool v55; // cc double v56; // xmm0_8 __int64 v57; // rax double v58; // xmm0_8 __int64 v59; // rax __int64 v60; // rax __int64 v61; // rax __int64 v62; // rax __int64 v63; // rax float v64; // xmm0_4 float v65; // xmm1_4 float v66; // xmm6_4 float v67; // xmm0_4 float v68; // xmm7_4 float y; // xmm5_4 float v70; // xmm4_4 float v71; // xmm0_4 float v72; // xmm3_4 float v73; // xmm0_4 float v74; // xmm0_4 double v75; // xmm0_8 __int64 v76; // rax double v77; // xmm0_8 __int64 v78; // rax __int64 v79; // rax __int64 v80; // rax __int64 v81; // rax __int64 v82; // rax float v83; // xmm0_4 float x; // xmm1_4 float v85; // xmm6_4 float v86; // xmm0_4 float v87; // xmm7_4 float v88; // xmm4_4 float v89; // xmm0_4 float v90; // xmm3_4 float v91; // xmm0_4 __int64 v92; // rdx ShaderLayer *m_shaderLayer; // rax int m_unknown2; // ecx cocos2d::CCPoint v95; // [rsp+38h] [rbp-D0h] BYREF cocos2d::CCPoint v96; // [rsp+40h] [rbp-C8h] BYREF float v97; // [rsp+48h] [rbp-C0h] float v98; // [rsp+4Ch] [rbp-BCh] cocos2d::CCPoint v99; // [rsp+50h] [rbp-B8h] BYREF cocos2d::CCPoint v100; // [rsp+58h] [rbp-B0h] BYREF cocos2d::CCPoint v101; // [rsp+60h] [rbp-A8h] BYREF cocos2d::CCPoint v102; // [rsp+68h] [rbp-A0h] BYREF float v103; // [rsp+70h] [rbp-98h] BYREF float v104; // [rsp+74h] [rbp-94h] float v105; // [rsp+78h] [rbp-90h] BYREF float v106; // [rsp+7Ch] [rbp-8Ch] float v107; // [rsp+80h] [rbp-88h] BYREF float v108; // [rsp+84h] [rbp-84h] float v109; // [rsp+88h] [rbp-80h] BYREF float v110; // [rsp+8Ch] [rbp-7Ch] cocos2d::CCPoint v111; // [rsp+90h] [rbp-78h] BYREF cocos2d::CCSize v112; // [rsp+98h] [rbp-70h] BYREF float v113[2]; // [rsp+A0h] [rbp-68h] BYREF char v114[8]; // [rsp+A8h] [rbp-60h] BYREF _DWORD v115[2]; // [rsp+B0h] [rbp-58h] BYREF _DWORD v116[2]; // [rsp+B8h] [rbp-50h] BYREF char v117[8]; // [rsp+C0h] [rbp-48h] BYREF char v118[8]; // [rsp+C8h] [rbp-40h] BYREF cocos2d::CCDictElement *v119; // [rsp+D0h] [rbp-38h] cocos2d::ccColor3B v120; // [rsp+D8h] [rbp-30h] BYREF char v121[8]; // [rsp+E0h] [rbp-28h] BYREF char v122[8]; // [rsp+E8h] [rbp-20h] BYREF char v123[8]; // [rsp+F0h] [rbp-18h] BYREF char v124[8]; // [rsp+F8h] [rbp-10h] BYREF char v125[8]; // [rsp+100h] [rbp-8h] BYREF char v126[8]; // [rsp+108h] [rbp+0h] BYREF char v127[8]; // [rsp+110h] [rbp+8h] BYREF char v128[8]; // [rsp+118h] [rbp+10h] BYREF char v129[8]; // [rsp+120h] [rbp+18h] BYREF char v130[8]; // [rsp+128h] [rbp+20h] BYREF char v131[8]; // [rsp+130h] [rbp+28h] BYREF char v132[8]; // [rsp+138h] [rbp+30h] BYREF char v133[8]; // [rsp+140h] [rbp+38h] BYREF char v134[8]; // [rsp+148h] [rbp+40h] BYREF char v135[8]; // [rsp+150h] [rbp+48h] BYREF char v136[8]; // [rsp+158h] [rbp+50h] BYREF char v137[8]; // [rsp+160h] [rbp+58h] BYREF cocos2d::ccHSVValue v138; // [rsp+168h] [rbp+60h] BYREF cocos2d::CCPoint v139; // [rsp+178h] [rbp+70h] BYREF cocos2d::CCPoint v140; // [rsp+180h] [rbp+78h] BYREF char v141[8]; // [rsp+188h] [rbp+80h] BYREF char v142[8]; // [rsp+190h] [rbp+88h] BYREF char v143[8]; // [rsp+198h] [rbp+90h] BYREF char v144[8]; // [rsp+1A0h] [rbp+98h] BYREF char v145[8]; // [rsp+1A8h] [rbp+A0h] BYREF char v146[8]; // [rsp+1B0h] [rbp+A8h] BYREF cocos2d::CCPoint v147; // [rsp+1B8h] [rbp+B0h] BYREF char v148[8]; // [rsp+1C0h] [rbp+B8h] BYREF char v149[8]; // [rsp+1D8h] [rbp+D0h] BYREF char v150[8]; // [rsp+1E0h] [rbp+D8h] BYREF char v151[8]; // [rsp+1E8h] [rbp+E0h] BYREF char v152[8]; // [rsp+1F0h] [rbp+E8h] BYREF char v153[8]; // [rsp+208h] [rbp+100h] BYREF char v154[8]; // [rsp+210h] [rbp+108h] BYREF char v155[8]; // [rsp+218h] [rbp+110h] BYREF char v156[8]; // [rsp+220h] [rbp+118h] BYREF char v157[8]; // [rsp+228h] [rbp+120h] BYREF cocos2d::CCPoint v159; // [rsp+330h] [rbp+228h] BYREF cocos2d::ccColor3B m_copyColor; // [rsp+338h] [rbp+230h] BYREF cocos2d::ccColor3B v161; // [rsp+340h] [rbp+238h] BYREF v1 = a1; v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2); v1->m_objectLayer->getScale(v1->m_objectLayer); v3 = (__int64)v1->m_objectLayer->getPosition_0(v1->m_objectLayer); cocos2d::CCPoint::operator*(v3, &v159); v4 = cocos2d::CCPoint::operator-(&v159, &v103); cocos2d::CCPoint::CCPoint(*(float *)&v4, v97); cocos2d::CCPoint::operator*(v5, &v159); v6 = cocos2d::CCPoint::operator+(&v103, &v105); cocos2d::CCPoint::CCPoint(*(float *)&v6, v97); cocos2d::CCPoint::operator*(v7, &v159); cocos2d::CCSize::CCSize(&v112, &v159); cocos2d::CCPoint::CCPoint(&v159, &v112); cocos2d::CCPoint::operator*(&v159, &m_copyColor); cocos2d::CCPoint::operator+(&v103, v114); v8 = (float)(v112.height * v112.height) + (float)(v112.width * v112.width); if ( v8 < 0.0 ) v9 = sqrtf(v8); else v9 = fsqrt(v8); v10 = v9 * 0.5; v11 = v10; cocos2d::CCPoint::CCPoint(*(float *)&v10, v11); v13 = cocos2d::CCPoint::operator-(v114, &v109, v12); cocos2d::CCPoint::CCPoint(*(float *)&v13, v11); cocos2d::CCPoint::operator+(v114, &v107); v14 = cocos2d::CCPoint::CCPoint(&v111); cocos2d::CCPoint::CCPoint(*(float *)&v14, v97); if ( v1->m_gameState.m_cameraAngle != 0.0 ) { v15 = (float)(v97 * v97) + (float)(v98 * v98); v16 = 0.0; if ( v15 < 0.0 ) { v16 = sqrtf(v15); v17 = v16; } else { v17 = fsqrt(v15); } v18 = v17 * 0.5; cocos2d::CCPoint::CCPoint(v16, (float)(v97 * 0.5) - v18); v20 = cocos2d::CCPoint::operator=(&v111, v19); cocos2d::CCPoint::CCPoint(*(float *)&v20, (float)(v97 * 0.5) + v18); cocos2d::CCPoint::operator=(v113, v21); } v104 = v104 + -20.0; v103 = v103 + -20.0; v106 = v106 + 20.0; v105 = v105 + 20.0; v22 = cocos2d::CCPoint::CCPoint(v105, -20.0); cocos2d::CCPoint::CCPoint(*(float *)&v22, v97 + 20.0); m_gradientLayers = v1->m_gradientLayers; v1->m_activeGradients = 0; if ( m_gradientLayers ) { m_pElements = m_gradientLayers->m_pElements; if ( m_pElements ) { for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)v119->hh.next ) { m_pObject = m_pElements->m_pObject; v119 = i; if ( !((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].getTag)(m_pObject) ) goto LABEL_194; v27 = *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount; if ( !v27 ) goto LABEL_194; if ( *(_DWORD *)(v27 + 1864) != m_pObject[10].m_nZOrder ) { m_pObject->__vftable[7].copyWithZone(m_pObject, nullptr); *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount = 0; LOBYTE(m_pObject[10].m_uIndexInArray) = 0; goto LABEL_194; } v28 = ((double (__fastcall *)(GJBaseGameLayer *, _QWORD))v1->opacityForObject)( v1, *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount); v29 = *(float *)&v28; if ( v1->m_isEditor && v1->m_playbackMode != Playing ) v29 = *(float *)&v28 * *(float *)(v27 + 1888); m_uID = m_pObject[10].m_uID; if ( m_uID ) { if ( m_uID == 1010 ) { *(_WORD *)&m_copyColor.r = 0; m_copyColor.b = 0; goto LABEL_26; } if ( m_uID != 1011 ) { ColorSprite = GJEffectManager::getColorSprite(v1->m_effectManager, m_uID); if ( ColorSprite ) { m_copyColor = ColorSprite->m_copyColor; goto LABEL_26; } } } m_copyColor.b = -1; *(_WORD *)&m_copyColor.r = -1; LABEL_26: m_nLuaID = m_pObject[10].m_nLuaID; switch ( m_nLuaID ) { case 0: goto LABEL_33; case 1010: LOWORD(v159.x) = 0; BYTE2(v159.x) = 0; break; case 1011: LABEL_33: LOWORD(v159.x) = -1; BYTE2(v159.x) = -1; break; default: v33 = GJEffectManager::getColorSprite(v1->m_effectManager, m_nLuaID); if ( v33 ) { LOWORD(v159.x) = *(_WORD *)&v33->m_copyColor.r; BYTE2(v159.x) = v33->m_copyColor.b; } else { LOWORD(v159.x) = -1; BYTE2(v159.x) = -1; } break; } v34 = *(_QWORD *)(v27 + 1104); if ( v34 && (*(float *)(v34 + 16) != *(float *)&dword_1406BA160 || *(float *)(v34 + 20) != *(float *)&dword_1406BA164 || *(float *)(v34 + 24) != *(float *)&dword_1406BA168 || *(_WORD *)(v34 + 28) != (_WORD)dword_1406BA16C) ) { v138 = *(cocos2d::ccHSVValue *)(v34 + 16); m_copyColor = *GameToolbox::transformColor(&v161, &m_copyColor, &v138); } v35 = *(_QWORD *)(v27 + 1112); if ( v35 && (*(float *)(v35 + 16) != *(float *)&dword_1406BA160 || *(float *)(v35 + 20) != *(float *)&dword_1406BA164 || *(float *)(v35 + 24) != *(float *)&dword_1406BA168 || *(_WORD *)(v35 + 28) != (_WORD)dword_1406BA16C) ) { v138 = *(cocos2d::ccHSVValue *)(v35 + 16); *(cocos2d::ccColor3B *)&v159.x = *GameToolbox::transformColor(&v120, (const cocos2d::ccColor3B *)&v159, &v138); } v36 = GJEffectManager::getColorSprite(v1->m_effectManager, m_pObject[10].m_uID); if ( v36 ) v37 = v36->m_opacity / 255.0; else v37 = 1.0; v38 = (float)(v37 * 255.0) * v29; v39 = GJEffectManager::getColorSprite(v1->m_effectManager, m_pObject[10].m_nLuaID); if ( v39 ) v40 = v39->m_opacity / 255.0; else v40 = 1.0; v41 = (float)(v40 * 255.0) * v29; if ( v38 == 0.0 && v41 == 0.0 || m_pObject[10].m_uUnknown == 1 && !m_copyColor.r && __PAIR16__(m_copyColor.g, 0) == m_copyColor.b && !LOBYTE(v159.x) && __PAIR16__(BYTE1(v159.x), 0) == BYTE2(v159.x) ) { goto LABEL_193; } v42 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v27 + 344LL))(v27); v43 = (float)-*(float *)&v42 * 0.017453292; sinf(v43); *(float *)&v42 = cosf(v43); cocos2d::CCPoint::CCPoint(*(float *)&v42, *(float *)&v42); cocos2d::CCPoint::operator=(&m_pObject[10].m_nTag, v121); MainObject = GJBaseGameLayer::tryGetMainObject(v1, *(_DWORD *)(v27 + 1868)); v45 = GJBaseGameLayer::tryGetMainObject(v1, *(_DWORD *)(v27 + 1872)); v46 = GJBaseGameLayer::tryGetMainObject(v1, *(_DWORD *)(v27 + 1876)); v47 = GJBaseGameLayer::tryGetMainObject(v1, *(_DWORD *)(v27 + 1880)); if ( !*(_BYTE *)(v27 + 1884) ) { cocos2d::CCPoint::CCPoint(&v147); v49 = v48; cocos2d::CCPoint::CCPoint(&v139); v51 = v50; cocos2d::CCPoint::CCPoint(&v140); cocos2d::CCLayerColor::setVertices((cocos2d::CCLayerColor *)m_pObject, v52, v51, v49); v53 = m_pObject->__vftable; v54 = ((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[4].isEqual)(m_pObject); ((void (__fastcall *)(cocos2d::CCObject *, __int64))v53[4].~CCObject)(m_pObject, v54); cocos2d::CCPoint::CCPoint(&v96); cocos2d::CCPoint::CCPoint(&v99); if ( LOBYTE(m_pObject[10].m_uIndexInArray) ) { cocos2d::CCPoint::operator=(&v96, &v103); cocos2d::CCPoint::operator=(&v99, &v105); if ( v45 ) v96.y = *(float *)(((__int64 (__fastcall *)(GameObject *, char *))v45->getRealPosition)(v45, v141) + 4); if ( v46 ) v96.x = *(float *)((__int64 (__fastcall *)(GameObject *, char *))v46->getRealPosition)(v46, v142); if ( MainObject ) v99.y = *(float *)(((__int64 (__fastcall *)(GameObject *, char *))MainObject->getRealPosition)( MainObject, v143) + 4); if ( v47 ) v99.x = *(float *)((__int64 (__fastcall *)(GameObject *, char *))v47->getRealPosition)(v47, v144); m_pObject->__vftable[2].encodeWithCoder(m_pObject, (DS_Dictionary *)&v96); m_pObject->__vftable[1].canEncode(m_pObject); ((void (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[1].setTag)(m_pObject); if ( v96.x > v107 || v96.y > v108 ) { v1 = a1; LABEL_193: ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[4].update)(m_pObject, 0); goto LABEL_194; } v1 = a1; if ( v109 > v99.x ) goto LABEL_193; v55 = v110 <= v99.y; } else { cocos2d::CCPoint::operator=(&v96, v117); cocos2d::CCPoint::operator=(&v99, v118); if ( v45 ) v96.y = *(float *)(((__int64 (__fastcall *)(GameObject *, char *))v45->getRealPosition)(v45, v145) + 4); if ( v46 ) v96.x = *(float *)((__int64 (__fastcall *)(GameObject *, char *))v46->getRealPosition)(v46, v146); if ( MainObject ) v99.y = *(float *)(((__int64 (__fastcall *)(GameObject *, char *))MainObject->getRealPosition)( MainObject, v152) + 4); if ( v47 ) v99.x = *(float *)((__int64 (__fastcall *)(GameObject *, char *))v47->getRealPosition)(v47, v148); v1 = a1; a1->m_objectLayer->getScale(a1->m_objectLayer); cocos2d::CCPoint::operator*(&v96, v122); v1->m_objectLayer->getPosition_0(v1->m_objectLayer); cocos2d::CCPoint::operator+(v122, v115); v1->m_objectLayer->getScale(v1->m_objectLayer); cocos2d::CCPoint::operator*(&v99, v123); v1->m_objectLayer->getPosition_0(v1->m_objectLayer); cocos2d::CCPoint::operator+(v123, v116); if ( v45 ) LODWORD(v96.y) = v115[1]; if ( v46 ) LODWORD(v96.x) = v115[0]; if ( MainObject ) LODWORD(v99.y) = v116[1]; if ( v47 ) LODWORD(v99.x) = v116[0]; m_pObject->__vftable[2].encodeWithCoder(m_pObject, (DS_Dictionary *)&v96); m_pObject->__vftable[1].canEncode(m_pObject); ((void (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[1].setTag)(m_pObject); if ( v96.x > v97 || v96.y > v98 || v99.x < 0.0 ) goto LABEL_193; v55 = v99.y >= 0.0; } goto LABEL_183; } cocos2d::CCPoint::CCPoint(&v95); cocos2d::CCPoint::CCPoint(&v100); cocos2d::CCPoint::CCPoint(&v102); cocos2d::CCPoint::CCPoint(&v101); if ( !LOBYTE(m_pObject[10].m_uIndexInArray) ) { cocos2d::CCPoint::operator=(&v95, v117); v75 = cocos2d::CCPoint::operator=(&v100, v118); cocos2d::CCPoint::CCPoint(*(float *)&v75, v95.x); v77 = cocos2d::CCPoint::operator=(&v102, v76); cocos2d::CCPoint::CCPoint(*(float *)&v77, v100.x); cocos2d::CCPoint::operator=(&v101, v78); if ( MainObject ) { v79 = ((__int64 (__fastcall *)(GameObject *, char *))MainObject->getRealPosition)(MainObject, v153); cocos2d::CCPoint::operator=(&v95, v79); } if ( v45 ) { v80 = ((__int64 (__fastcall *)(GameObject *, char *))v45->getRealPosition)(v45, v154); cocos2d::CCPoint::operator=(&v101, v80); } if ( v46 ) { v81 = ((__int64 (__fastcall *)(GameObject *, char *))v46->getRealPosition)(v46, v155); cocos2d::CCPoint::operator=(&v102, v81); } if ( v47 ) { v82 = ((__int64 (__fastcall *)(GameObject *, char *))v47->getRealPosition)(v47, v156); cocos2d::CCPoint::operator=(&v100, v82); } v1->m_objectLayer->getScale(v1->m_objectLayer); cocos2d::CCPoint::operator*(&v95, v127); v1->m_objectLayer->getPosition_0(v1->m_objectLayer); cocos2d::CCPoint::operator+(v127, v131); v1->m_objectLayer->getScale(v1->m_objectLayer); cocos2d::CCPoint::operator*(&v101, v128); v1->m_objectLayer->getPosition_0(v1->m_objectLayer); cocos2d::CCPoint::operator+(v128, v132); v1->m_objectLayer->getScale(v1->m_objectLayer); cocos2d::CCPoint::operator*(&v100, v129); v1->m_objectLayer->getPosition_0(v1->m_objectLayer); cocos2d::CCPoint::operator+(v129, v134); v1->m_objectLayer->getScale(v1->m_objectLayer); cocos2d::CCPoint::operator*(&v102, v130); v1->m_objectLayer->getPosition_0(v1->m_objectLayer); cocos2d::CCPoint::operator+(v130, v133); if ( MainObject ) cocos2d::CCPoint::operator=(&v95, v131); if ( v45 ) cocos2d::CCPoint::operator=(&v101, v132); if ( v46 ) cocos2d::CCPoint::operator=(&v102, v133); if ( v47 ) cocos2d::CCPoint::operator=(&v100, v134); ((void (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[2].isEqual)(m_pObject); m_pObject->__vftable[2].encodeWithCoder(m_pObject, (DS_Dictionary *)&v95); cocos2d::CCPoint::operator-(&v100, v135, &v95); cocos2d::CCPoint::operator-(&v102, v136, &v95); cocos2d::CCPoint::operator-(&v101, v137, &v95); cocos2d::CCLayerColor::setVertices( (cocos2d::CCLayerColor *)m_pObject, (struct cocos2d::CCPoint)v137, (struct cocos2d::CCPoint)v136, (struct cocos2d::CCPoint)v135); v83 = fminf(v102.x, v100.x); if ( v83 <= v101.x ) x = v83; else x = v101.x; v85 = v95.x; if ( x <= v95.x ) { if ( v83 > v101.x ) v83 = v101.x; } else { v83 = v95.x; } if ( v83 > v113[0] ) goto LABEL_193; v86 = fminf(v102.y, v100.y); v87 = v86 <= v101.y ? v86 : v101.y; y = v95.y; if ( v87 <= v95.y ) { if ( v86 > v101.y ) v86 = v101.y; } else { v86 = v95.y; } if ( v86 > v113[1] ) goto LABEL_193; v88 = fmaxf(v102.x, v100.x); if ( v101.x <= v88 ) v89 = v88; else v89 = v101.x; if ( v95.x <= v89 ) { if ( v101.x <= v88 ) v85 = v88; else v85 = v101.x; } if ( v111.x > v85 ) goto LABEL_193; v90 = fmaxf(v102.y, v100.y); if ( v101.y <= v90 ) v91 = v90; else v91 = v101.y; if ( v95.y <= v91 ) { if ( v101.y <= v90 ) y = v90; else y = v101.y; } v74 = v111.y; goto LABEL_182; } cocos2d::CCPoint::operator=(&v95, &v103); v56 = cocos2d::CCPoint::operator=(&v100, &v105); cocos2d::CCPoint::CCPoint(*(float *)&v56, v95.x); v58 = cocos2d::CCPoint::operator=(&v102, v57); cocos2d::CCPoint::CCPoint(*(float *)&v58, v100.x); cocos2d::CCPoint::operator=(&v101, v59); if ( MainObject ) { v60 = ((__int64 (__fastcall *)(GameObject *, char *))MainObject->getRealPosition)(MainObject, v149); cocos2d::CCPoint::operator=(&v95, v60); } if ( v45 ) { v61 = ((__int64 (__fastcall *)(GameObject *, char *))v45->getRealPosition)(v45, v150); cocos2d::CCPoint::operator=(&v101, v61); } if ( v46 ) { v62 = ((__int64 (__fastcall *)(GameObject *, char *))v46->getRealPosition)(v46, v151); cocos2d::CCPoint::operator=(&v102, v62); } if ( v47 ) { v63 = ((__int64 (__fastcall *)(GameObject *, char *))v47->getRealPosition)(v47, v157); cocos2d::CCPoint::operator=(&v100, v63); } ((void (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[2].isEqual)(m_pObject); m_pObject->__vftable[2].encodeWithCoder(m_pObject, (DS_Dictionary *)&v95); cocos2d::CCPoint::operator-(&v100, v124, &v95); cocos2d::CCPoint::operator-(&v102, v125, &v95); cocos2d::CCPoint::operator-(&v101, v126, &v95); cocos2d::CCLayerColor::setVertices( (cocos2d::CCLayerColor *)m_pObject, (struct cocos2d::CCPoint)v126, (struct cocos2d::CCPoint)v125, (struct cocos2d::CCPoint)v124); v64 = fminf(v102.x, v100.x); if ( v64 <= v101.x ) v65 = v64; else v65 = v101.x; v66 = v95.x; if ( v65 <= v95.x ) { if ( v64 > v101.x ) v64 = v101.x; } else { v64 = v95.x; } if ( v64 > v107 ) goto LABEL_193; v67 = fminf(v102.y, v100.y); v68 = v67 <= v101.y ? v67 : v101.y; y = v95.y; if ( v68 <= v95.y ) { if ( v67 > v101.y ) v67 = v101.y; } else { v67 = v95.y; } if ( v67 > v108 ) goto LABEL_193; v70 = fmaxf(v102.x, v100.x); if ( v101.x <= v70 ) v71 = v70; else v71 = v101.x; if ( v95.x <= v71 ) { if ( v101.x <= v70 ) v66 = v70; else v66 = v101.x; } if ( v109 > v66 ) goto LABEL_193; v72 = fmaxf(v102.y, v100.y); if ( v101.y <= v72 ) v73 = v72; else v73 = v101.y; if ( v95.y > v73 ) goto LABEL_133; if ( v101.y <= v72 ) { y = v72; LABEL_133: v74 = v110; goto LABEL_182; } v74 = v110; y = v101.y; LABEL_182: v55 = v74 <= y; LABEL_183: if ( !v55 ) goto LABEL_193; cocos2d::CCLayerGradient::setValues( (cocos2d::CCLayerGradient *)m_pObject, &m_copyColor, (int)v38, (const struct cocos2d::_ccColor3B *)&v159, (int)v41, (const struct cocos2d::CCPoint *)&m_pObject[10].m_nTag); LOBYTE(v92) = 1; ((void (__fastcall *)(cocos2d::CCObject *, __int64))m_pObject->__vftable[4].update)(m_pObject, v92); ++v1->m_activeGradients; if ( m_pObject[10].m_uUnknown == 3 ) { if ( ((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].getTag)(m_pObject) ) { m_shaderLayer = v1->m_shaderLayer; if ( m_shaderLayer ) { if ( m_shaderLayer->m_state.m_usesShaders ) { m_unknown2 = m_pObject[10].m_unknown2; if ( m_shaderLayer->m_state.m_minBlendingLayer <= m_unknown2 && m_shaderLayer->m_state.m_maxBlendingLayer >= m_unknown2 && m_unknown2 < 15 ) { goto LABEL_193; } } } } } LABEL_194: m_pElements = v119; if ( !v119 ) return; } } } }