// // GJBaseGameLayer::updateGradientLayers from 0x9a0ebc to 0x9a2304 (5192 bytes) // // 7 xrefs: // > PlayLayer::resetLevel @ 0x7115f8 // > LevelEditorLayer::updateArt @ 0x789930 // > LevelEditorLayer::onPlaytest @ 0x7966ec // > LevelEditorLayer::updateEditor @ 0x7a8ee8 // > GJBaseGameLayer::update @ 0x9ed5b8 // > GJBaseGameLayer::update @ 0x9ee180 // > @ 0x8a5c8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:58:08 +0000 // __int64 __fastcall GJBaseGameLayer::updateGradientLayers(GJBaseGameLayer *this) { cocos2d::CCDirector *v2; // x0 float v3; // s8 __int64 v4; // x0 float v5; // s8 long double v6; // q0 __int64 v7; // x0 __int64 v8; // x22 __int64 i; // x24 __int64 v10; // x19 __int64 v11; // x20 float v12; // s8 int active; // w22 int v14; // w1 GJEffectManager *v15; // x0 __int64 v16; // x0 __int64 MainColor; // x23 int v18; // w0 __int64 SecondaryColor; // x28 int v20; // w0 float v21; // s0 float v22; // s9 float v23; // s0 float v24; // s8 float v26; // s10 float v27; // s13 float v28; // s0 __int64 v29; // x23 __int64 v30; // x22 __int64 v31; // x0 long double v32; // q0 _BOOL4 v33; // w0 __int64 v34; // x0 int v35; // w2 __int64 v36; // x0 int v37; // w1 __n128 v38; // q0 long double v39; // q0 long double v40; // q0 long double v41; // q0 float v42; // s3 float v43; // s4 float v44; // s4 float v45; // s4 float v46; // s7 float v47; // s10 float v48; // s10 float v49; // s10 long double v50; // q0 float v51; // s0 long double v52; // q0 float v53; // s0 long double v54; // q0 __n128 v55; // q0 float v56; // s0 long double v57; // q0 float v58; // s0 long double v59; // q0 float v60; // s0 long double v61; // q0 float v62; // s0 long double v63; // q0 long double v64; // q0 long double v65; // q0 long double v66; // q0 float v67; // s3 float v68; // s4 float v69; // s4 float v70; // s7 float v71; // s10 float v72; // s10 float v73; // s3 float v74; // s0 float v75; // s0 float v76; // s10 float v77; // s10 float v78; // s10 float v79; // s3 float v80; // s0 float v81; // s0 float v82; // s8 __int64 v83; // [xsp+F8h] [xbp+F8h] __int64 MainObject; // [xsp+100h] [xbp+100h] cocos2d::CCPoint *v85; // [xsp+118h] [xbp+118h] __int16 v86; // [xsp+130h] [xbp+130h] BYREF unsigned __int8 v87; // [xsp+132h] [xbp+132h] __int16 v88; // [xsp+138h] [xbp+138h] BYREF unsigned __int8 v89; // [xsp+13Ah] [xbp+13Ah] __int64 v90; // [xsp+140h] [xbp+140h] BYREF __int64 v91; // [xsp+148h] [xbp+148h] BYREF __int64 v92; // [xsp+150h] [xbp+150h] BYREF float v93; // [xsp+158h] [xbp+158h] BYREF float v94; // [xsp+15Ch] [xbp+15Ch] __int64 v95; // [xsp+160h] [xbp+160h] BYREF __int64 v96; // [xsp+168h] [xbp+168h] BYREF __int64 v97; // [xsp+170h] [xbp+170h] BYREF float v98[2]; // [xsp+178h] [xbp+178h] BYREF float v99[2]; // [xsp+180h] [xbp+180h] BYREF _BYTE v100[8]; // [xsp+188h] [xbp+188h] BYREF _BYTE v101[8]; // [xsp+190h] [xbp+190h] BYREF _BYTE v102[8]; // [xsp+198h] [xbp+198h] BYREF float v103; // [xsp+1A0h] [xbp+1A0h] BYREF float v104; // [xsp+1A4h] [xbp+1A4h] float v105; // [xsp+1A8h] [xbp+1A8h] BYREF float v106; // [xsp+1ACh] [xbp+1ACh] float v107; // [xsp+1B0h] [xbp+1B0h] BYREF float v108; // [xsp+1B4h] [xbp+1B4h] float v109; // [xsp+1B8h] [xbp+1B8h] BYREF float v110; // [xsp+1BCh] [xbp+1BCh] __int64 v111; // [xsp+1C0h] [xbp+1C0h] BYREF __int64 v112; // [xsp+1C8h] [xbp+1C8h] BYREF __int64 v113; // [xsp+1D0h] [xbp+1D0h] BYREF __int64 v114; // [xsp+1D8h] [xbp+1D8h] BYREF __int64 v115; // [xsp+1E0h] [xbp+1E0h] BYREF __int64 v116; // [xsp+1E8h] [xbp+1E8h] BYREF __int64 v117; // [xsp+1F0h] [xbp+1F0h] BYREF v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v90, v2); v3 = 1.0 / (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 168LL))(*((_QWORD *)this + 490)); v4 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 192LL))(*((_QWORD *)this + 490)); cocos2d::CCPoint::operator*(v4, v3); cocos2d::CCPoint::operator-(&v91, &v117); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, *(float *)&v90, *((float *)&v90 + 1)); cocos2d::CCPoint::operator*(&v116, v3); cocos2d::CCPoint::operator+(&v92, &v91); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, *(float *)&v90, *((float *)&v90 + 1)); cocos2d::CCPoint::operator*(&v116, v3); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v93, (const cocos2d::CCPoint *)&v117); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, (const cocos2d::CCSize *)&v93); cocos2d::CCPoint::operator*(&v116, 0.5); cocos2d::CCPoint::operator+(&v95, &v91); v5 = sqrtf((float)(v94 * v94) + (float)(v93 * v93)) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v117, v5, v5); cocos2d::CCPoint::operator-(&v96, &v95, &v117, v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v117, v5, v5); cocos2d::CCPoint::operator+(&v97, &v95); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, (const cocos2d::CCPoint *)&unk_155D2C8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, *(float *)&v90, *((float *)&v90 + 1)); if ( *((float *)this + 201) != 0.0 ) { v82 = sqrtf((float)(*((float *)&v90 + 1) * *((float *)&v90 + 1)) + (float)(*(float *)&v90 * *(float *)&v90)) * 0.5; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v117, -(float)(v82 - (float)(*(float *)&v90 * 0.5)), -(float)(v82 - (float)(*((float *)&v90 + 1) * 0.5))); cocos2d::CCPoint::operator=(v98, &v117); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v117, v82 + (float)(*(float *)&v90 * 0.5), v82 + (float)(*((float *)&v90 + 1) * 0.5)); cocos2d::CCPoint::operator=(v99, &v117); } *(float *)&v91 = *(float *)&v91 - 20.0; *((float *)&v91 + 1) = *((float *)&v91 + 1) - 20.0; *(float *)&v92 = *(float *)&v92 + 20.0; *((float *)&v92 + 1) = *((float *)&v92 + 1) + 20.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v100, -20.0, -20.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v101, *(float *)&v90 + 20.0, *((float *)&v90 + 1) + 20.0); *((_DWORD *)this + 3102) = 0; v7 = *((_QWORD *)this + 1550); if ( v7 ) { v8 = *(_QWORD *)(v7 + 56); if ( v8 ) { for ( i = *(_QWORD *)(v8 + 288); ; i = *(_QWORD *)(i + 288) ) { v10 = *(_QWORD *)(v8 + 264); if ( !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 512LL))(v10) ) goto LABEL_10; v11 = *(_QWORD *)(v10 + 584); if ( !v11 ) goto LABEL_10; if ( *(_DWORD *)(v11 + 1848) != *(_DWORD *)(v10 + 604) ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 528LL))(v10, 0); *(_QWORD *)(v10 + 584) = 0; *(_BYTE *)(v10 + 592) = 0; LABEL_10: if ( !i ) return _stack_chk_guard; goto LABEL_11; } v12 = (*(float (__fastcall **)(GJBaseGameLayer *, _QWORD))(*(_QWORD *)this + 1208LL))( this, *(_QWORD *)(v10 + 584)); if ( *((_BYTE *)this + 12236) && *((_DWORD *)this + 493) != 1 ) v12 = v12 * *(float *)(v11 + 1872); active = GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 269), *(_DWORD *)(v10 + 564)); v14 = *(_DWORD *)(v10 + 568); v15 = *((GJEffectManager **)this + 269); v87 = BYTE2(active); v86 = active; v16 = GJEffectManager::activeColorForIndex(v15, v14); v88 = v16; v89 = BYTE2(v16); MainColor = GameObject::getMainColor((GameObject *)v11); if ( MainColor && (*(float *)&dword_155D2D0 != *(float *)(MainColor + 16) || *(float *)&dword_155D2D4 != *(float *)(MainColor + 20) || *(float *)&dword_155D2D8 != *(float *)(MainColor + 24) || *(unsigned __int16 *)(MainColor + 28) != (unsigned __int16)word_155D2DC) ) { v18 = GameToolbox::transformColor( (unsigned __int8 *)&v86, *(_QWORD *)(MainColor + 16), *(_QWORD *)(MainColor + 24)); v86 = v18; v87 = BYTE2(v18); } SecondaryColor = GameObject::getSecondaryColor((GameObject *)v11); if ( SecondaryColor && (*(float *)(SecondaryColor + 16) != *(float *)&dword_155D2D0 || *(float *)(SecondaryColor + 20) != *(float *)&dword_155D2D4 || *(float *)(SecondaryColor + 24) != *(float *)&dword_155D2D8 || *(unsigned __int16 *)(SecondaryColor + 28) != (unsigned __int16)word_155D2DC) ) { v20 = GameToolbox::transformColor( (unsigned __int8 *)&v88, *(_QWORD *)(SecondaryColor + 16), *(_QWORD *)(SecondaryColor + 24)); v88 = v20; v89 = BYTE2(v20); } GJEffectManager::activeOpacityForIndex(*((GJEffectManager **)this + 269), *(_DWORD *)(v10 + 564)); v22 = (float)(v21 * 255.0) * v12; GJEffectManager::activeOpacityForIndex(*((GJEffectManager **)this + 269), *(_DWORD *)(v10 + 568)); v24 = (float)(v23 * 255.0) * v12; if ( (v24 != 0.0 || v22 != 0.0) && (*(_DWORD *)(v10 + 596) != 1 || (_BYTE)v86 || __PAIR16__(HIBYTE(v86), 0) != v87 || (_BYTE)v88 || __PAIR16__(HIBYTE(v88), 0) != v89) ) { break; } LABEL_26: (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 344LL))(v10, 0); if ( !i ) return _stack_chk_guard; LABEL_11: v8 = i; } v26 = (float)-(*(float (__fastcall **)(__int64))(*(_QWORD *)v11 + 368LL))(v11) * 0.017453; v27 = cosf(v26); v28 = sinf(v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v102, v27, v28); cocos2d::CCPoint::operator=(v10 + 572, v102); MainObject = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)this, *(_DWORD *)(v11 + 1852)); v83 = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)this, *(_DWORD *)(v11 + 1856)); v29 = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)this, *(_DWORD *)(v11 + 1860)); v30 = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)this, *(_DWORD *)(v11 + 1864)); if ( !*(_BYTE *)(v11 + 1868) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v115, (const cocos2d::CCPoint *)&unk_155D2C8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, (const cocos2d::CCPoint *)&unk_155D2C8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v117, (const cocos2d::CCPoint *)&unk_155D2C8); cocos2d::CCLayerColor::setVertices(v10, &v115, &v116, &v117); v85 = *(cocos2d::CCPoint **)(*(_QWORD *)v10 + 320LL); v31 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10); ((void (__fastcall *)(__int64, __int64))v85)(v10, v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v114); if ( *(_BYTE *)(v10 + 592) ) { cocos2d::CCPoint::operator=(&v113, &v91); *(__n128 *)&v32 = cocos2d::CCPoint::operator=(&v114, &v92); if ( v83 ) { (*(void (__fastcall **)(__int64 *__return_ptr, long double))(*(_QWORD *)v83 + 1360LL))(&v117, v32); HIDWORD(v113) = HIDWORD(v117); } if ( v29 ) { (*(void (__fastcall **)(__int64 *__return_ptr, __int64, long double))(*(_QWORD *)v29 + 1360LL))( &v117, v29, v32); LODWORD(v113) = v117; } if ( MainObject ) { (*(void (__fastcall **)(__int64 *__return_ptr, long double))(*(_QWORD *)MainObject + 1360LL))(&v117, v32); HIDWORD(v114) = HIDWORD(v117); } if ( v30 ) { (*(void (__fastcall **)(__int64 *__return_ptr, __int64, long double))(*(_QWORD *)v30 + 1360LL))( &v117, v30, v32); LODWORD(v114) = v117; } (*(void (__fastcall **)(__int64, __int64 *, long double))(*(_QWORD *)v10 + 184LL))(v10, &v113, v32); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 128LL))( v10, (float)(*(float *)&v114 - *(float *)&v113) / *(float *)&v90); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 144LL))( v10, (float)(*((float *)&v114 + 1) - *((float *)&v113 + 1)) / *((float *)&v90 + 1)); if ( *(float *)&v113 > *(float *)&v97 || *((float *)&v113 + 1) > *((float *)&v97 + 1) || *(float *)&v114 < *(float *)&v96 ) { goto LABEL_26; } v33 = *((float *)&v114 + 1) < *((float *)&v96 + 1); } else { cocos2d::CCPoint::operator=(&v113, v100); *(__n128 *)&v50 = cocos2d::CCPoint::operator=(&v114, v101); if ( v83 ) { (*(void (__fastcall **)(__int64 *__return_ptr, long double))(*(_QWORD *)v83 + 1360LL))(&v117, v50); HIDWORD(v113) = HIDWORD(v117); } if ( v29 ) { (*(void (__fastcall **)(__int64 *__return_ptr, __int64, long double))(*(_QWORD *)v29 + 1360LL))( &v117, v29, v50); LODWORD(v113) = v117; } if ( MainObject ) { (*(void (__fastcall **)(__int64 *__return_ptr, long double))(*(_QWORD *)MainObject + 1360LL))(&v117, v50); HIDWORD(v114) = HIDWORD(v117); } if ( v30 ) { (*(void (__fastcall **)(__int64 *__return_ptr, __int64, long double))(*(_QWORD *)v30 + 1360LL))( &v117, v30, v50); LODWORD(v114) = v117; } v51 = (*(float (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 490) + 168LL))( *((_QWORD *)this + 490), v50); *(__n128 *)&v52 = cocos2d::CCPoint::operator*(&v113, v51); (*(void (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 490) + 192LL))( *((_QWORD *)this + 490), v52); cocos2d::CCPoint::operator+(&v115, &v117); v53 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 168LL))(*((_QWORD *)this + 490)); *(__n128 *)&v54 = cocos2d::CCPoint::operator*(&v114, v53); (*(void (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 490) + 192LL))( *((_QWORD *)this + 490), v54); cocos2d::CCPoint::operator+(&v116, &v117); if ( v83 ) HIDWORD(v113) = HIDWORD(v115); if ( v29 ) LODWORD(v113) = v115; if ( MainObject ) HIDWORD(v114) = HIDWORD(v116); if ( v30 ) LODWORD(v114) = v116; (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL))(v10, &v113); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 128LL))( v10, (float)(*(float *)&v114 - *(float *)&v113) / *(float *)&v90); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 144LL))( v10, (float)(*((float *)&v114 + 1) - *((float *)&v113 + 1)) / *((float *)&v90 + 1)); if ( *(float *)&v113 > *(float *)&v90 || *((float *)&v113 + 1) > *((float *)&v90 + 1) || *(float *)&v114 < 0.0 ) goto LABEL_26; v33 = *((float *)&v114 + 1) < 0.0; } goto LABEL_43; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v103); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v105); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v107); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v109); if ( *(_BYTE *)(v10 + 592) ) { cocos2d::CCPoint::operator=(&v103, &v91); cocos2d::CCPoint::operator=(&v105, &v92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v117, v103, v106); cocos2d::CCPoint::operator=(&v107, &v117); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v117, v105, v104); v38 = cocos2d::CCPoint::operator=(&v109, &v117); if ( MainObject ) { (*(void (__fastcall **)(__int64 *__return_ptr, long double))(*(_QWORD *)MainObject + 1360LL))( &v117, *(long double *)&v38); v38 = cocos2d::CCPoint::operator=(&v103, &v117); } if ( v83 ) { (*(void (__fastcall **)(__int64 *__return_ptr, long double))(*(_QWORD *)v83 + 1360LL))( &v117, *(long double *)&v38); v38 = cocos2d::CCPoint::operator=(&v109, &v117); } if ( v29 ) { (*(void (__fastcall **)(__int64 *__return_ptr, __int64, long double))(*(_QWORD *)v29 + 1360LL))( &v117, v29, *(long double *)&v38); v38 = cocos2d::CCPoint::operator=(&v107, &v117); } if ( v30 ) { (*(void (__fastcall **)(__int64 *__return_ptr, __int64, long double))(*(_QWORD *)v30 + 1360LL))( &v117, v30, *(long double *)&v38); cocos2d::CCPoint::operator=(&v105, &v117); } (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 1.0); v39 = ((long double (__fastcall *)(__int64, float *))*(_QWORD *)(*(_QWORD *)v10 + 184LL))(v10, &v103); cocos2d::CCPoint::operator-(&v115, &v109, &v103, v39); cocos2d::CCPoint::operator-(&v116, &v107, &v103, v40); cocos2d::CCPoint::operator-(&v117, &v105, &v103, v41); cocos2d::CCLayerColor::setVertices(v10, &v115, &v116, &v117); v42 = v103; if ( v107 <= v105 ) { if ( v109 > v107 ) { v45 = v107; if ( v107 > v105 ) { LABEL_67: if ( v103 > v105 ) { v43 = v105; goto LABEL_69; } goto LABEL_75; } LABEL_74: if ( v45 < v103 ) { v43 = v105; if ( v107 <= v105 ) { if ( v107 < v109 ) { LABEL_70: v44 = v105; if ( v107 <= v105 ) v44 = v107; LABEL_76: if ( v44 > *(float *)&v97 ) goto LABEL_26; v46 = v104; if ( v108 <= v106 ) { if ( v110 <= v108 ) goto LABEL_79; v47 = v108; if ( v108 <= v106 ) { LABEL_80: if ( v47 < v104 ) { v48 = v106; if ( v108 <= v106 ) v48 = v108; goto LABEL_83; } goto LABEL_184; } } else if ( v110 <= v106 ) { LABEL_79: v47 = v110; goto LABEL_80; } if ( v104 > v106 ) { v48 = v106; LABEL_83: if ( v48 >= v110 ) { v49 = v110; } else { v49 = v106; if ( v108 <= v106 ) v49 = v108; } LABEL_185: if ( v49 > *((float *)&v97 + 1) ) goto LABEL_26; if ( v107 >= v105 ) { if ( v109 >= v107 ) goto LABEL_188; v78 = v107; if ( v107 >= v105 ) goto LABEL_189; } else if ( v109 >= v105 ) { LABEL_188: v78 = v109; LABEL_189: if ( v78 <= v103 ) goto LABEL_195; v79 = v105; if ( v107 >= v105 ) v79 = v107; goto LABEL_192; } if ( v103 >= v105 ) goto LABEL_195; v79 = v105; LABEL_192: if ( v79 <= v109 ) { v42 = v109; } else { v42 = v105; if ( v107 >= v105 ) v42 = v107; } LABEL_195: if ( v42 < *(float *)&v96 ) goto LABEL_26; if ( v108 >= v106 ) { if ( v110 >= v108 ) goto LABEL_198; v80 = v108; if ( v108 >= v106 ) { LABEL_199: if ( v80 > v104 ) { v81 = v106; if ( v108 >= v106 ) v81 = v108; goto LABEL_202; } goto LABEL_205; } } else if ( v110 >= v106 ) { LABEL_198: v80 = v110; goto LABEL_199; } if ( v104 < v106 ) { v81 = v106; LABEL_202: v46 = v110; if ( v81 > v110 ) { v46 = v106; if ( v108 >= v106 ) v46 = v108; } } LABEL_205: v33 = v46 < *((float *)&v96 + 1); goto LABEL_43; } LABEL_184: v49 = v104; goto LABEL_185; } LABEL_206: v44 = v109; goto LABEL_76; } LABEL_69: if ( v43 < v109 ) goto LABEL_70; goto LABEL_206; } LABEL_75: v44 = v103; goto LABEL_76; } } else if ( v109 > v105 ) { goto LABEL_67; } v45 = v109; goto LABEL_74; } cocos2d::CCPoint::operator=(&v103, v100); cocos2d::CCPoint::operator=(&v105, v101); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v117, v103, v106); cocos2d::CCPoint::operator=(&v107, &v117); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v117, v105, v104); v55 = cocos2d::CCPoint::operator=(&v109, &v117); if ( MainObject ) { (*(void (__fastcall **)(__int64 *__return_ptr, long double))(*(_QWORD *)MainObject + 1360LL))( &v117, *(long double *)&v55); v55 = cocos2d::CCPoint::operator=(&v103, &v117); } if ( v83 ) { (*(void (__fastcall **)(__int64 *__return_ptr, long double))(*(_QWORD *)v83 + 1360LL))( &v117, *(long double *)&v55); v55 = cocos2d::CCPoint::operator=(&v109, &v117); } if ( v29 ) { (*(void (__fastcall **)(__int64 *__return_ptr, __int64, long double))(*(_QWORD *)v29 + 1360LL))( &v117, v29, *(long double *)&v55); v55 = cocos2d::CCPoint::operator=(&v107, &v117); } if ( v30 ) { (*(void (__fastcall **)(__int64 *__return_ptr, __int64, long double))(*(_QWORD *)v30 + 1360LL))( &v117, v30, *(long double *)&v55); v55 = cocos2d::CCPoint::operator=(&v105, &v117); } v56 = (*(float (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 490) + 168LL))( *((_QWORD *)this + 490), *(long double *)&v55); *(__n128 *)&v57 = cocos2d::CCPoint::operator*(&v103, v56); (*(void (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 490) + 192LL))(*((_QWORD *)this + 490), v57); cocos2d::CCPoint::operator+(&v111, &v117); v58 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 168LL))(*((_QWORD *)this + 490)); *(__n128 *)&v59 = cocos2d::CCPoint::operator*(&v109, v58); (*(void (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 490) + 192LL))(*((_QWORD *)this + 490), v59); cocos2d::CCPoint::operator+(&v112, &v117); v60 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 168LL))(*((_QWORD *)this + 490)); *(__n128 *)&v61 = cocos2d::CCPoint::operator*(&v105, v60); (*(void (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 490) + 192LL))(*((_QWORD *)this + 490), v61); cocos2d::CCPoint::operator+(&v113, &v117); v62 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 168LL))(*((_QWORD *)this + 490)); *(__n128 *)&v63 = cocos2d::CCPoint::operator*(&v107, v62); (*(void (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 490) + 192LL))(*((_QWORD *)this + 490), v63); cocos2d::CCPoint::operator+(&v114, &v117); if ( MainObject ) cocos2d::CCPoint::operator=(&v103, &v111); if ( v83 ) cocos2d::CCPoint::operator=(&v109, &v112); if ( v29 ) cocos2d::CCPoint::operator=(&v107, &v114); if ( v30 ) cocos2d::CCPoint::operator=(&v105, &v113); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 1.0); v64 = ((long double (__fastcall *)(__int64, float *))*(_QWORD *)(*(_QWORD *)v10 + 184LL))(v10, &v103); cocos2d::CCPoint::operator-(&v115, &v109, &v103, v64); cocos2d::CCPoint::operator-(&v116, &v107, &v103, v65); cocos2d::CCPoint::operator-(&v117, &v105, &v103, v66); cocos2d::CCLayerColor::setVertices(v10, &v115, &v116, &v117); v67 = v103; if ( v107 <= v105 ) { if ( v109 > v107 ) { if ( v107 > v105 ) { LABEL_129: if ( v103 > v105 ) { v68 = v105; goto LABEL_131; } LABEL_136: v69 = v103; goto LABEL_137; } if ( v107 >= v103 ) goto LABEL_136; LABEL_165: v68 = v105; if ( v107 <= v105 ) { if ( v107 < v109 ) { LABEL_132: v69 = v105; if ( v107 <= v105 ) v69 = v107; LABEL_137: if ( v69 > v99[0] ) goto LABEL_26; v70 = v104; if ( v108 <= v106 ) { if ( v110 > v108 ) { v76 = v108; if ( v108 > v106 ) goto LABEL_140; LABEL_175: if ( v76 >= v104 ) goto LABEL_141; v77 = v106; if ( v108 <= v106 ) v77 = v108; goto LABEL_178; } } else if ( v110 > v106 ) { LABEL_140: if ( v104 <= v106 ) { LABEL_141: v71 = v104; goto LABEL_142; } v77 = v106; LABEL_178: if ( v77 >= v110 ) { v71 = v110; } else { v71 = v106; if ( v108 <= v106 ) v71 = v108; } LABEL_142: if ( v71 > v99[1] ) goto LABEL_26; if ( v107 >= v105 ) { if ( v109 >= v107 ) goto LABEL_145; v72 = v107; if ( v107 >= v105 ) goto LABEL_146; } else if ( v109 >= v105 ) { LABEL_145: v72 = v109; LABEL_146: if ( v72 <= v103 ) goto LABEL_152; v73 = v105; if ( v107 >= v105 ) v73 = v107; goto LABEL_149; } if ( v103 >= v105 ) goto LABEL_152; v73 = v105; LABEL_149: if ( v73 <= v109 ) { v67 = v109; } else { v67 = v105; if ( v107 >= v105 ) v67 = v107; } LABEL_152: if ( v67 < v98[0] ) goto LABEL_26; if ( v108 >= v106 ) { if ( v110 >= v108 ) goto LABEL_155; v74 = v108; if ( v108 >= v106 ) { LABEL_156: if ( v74 > v104 ) { v75 = v106; if ( v108 >= v106 ) v75 = v108; goto LABEL_159; } goto LABEL_162; } } else if ( v110 >= v106 ) { LABEL_155: v74 = v110; goto LABEL_156; } if ( v104 < v106 ) { v75 = v106; LABEL_159: v70 = v110; if ( v75 > v110 ) { v70 = v106; if ( v108 >= v106 ) v70 = v108; } } LABEL_162: v33 = v70 < v98[1]; LABEL_43: if ( !v33 ) { cocos2d::CCLayerGradient::setValues(v10, &v86, (unsigned int)v22, &v88, (unsigned int)v24, v10 + 572); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 344LL))(v10, 1); ++*((_DWORD *)this + 3102); if ( *(_DWORD *)(v10 + 596) != 3 ) goto LABEL_10; if ( !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 512LL))(v10) ) goto LABEL_10; v34 = *((_QWORD *)this + 1552); if ( !v34 ) goto LABEL_10; if ( !*(_BYTE *)(v34 + 1078) ) goto LABEL_10; v35 = *(_DWORD *)(v34 + 1068); v36 = v34 + 408; v37 = *(_DWORD *)(v10 + 600); if ( v35 > v37 || v37 > *(_DWORD *)(v36 + 664) || v37 > 14 ) goto LABEL_10; } goto LABEL_26; } v76 = v110; goto LABEL_175; } LABEL_207: v69 = v109; goto LABEL_137; } LABEL_131: if ( v68 < v109 ) goto LABEL_132; goto LABEL_207; } } else if ( v109 > v105 ) { goto LABEL_129; } if ( v109 >= v103 ) goto LABEL_136; goto LABEL_165; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source