// // GJBaseGameLayer::updateGradientLayers from 0x1001395a0 to 0x10013a99b (5115 bytes) // // 7 xrefs: // > PlayLayer::resetLevel @ 0x1000bec11 // > PlayLayer::resetLevel @ 0x1000bec6a // > LevelEditorLayer::updateEditor @ 0x1000dd7d9 // > LevelEditorLayer::updateArt @ 0x1000dedb6 // > LevelEditorLayer::onPlaytest @ 0x1000f292e // > GJBaseGameLayer::update @ 0x1001514ff // > GJBaseGameLayer::update @ 0x100152ebc // // 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::CCPoint v1; // xmm2_8 cocos2d::CCDirector *v3; // rsi __int64 v4; // rax GJBaseGameLayer *v5; // r13 __int64 v6; // rsi __m128 v7; // xmm0 cocos2d::CCDictionary *m_gradientLayers; // rax cocos2d::CCDictElement *m_pElements; // rbx cocos2d::CCObject *m_pObject; // r12 __int64 v11; // r14 GJSpriteColor *MainColor; // rax GJSpriteColor *SecondaryColor; // rax float v14; // xmm1_4 cocos2d::CCPoint v15; // xmm1_8 intptr_t v16; // r15 cocos2d::CCDictionary *m_parentGroupsDict; // rdi intptr_t v18; // rsi intptr_t v19; // r15 cocos2d::CCObject *v20; // r13 cocos2d::CCDictionary *v21; // rdi intptr_t v22; // rsi cocos2d::CCObject *v23; // rax intptr_t v24; // r13 cocos2d::CCDictionary *v25; // rdi intptr_t v26; // rsi intptr_t v27; // r15 cocos2d::CCDictionary *v28; // rdi intptr_t v29; // rsi cocos2d::CCObject *v30; // rax cocos2d::CCPoint v31; // xmm1_8 double v32; // xmm0_8 cocos2d::CCObject *v33; // r13 cocos2d::CCPoint v34; // xmm1_8 double v35; // xmm0_8 cocos2d::CCObject *v36; // r13 GJBaseGameLayer *v37; // r14 float v38; // xmm0_4 float v39; // xmm0_4 float v40; // xmm0_4 float v41; // xmm0_4 cocos2d::CCObject *v42; // r14 bool v43; // zf __int64 v44; // r14 cocos2d::CCObject *v45; // r13 cocos2d::CCPoint v46; // xmm0_8 __int64 v47; // rax cocos2d::CCObject *v48; // r15 cocos2d::CCObject *v49; // r13 double v50; // xmm0_8 cocos2d::CCObject *v51; // r15 cocos2d::CCObject *v52; // r13 GJBaseGameLayer *v53; // r14 float v54; // xmm0_4 float v55; // xmm0_4 cocos2d::CCObject *v56; // r15 cocos2d::CCObject *v57; // r13 ShaderLayer *m_shaderLayer; // rax int m_unknown2; // ecx char v60[8]; // [rsp+8h] [rbp-128h] BYREF char v61[8]; // [rsp+10h] [rbp-120h] BYREF char v62[8]; // [rsp+18h] [rbp-118h] BYREF char v63[8]; // [rsp+20h] [rbp-110h] BYREF const cocos2d::CCPoint *p_m_nLuaID; // [rsp+28h] [rbp-108h] char v65[8]; // [rsp+34h] [rbp-FCh] BYREF char v66[8]; // [rsp+3Ch] [rbp-F4h] BYREF char v67[8]; // [rsp+44h] [rbp-ECh] BYREF char v68[8]; // [rsp+4Ch] [rbp-E4h] BYREF char v69[8]; // [rsp+54h] [rbp-DCh] BYREF float v70; // [rsp+5Ch] [rbp-D4h] BYREF float v71; // [rsp+60h] [rbp-D0h] float v72[2]; // [rsp+64h] [rbp-CCh] BYREF float v73; // [rsp+6Ch] [rbp-C4h] float v74; // [rsp+70h] [rbp-C0h] BYREF float v75; // [rsp+74h] [rbp-BCh] char v76[8]; // [rsp+78h] [rbp-B8h] BYREF unsigned __int64 v77; // [rsp+80h] [rbp-B0h] BYREF char v78[8]; // [rsp+8Ch] [rbp-A4h] BYREF float v79; // [rsp+94h] [rbp-9Ch] unsigned __int64 v80; // [rsp+98h] [rbp-98h] BYREF float v81; // [rsp+A0h] [rbp-90h] BYREF float v82; // [rsp+A4h] [rbp-8Ch] float v83; // [rsp+A8h] [rbp-88h] BYREF float v84; // [rsp+ACh] [rbp-84h] __int64 v85; // [rsp+B0h] [rbp-80h] __int64 v86; // [rsp+B8h] [rbp-78h] cocos2d::CCObject *v87; // [rsp+C0h] [rbp-70h] float v88; // [rsp+C8h] [rbp-68h] BYREF float v89; // [rsp+CCh] [rbp-64h] float v90; // [rsp+D0h] [rbp-60h] BYREF float v91; // [rsp+D4h] [rbp-5Ch] cocos2d::ccColor3B v92; // [rsp+D8h] [rbp-58h] BYREF cocos2d::ccColor3B v93; // [rsp+DCh] [rbp-54h] BYREF float v94; // [rsp+E0h] [rbp-50h] BYREF float v95; // [rsp+E4h] [rbp-4Ch] cocos2d::CCObject *v96; // [rsp+E8h] [rbp-48h] GJBaseGameLayer *v97; // [rsp+F0h] [rbp-40h] float v98; // [rsp+F8h] [rbp-38h] BYREF float v99; // [rsp+FCh] [rbp-34h] float v100; // [rsp+100h] [rbp-30h] BYREF float v101; // [rsp+104h] [rbp-2Ch] double v102; // 0:xmm0_8.8 v3 = cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v102 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v90); *(float *)&v96 = 1.0 / ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCDirector *, double))a1->m_objectLayer->getScale)( a1->m_objectLayer, v3, v102); v4 = ((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getPosition)(a1->m_objectLayer); sub_10028CD40(&v80, v4, *(float *)&v96); sub_10028CD20(&v77, &v80); sub_10028CBE0(v65, v90, v91); sub_10028CD40(&v70, v65, *(float *)&v96); sub_10028CCE0(&v80, &v77); sub_10028CBE0(&v81, v90, v91); sub_10028CD40(v65, &v81, *(float *)&v96); sub_10028CFE0(&v70, v65); sub_10028CC80(&v83, &v70); sub_10028CD40(&v81, &v83, 0.5); v5 = a1; sub_10028CCE0(v65, &v77); *(float *)&v96 = fsqrt((float)(v70 * v70) + (float)(v71 * v71)) * 0.5; sub_10028CBE0(&v83, *(float *)&v96, *(float *)&v96); sub_10028CD00(&v81, v65, &v83); sub_10028CBE0(&v74, *(float *)&v96, *(float *)&v96); sub_10028CCE0(&v83, v65); v6 = (__int64)&qword_10099EFF0; sub_10028CC60(&v74); sub_10028CBE0(v72, v90, v91); if ( a1->m_gameState.m_cameraAngle != 0.0 ) { *(float *)&v96 = fsqrt((float)(v90 * v90) + (float)(v91 * v91)) * 0.5; sub_10028CBE0(v76, (float)(v90 * 0.5) - *(float *)&v96, (float)(v91 * 0.5) - *(float *)&v96); sub_10028CC90(); v1 = (cocos2d::CCPoint)(unsigned int)v96; sub_10028CBE0(v76, (float)(v90 * 0.5) + *(float *)&v96, (float)(0.5 * v91) + *(float *)&v96); v6 = (__int64)v76; sub_10028CC90(); } _mm_storel_ps((double *)&v77, _mm_add_ps((__m128)v77, (__m128)xmmword_100816950)); _mm_storel_ps((double *)&v80, _mm_add_ps((__m128)v80, (__m128)xmmword_100815160)); sub_10028CBE0(v76, -20.0, -20.0); v7.f32[0] = v90 + 20.0; sub_10028CBE0(v66, v90 + 20.0, v91 + 20.0); a1->m_activeGradients = 0; m_gradientLayers = a1->m_gradientLayers; if ( m_gradientLayers ) { m_pElements = m_gradientLayers->m_pElements; if ( m_pElements ) { v97 = a1; while ( 1 ) { m_pObject = m_pElements->m_pObject; m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next; if ( !((__int64 (__fastcall *)(cocos2d::CCObject *, __int64))m_pObject->__vftable[6].~CCObject_0)(m_pObject, v6) ) goto LABEL_7; v11 = *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount; if ( !v11 ) goto LABEL_7; if ( *(_DWORD *)(v11 + 1844) == m_pObject[10].m_nZOrder ) break; v6 = 0; ((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_7: if ( !m_pElements ) return; } ((void (__fastcall *)(GJBaseGameLayer *, _QWORD))v5->opacityForObject)( v5, *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount); if ( v5->m_isEditor && v5->m_playbackMode != Playing ) v7.f32[0] = v7.f32[0] * *(float *)(v11 + 1868); LODWORD(v96) = v7.i32[0]; v92 = GJEffectManager::activeColorForIndex(v5->m_effectManager, HIDWORD(m_pObject[10].__vftable)); v93 = GJEffectManager::activeColorForIndex(v5->m_effectManager, m_pObject[10].m_uID); MainColor = GameObject::getMainColor((GameObject *)v11); if ( MainColor && (MainColor->m_hsv.h != *(float *)&qword_10099F010 || MainColor->m_hsv.s != *((float *)&qword_10099F010 + 1) || MainColor->m_hsv.v != *(float *)&qword_10099F018 || *(_WORD *)&MainColor->m_hsv.absoluteSaturation != WORD2(qword_10099F018)) ) { v92 = GameToolbox::transformColor_1(&v92, MainColor->m_hsv); } SecondaryColor = GameObject::getSecondaryColor((GameObject *)v11); if ( SecondaryColor && (SecondaryColor->m_hsv.h != *(float *)&qword_10099F010 || SecondaryColor->m_hsv.s != *((float *)&qword_10099F010 + 1) || SecondaryColor->m_hsv.v != *(float *)&qword_10099F018 || *(_WORD *)&SecondaryColor->m_hsv.absoluteSaturation != WORD2(qword_10099F018)) ) { v93 = GameToolbox::transformColor_1(&v93, SecondaryColor->m_hsv); } v14 = GJEffectManager::activeOpacityForIndex(v5->m_effectManager, HIDWORD(m_pObject[10].__vftable)); v7 = (__m128)0x437F0000u; v79 = (float)(v14 * 255.0) * *(float *)&v96; v7.f32[0] = GJEffectManager::activeOpacityForIndex(v5->m_effectManager, m_pObject[10].m_uID); v7.f32[0] = (float)(v7.f32[0] * 255.0) * *(float *)&v96; if ( v79 == 0.0 && v7.f32[0] == 0.0 || m_pObject[10].m_uUnknown == 1 && !v92.r && __PAIR16__(v92.g, 0) == v92.b && !v93.r && __PAIR16__(v93.g, 0) == v93.b ) { goto LABEL_128; } v73 = v7.f32[0]; v7.f32[0] = (*(float (__fastcall **)(__int64))(*(_QWORD *)v11 + 352LL))(v11); *(__float2 *)v7.f32 = __sincosf_stret(v7.f32[0] * -0.017453292); v15 = (cocos2d::CCPoint)v7.i64[0]; sub_10028CBE0(v60, _mm_movehdup_ps(v7).f32[0], v7.f32[0]); p_m_nLuaID = (const cocos2d::CCPoint *)&m_pObject[10].m_nLuaID; sub_10028CC90(); v16 = *(int *)(v11 + 1848); if ( v16 <= 0 ) { v96 = nullptr; v19 = *(int *)(v11 + 1852); if ( v19 <= 0 ) goto LABEL_95; } else { m_parentGroupsDict = v5->m_parentGroupsDict; v18 = *(int *)(v11 + 1848); v96 = cocos2d::CCDictionary::objectForKey(m_parentGroupsDict, v18); if ( v96 ) { v19 = *(int *)(v11 + 1852); if ( v19 <= 0 ) goto LABEL_95; } else { if ( (unsigned int)v16 >= 0x270F ) v16 = 9999; v20 = v5->m_groups.__begin_[v16]; if ( (v20 || (v20 = (cocos2d::CCObject *)sub_10071F9E0(m_parentGroupsDict, v18), cocos2d::CCDictionary::setObject(v97->m_groupDict, v20, v16), (v97->m_groups.__begin_[v16] = (cocos2d::CCArray *)v20) != nullptr)) && (unsigned int)sub_100720070(v20) == 1 ) { v96 = (cocos2d::CCObject *)sub_1007200C0(v20, 0); v5 = v97; v19 = *(int *)(v11 + 1852); if ( v19 <= 0 ) goto LABEL_95; } else { v96 = nullptr; v5 = v97; v19 = *(int *)(v11 + 1852); if ( v19 <= 0 ) goto LABEL_95; } } } v21 = v5->m_parentGroupsDict; v22 = v19; v23 = cocos2d::CCDictionary::objectForKey(v21, v19); if ( v23 ) { v85 = (__int64)v23; v24 = *(int *)(v11 + 1856); if ( v24 <= 0 ) goto LABEL_96; goto LABEL_49; } if ( (unsigned int)v19 >= 0x270F ) v19 = 9999; v45 = v97->m_groups.__begin_[v19]; if ( v45 || (v45 = (cocos2d::CCObject *)sub_10071F9E0(v21, v22), cocos2d::CCDictionary::setObject(v97->m_groupDict, v45, v19), (v97->m_groups.__begin_[v19] = (cocos2d::CCArray *)v45) != nullptr) ) { if ( (unsigned int)sub_100720070(v45) == 1 ) { v85 = sub_1007200C0(v45, 0); v24 = *(int *)(v11 + 1856); if ( v24 > 0 ) goto LABEL_49; } else { v85 = 0; v24 = *(int *)(v11 + 1856); if ( v24 > 0 ) goto LABEL_49; } LABEL_96: v87 = nullptr; v27 = *(int *)(v11 + 1860); if ( v27 <= 0 ) goto LABEL_97; goto LABEL_51; } LABEL_95: v85 = 0; v24 = *(int *)(v11 + 1856); if ( v24 <= 0 ) goto LABEL_96; LABEL_49: v25 = v97->m_parentGroupsDict; v26 = v24; v87 = cocos2d::CCDictionary::objectForKey(v25, v24); if ( !v87 ) { if ( (unsigned int)v24 >= 0x270F ) v24 = 9999; v56 = v97->m_groups.__begin_[v24]; if ( (v56 || (v56 = (cocos2d::CCObject *)sub_10071F9E0(v25, v26), cocos2d::CCDictionary::setObject(v97->m_groupDict, v56, v24), (v97->m_groups.__begin_[v24] = (cocos2d::CCArray *)v56) != nullptr)) && (unsigned int)sub_100720070(v56) == 1 ) { v87 = (cocos2d::CCObject *)sub_1007200C0(v56, 0); v27 = *(int *)(v11 + 1860); if ( v27 > 0 ) goto LABEL_51; } else { v87 = nullptr; v27 = *(int *)(v11 + 1860); if ( v27 > 0 ) goto LABEL_51; } LABEL_97: v86 = 0; if ( !*(_BYTE *)(v11 + 1864) ) goto LABEL_98; goto LABEL_53; } v27 = *(int *)(v11 + 1860); if ( v27 <= 0 ) goto LABEL_97; LABEL_51: v28 = v97->m_parentGroupsDict; v29 = v27; v30 = cocos2d::CCDictionary::objectForKey(v28, v27); if ( v30 ) { v86 = (__int64)v30; if ( !*(_BYTE *)(v11 + 1864) ) goto LABEL_98; goto LABEL_53; } if ( (unsigned int)v27 >= 0x270F ) v27 = 9999; v57 = v97->m_groups.__begin_[v27]; if ( (v57 || (v57 = (cocos2d::CCObject *)sub_10071F9E0(v28, v29), cocos2d::CCDictionary::setObject(v97->m_groupDict, v57, v27), (v97->m_groups.__begin_[v27] = (cocos2d::CCArray *)v57) != nullptr)) && (unsigned int)sub_100720070(v57) == 1 ) { v86 = sub_1007200C0(v57, 0); if ( !*(_BYTE *)(v11 + 1864) ) goto LABEL_98; } else { v86 = 0; if ( !*(_BYTE *)(v11 + 1864) ) { LABEL_98: sub_10028CC60(&v100); sub_10028CC60(&v98); *(double *)&v46 = sub_10028CC60(&v94); cocos2d::CCLayerColor::setVertices((cocos2d::CCLayerColor *)m_pObject, v46, v15, v1); v47 = ((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[3].setTag)(m_pObject); ((void (__fastcall *)(cocos2d::CCObject *, __int64))m_pObject->__vftable[3].getTag)(m_pObject, v47); sub_10028CC30(&v100); sub_10028CC30(&v98); if ( LOBYTE(m_pObject[10].m_uIndexInArray) == 1 ) { sub_10028CC90(); *(double *)v7.i64 = sub_10028CC90(); v48 = v96; v49 = v87; if ( v85 ) { (*(void (__fastcall **)(float *, double))(*(_QWORD *)v85 + 1344LL))(&v94, *(double *)v7.i64); v7.i64[0] = LODWORD(v95); v101 = v95; } if ( v49 ) { ((void (__fastcall *)(float *, cocos2d::CCObject *, double))v49->__vftable[16].getTag)( &v94, v49, *(double *)v7.i64); v7.i64[0] = LODWORD(v94); v100 = v94; } if ( v48 ) { ((void (__fastcall *)(float *, cocos2d::CCObject *, double))v48->__vftable[16].getTag)( &v94, v48, *(double *)v7.i64); v7.i64[0] = LODWORD(v95); v99 = v95; } if ( v86 ) { (*(void (__fastcall **)(float *, double))(*(_QWORD *)v86 + 1344LL))(&v94, *(double *)v7.i64); v7.i64[0] = LODWORD(v94); v98 = v94; } ((void (__fastcall *)(cocos2d::CCObject *, float *, double))m_pObject->__vftable[2].isEqual)( m_pObject, &v100, *(double *)v7.i64); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].encodeWithCoder)( m_pObject, (float)(v98 - v100) / v90); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].getTag)( m_pObject, (float)(v99 - v101) / v91); v7.f32[0] = v100; if ( v100 > v83 || (v7.f32[0] = v101, v101 > v84) || (v7.f32[0] = v81, v81 > v98) ) { LABEL_110: v5 = v97; goto LABEL_128; } v7.f32[0] = v82; v5 = v97; if ( v82 > v99 ) goto LABEL_128; } else { sub_10028CC90(); v50 = sub_10028CC90(); v51 = v96; v52 = v87; if ( v85 ) { (*(void (__fastcall **)(float *, double))(*(_QWORD *)v85 + 1344LL))(&v94, v50); *(_QWORD *)&v50 = LODWORD(v95); v101 = v95; } if ( v52 ) { ((void (__fastcall *)(float *, cocos2d::CCObject *, double))v52->__vftable[16].getTag)(&v94, v52, v50); *(_QWORD *)&v50 = LODWORD(v94); v100 = v94; } if ( v51 ) { ((void (__fastcall *)(float *, cocos2d::CCObject *, double))v51->__vftable[16].getTag)(&v94, v51, v50); *(_QWORD *)&v50 = LODWORD(v95); v99 = v95; } if ( v86 ) { (*(void (__fastcall **)(float *, double))(*(_QWORD *)v86 + 1344LL))(&v94, v50); *(_QWORD *)&v50 = LODWORD(v94); v98 = v94; } v53 = v97; v54 = ((float (__fastcall *)(cocos2d::CCLayer *, double))v97->m_objectLayer->getScale)( v97->m_objectLayer, v50); sub_10028CD40(&v88, &v100, v54); ((void (__fastcall *)(cocos2d::CCLayer *))v53->m_objectLayer->getPosition)(v53->m_objectLayer); sub_10028CCE0(&v94, &v88); v55 = ((float (__fastcall *)(cocos2d::CCLayer *))v53->m_objectLayer->getScale)(v53->m_objectLayer); sub_10028CD40(v78, &v98, v55); ((void (__fastcall *)(cocos2d::CCLayer *))v53->m_objectLayer->getPosition)(v53->m_objectLayer); sub_10028CCE0(&v88, v78); if ( v85 ) v101 = v95; if ( v87 ) v100 = v94; if ( v96 ) v99 = v89; if ( v86 ) v98 = v88; ((void (__fastcall *)(cocos2d::CCObject *, float *))m_pObject->__vftable[2].isEqual)(m_pObject, &v100); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].encodeWithCoder)( m_pObject, (float)(v98 - v100) / v90); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[1].getTag)( m_pObject, (float)(v99 - v101) / v91); v7.f32[0] = v100; v5 = v97; if ( v100 > v90 ) goto LABEL_128; v7.f32[0] = v101; if ( v101 > v91 ) goto LABEL_128; v7.i32[0] = 0; if ( v98 < 0.0 || v99 < 0.0 ) goto LABEL_128; } goto LABEL_154; } } LABEL_53: sub_10028CC30(&v100); sub_10028CC30(&v98); sub_10028CC30(&v94); sub_10028CC30(&v88); if ( LOBYTE(m_pObject[10].m_uIndexInArray) != 1 ) { sub_10028CC90(); sub_10028CC90(); sub_10028CBE0(v78, v100, v99); sub_10028CC90(); v34 = (cocos2d::CCPoint)LODWORD(v101); sub_10028CBE0(v78, v98, v101); v35 = sub_10028CC90(); if ( v96 ) { ((void (__fastcall *)(char *, double))v96->__vftable[16].getTag)(v78, v35); v35 = sub_10028CC90(); } v36 = v87; if ( v85 ) { (*(void (__fastcall **)(char *, double))(*(_QWORD *)v85 + 1344LL))(v78, v35); v35 = sub_10028CC90(); } if ( v36 ) { ((void (__fastcall *)(char *, cocos2d::CCObject *, double))v36->__vftable[16].getTag)(v78, v36, v35); v35 = sub_10028CC90(); } if ( v86 ) { (*(void (__fastcall **)(char *, double))(*(_QWORD *)v86 + 1344LL))(v78, v35); v35 = sub_10028CC90(); } v37 = v97; v38 = ((float (__fastcall *)(cocos2d::CCLayer *, double))v97->m_objectLayer->getScale)(v97->m_objectLayer, v35); sub_10028CD40(v67, &v100, v38); ((void (__fastcall *)(cocos2d::CCLayer *))v37->m_objectLayer->getPosition)(v37->m_objectLayer); sub_10028CCE0(v78, v67); v39 = ((float (__fastcall *)(cocos2d::CCLayer *))v37->m_objectLayer->getScale)(v37->m_objectLayer); sub_10028CD40(v68, &v88, v39); ((void (__fastcall *)(cocos2d::CCLayer *))v37->m_objectLayer->getPosition)(v37->m_objectLayer); sub_10028CCE0(v67, v68); v40 = ((float (__fastcall *)(cocos2d::CCLayer *))v37->m_objectLayer->getScale)(v37->m_objectLayer); sub_10028CD40(v63, &v98, v40); ((void (__fastcall *)(cocos2d::CCLayer *))v37->m_objectLayer->getPosition)(v37->m_objectLayer); sub_10028CCE0(v68, v63); v41 = ((float (__fastcall *)(cocos2d::CCLayer *))v37->m_objectLayer->getScale)(v37->m_objectLayer); sub_10028CD40(v69, &v94, v41); ((void (__fastcall *)(cocos2d::CCLayer *))v37->m_objectLayer->getPosition)(v37->m_objectLayer); sub_10028CCE0(v63, v69); if ( v96 ) sub_10028CC90(); v42 = v87; if ( v85 ) sub_10028CC90(); v43 = v42 == nullptr; v44 = v86; if ( !v43 ) sub_10028CC90(); if ( v44 ) sub_10028CC90(); ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[2].copyWithZone)(m_pObject, 1.0); ((void (__fastcall *)(cocos2d::CCObject *, float *))m_pObject->__vftable[2].isEqual)(m_pObject, &v100); sub_10028CD00(v69, &v88, &v100); sub_10028CD00(v61, &v94, &v100); sub_10028CD00(v62, &v98, &v100); cocos2d::CCLayerColor::setVertices((cocos2d::CCLayerColor *)m_pObject, (cocos2d::CCPoint)1065353216LL, v34, v1); v7.f32[0] = v100; v1 = (cocos2d::CCPoint)LODWORD(v88); v5 = v97; if ( fminf(fminf(fminf(v98, v94), v88), v100) > v72[0] ) goto LABEL_128; if ( fminf(fminf(fminf(v99, v95), v89), v101) > v72[1] ) goto LABEL_128; v7.f32[0] = v74; if ( v74 > fmaxf(fmaxf(fmaxf(v98, v94), v88), v100) ) goto LABEL_128; v7.f32[0] = v75; if ( v75 > fmaxf(fmaxf(fmaxf(v99, v95), v89), v101) ) goto LABEL_128; goto LABEL_154; } sub_10028CC90(); sub_10028CC90(); sub_10028CBE0(v78, v100, v99); sub_10028CC90(); v31 = (cocos2d::CCPoint)LODWORD(v101); sub_10028CBE0(v78, v98, v101); v32 = sub_10028CC90(); if ( v96 ) { ((void (__fastcall *)(char *, double))v96->__vftable[16].getTag)(v78, v32); v32 = sub_10028CC90(); } v33 = v87; if ( v85 ) { (*(void (__fastcall **)(char *, double))(*(_QWORD *)v85 + 1344LL))(v78, v32); v32 = sub_10028CC90(); } if ( v33 ) { ((void (__fastcall *)(char *, cocos2d::CCObject *, double))v33->__vftable[16].getTag)(v78, v33, v32); v32 = sub_10028CC90(); } if ( v86 ) { (*(void (__fastcall **)(char *, double))(*(_QWORD *)v86 + 1344LL))(v78, v32); sub_10028CC90(); } ((void (__fastcall *)(cocos2d::CCObject *, float))m_pObject->__vftable[2].copyWithZone)(m_pObject, 1.0); ((void (__fastcall *)(cocos2d::CCObject *, float *))m_pObject->__vftable[2].isEqual)(m_pObject, &v100); sub_10028CD00(v78, &v88, &v100); sub_10028CD00(v67, &v94, &v100); sub_10028CD00(v68, &v98, &v100); cocos2d::CCLayerColor::setVertices((cocos2d::CCLayerColor *)m_pObject, (cocos2d::CCPoint)1065353216LL, v31, v1); v7.f32[0] = v100; v1 = (cocos2d::CCPoint)LODWORD(v88); if ( fminf(fminf(fminf(v98, v94), v88), v100) > v83 ) goto LABEL_110; if ( fminf(fminf(fminf(v99, v95), v89), v101) > v84 ) goto LABEL_110; v7.f32[0] = v81; if ( v81 > fmaxf(fmaxf(fmaxf(v98, v94), v88), v100) ) goto LABEL_110; v7.f32[0] = v82; v5 = v97; if ( v82 <= fmaxf(fmaxf(fmaxf(v99, v95), v89), v101) ) { LABEL_154: cocos2d::CCLayerGradient::setValues( (cocos2d::CCLayerGradient *)m_pObject, &v92, (int)v79, &v93, (int)v73, p_m_nLuaID); v6 = 1; ((void (__fastcall *)(cocos2d::CCObject *, __int64))m_pObject->__vftable[4].~CCObject)(m_pObject, 1); ++v5->m_activeGradients; if ( m_pObject[10].m_uUnknown != 3 ) goto LABEL_7; if ( !((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].~CCObject_0)(m_pObject) ) goto LABEL_7; m_shaderLayer = v5->m_shaderLayer; if ( !m_shaderLayer ) goto LABEL_7; if ( !m_shaderLayer->m_state.m_usesShaders ) goto LABEL_7; 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_7; } } LABEL_128: v6 = 0; ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[4].~CCObject)(m_pObject, 0); goto LABEL_7; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source