// // GJBaseGameLayer::updateGradientLayers from 0x1001efd70 to 0x1001f0c20 (3760 bytes) // // 6 xrefs: // > PlayLayer::resetLevel @ 0x1001221e4 // > PlayLayer::resetLevel @ 0x100122244 // > GJBaseGameLayer::update @ 0x1001fef6c // > GJBaseGameLayer::update @ 0x1001ff1e4 // > LevelEditorLayer::updateEditor @ 0x100358488 // > LevelEditorLayer::onPlaytest @ 0x100362f94 // // 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 __fastcall GJBaseGameLayer::updateGradientLayers(GJBaseGameLayer *a1) { cocos2d::CCDirector *v2; // x0 float v3; // s8 float32x2_t *v4; // x0 __n128 v5; // q0 __n128 v6; // q1 __n128 v7; // q0 __n128 v8; // q1 __n128 v9; // q0 float v10; // s8 __n128 v11; // q1 __n128 v12; // q0 __n128 v13; // q1 __n128 v14; // q0 __n128 v15; // q1 __n128 v16; // q0 float v18; // s8 __n128 v19; // q0 __n128 v20; // q1 float32x2_t v24; // d2 __n128 v25; // q0 __n128 v26; // q1 cocos2d::CCDictionary *m_gradientLayers; // x8 cocos2d::CCDictElement *m_pElements; // x27 cocos2d::CCObject *m_pObject; // x21 __int64 v30; // x26 float v31; // s8 GJSpriteColor *MainColor; // x0 GJSpriteColor *SecondaryColor; // x0 float v34; // s10 float v35; // s8 float v36; // s0 __n128 v37; // q0 __n128 v38; // q1 GameObject *MainObject; // x24 GameObject *v40; // x25 GameObject *v41; // x23 GameObject *v42; // x22 __n128 v43; // q0 __n128 v44; // q1 __n128 v45; // q0 __n128 v46; // q1 __n128 v47; // q0 float v48; // s0 float v49; // s1 float v50; // s3 float v51; // s2 float v52; // s16 float v53; // s0 __int64 v54; // x0 __n128 v55; // q0 float v56; // s1 __n128 v57; // q0 __n128 v58; // q1 __n128 v59; // q0 __n128 v60; // q1 __n128 v61; // q0 float v62; // s0 double v63; // d0 float32x2_t *v64; // x0 double v65; // d0 float v66; // s0 double v67; // d0 float32x2_t *v68; // x0 double v69; // d0 float v70; // s0 double v71; // d0 float32x2_t *v72; // x0 double v73; // d0 float v74; // s0 double v75; // d0 float32x2_t *v76; // x0 float v77; // s0 float v78; // s1 float v79; // s3 float v80; // s2 float v81; // s16 __n128 v83; // q0 float v84; // s0 double v85; // d0 float32x2_t *v86; // x0 double v87; // d0 float v88; // s0 double v89; // d0 float32x2_t *v90; // x0 __n128 v91; // q0 ShaderLayer *m_shaderLayer; // x8 int m_unknown2; // w9 float32x2_t v94; // [xsp+8h] [xbp-138h] BYREF float32x2_t v95; // [xsp+10h] [xbp-130h] BYREF float32x2_t v96; // [xsp+18h] [xbp-128h] BYREF float32x2_t v97; // [xsp+20h] [xbp-120h] BYREF float32x2_t v98; // [xsp+28h] [xbp-118h] BYREF float32x2_t v99; // [xsp+30h] [xbp-110h] BYREF float32x2_t v100; // [xsp+38h] [xbp-108h] BYREF float32x2_t v101; // [xsp+40h] [xbp-100h] BYREF float32x2_t v102; // [xsp+48h] [xbp-F8h] BYREF float32x2_t v103; // [xsp+50h] [xbp-F0h] BYREF float32x2_t v104; // [xsp+58h] [xbp-E8h] BYREF double v105; // [xsp+60h] [xbp-E0h] BYREF cocos2d::ccColor3B v106; // [xsp+68h] [xbp-D8h] BYREF cocos2d::ccColor3B v107; // [xsp+6Ch] [xbp-D4h] BYREF double v108; // [xsp+70h] [xbp-D0h] BYREF double v109; // [xsp+78h] [xbp-C8h] BYREF __int64 v110; // [xsp+80h] [xbp-C0h] BYREF float32x2_t v111; // [xsp+88h] [xbp-B8h] BYREF float32x2_t v112; // [xsp+90h] [xbp-B0h] BYREF float32x2_t v113; // [xsp+98h] [xbp-A8h] BYREF float32x2_t v114; // [xsp+A0h] [xbp-A0h] BYREF float32x2_t v115; // [xsp+A8h] [xbp-98h] BYREF float32x2_t v116; // [xsp+B0h] [xbp-90h] BYREF float32x2_t v117; // [xsp+B8h] [xbp-88h] BYREF unsigned __int32 v118; // [xsp+C0h] [xbp-80h] unsigned __int32 v119; // [xsp+C4h] [xbp-7Ch] cocos2d::CCSize WinSize; // 0:kr00_8.8 __float2 v121; // 0:kr08_8.8 cocos2d::CCPoint v122; // 0:s0.4,4:s1.4 cocos2d::CCPoint v123; // 0:s0.4,4:s1.4 cocos2d::CCPoint v124; // 0:s0.4,4:s1.4 cocos2d::CCPoint v125; // 0:s2.4,4:s3.4 cocos2d::CCPoint v126; // 0:s2.4,4:s3.4 cocos2d::CCPoint v127; // 0:s2.4,4:s3.4 cocos2d::CCPoint v128; // 0:s4.4,4:s5.4 cocos2d::CCPoint v129; // 0:s4.4,4:s5.4 cocos2d::CCPoint v130; // 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 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getPosition)(a1->m_objectLayer); sub_100022A14(v4, &v116, v3); v5.n128_f32[1] = sub_100022A04(&v116, &v117).f32[1]; v5.n128_u32[0] = v118; v6.n128_u32[0] = v119; sub_100022980(v5, v6, &v114); sub_100022A14(&v114, &v115, v3); v7.n128_f32[1] = sub_1000229DC(&v117, &v115, &v116).f32[1]; v7.n128_u32[0] = v118; v8.n128_u32[0] = v119; sub_100022980(v7, v8, &v113); sub_100022A14(&v113, &v114, v3); sub_100022B08(&v115, (double *)&v114); sub_1000229C4(&v112, (double *)&v115); sub_100022A14(&v112, &v113, 0.5); v9.n128_f32[1] = sub_1000229DC(&v117, &v113, &v114).f32[1]; v10 = sqrtf((float)(v115.f32[1] * v115.f32[1]) + (float)(v115.f32[0] * v115.f32[0])) * 0.5; v9.n128_f32[0] = v10; v11.n128_f32[0] = v10; sub_100022980(v9, v11, &v112); v12.n128_f32[1] = sub_1000229F0(&v114, &v112, &v113).f32[1]; v12.n128_f32[0] = v10; v13.n128_f32[0] = v10; sub_100022980(v12, v13, &v111); sub_1000229DC(&v114, &v111, &v112); sub_1000229B8((__int64 *)&v111, &qword_10086C9A0); v14.n128_u32[0] = v118; v15.n128_u32[0] = v119; sub_100022980(v14, v15, &v110); if ( a1->m_gameState.m_cameraAngle != 0.0 ) { v18 = sqrtf((float)(*(float *)&v119 * *(float *)&v119) + (float)(*(float *)&v118 * *(float *)&v118)) * 0.5; v16.n128_f32[0] = (float)(*(float *)&v118 * 0.5) - v18; _Q1.n128_f32[0] = (float)(*(float *)&v119 * 0.5) - v18; sub_100022980(v16, _Q1, &v109); v19.n128_f64[0] = sub_1000229D0(&v111, &v109); v19.n128_f32[0] = v18 + (float)(*(float *)&v118 * 0.5); v20.n128_f32[0] = v18 + (float)(*(float *)&v119 * 0.5); sub_100022980(v19, v20, &v109); sub_1000229D0(&v110, &v109); } __asm { FMOV V1.2S, #-20.0 } v24 = vadd_f32(v117, (float32x2_t)_Q1.n128_u64[0]); __asm { FMOV V1.2S, #20.0 } v16.n128_u64[0] = (unsigned __int64)vadd_f32(v116, (float32x2_t)_Q1.n128_u64[0]); v116 = (float32x2_t)v16.n128_u64[0]; v117 = v24; v16.n128_u32[0] = -20.0; _Q1.n128_u32[0] = -20.0; sub_100022980(v16, _Q1, &v109); v25.n128_f32[0] = *(float *)&v118 + 20.0; v26.n128_f32[0] = *(float *)&v119 + 20.0; sub_100022980(v25, v26, &v108); a1->m_activeGradients = 0; m_gradientLayers = a1->m_gradientLayers; if ( m_gradientLayers ) { m_pElements = m_gradientLayers->m_pElements; if ( m_pElements ) { while ( 1 ) { m_pObject = m_pElements->m_pObject; m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next; if ( !((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].~CCObject_0)(m_pObject) ) goto LABEL_152; v30 = *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount; if ( !v30 ) goto LABEL_152; if ( *(_DWORD *)(v30 + 1844) == m_pObject[10].m_nZOrder ) break; ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[6].acceptVisitor)(m_pObject, 0); *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount = 0; LOBYTE(m_pObject[10].m_uIndexInArray) = 0; LABEL_152: if ( !m_pElements ) return; } v31 = ((float (__fastcall *)(GJBaseGameLayer *, _QWORD))a1->opacityForObject)( a1, *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount); if ( a1->m_isEditor && a1->m_playbackMode != Playing ) v31 = v31 * *(float *)(v30 + 1868); v107 = GJEffectManager::activeColorForIndex(a1->m_effectManager, HIDWORD(m_pObject[10].__vftable)); v106 = GJEffectManager::activeColorForIndex(a1->m_effectManager, m_pObject[10].m_uID); MainColor = GameObject::getMainColor((GameObject *)v30); if ( MainColor && (MainColor->m_hsv.h != *(float *)&xmmword_10086C9C0 || MainColor->m_hsv.s != *((float *)&xmmword_10086C9C0 + 1) || MainColor->m_hsv.v != *((float *)&xmmword_10086C9C0 + 2) || __PAIR64__(MainColor->m_hsv.absoluteBrightness, MainColor->m_hsv.absoluteSaturation) != __PAIR64__(BYTE13(xmmword_10086C9C0), BYTE12(xmmword_10086C9C0))) ) { v107 = GameToolbox::transformColor_1(&v107, MainColor->m_hsv); } SecondaryColor = GameObject::getSecondaryColor((GameObject *)v30); if ( SecondaryColor && (SecondaryColor->m_hsv.h != *(float *)&xmmword_10086C9C0 || SecondaryColor->m_hsv.s != *((float *)&xmmword_10086C9C0 + 1) || SecondaryColor->m_hsv.v != *((float *)&xmmword_10086C9C0 + 2) || __PAIR64__(SecondaryColor->m_hsv.absoluteBrightness, SecondaryColor->m_hsv.absoluteSaturation) != __PAIR64__(BYTE13(xmmword_10086C9C0), BYTE12(xmmword_10086C9C0))) ) { v106 = GameToolbox::transformColor_1(&v106, SecondaryColor->m_hsv); } v34 = v31 * (float)(GJEffectManager::activeOpacityForIndex(a1->m_effectManager, HIDWORD(m_pObject[10].__vftable)) * 255.0); v35 = v31 * (float)(GJEffectManager::activeOpacityForIndex(a1->m_effectManager, m_pObject[10].m_uID) * 255.0); if ( (v34 != 0.0 || v35 != 0.0) && (m_pObject[10].m_uUnknown != 1 || v107.r || __PAIR16__(v107.g, 0) != v107.b || v106.r || __PAIR16__(v106.g, 0) != v106.b) ) { v36 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v30 + 352LL))(v30); v121 = __sincosf_stret(v36 * -0.017453); v37.n128_u32[0] = LODWORD(v121.__cosval); v38.n128_u32[0] = LODWORD(v121.__sinval); sub_100022980(v37, v38, &v105); sub_1000229D0(&m_pObject[10].m_nLuaID, &v105); MainObject = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v30 + 1848)); v40 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v30 + 1852)); v41 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v30 + 1856)); v42 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v30 + 1860)); if ( (*(_BYTE *)(v30 + 1864) & 1) != 0 ) { sub_1000229B0(&v104); sub_1000229B0(&v103); sub_1000229B0(&v102); sub_1000229B0(&v101); if ( LOBYTE(m_pObject[10].m_uIndexInArray) == 1 ) { sub_1000229D0(&v104, (double *)&v117); v43.n128_f64[0] = sub_1000229D0(&v103, (double *)&v116); v44.n128_u32[0] = v103.u32[1]; v43.n128_u32[0] = v104.i32[0]; sub_100022980(v43, v44, &v100); v45.n128_f64[0] = sub_1000229D0(&v102, (double *)&v100); v45.n128_u32[0] = v103.i32[0]; v46.n128_u32[0] = v104.u32[1]; sub_100022980(v45, v46, &v100); v47.n128_f64[0] = sub_1000229D0(&v101, (double *)&v100); if ( MainObject ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, double))MainObject->getRealPosition)( &v100, MainObject, v47.n128_f64[0]); v47.n128_f64[0] = sub_1000229D0(&v104, (double *)&v100); } if ( v40 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))v40->getRealPosition)( &v100, v40, v47); v47.n128_f64[0] = sub_1000229D0(&v101, (double *)&v100); } if ( v41 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))v41->getRealPosition)( &v100, v41, v47); v47.n128_f64[0] = sub_1000229D0(&v102, (double *)&v100); } if ( v42 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))v42->getRealPosition)( &v100, v42, v47); sub_1000229D0(&v103, (double *)&v100); } ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[2].copyWithZone)(m_pObject, 1.0); ((void (__fastcall *)(cocos2d::CCObject *, float32x2_t *))m_pObject->__vftable[2].isEqual)(m_pObject, &v104); sub_1000229F0(&v101, &v104, &v100); sub_1000229F0(&v102, &v104, &v99); v122.x = sub_1000229F0(&v103, &v104, &v98).f32[0]; cocos2d::CCLayerColor::setVertices((cocos2d::CCLayerColor *)m_pObject, v122, v125, v128); v48 = v104.f32[0]; v49 = v101.f32[0]; v50 = v102.f32[0]; if ( v102.f32[0] <= v103.f32[0] ) v51 = v102.f32[0]; else v51 = v103.f32[0]; if ( v101.f32[0] <= v51 ) v51 = v101.f32[0]; if ( v104.f32[0] <= v51 ) v51 = v104.f32[0]; if ( v51 <= v112.f32[0] ) { if ( v102.f32[1] <= v103.f32[1] ) v52 = v102.f32[1]; else v52 = v103.f32[1]; if ( v101.f32[1] <= v52 ) v52 = v101.f32[1]; if ( v104.f32[1] <= v52 ) v52 = v104.f32[1]; if ( v52 <= v112.f32[1] ) { if ( v102.f32[0] < v103.f32[0] ) v50 = v103.f32[0]; if ( v101.f32[0] < v50 ) v49 = v50; if ( v104.f32[0] < v49 ) v48 = v49; if ( v48 >= v113.f32[0] ) { if ( v102.f32[1] >= v103.f32[1] ) v53 = v102.f32[1]; else v53 = v103.f32[1]; if ( v101.f32[1] >= v53 ) v53 = v101.f32[1]; if ( v104.f32[1] >= v53 ) v53 = v104.f32[1]; goto LABEL_85; } } } } else { sub_1000229D0(&v104, &v109); v57.n128_f64[0] = sub_1000229D0(&v103, &v108); v58.n128_u32[0] = v103.u32[1]; v57.n128_u32[0] = v104.i32[0]; sub_100022980(v57, v58, &v100); v59.n128_f64[0] = sub_1000229D0(&v102, (double *)&v100); v59.n128_u32[0] = v103.i32[0]; v60.n128_u32[0] = v104.u32[1]; sub_100022980(v59, v60, &v100); v61.n128_f64[0] = sub_1000229D0(&v101, (double *)&v100); if ( MainObject ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, double))MainObject->getRealPosition)( &v100, MainObject, v61.n128_f64[0]); v61.n128_f64[0] = sub_1000229D0(&v104, (double *)&v100); } if ( v40 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))v40->getRealPosition)( &v100, v40, v61); v61.n128_f64[0] = sub_1000229D0(&v101, (double *)&v100); } if ( v41 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))v41->getRealPosition)( &v100, v41, v61); v61.n128_f64[0] = sub_1000229D0(&v102, (double *)&v100); } if ( v42 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))v42->getRealPosition)( &v100, v42, v61); v61.n128_f64[0] = sub_1000229D0(&v103, (double *)&v100); } v62 = ((float (__fastcall *)(cocos2d::CCLayer *, __n128))a1->m_objectLayer->getScale)( a1->m_objectLayer, v61); *(float32x2_t *)&v63 = sub_100022A14(&v104, &v99, v62); v64 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayer *, double))a1->m_objectLayer->getPosition)( a1->m_objectLayer, v63); *(float32x2_t *)&v65 = sub_1000229DC(&v99, v64, &v100); v66 = ((float (__fastcall *)(cocos2d::CCLayer *, double))a1->m_objectLayer->getScale)( a1->m_objectLayer, v65); *(float32x2_t *)&v67 = sub_100022A14(&v101, &v98, v66); v68 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayer *, double))a1->m_objectLayer->getPosition)( a1->m_objectLayer, v67); *(float32x2_t *)&v69 = sub_1000229DC(&v98, v68, &v99); v70 = ((float (__fastcall *)(cocos2d::CCLayer *, double))a1->m_objectLayer->getScale)( a1->m_objectLayer, v69); *(float32x2_t *)&v71 = sub_100022A14(&v103, &v97, v70); v72 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayer *, double))a1->m_objectLayer->getPosition)( a1->m_objectLayer, v71); *(float32x2_t *)&v73 = sub_1000229DC(&v97, v72, &v98); v74 = ((float (__fastcall *)(cocos2d::CCLayer *, double))a1->m_objectLayer->getScale)( a1->m_objectLayer, v73); *(float32x2_t *)&v75 = sub_100022A14(&v102, &v96, v74); v76 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayer *, double))a1->m_objectLayer->getPosition)( a1->m_objectLayer, v75); sub_1000229DC(&v96, v76, &v97); if ( MainObject ) sub_1000229D0(&v104, (double *)&v100); if ( v40 ) sub_1000229D0(&v101, (double *)&v99); if ( v41 ) sub_1000229D0(&v102, (double *)&v97); if ( v42 ) sub_1000229D0(&v103, (double *)&v98); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[2].copyWithZone)(m_pObject, 1.0); ((void (__fastcall *)(cocos2d::CCObject *, float32x2_t *))m_pObject->__vftable[2].isEqual)(m_pObject, &v104); sub_1000229F0(&v101, &v104, &v96); sub_1000229F0(&v102, &v104, &v95); v124.x = sub_1000229F0(&v103, &v104, &v94).f32[0]; cocos2d::CCLayerColor::setVertices((cocos2d::CCLayerColor *)m_pObject, v124, v127, v130); v77 = v104.f32[0]; v78 = v101.f32[0]; v79 = v102.f32[0]; if ( v102.f32[0] <= v103.f32[0] ) v80 = v102.f32[0]; else v80 = v103.f32[0]; if ( v101.f32[0] <= v80 ) v80 = v101.f32[0]; if ( v104.f32[0] <= v80 ) v80 = v104.f32[0]; if ( v80 <= *(float *)&v110 ) { if ( v102.f32[1] <= v103.f32[1] ) v81 = v102.f32[1]; else v81 = v103.f32[1]; if ( v101.f32[1] <= v81 ) v81 = v101.f32[1]; if ( v104.f32[1] <= v81 ) v81 = v104.f32[1]; if ( v81 <= *((float *)&v110 + 1) ) { if ( v102.f32[0] < v103.f32[0] ) v79 = v103.f32[0]; if ( v101.f32[0] < v79 ) v78 = v79; if ( v104.f32[0] < v78 ) v77 = v78; if ( v77 >= v111.f32[0] ) { if ( v102.f32[1] >= v103.f32[1] ) v53 = v102.f32[1]; else v53 = v103.f32[1]; if ( v101.f32[1] >= v53 ) v53 = v101.f32[1]; if ( v104.f32[1] >= v53 ) v53 = v104.f32[1]; v56 = v111.f32[1]; goto LABEL_133; } } } } } else { sub_1000229B8((__int64 *)&v104, &qword_10086C9A0); sub_1000229B8((__int64 *)&v103, &qword_10086C9A0); v123.x = sub_1000229B8((__int64 *)&v102, &qword_10086C9A0); cocos2d::CCLayerColor::setVertices((cocos2d::CCLayerColor *)m_pObject, v123, v126, v129); v54 = ((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[3].setTag)(m_pObject); ((void (__fastcall *)(cocos2d::CCObject *, __int64))m_pObject->__vftable[3].getTag)(m_pObject, v54); sub_1000229B0(&v104); sub_1000229B0(&v103); if ( LOBYTE(m_pObject[10].m_uIndexInArray) == 1 ) { sub_1000229D0(&v104, (double *)&v117); v55.n128_f64[0] = sub_1000229D0(&v103, (double *)&v116); if ( v40 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, double))v40->getRealPosition)( &v102, v40, v55.n128_f64[0]); v55.n128_u32[0] = v102.u32[1]; v104.i32[1] = v102.i32[1]; } if ( v41 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))v41->getRealPosition)( &v102, v41, v55); v55.n128_u32[0] = v102.i32[0]; v104.i32[0] = v102.i32[0]; } if ( MainObject ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))MainObject->getRealPosition)( &v102, MainObject, v55); v55.n128_u32[0] = v102.u32[1]; v103.i32[1] = v102.i32[1]; } if ( v42 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))v42->getRealPosition)( &v102, v42, v55); v55.n128_u32[0] = v102.i32[0]; v103.i32[0] = v102.i32[0]; } ((void (__fastcall *)(cocos2d::CCObject *, float32x2_t *, __n128))m_pObject->__vftable[2].isEqual)( m_pObject, &v104, v55); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].encodeWithCoder)( m_pObject, (float)(v103.f32[0] - v104.f32[0]) / *(float *)&v118); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].getTag)( m_pObject, (float)(v103.f32[1] - v104.f32[1]) / *(float *)&v119); if ( v104.f32[0] <= v112.f32[0] && v104.f32[1] <= v112.f32[1] && v103.f32[0] >= v113.f32[0] ) { v53 = v103.f32[1]; LABEL_85: v56 = v113.f32[1]; LABEL_133: _NF = v53 < v56; LABEL_157: if ( !_NF ) { cocos2d::CCLayerGradient::setValues( (cocos2d::CCLayerGradient *)m_pObject, &v107, (int)v34, &v106, (int)v35, (const cocos2d::CCPoint *)&m_pObject[10].m_nLuaID); ((void (__fastcall *)(cocos2d::CCObject *, __int64))m_pObject->__vftable[4].~CCObject)(m_pObject, 1); ++a1->m_activeGradients; if ( m_pObject[10].m_uUnknown != 3 ) goto LABEL_152; if ( !((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].~CCObject_0)(m_pObject) ) goto LABEL_152; m_shaderLayer = a1->m_shaderLayer; if ( !m_shaderLayer ) goto LABEL_152; if ( !m_shaderLayer->m_state.m_usesShaders ) goto LABEL_152; m_unknown2 = m_pObject[10].m_unknown2; if ( m_shaderLayer->m_state.m_minBlendingLayer > m_unknown2 || m_unknown2 > 14 || m_shaderLayer->m_state.m_maxBlendingLayer < m_unknown2 ) { goto LABEL_152; } } } } else { sub_1000229D0(&v104, &v109); v83.n128_f64[0] = sub_1000229D0(&v103, &v108); if ( v40 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, double))v40->getRealPosition)( &v102, v40, v83.n128_f64[0]); v83.n128_u32[0] = v102.u32[1]; v104.i32[1] = v102.i32[1]; } if ( v41 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))v41->getRealPosition)( &v102, v41, v83); v83.n128_u32[0] = v102.i32[0]; v104.i32[0] = v102.i32[0]; } if ( MainObject ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))MainObject->getRealPosition)( &v102, MainObject, v83); v83.n128_u32[0] = v102.u32[1]; v103.i32[1] = v102.i32[1]; } if ( v42 ) { ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))v42->getRealPosition)( &v102, v42, v83); v83.n128_u32[0] = v102.i32[0]; v103.i32[0] = v102.i32[0]; } v84 = ((float (__fastcall *)(cocos2d::CCLayer *, __n128))a1->m_objectLayer->getScale)( a1->m_objectLayer, v83); *(float32x2_t *)&v85 = sub_100022A14(&v104, &v101, v84); v86 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayer *, double))a1->m_objectLayer->getPosition)( a1->m_objectLayer, v85); *(float32x2_t *)&v87 = sub_1000229DC(&v101, v86, &v102); v88 = ((float (__fastcall *)(cocos2d::CCLayer *, double))a1->m_objectLayer->getScale)( a1->m_objectLayer, v87); *(float32x2_t *)&v89 = sub_100022A14(&v103, &v100, v88); v90 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayer *, double))a1->m_objectLayer->getPosition)( a1->m_objectLayer, v89); v91.n128_u64[0] = (unsigned __int64)sub_1000229DC(&v100, v90, &v101); if ( v40 ) { v91.n128_u32[0] = v102.u32[1]; v104.i32[1] = v102.i32[1]; } if ( v41 ) { v91.n128_u32[0] = v102.i32[0]; v104.i32[0] = v102.i32[0]; } if ( MainObject ) { v91.n128_u32[0] = v101.u32[1]; v103.i32[1] = v101.i32[1]; } if ( v42 ) { v91.n128_u32[0] = v101.i32[0]; v103.i32[0] = v101.i32[0]; } ((void (__fastcall *)(cocos2d::CCObject *, float32x2_t *, __n128))m_pObject->__vftable[2].isEqual)( m_pObject, &v104, v91); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].encodeWithCoder)( m_pObject, (float)(v103.f32[0] - v104.f32[0]) / *(float *)&v118); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].getTag)( m_pObject, (float)(v103.f32[1] - v104.f32[1]) / *(float *)&v119); if ( v104.f32[0] <= *(float *)&v118 && v104.f32[1] <= *(float *)&v119 && v103.f32[0] >= 0.0 ) { _NF = v103.f32[1] < 0.0; goto LABEL_157; } } } } ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[4].~CCObject)(m_pObject, 0); goto LABEL_152; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source