// // GJBaseGameLayer::updateShaderLayer from 0x10013b3b0 to 0x10013c3ca (4122 bytes) // // 7 xrefs: // > PlayLayer::resetLevel @ 0x1000bec1d // > PlayLayer::resetLevel @ 0x1000bec76 // > LevelEditorLayer::updateGameObjects @ 0x1000de732 // > LevelEditorLayer::onPlaytest @ 0x1000f2939 // > GJBaseGameLayer::update @ 0x10015150c // > GJBaseGameLayer::update @ 0x100152ec9 // > GJBaseGameLayer::resetLevelVariables @ 0x1001594c8 // // 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::updateShaderLayer(GJBaseGameLayer *a1, float a2) { unsigned __int64 m_lensCircleTintChannel; // rsi ShaderLayer *m_shaderLayer; // rcx int m_grayscaleTintChannel; // esi int v6; // eax int m_blurRefChannel; // esi ShaderLayer *v8; // r14 int v9; // eax int v10; // r15d bool shouldBlend; // al ShaderLayer *v12; // rdi int m_motionBlurTargetIDX; // edx float v14; // xmm0_4 ShaderLayer *v15; // rdi bool m_usesShaders; // r14 __int64 v17; // rax void *v18; // r14 int v19; // r12d cocos2d::CCNode *v20; // r15 unsigned int v21; // eax cocos2d::CCNode *v22; // r14 void *v23; // r15 unsigned int v24; // eax cocos2d::CCNode **p_m_inShaderParent; // r13 GJMGLayer *m_middleground; // r14 cocos2d::CCNode **v27; // rax cocos2d::CCNode *v28; // r15 unsigned int v29; // eax cocos2d::CCNode **p_m_aboveShaderParent; // rax cocos2d::CCNode *m_inShaderParent; // rdi __int64 v32; // rax unsigned __int64 v33; // r14 __int64 v34; // r15 unsigned int *v35; // rax cocos2d::CCObject **v36; // r13 cocos2d::CCObject **v37; // r12 cocos2d::CCObject *v38; // r14 cocos2d::CCNode *m_objectParent; // r15 unsigned int v40; // eax cocos2d::CCNode *m_aboveShaderParent; // rdi __int64 v42; // rax unsigned __int64 v43; // r14 __int64 v44; // r15 unsigned int *v45; // rax cocos2d::CCObject **v46; // r13 cocos2d::CCObject **v47; // r12 cocos2d::CCObject *v48; // r14 cocos2d::CCNode *v49; // r15 unsigned int v50; // eax cocos2d::CCLayer *v51; // rdi __int64 v52; // rax unsigned __int64 v53; // r14 __int64 v54; // r15 unsigned int *v55; // rax cocos2d::CCObject **v56; // r12 unsigned __int64 v57; // r13 cocos2d::CCObject *v58; // r14 cocos2d::CCLayer *m_objectLayer; // r15 unsigned int v60; // eax cocos2d::CCLayer *m_aboveShaderObjectLayer; // rdi __int64 v62; // rax __int64 v63; // r14 __int64 v64; // r15 unsigned int *v65; // rax cocos2d::CCObject **v66; // r12 unsigned __int64 v67; // r13 cocos2d::CCObject *v68; // r14 cocos2d::CCLayer *v69; // r15 unsigned int v70; // eax cocos2d::CCNode *v71; // r14 unsigned int v72; // eax cocos2d::CCNode *v73; // r14 unsigned int v74; // eax cocos2d::CCNode *v75; // r14 GJGroundLayer *m_groundLayer; // r15 unsigned int v77; // eax GJGroundLayer *m_groundLayer2; // r15 unsigned int v79; // eax cocos2d::CCNode *v80; // r15 cocos2d::CCNode *m_uiTriggerUI; // r14 unsigned int v82; // eax int v83; // ecx unsigned int v84; // eax _BOOL8 v85; // rdx ShaderLayer *v86; // rsi int v87; // r8d __int64 v88; // rdi bool v89; // zf __int64 v90; // r12 cocos2d::CCLayer *v91; // rdi __int64 v92; // r14 cocos2d::CCLayer *v93; // rdi __int64 v94; // r14 __int64 v95; // rsi unsigned int *v96; // rax cocos2d::CCObject **v97; // r14 unsigned __int64 v98; // r15 cocos2d::CCObject *v99; // r12 int v100; // eax cocos2d::CCLayer *v101; // r13 unsigned int v102; // eax unsigned int *v103; // rax cocos2d::CCObject **v104; // r14 unsigned __int64 v105; // r13 cocos2d::CCObject *v106; // r15 int v107; // eax cocos2d::CCLayer *v108; // r12 unsigned int v109; // eax unsigned int *v110; // rax cocos2d::CCObject **v111; // r12 unsigned __int64 v112; // r13 cocos2d::CCObject *v113; // r14 int v114; // eax cocos2d::CCLayer *v115; // r15 unsigned int v116; // eax __int64 v117; // rax cocos2d::CCNode *v118; // r14 unsigned int v119; // eax __int64 v120; // rdx bool v121; // r15 __int64 v122; // rcx cocos2d::CCNode *v123; // r14 __int64 v124; // [rsp+8h] [rbp-68h] __int64 v125; // [rsp+10h] [rbp-60h] cocos2d::CCLayer *v126; // [rsp+18h] [rbp-58h] int v127; // [rsp+20h] [rbp-50h] float v128; // [rsp+28h] [rbp-48h] float v129; // [rsp+28h] [rbp-48h] cocos2d::CCLayer *v130; // [rsp+28h] [rbp-48h] float v131; // [rsp+34h] [rbp-3Ch] BYREF float v132; // [rsp+38h] [rbp-38h] float v133; // [rsp+3Ch] [rbp-34h] cocos2d::CCNode **m_inShaderObjectLayer; // [rsp+40h] [rbp-30h] cocos2d::CCPoint v135; // 0:xmm0_8.8 cocos2d::CCPoint v136; // 0:xmm0_8.8 *(float *)&m_inShaderObjectLayer = a2; m_shaderLayer = a1->m_shaderLayer; if ( m_shaderLayer ) { m_grayscaleTintChannel = m_shaderLayer->m_state.m_grayscaleTintChannel; if ( m_grayscaleTintChannel <= 0 ) { v6 = 0xFFFFFF; } else { *(cocos2d::ccColor3B *)&v6 = GJEffectManager::activeColorForIndex(a1->m_effectManager, m_grayscaleTintChannel); m_shaderLayer = a1->m_shaderLayer; } *(_WORD *)&m_shaderLayer->m_state.m_grayscaleTint.r = v6; m_shaderLayer->m_state.m_grayscaleTint.b = BYTE2(v6); m_blurRefChannel = a1->m_shaderLayer->m_state.m_blurRefChannel; if ( m_blurRefChannel <= 0 ) { a1->m_shaderLayer->m_state.m_blurRefColor = *(cocos2d::ccColor3B *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getColor)(a1->m_background); v8 = a1->m_shaderLayer; if ( !v8->m_state.m_radialBlurTarget ) goto LABEL_11; } else { a1->m_shaderLayer->m_state.m_blurRefColor = GJEffectManager::activeColorForIndex( a1->m_effectManager, m_blurRefChannel); v8 = a1->m_shaderLayer; if ( !v8->m_state.m_radialBlurTarget ) goto LABEL_11; } if ( v8->m_state.m_radialBlurTargetID ) { GJBaseGameLayer::positionForShaderTarget((GJBaseGameLayer *)&v131, (int)a1); sub_10028CC90(); v8 = a1->m_shaderLayer; } LABEL_11: if ( v8->m_state.m_pinchTargetEnabledX && v8->m_state.m_pinchTargetIDX ) { GJBaseGameLayer::positionForShaderTarget((GJBaseGameLayer *)&v131, (int)a1); v8 = a1->m_shaderLayer; v8->m_state.m_pinchCenter.x = v131; } if ( v8->m_state.m_pinchTargetEnabledY && v8->m_state.m_pinchTargetIDY ) { GJBaseGameLayer::positionForShaderTarget((GJBaseGameLayer *)&v131, (int)a1); v8 = a1->m_shaderLayer; v8->m_state.m_pinchCenter.y = v132; } if ( v8->m_state.m_shockWaveTargetID ) { v135 = GJBaseGameLayer::positionForShaderTarget((GJBaseGameLayer *)&v131, (int)a1); ShaderLayer::updateShockWaveCenter(v8, v135); v8 = a1->m_shaderLayer; } if ( v8->m_state.m_shockLineTargetID ) { v136 = GJBaseGameLayer::positionForShaderTarget((GJBaseGameLayer *)&v131, (int)a1); ShaderLayer::updateShockLineCenter(v8, v136); v8 = a1->m_shaderLayer; } if ( v8->m_state.m_lensCircleTargetID ) { GJBaseGameLayer::positionForShaderTarget((GJBaseGameLayer *)&v131, (int)a1); sub_10028CC90(); v8 = a1->m_shaderLayer; } if ( v8->m_state.m_bulgeTargetID ) { GJBaseGameLayer::positionForShaderTarget((GJBaseGameLayer *)&v131, (int)a1); sub_10028CC90(); v8 = a1->m_shaderLayer; } m_lensCircleTintChannel = (unsigned int)v8->m_state.m_lensCircleTintChannel; if ( (int)m_lensCircleTintChannel <= 0 ) { shouldBlend = 0; v10 = 0; } else { *(cocos2d::ccColor3B *)&v9 = GJEffectManager::activeColorForIndex(a1->m_effectManager, m_lensCircleTintChannel); v10 = v9; m_lensCircleTintChannel = (unsigned int)a1->m_shaderLayer->m_state.m_lensCircleTintChannel; shouldBlend = GJEffectManager::shouldBlend(a1->m_effectManager, m_lensCircleTintChannel); v8 = a1->m_shaderLayer; } *(_WORD *)&v8->m_state.m_lensCircleTint.r = v10; v8->m_state.m_lensCircleTint.b = BYTE2(v10); v12 = a1->m_shaderLayer; v12->m_state.m_lensCircleAdditive = shouldBlend; m_motionBlurTargetIDX = v12->m_state.m_motionBlurTargetIDX; v14 = 0.0; v133 = 0.0; if ( m_motionBlurTargetIDX ) { m_lensCircleTintChannel = (unsigned __int64)a1; GJBaseGameLayer::speedForShaderTarget((GJBaseGameLayer *)&v131, (int)a1); v14 = v131; v12 = a1->m_shaderLayer; } if ( v12->m_state.m_motionBlurTargetIDY ) { m_lensCircleTintChannel = (unsigned __int64)a1; v128 = v14; GJBaseGameLayer::speedForShaderTarget((GJBaseGameLayer *)&v131, (int)a1); v133 = v132; v14 = v128; v12 = a1->m_shaderLayer; } v129 = 60.0 * *(float *)&m_inShaderObjectLayer; ShaderLayer::updateMotionBlurSpeedX(v12, v14, 60.0 * *(float *)&m_inShaderObjectLayer); ShaderLayer::updateMotionBlurSpeedY(a1->m_shaderLayer, v133, v129); ((void (__fastcall *)(ShaderLayer *, float))a1->m_shaderLayer->update)( a1->m_shaderLayer, *(float *)&m_inShaderObjectLayer); ShaderLayer::performCalculations(a1->m_shaderLayer); v15 = a1->m_shaderLayer; m_usesShaders = v15->m_state.m_usesShaders; v17 = ((__int64 (__fastcall *)(ShaderLayer *))v15->getParent)(v15); if ( !m_usesShaders ) { if ( v17 ) { m_inShaderParent = a1->m_inShaderParent; v32 = ((__int64 (__fastcall *)(cocos2d::CCNode *))m_inShaderParent->getChildren)(m_inShaderParent); if ( v32 ) { v33 = v32; m_inShaderObjectLayer = (cocos2d::CCNode **)a1->m_inShaderObjectLayer; v34 = sub_10071F9E0(m_inShaderParent, m_lensCircleTintChannel); m_lensCircleTintChannel = v33; sub_100720050(v34, v33); if ( v34 ) { v35 = *(unsigned int **)(v34 + 56); if ( *v35 ) { v36 = *((cocos2d::CCObject ***)v35 + 2); v37 = &v36[*v35 - 1]; do { v38 = *v36; if ( !*v36 ) break; if ( v38 != (cocos2d::CCObject *)m_inShaderObjectLayer ) { m_objectParent = a1->m_objectParent; if ( (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCObject *))v38->__vftable[6].~CCObject_0)(*v36) != m_objectParent && ((unsigned int (__fastcall *)(cocos2d::CCObject *))v38->getTag)(v38) != -9999 ) { cocos2d::CCObject::retain(v38); m_lensCircleTintChannel = 0; ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v38->__vftable[6].acceptVisitor)(v38, 0); if ( m_objectParent ) { v40 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v38->__vftable[1].isEqual)(v38); m_lensCircleTintChannel = (unsigned __int64)v38; ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCObject *, _QWORD))m_objectParent->addChild_0)( m_objectParent, v38, v40); } cocos2d::CCObject::release(v38); } } ++v36; } while ( v36 <= v37 ); } } } m_aboveShaderParent = a1->m_aboveShaderParent; v42 = ((__int64 (__fastcall *)(cocos2d::CCNode *))m_aboveShaderParent->getChildren)(m_aboveShaderParent); if ( v42 ) { v43 = v42; m_inShaderObjectLayer = (cocos2d::CCNode **)a1->m_aboveShaderObjectLayer; v44 = sub_10071F9E0(m_aboveShaderParent, m_lensCircleTintChannel); m_lensCircleTintChannel = v43; sub_100720050(v44, v43); if ( v44 ) { v45 = *(unsigned int **)(v44 + 56); if ( *v45 ) { v46 = *((cocos2d::CCObject ***)v45 + 2); v47 = &v46[*v45 - 1]; do { v48 = *v46; if ( !*v46 ) break; if ( v48 != (cocos2d::CCObject *)m_inShaderObjectLayer ) { v49 = a1->m_objectParent; if ( (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCObject *))v48->__vftable[6].~CCObject_0)(*v46) != v49 && ((unsigned int (__fastcall *)(cocos2d::CCObject *))v48->getTag)(v48) != -9999 ) { cocos2d::CCObject::retain(v48); m_lensCircleTintChannel = 0; ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v48->__vftable[6].acceptVisitor)(v48, 0); if ( v49 ) { v50 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v48->__vftable[1].isEqual)(v48); m_lensCircleTintChannel = (unsigned __int64)v48; ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCObject *, _QWORD))v49->addChild_0)( v49, v48, v50); } cocos2d::CCObject::release(v48); } } ++v46; } while ( v46 <= v47 ); } } } v51 = a1->m_inShaderObjectLayer; v52 = ((__int64 (__fastcall *)(cocos2d::CCLayer *))v51->getChildren)(v51); if ( v52 ) { v53 = v52; v54 = sub_10071F9E0(v51, m_lensCircleTintChannel); m_lensCircleTintChannel = v53; sub_100720050(v54, v53); if ( v54 ) { v55 = *(unsigned int **)(v54 + 56); if ( *v55 ) { v56 = *((cocos2d::CCObject ***)v55 + 2); v57 = (unsigned __int64)&v56[*v55 - 1]; do { v58 = *v56; if ( !*v56 ) break; m_objectLayer = a1->m_objectLayer; if ( (cocos2d::CCLayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))v58->__vftable[6].~CCObject_0)(*v56) != m_objectLayer && ((unsigned int (__fastcall *)(cocos2d::CCObject *))v58->getTag)(v58) != -9999 ) { cocos2d::CCObject::retain(v58); m_lensCircleTintChannel = 0; ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v58->__vftable[6].acceptVisitor)(v58, 0); if ( m_objectLayer ) { v60 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v58->__vftable[1].isEqual)(v58); m_lensCircleTintChannel = (unsigned __int64)v58; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCObject *, _QWORD))m_objectLayer->addChild_0)( m_objectLayer, v58, v60); } cocos2d::CCObject::release(v58); } ++v56; } while ( (unsigned __int64)v56 <= v57 ); } } } m_aboveShaderObjectLayer = a1->m_aboveShaderObjectLayer; v62 = ((__int64 (__fastcall *)(cocos2d::CCLayer *))m_aboveShaderObjectLayer->getChildren)(m_aboveShaderObjectLayer); if ( v62 ) { v63 = v62; v64 = sub_10071F9E0(m_aboveShaderObjectLayer, m_lensCircleTintChannel); sub_100720050(v64, v63); if ( v64 ) { v65 = *(unsigned int **)(v64 + 56); if ( *v65 ) { v66 = *((cocos2d::CCObject ***)v65 + 2); v67 = (unsigned __int64)&v66[*v65 - 1]; do { v68 = *v66; if ( !*v66 ) break; v69 = a1->m_objectLayer; if ( (cocos2d::CCLayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))v68->__vftable[6].~CCObject_0)(*v66) != v69 && ((unsigned int (__fastcall *)(cocos2d::CCObject *))v68->getTag)(v68) != -9999 ) { cocos2d::CCObject::retain(v68); ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v68->__vftable[6].acceptVisitor)(v68, 0); if ( v69 ) { v70 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v68->__vftable[1].isEqual)(v68); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCObject *, _QWORD))v69->addChild_0)( v69, v68, v70); } cocos2d::CCObject::release(v68); } ++v66; } while ( (unsigned __int64)v66 <= v67 ); } } } v71 = a1->m_objectParent; if ( (GJBaseGameLayer *)((__int64 (__fastcall *)(cocos2d::CCNode *))v71->getParent)(v71) != a1 && ((unsigned int (__fastcall *)(cocos2d::CCNode *))v71->getTag)(v71) != -9999 ) { cocos2d::CCObject::retain(v71); ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v71->removeFromParentAndCleanup)(v71, 0); v72 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v71->getZOrder)(v71); ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCNode *, _QWORD))a1->addChild_0)(a1, v71, v72); cocos2d::CCObject::release(v71); } v73 = a1->m_inShaderParent; if ( (GJBaseGameLayer *)((__int64 (__fastcall *)(cocos2d::CCNode *))v73->getParent)(v73) != a1 && ((unsigned int (__fastcall *)(cocos2d::CCNode *))v73->getTag)(v73) != -9999 ) { cocos2d::CCObject::retain(v73); ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v73->removeFromParentAndCleanup)(v73, 0); v74 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v73->getZOrder)(v73); ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCNode *, _QWORD))a1->addChild_0)(a1, v73, v74); cocos2d::CCObject::release(v73); } m_lensCircleTintChannel = 0; ((void (__fastcall *)(ShaderLayer *, _QWORD))a1->m_shaderLayer->removeFromParentAndCleanup)( a1->m_shaderLayer, 0); } goto LABEL_202; } v18 = a1->m_shaderLayer; if ( v17 && *((_BYTE *)v18 + 1068) != 1 ) { LABEL_202: a1->m_shaderLayer->m_state.m_zLayerDirty = 0; goto LABEL_203; } v19 = *((_DWORD *)v18 + 266); v20 = a1->m_objectParent; v127 = *((_DWORD *)v18 + 265); if ( v127 >= 2 ) v18 = a1; if ( (void *)((__int64 (__fastcall *)(cocos2d::CCNode *))v20->getParent)(v20) != v18 && ((unsigned int (__fastcall *)(cocos2d::CCNode *))v20->getTag)(v20) != -9999 ) { cocos2d::CCObject::retain(v20); ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v20->removeFromParentAndCleanup)(v20, 0); v21 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v20->getZOrder)(v20); (*(void (__fastcall **)(void *, cocos2d::CCNode *, _QWORD))(*(_QWORD *)v18 + 448LL))(v18, v20, v21); cocos2d::CCObject::release(v20); } v22 = a1->m_inShaderParent; v23 = a1; if ( v127 >= 2 ) v23 = a1->m_shaderLayer; if ( (void *)((__int64 (__fastcall *)(cocos2d::CCNode *))v22->getParent)(a1->m_inShaderParent) != v23 && ((unsigned int (__fastcall *)(cocos2d::CCNode *))v22->getTag)(v22) != -9999 ) { cocos2d::CCObject::retain(v22); ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v22->removeFromParentAndCleanup)(v22, 0); if ( v23 ) { v24 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v22->getZOrder)(v22); (*(void (__fastcall **)(void *, cocos2d::CCNode *, _QWORD))(*(_QWORD *)v23 + 448LL))(v23, v22, v24); } cocos2d::CCObject::release(v22); } m_inShaderObjectLayer = &a1->m_objectParent; p_m_inShaderParent = &a1->m_inShaderParent; m_middleground = a1->m_middleground; if ( m_middleground ) { v27 = m_inShaderObjectLayer; if ( v19 >= 2 ) v27 = &a1->m_inShaderParent; if ( v127 != 2 ) v27 = m_inShaderObjectLayer; v28 = *v27; if ( (cocos2d::CCNode *)((__int64 (__fastcall *)(GJMGLayer *))m_middleground->getParent)(a1->m_middleground) != v28 && ((unsigned int (__fastcall *)(GJMGLayer *))m_middleground->getTag)(m_middleground) != -9999 ) { cocos2d::CCObject::retain(m_middleground); ((void (__fastcall *)(GJMGLayer *, _QWORD))m_middleground->removeFromParentAndCleanup)(m_middleground, 0); if ( v28 ) { v29 = ((__int64 (__fastcall *)(GJMGLayer *))m_middleground->getZOrder)(m_middleground); ((void (__fastcall *)(cocos2d::CCNode *, GJMGLayer *, _QWORD))v28->addChild_0)(v28, m_middleground, v29); } cocos2d::CCObject::release(m_middleground); } } if ( v127 >= 2 && v19 < 13 ) { p_m_aboveShaderParent = &a1->m_aboveShaderParent; } else { p_m_aboveShaderParent = &a1->m_inShaderParent; if ( v19 >= 13 || v127 >= 2 ) { p_m_aboveShaderParent = &a1->m_inShaderParent; if ( v19 < 13 || (unsigned int)(v127 - 2) >= 0xC ) p_m_aboveShaderParent = m_inShaderObjectLayer; } } v75 = *p_m_aboveShaderParent; m_groundLayer = a1->m_groundLayer; if ( m_groundLayer && (cocos2d::CCNode *)((__int64 (__fastcall *)(GJGroundLayer *))m_groundLayer->getParent)(a1->m_groundLayer) != v75 && ((unsigned int (__fastcall *)(GJGroundLayer *))m_groundLayer->getTag)(m_groundLayer) != -9999 ) { cocos2d::CCObject::retain(m_groundLayer); ((void (__fastcall *)(GJGroundLayer *, _QWORD))m_groundLayer->removeFromParentAndCleanup)(m_groundLayer, 0); if ( v75 ) { v77 = ((__int64 (__fastcall *)(GJGroundLayer *))m_groundLayer->getZOrder)(m_groundLayer); ((void (__fastcall *)(cocos2d::CCNode *, GJGroundLayer *, _QWORD))v75->addChild_0)(v75, m_groundLayer, v77); } cocos2d::CCObject::release(m_groundLayer); } m_groundLayer2 = a1->m_groundLayer2; if ( m_groundLayer2 && (cocos2d::CCNode *)((__int64 (__fastcall *)(GJGroundLayer *))m_groundLayer2->getParent)(a1->m_groundLayer2) != v75 && ((unsigned int (__fastcall *)(GJGroundLayer *))m_groundLayer2->getTag)(m_groundLayer2) != -9999 ) { cocos2d::CCObject::retain(m_groundLayer2); ((void (__fastcall *)(GJGroundLayer *, _QWORD))m_groundLayer2->removeFromParentAndCleanup)(m_groundLayer2, 0); if ( v75 ) { v79 = ((__int64 (__fastcall *)(GJGroundLayer *))m_groundLayer2->getZOrder)(m_groundLayer2); ((void (__fastcall *)(cocos2d::CCNode *, GJGroundLayer *, _QWORD))v75->addChild_0)(v75, m_groundLayer2, v79); } cocos2d::CCObject::release(m_groundLayer2); } if ( v127 >= 2 && v19 < 14 ) { p_m_inShaderParent = &a1->m_aboveShaderParent; } else if ( (v19 >= 14 || v127 >= 2) && (v19 < 14 || (unsigned int)(v127 - 2) >= 0xD) ) { v80 = *m_inShaderObjectLayer; LABEL_133: m_uiTriggerUI = a1->m_uiTriggerUI; if ( (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCNode *))m_uiTriggerUI->getParent)(m_uiTriggerUI) != v80 && ((unsigned int (__fastcall *)(cocos2d::CCNode *))m_uiTriggerUI->getTag)(m_uiTriggerUI) != -9999 ) { cocos2d::CCObject::retain(m_uiTriggerUI); ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))m_uiTriggerUI->removeFromParentAndCleanup)(m_uiTriggerUI, 0); if ( v80 ) { v82 = ((__int64 (__fastcall *)(cocos2d::CCNode *))m_uiTriggerUI->getZOrder)(m_uiTriggerUI); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCNode *, _QWORD))v80->addChild_0)(v80, m_uiTriggerUI, v82); } cocos2d::CCObject::release(m_uiTriggerUI); } v83 = 0; v84 = 0; if ( (unsigned int)(v127 - 1) <= 0xE ) v84 = dword_100816CDC[v127 - 1]; if ( (unsigned int)(v19 - 1) <= 0xE ) v83 = dword_100816CA0[v19 - 1]; v85 = v127 >= 2; v86 = a1->m_shaderLayer; v87 = 60; if ( v19 != 8 ) v87 = v83; v88 = 40; if ( v127 != 8 ) v88 = v84; v89 = !v86->m_state.m_noPlayerParticles; if ( !v86->m_state.m_noPlayerParticles ) v87 = v83; v133 = *(float *)&v87; if ( v89 ) v88 = v84; LODWORD(m_inShaderObjectLayer) = v88; v126 = *(&a1->m_objectLayer + v85); v130 = *(&a1->m_inShaderObjectLayer + v85); v90 = sub_10071F9E0(v88, v86); v91 = a1->m_objectLayer; if ( ((__int64 (__fastcall *)(cocos2d::CCLayer *))v91->getChildren)(v91) ) { v91 = (cocos2d::CCLayer *)v90; v86 = (ShaderLayer *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getChildren)(a1->m_objectLayer); sub_100720050(v90, v86); } v92 = sub_10071F9E0(v91, v86); v93 = a1->m_inShaderObjectLayer; if ( ((__int64 (__fastcall *)(cocos2d::CCLayer *))v93->getChildren)(v93) ) { v93 = (cocos2d::CCLayer *)v92; v86 = (ShaderLayer *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_inShaderObjectLayer->getChildren)(a1->m_inShaderObjectLayer); sub_100720050(v92, v86); } v125 = v92; v94 = sub_10071F9E0(v93, v86); if ( ((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_aboveShaderObjectLayer->getChildren)(a1->m_aboveShaderObjectLayer) ) { v95 = ((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_aboveShaderObjectLayer->getChildren)(a1->m_aboveShaderObjectLayer); sub_100720050(v94, v95); } v124 = v94; if ( v90 ) { v96 = *(unsigned int **)(v90 + 56); if ( *v96 ) { v97 = *((cocos2d::CCObject ***)v96 + 2); v98 = (unsigned __int64)&v97[*v96 - 1]; do { v99 = *v97; if ( !*v97 ) break; v100 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v99->__vftable[1].isEqual)(*v97); if ( v100 >= (int)m_inShaderObjectLayer ) { v101 = v130; if ( v100 <= SLODWORD(v133) ) v101 = v126; } else { v101 = a1->m_objectLayer; } if ( (cocos2d::CCLayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))v99->__vftable[6].~CCObject_0)(v99) != v101 && ((unsigned int (__fastcall *)(cocos2d::CCObject *))v99->getTag)(v99) != -9999 ) { cocos2d::CCObject::retain(v99); ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v99->__vftable[6].acceptVisitor)(v99, 0); if ( v101 ) { v102 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v99->__vftable[1].isEqual)(v99); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCObject *, _QWORD))v101->addChild_0)( v101, v99, v102); } cocos2d::CCObject::release(v99); } ++v97; } while ( (unsigned __int64)v97 <= v98 ); } } if ( v125 ) { v103 = *(unsigned int **)(v125 + 56); if ( *v103 ) { v104 = *((cocos2d::CCObject ***)v103 + 2); v105 = (unsigned __int64)&v104[*v103 - 1]; do { v106 = *v104; if ( !*v104 ) break; v107 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v106->__vftable[1].isEqual)(*v104); if ( v107 >= (int)m_inShaderObjectLayer ) { v108 = v130; if ( v107 <= SLODWORD(v133) ) v108 = v126; } else { v108 = a1->m_objectLayer; } if ( (cocos2d::CCLayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))v106->__vftable[6].~CCObject_0)(v106) != v108 && ((unsigned int (__fastcall *)(cocos2d::CCObject *))v106->getTag)(v106) != -9999 ) { cocos2d::CCObject::retain(v106); ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v106->__vftable[6].acceptVisitor)(v106, 0); if ( v108 ) { v109 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v106->__vftable[1].isEqual)(v106); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCObject *, _QWORD))v108->addChild_0)( v108, v106, v109); } cocos2d::CCObject::release(v106); } ++v104; } while ( (unsigned __int64)v104 <= v105 ); } } if ( v124 ) { v110 = *(unsigned int **)(v124 + 56); if ( *v110 ) { v111 = *((cocos2d::CCObject ***)v110 + 2); v112 = (unsigned __int64)&v111[*v110 - 1]; do { v113 = *v111; if ( !*v111 ) break; v114 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v113->__vftable[1].isEqual)(*v111); if ( v114 >= (int)m_inShaderObjectLayer ) { v115 = v130; if ( v114 <= SLODWORD(v133) ) v115 = v126; } else { v115 = a1->m_objectLayer; } if ( (cocos2d::CCLayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))v113->__vftable[6].~CCObject_0)(v113) != v115 && ((unsigned int (__fastcall *)(cocos2d::CCObject *))v113->getTag)(v113) != -9999 ) { cocos2d::CCObject::retain(v113); ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v113->__vftable[6].acceptVisitor)(v113, 0); if ( v115 ) { v116 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v113->__vftable[1].isEqual)(v113); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCObject *, _QWORD))v115->addChild_0)( v115, v113, v116); } cocos2d::CCObject::release(v113); } ++v111; } while ( (unsigned __int64)v111 <= v112 ); } } v117 = ((__int64 (__fastcall *)(ShaderLayer *))a1->m_shaderLayer->getParent)(a1->m_shaderLayer); m_lensCircleTintChannel = (unsigned __int64)a1->m_shaderLayer; if ( v117 ) { if ( (*(unsigned int (__fastcall **)(ShaderLayer *))(*(_QWORD *)m_lensCircleTintChannel + 104LL))(a1->m_shaderLayer) != v127 >= 2 ) { m_lensCircleTintChannel = v127 >= 2; ((void (__fastcall *)(ShaderLayer *, unsigned __int64))a1->m_shaderLayer->setZOrder)( a1->m_shaderLayer, m_lensCircleTintChannel); } } else { ((void (__fastcall *)(GJBaseGameLayer *, unsigned __int64, bool))a1->addChild_0)( a1, m_lensCircleTintChannel, v127 >= 2); } goto LABEL_202; } v80 = *p_m_inShaderParent; goto LABEL_133; } LABEL_203: v118 = a1->m_inShaderParent; v119 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v118->getChildrenCount)(v118); v121 = 1; LOBYTE(v122) = 1; if ( v119 <= 1 ) LOBYTE(v122) = ((unsigned int (__fastcall *)(cocos2d::CCLayer *, unsigned __int64, __int64, __int64))a1->m_inShaderObjectLayer->getChildrenCount)( a1->m_inShaderObjectLayer, m_lensCircleTintChannel, v120, v122) != 0; ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v118->setVisible)(v118, (unsigned __int8)v122); v123 = a1->m_aboveShaderParent; if ( ((unsigned int (__fastcall *)(cocos2d::CCNode *))v123->getChildrenCount)(v123) <= 1 ) v121 = ((unsigned int (__fastcall *)(cocos2d::CCLayer *))a1->m_aboveShaderObjectLayer->getChildrenCount)(a1->m_aboveShaderObjectLayer) != 0; ((void (__fastcall *)(cocos2d::CCNode *, bool))v123->setVisible)(v123, v121); }
GD Web Decomp Icon

GD Web Decomp

Raw Source