// // GJBaseGameLayer::visit from 0x140246ee0 to 0x1402482ba (5082 bytes) // // 6 xrefs: // > @ 0x140566e80 // > @ 0x1405861d8 // > @ 0x1405c9a68 // > @ 0x140682668 // > @ 0x14068276c // > @ 0x1406ce6dc // // 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::visit(GJBaseGameLayer *a1) { float m_cameraFlip; // xmm0_4 float m_levelFlipping; // xmm1_4 __int64 v4; // rcx cocos2d::CCDirector *v5; // rax __int64 v6; // rdx bool v7; // r14 cocos2d::CCRGBAProtocol *v8; // rcx float y; // xmm0_4 float v10; // xmm6_4 float v11; // xmm6_4 const cocos2d::CCPoint *v12; // rax float v13; // xmm0_4 GJGroundLayer *m_groundLayer2; // rcx const cocos2d::CCPoint *v15; // rax float v16; // xmm7_4 float v17; // xmm7_4 float v18; // xmm0_4 float v19; // xmm6_4 float v20; // xmm0_4 cocos2d::CCSprite *m_background; // rcx float v22; // xmm6_4 const cocos2d::CCPoint *v23; // rax float v24; // xmm0_4 cocos2d::CCSprite *v25; // rcx float v26; // xmm1_4 float v27; // xmm6_4 float v28; // xmm0_4 cocos2d::CCSprite *v29; // rcx float v30; // xmm0_4 float v31; // xmm6_4 float v32; // xmm7_4 const cocos2d::CCPoint *v33; // rax float v34; // xmm6_4 float v35; // xmm0_4 cocos2d::CCSprite *v36; // rcx float v37; // xmm0_4 cocos2d::CCSprite *v38; // rcx float v39; // xmm0_4 GJGroundLayer *v40; // rcx const cocos2d::CCPoint *v41; // rax float v42; // xmm7_4 float v43; // xmm7_4 float v44; // xmm0_4 float v45; // xmm6_4 float v46; // xmm0_4 cocos2d::CCSprite *v47; // rcx float v48; // xmm1_4 float v49; // xmm6_4 float v50; // xmm6_4 const cocos2d::CCPoint *v51; // rax cocos2d::CCSprite *v52; // rcx float v53; // xmm1_4 float v54; // xmm6_4 double v55; // xmm0_8 cocos2d::CCSprite *v56; // rcx float v57; // xmm14_4 float v58; // xmm14_4 cocos2d::CCDictionary *m_gradientLayers; // r14 cocos2d::CCDictElement *m_pElements; // r14 cocos2d::CCDictElement *i; // r15 cocos2d::CCLayerColor *m_pObject; // r14 __int64 v63; // rbx GameObject *MainObject; // r12 GameObject *v65; // r13 GameObject *v66; // rdi GameObject *v67; // rax bool v68; // zf float v69; // xmm7_4 float v70; // xmm10_4 float v71; // xmm8_4 float v72; // xmm11_4 __int64 v73; // rax __int64 v74; // rbx __int64 v75; // rax cocos2d::CCLayerColor_vtbl *v76; // rbx double v77; // xmm0_8 cocos2d::CCLayerColor_vtbl *v78; // rbx float v79; // xmm6_4 double v80; // xmm0_8 double v81; // xmm0_8 double v82; // xmm0_8 __int64 v83; // rax struct cocos2d::CCPoint v84; // rax struct cocos2d::CCPoint v85; // rdi struct cocos2d::CCPoint v86; // rax struct cocos2d::CCPoint v87; // rbx struct cocos2d::CCPoint v88; // rax int j; // r15d cocos2d::CCNode *m_inShaderParent; // r14 __int64 v91; // rax unsigned int *v92; // rdi __int64 v93; // rax _QWORD *v94; // rdi _QWORD *k; // r12 __int64 v96; // rbx __int64 v97; // rax cocos2d::CCNode *m_objectParent; // r14 __int64 v99; // rax unsigned int *v100; // rdi __int64 v101; // rax _QWORD *v102; // rdi _QWORD *m; // r12 __int64 v104; // rbx __int64 v105; // rax cocos2d::CCNode *m_aboveShaderParent; // r14 __int64 v107; // rax unsigned int *v108; // rdi __int64 v109; // rax _QWORD *v110; // rdi _QWORD *n; // r12 __int64 v112; // rbx __int64 v113; // rax cocos2d::CCNode *m_uiTriggerUI; // rcx cocos2d::CCNode_vtbl *v115; // rbx cocos2d::CCNode *v116; // rax struct cocos2d::CCPoint v117; // rax char v118; // di ShaderLayer *m_shaderLayer; // rax const cocos2d::CCPoint *v120; // rax float v121; // xmm2_4 bool v122; // bl cocos2d::CCSprite *v123; // rcx float v124; // xmm0_4 cocos2d::CCNode *v125; // r14 __int64 v126; // rax unsigned int *v127; // rdi __int64 v128; // rax _QWORD *v129; // rdi _QWORD *ii; // r15 __int64 v131; // rbx __int64 v132; // rax cocos2d::CCNode *v133; // r14 __int64 v134; // rax unsigned int *v135; // rdi __int64 v136; // rax _QWORD *v137; // rdi _QWORD *jj; // r15 __int64 v139; // rbx __int64 v140; // rax cocos2d::CCNode *v141; // r14 __int64 v142; // rax unsigned int *v143; // rdi __int64 v144; // rax _QWORD *v145; // rdi _QWORD *kk; // r15 __int64 v147; // rbx __int64 v148; // rax cocos2d::CCRect v149; // [rsp+20h] [rbp-E0h] BYREF cocos2d::CCPoint v150; // [rsp+30h] [rbp-D0h] BYREF char v151[8]; // [rsp+38h] [rbp-C8h] BYREF cocos2d::CCPoint v152; // [rsp+40h] [rbp-C0h] BYREF cocos2d::CCPoint v153; // [rsp+48h] [rbp-B8h] BYREF cocos2d::CCRect v154; // [rsp+50h] [rbp-B0h] BYREF GameObject *v155; // [rsp+60h] [rbp-A0h] cocos2d::CCPoint v156; // [rsp+68h] [rbp-98h] BYREF cocos2d::CCPoint v157; // [rsp+70h] [rbp-90h] BYREF char v158[8]; // [rsp+78h] [rbp-88h] BYREF cocos2d::CCPoint v159; // [rsp+80h] [rbp-80h] BYREF cocos2d::CCPoint v160; // [rsp+88h] [rbp-78h] BYREF cocos2d::CCPoint v161; // [rsp+90h] [rbp-70h] BYREF cocos2d::CCRect v162; // [rsp+98h] [rbp-68h] BYREF cocos2d::CCPoint v163; // [rsp+A8h] [rbp-58h] BYREF cocos2d::CCPoint v164; // [rsp+B8h] [rbp-48h] BYREF cocos2d::CCPoint v165; // [rsp+C8h] [rbp-38h] BYREF cocos2d::CCPoint v166; // [rsp+D8h] [rbp-28h] BYREF cocos2d::CCPoint v167; // [rsp+E8h] [rbp-18h] BYREF cocos2d::CCPoint v168; // [rsp+F8h] [rbp-8h] BYREF cocos2d::CCPoint v169; // [rsp+100h] [rbp+0h] BYREF cocos2d::CCPoint v170; // [rsp+108h] [rbp+8h] BYREF cocos2d::CCRect v171; // [rsp+110h] [rbp+10h] BYREF cocos2d::CCRect v172; // [rsp+120h] [rbp+20h] BYREF bool v173; // [rsp+220h] [rbp+120h] BYREF char v174; // [rsp+228h] [rbp+128h] float v175; // [rsp+230h] [rbp+130h] float v176; // [rsp+234h] [rbp+134h] cocos2d::CCPoint v177; // [rsp+238h] [rbp+138h] BYREF if ( a1->m_loadingProgress < 1.0 ) { cocos2d::CCNode::visit(a1); return; } if ( !a1->m_player1 ) goto LABEL_8; m_levelFlipping = a1->m_gameState.m_levelFlipping; if ( m_levelFlipping == 0.0 || m_levelFlipping == 1.0 ) goto LABEL_8; m_cameraFlip = a1->m_cameraFlip; if ( m_cameraFlip == 1.0 ) { if ( m_levelFlipping < 0.5 ) { LABEL_8: v174 = 0; goto LABEL_9; } } else if ( m_levelFlipping > 0.5 ) { goto LABEL_8; } v174 = 1; GJBaseGameLayer::flipObjects(a1); LABEL_9: cocos2d::CCRect::CCRect(&v154, &stru_1406C1D30); cocos2d::CCRect::CCRect(&v171, &stru_1406C1D30); cocos2d::CCRect::CCRect(&v172, &stru_1406C1D30); v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(v5); cocos2d::CCPoint::CCPoint(m_cameraFlip, v175 * 0.5); a1->m_background->getPosition_0(a1->m_background); cocos2d::CCPoint::CCPoint(&v156); a1->m_groundLayer2->getPosition_0(a1->m_groundLayer2); cocos2d::CCPoint::CCPoint(&v163); v7 = !a1->m_groundLayer->isVisible(a1->m_groundLayer) || !a1->m_groundLayer->m_showGround2; LOBYTE(v6) = 100; v8 = &a1->m_groundLayer->m_ground1Sprite->cocos2d::CCRGBAProtocol; v173 = v7; v8->setOpacity(v8, v6); if ( a1->m_gameState.m_cameraAngle == 0.0 ) { cocos2d::CCRect::operator=(&v154, &a1->m_background->m_obRect); cocos2d::CCRect::CCRect(&v149, &v154); y = a1->m_groundLayer->getPosition_0(a1->m_groundLayer)->y; if ( y <= 0.0 ) v10 = 0.0; else v10 = a1->m_groundLayer->getPosition_0(a1->m_groundLayer)->y; v11 = (float)(v10 - a1->m_background->getPosition_0(a1->m_background)->y) - 1.0; if ( v7 ) v11 = (float)-a1->m_background->getPosition_0(a1->m_background)->y - 1.0; cocos2d::CCPoint::CCPoint(y, 0.0); v12 = a1->m_background->getPosition_0(a1->m_background); cocos2d::CCPoint::operator+(v12, &v173); a1->m_background->setPosition_0(a1->m_background, (const cocos2d::CCPoint *)&v173); v13 = a1->m_background->getScale(a1->m_background); m_groundLayer2 = a1->m_groundLayer2; v149.origin.y = v149.origin.y - (float)(v11 / v13); if ( m_groundLayer2->isVisible(m_groundLayer2) ) { v15 = a1->m_groundLayer2->getPosition_0(a1->m_groundLayer2); v16 = v176; if ( v176 > v15->y ) v16 = a1->m_groundLayer2->getPosition_0(a1->m_groundLayer2)->y; } else { v16 = v176; } v17 = (float)(v16 - a1->m_background->getPosition_0(a1->m_background)->y) + 1.0; v18 = a1->m_background->getScale(a1->m_background); v19 = v149.size.height - (float)(v17 / v18); v20 = a1->m_background->getScale(a1->m_background); m_background = a1->m_background; v149.origin.y = v149.origin.y + v19; v149.size.height = v17 / v20; v22 = -1.0 - m_background->getPosition_0(m_background)->x; cocos2d::CCPoint::CCPoint(v20, v22); v23 = a1->m_background->getPosition_0(a1->m_background); cocos2d::CCPoint::operator+(v23, &v173); a1->m_background->setPosition_0(a1->m_background, (const cocos2d::CCPoint *)&v173); v24 = a1->m_background->getScale(a1->m_background); v25 = a1->m_background; v26 = v149.origin.x + (float)(v22 / v24); v27 = v175 + 2.0; v149.origin.x = v26; v28 = v25->getScale(v25); v29 = a1->m_background; v149.size.width = v27 / v28; v29->setTextureRect_0(v29, &v149); } else { cocos2d::CCPoint::operator-(&v150, v151); v30 = a1->m_groundLayer->getPosition_0(a1->m_groundLayer)->y; v31 = (float)-a1->m_cameraHeightOffset * 0.5; if ( v30 > v31 ) v31 = a1->m_groundLayer->getPosition_0(a1->m_groundLayer)->y; v32 = a1->m_background->getPosition_0(a1->m_background)->y - v31; if ( v7 ) v32 = (float)(a1->m_cameraHeightOffset * 0.5) + a1->m_background->getPosition_0(a1->m_background)->y; cocos2d::CCPoint::CCPoint(v30, (float)-a1->m_cameraWidthOffset * 0.5); v33 = a1->m_background->getPosition_0(a1->m_background); cocos2d::CCPoint::operator+(v33, &v177); a1->m_background->setPosition_0(a1->m_background, &v177); cocos2d::CCRect::operator=(&v154, &a1->m_background->m_obRect); cocos2d::CCRect::CCRect(&v149, &v154); v34 = a1->m_cameraWidthOffset * 0.5; v35 = a1->m_background->getScale(a1->m_background); v36 = a1->m_background; v149.origin.x = v149.origin.x - (float)(v34 / v35); v37 = v36->getScale(v36); v38 = a1->m_background; v149.size.width = v149.size.width + (float)(a1->m_cameraWidthOffset / v37); v39 = v38->getScale(v38); v40 = a1->m_groundLayer2; v149.origin.y = v149.origin.y + (float)(v32 / v39); if ( v40->isVisible(v40) ) { v41 = a1->m_groundLayer2->getPosition_0(a1->m_groundLayer2); v42 = (float)(a1->m_cameraHeightOffset * 0.5) + v176; if ( v42 > v41->y ) v42 = a1->m_groundLayer2->getPosition_0(a1->m_groundLayer2)->y; } else { v42 = (float)(a1->m_cameraHeightOffset * 0.5) + v176; } v43 = (float)(v42 - a1->m_background->getPosition_0(a1->m_background)->y) + 1.0; v44 = a1->m_background->getScale(a1->m_background); v45 = v149.size.height - (float)(v43 / v44); v46 = a1->m_background->getScale(a1->m_background); v47 = a1->m_background; v48 = v149.origin.y + v45; v49 = -a1->m_cameraWidthOffset; v149.origin.y = v48; v149.size.height = v43 / v46; v50 = (float)((float)(v49 * 0.5) - 1.0) - v47->getPosition_0(v47)->x; cocos2d::CCPoint::CCPoint(v46, v50); v51 = a1->m_background->getPosition_0(a1->m_background); cocos2d::CCPoint::operator+(v51, &v177); a1->m_background->setPosition_0(a1->m_background, &v177); *(float *)&v55 = a1->m_background->getScale(a1->m_background); v52 = a1->m_background; v53 = v149.origin.x + (float)(v50 / *(float *)&v55); v54 = v175 + a1->m_cameraWidthOffset; v149.origin.x = v53; *(float *)&v55 = v52->getScale(v52); v56 = a1->m_background; v149.size.width = (float)(v54 + 1.0) / *(float *)&v55; v56->setTextureRect_0(v56, &v149); if ( dword_1406BA0E0 != a1->m_gameState.m_commandIndex ) { dword_1406BA0E0 = a1->m_gameState.m_commandIndex; if ( v7 ) { v57 = a1->m_cameraHeightOffset * 0.5; } else { *(float *)&v55 = a1->m_groundLayer->getPosition_0(a1->m_groundLayer)->y; v58 = -(float)(a1->m_cameraHeightOffset * 0.5); if ( *(float *)&v55 > v58 ) v58 = a1->m_groundLayer->getPosition_0(a1->m_groundLayer)->y; v57 = -v58; } m_gradientLayers = a1->m_gradientLayers; if ( m_gradientLayers ) { m_pElements = m_gradientLayers->m_pElements; if ( m_pElements ) { for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next ) { m_pObject = (cocos2d::CCLayerColor *)m_pElements->m_pObject; if ( m_pObject->getParent(m_pObject) ) { v63 = *(_QWORD *)&m_pObject[1].m_unknown2; MainObject = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v63 + 1868)); v65 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v63 + 1872)); v66 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v63 + 1876)); v67 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v63 + 1880)); v68 = LOBYTE(m_pObject[1].m_uOrderOfArrival) == 0; v155 = v67; if ( v68 ) LODWORD(v55) = 1065353216; else a1->m_objectLayer->getScale(a1->m_objectLayer); v69 = (float)(a1->m_cameraWidthOffset * 0.5) / *(float *)&v55; if ( LOBYTE(m_pObject[1].m_uOrderOfArrival) ) a1->m_objectLayer->getScale(a1->m_objectLayer); else LODWORD(v55) = 1065353216; v70 = v57 / *(float *)&v55; if ( LOBYTE(m_pObject[1].m_uOrderOfArrival) ) a1->m_objectLayer->getScale(a1->m_objectLayer); else LODWORD(v55) = 1065353216; v71 = (float)(a1->m_cameraHeightOffset * 0.5) / *(float *)&v55; if ( *(_BYTE *)(v63 + 1884) ) { if ( MainObject ) cocos2d::CCPoint::CCPoint(&v164); else cocos2d::CCPoint::CCPoint(*(float *)&v55, v69); v80 = cocos2d::CCPoint::CCPoint(&v177); if ( v65 ) cocos2d::CCPoint::CCPoint(&v165); else cocos2d::CCPoint::CCPoint(*(float *)&v80, v177.x + v69); v81 = cocos2d::CCPoint::CCPoint(&v153); if ( v66 ) cocos2d::CCPoint::CCPoint(&v166); else cocos2d::CCPoint::CCPoint(*(float *)&v81, 0.0); v82 = cocos2d::CCPoint::CCPoint(&v161); if ( v155 ) { cocos2d::CCPoint::CCPoint(&v167); } else { cocos2d::CCPoint::CCPoint(*(float *)&v82, v69); cocos2d::CCPoint::operator+(&v177, v158); } cocos2d::CCPoint::CCPoint(&v160); v83 = (__int64)m_pObject->getPosition_0(m_pObject); cocos2d::CCPoint::operator-(v83, &v159, &v177); m_pObject->setPosition_0(m_pObject, &v159); cocos2d::CCPoint::CCPoint(&v168); v85 = v84; cocos2d::CCPoint::CCPoint(&v169); v87 = v86; v55 = cocos2d::CCPoint::CCPoint(&v170); cocos2d::CCLayerColor::addToVertices(m_pObject, v88, v87, v85); } else { if ( v66 ) v72 = 0.0; else v72 = v69; if ( v155 ) v69 = 0.0; if ( v65 ) v70 = 0.0; if ( MainObject ) v71 = 0.0; cocos2d::CCPoint::CCPoint(*(float *)&v55, v72); v74 = v73; v75 = (__int64)m_pObject->getPosition_0(m_pObject); cocos2d::CCPoint::operator-(v75, &v157, v74); m_pObject->setPosition_0(m_pObject, &v157); if ( (float)(v69 + v72) != 0.0 ) { m_pObject->getScaleX(m_pObject); v76 = m_pObject->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; m_pObject->getScaleX(m_pObject); ((void (__fastcall *)(cocos2d::CCLayerColor *))v76->setScaleX)(m_pObject); } *(float *)&v55 = v71 + v70; if ( (float)(v71 + v70) != 0.0 ) { v77 = ((double (__fastcall *)(cocos2d::CCLayerColor *))m_pObject->getScaleY)(m_pObject); v78 = m_pObject->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v79 = *(float *)&v77 * v176; v55 = ((double (__fastcall *)(cocos2d::CCLayerColor *))m_pObject->getScaleY)(m_pObject); *(float *)&v55 = *(float *)&v55 * (float)((float)((float)(v79 + v70) + v71) / v79); ((void (__fastcall *)(cocos2d::CCLayerColor *))v78->setScaleY)(m_pObject); } } } m_pElements = i; if ( !i ) break; } } } } for ( j = 0; j < 3; j += 3 ) { if ( j ) { if ( j == 1 ) m_inShaderParent = a1->m_inShaderParent; else m_inShaderParent = a1->m_aboveShaderParent; } else { m_inShaderParent = a1->m_objectParent; } v91 = (__int64)m_inShaderParent->getChildren(m_inShaderParent); if ( v91 ) { v92 = *(unsigned int **)(v91 + 56); v93 = *v92; if ( (_DWORD)v93 ) { v94 = *((_QWORD **)v92 + 2); for ( k = &v94[v93 - 1]; v94 <= k; ++v94 ) { v96 = *v94; if ( !*v94 ) break; v97 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v96 + 200LL))(*v94); cocos2d::CCPoint::operator+(v97, &v177); (*(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v96 + 184LL))(v96, &v177); } } } m_inShaderParent->setPosition_0(m_inShaderParent, &v150); ((void (__fastcall *)(cocos2d::CCNode *))m_inShaderParent->setRotation)(m_inShaderParent); if ( j == -1 ) { m_objectParent = a1->m_objectParent; } else if ( j ) { m_objectParent = a1->m_aboveShaderParent; } else { m_objectParent = a1->m_inShaderParent; } v99 = (__int64)m_objectParent->getChildren(m_objectParent); if ( v99 ) { v100 = *(unsigned int **)(v99 + 56); v101 = *v100; if ( (_DWORD)v101 ) { v102 = *((_QWORD **)v100 + 2); for ( m = &v102[v101 - 1]; v102 <= m; ++v102 ) { v104 = *v102; if ( !*v102 ) break; v105 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v104 + 200LL))(*v102); cocos2d::CCPoint::operator+(v105, &v177); (*(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v104 + 184LL))(v104, &v177); } } } m_objectParent->setPosition_0(m_objectParent, &v150); ((void (__fastcall *)(cocos2d::CCNode *))m_objectParent->setRotation)(m_objectParent); if ( j == -2 ) { m_aboveShaderParent = a1->m_objectParent; } else if ( j == -1 ) { m_aboveShaderParent = a1->m_inShaderParent; } else { m_aboveShaderParent = a1->m_aboveShaderParent; } v107 = (__int64)m_aboveShaderParent->getChildren(m_aboveShaderParent); if ( v107 ) { v108 = *(unsigned int **)(v107 + 56); v109 = *v108; if ( (_DWORD)v109 ) { v110 = *((_QWORD **)v108 + 2); for ( n = &v110[v109 - 1]; v110 <= n; ++v110 ) { v112 = *v110; if ( !*v110 ) break; v113 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v112 + 200LL))(*v110); cocos2d::CCPoint::operator+(v113, &v177); (*(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v112 + 184LL))(v112, &v177); } } } m_aboveShaderParent->setPosition_0(m_aboveShaderParent, &v150); ((void (__fastcall *)(cocos2d::CCNode *))m_aboveShaderParent->setRotation)(m_aboveShaderParent); } ((void (__fastcall *)(cocos2d::CCNode *))a1->m_uiTriggerUI->setRotation)(a1->m_uiTriggerUI); m_uiTriggerUI = a1->m_uiTriggerUI; v115 = m_uiTriggerUI->__vftable; v116 = m_uiTriggerUI->getParent(m_uiTriggerUI); v117 = cocos2d::CCNode::convertToNodeSpace(v116, &v177); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v115->setPosition_0)(a1->m_uiTriggerUI, v117); v7 = v173; } v118 = 0; cocos2d::CCRect::CCRect(&v162); cocos2d::CCPoint::CCPoint(&v152); m_shaderLayer = a1->m_shaderLayer; if ( m_shaderLayer && m_shaderLayer->m_state.m_usesShaders && m_shaderLayer->m_state.m_minBlendingLayer >= 1 ) { v118 = 1; cocos2d::CCRect::operator=(&v162, &a1->m_background->m_obRect); v120 = a1->m_background->getPosition_0(a1->m_background); cocos2d::CCPoint::operator=(&v152, v120); cocos2d::CCRect::CCRect(&v149, &v162); v121 = 100.0 / a1->m_background->getScale(a1->m_background); v122 = v7 || a1->m_gameState.m_cameraAngle == 0.0; v123 = a1->m_background; v149.origin.x = v149.origin.x - v121; v149.origin.y = v149.origin.y - v121; v149.size.width = v149.size.width + (float)(v121 + v121); v124 = (float)(v122 + 1) * v121; v149.size.height = v149.size.height + v124; v123->setTextureRect_0(v123, &v149); cocos2d::CCPoint::CCPoint(v124, -100.0); cocos2d::CCPoint::operator+(&v152, &v173); a1->m_background->setPosition_0(a1->m_background, (const cocos2d::CCPoint *)&v173); } if ( a1->m_flashNode->isVisible(a1->m_flashNode) ) GJBaseGameLayer::visitWithColorFlash(a1); else cocos2d::CCNode::visit(a1); if ( v118 ) { a1->m_background->setTextureRect_0(a1->m_background, &v162); a1->m_background->setPosition_0(a1->m_background, &v152); } if ( a1->m_gameState.m_cameraAngle != 0.0 ) { v125 = a1->m_objectParent; v126 = (__int64)v125->getChildren(v125); if ( v126 ) { v127 = *(unsigned int **)(v126 + 56); v128 = *v127; if ( (_DWORD)v128 ) { v129 = *((_QWORD **)v127 + 2); for ( ii = &v129[v128 - 1]; v129 <= ii; ++v129 ) { v131 = *v129; if ( !*v129 ) break; v132 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v131 + 200LL))(*v129); cocos2d::CCPoint::operator+(v132, &v173); (*(void (__fastcall **)(__int64, bool *))(*(_QWORD *)v131 + 184LL))(v131, &v173); } } } ((void (__fastcall *)(cocos2d::CCNode *))v125->setRotation)(v125); v125->setPosition_0(v125, (const cocos2d::CCPoint *)&dword_1406C1D28); v133 = a1->m_inShaderParent; v134 = (__int64)v133->getChildren(v133); if ( v134 ) { v135 = *(unsigned int **)(v134 + 56); v136 = *v135; if ( (_DWORD)v136 ) { v137 = *((_QWORD **)v135 + 2); for ( jj = &v137[v136 - 1]; v137 <= jj; ++v137 ) { v139 = *v137; if ( !*v137 ) break; v140 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v139 + 200LL))(*v137); cocos2d::CCPoint::operator+(v140, &v173); (*(void (__fastcall **)(__int64, bool *))(*(_QWORD *)v139 + 184LL))(v139, &v173); } } } ((void (__fastcall *)(cocos2d::CCNode *))v133->setRotation)(v133); v133->setPosition_0(v133, (const cocos2d::CCPoint *)&dword_1406C1D28); v141 = a1->m_aboveShaderParent; v142 = (__int64)v141->getChildren(v141); if ( v142 ) { v143 = *(unsigned int **)(v142 + 56); v144 = *v143; if ( (_DWORD)v144 ) { v145 = *((_QWORD **)v143 + 2); for ( kk = &v145[v144 - 1]; v145 <= kk; ++v145 ) { v147 = *v145; if ( !*v145 ) break; v148 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v147 + 200LL))(*v145); cocos2d::CCPoint::operator+(v148, &v173); (*(void (__fastcall **)(__int64, bool *))(*(_QWORD *)v147 + 184LL))(v147, &v173); } } } ((void (__fastcall *)(cocos2d::CCNode *))v141->setRotation)(v141); v141->setPosition_0(v141, (const cocos2d::CCPoint *)&dword_1406C1D28); ((void (__fastcall *)(cocos2d::CCNode *))a1->m_uiTriggerUI->setRotation)(a1->m_uiTriggerUI); a1->m_uiTriggerUI->setPosition_0(a1->m_uiTriggerUI, (const cocos2d::CCPoint *)&dword_1406C1D28); } a1->m_background->setTextureRect_0(a1->m_background, &v154); a1->m_background->setPosition_0(a1->m_background, &v156); if ( v174 ) GJBaseGameLayer::flipObjects(a1); }