// // GJBaseGameLayer::visit from 0x1002080a4 to 0x100208f6c (3784 bytes) // // 3 xrefs: // > @ 0x10078fb68 // > @ 0x1007c0980 // > @ 0x1007f40e0 // // 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::visit(GJBaseGameLayer *a1) { float m_levelFlipping; // s1 _BOOL4 v4; // w8 cocos2d::CCDirector *v5; // x0 __n128 v6; // q0 __n128 v7; // q1 __int64 *v8; // x0 float v9; // s0 __int64 *v10; // x0 float v11; // s0 int v12; // w0 GJGroundLayer *m_groundLayer; // x8 char v14; // w27 double v15; // d0 float v16; // s8 __int64 v17; // x0 __n128 v18; // q0 float v19; // s8 double v20; // d0 float v21; // s8 __int64 v22; // x0 float v23; // s8 cocos2d::CCSprite *v24; // x20 float32x2_t *v25; // x21 __n128 v26; // q0 __n128 v27; // q1 double v28; // d0 float v29; // s9 float v30; // s0 float m_cameraWidthOffset; // s9 float v32; // s0 float v33; // s0 __int64 v34; // x0 float v35; // s8 float v36; // s8 float v37; // s0 float v38; // s10 float v39; // s8 float v40; // s8 cocos2d::CCSprite *v41; // x20 float32x2_t *v42; // x21 __n128 v43; // q1 __n128 v44; // q0 double v45; // d0 float v46; // s0 float v47; // s8 float v48; // s12 cocos2d::CCSprite *m_background; // x20 float32x2_t *v50; // x21 __n128 v51; // q0 __n128 v52; // q1 double v53; // d0 float v54; // s0 __int64 v55; // x0 float v56; // s8 float v57; // s8 float v58; // s0 float v59; // s9 float v60; // s8 cocos2d::CCSprite *v61; // x20 float32x2_t *v62; // x21 __n128 v63; // q1 __n128 v64; // q0 double v65; // d0 float v66; // s0 float v67; // s8 __int64 v68; // x0 float v69; // s0 cocos2d::CCDictionary *m_gradientLayers; // x8 cocos2d::CCDictElement *m_pElements; // x28 cocos2d::CCLayerColor *m_pObject; // x21 __int64 v73; // x20 GameObject *MainObject; // x25 GameObject *v75; // x24 GameObject *v76; // x23 GameObject *v77; // x22 __n128 v78; // q0 __n128 v79; // q1 float v80; // s8 float m_cameraHeightOffset; // s9 float v82; // s10 float v83; // s9 __n128 v84; // q0 __n128 v85; // q1 __n128 v86; // q0 __n128 v87; // q1 __n128 v88; // q0 __n128 v89; // q1 __n128 v90; // q0 float v91; // s11 float v92; // s15 float v93; // s8 float32x2_t *v94; // x22 __n128 v95; // q0 __n128 v96; // q1 double v97; // d0 float v98; // s10 float v99; // s10 float v100; // s0 float v101; // s10 float v102; // s10 float v103; // s0 float32x2_t *v104; // x0 double v105; // d0 int i; // w22 cocos2d::CCNode **p_m_inShaderParent; // x8 cocos2d::CCNode *v108; // x20 __int64 v109; // x0 unsigned int *v110; // x9 __int64 v111; // x8 _QWORD *v112; // x28 unsigned __int64 v113; // x26 __int64 v114; // x21 float32x2_t *v115; // x0 double v116; // d0 cocos2d::CCNode *m_uiTriggerUI; // x20 cocos2d::CCNode *v118; // x0 ShaderLayer *m_shaderLayer; // x8 double v120; // d0 double *v121; // x0 double v122; // d0 int32x2_t v123; // d0 _BOOL4 v124; // w8 int v125; // w20 int j; // w23 cocos2d::CCNode **p_m_aboveShaderParent; // x8 cocos2d::CCNode *v128; // x21 __int64 v129; // x0 unsigned int *v130; // x9 __int64 v131; // x8 _QWORD *v132; // x28 unsigned __int64 v133; // x26 __int64 v134; // x22 float32x2_t *v135; // x0 double v136; // d0 float v137; // s1 float v138; // s9 __n128 v139; // q0 cocos2d::CCSprite *v140; // x20 __n128 v141; // q1 double v142; // d0 int v143; // [xsp+Ch] [xbp-144h] float32x2_t v144; // [xsp+10h] [xbp-140h] BYREF float v145; // [xsp+18h] [xbp-138h] float v146; // [xsp+1Ch] [xbp-134h] __int64 v147; // [xsp+20h] [xbp-130h] BYREF __int64 v148; // [xsp+28h] [xbp-128h] BYREF float32x2_t v149; // [xsp+30h] [xbp-120h] BYREF float32x2_t v150; // [xsp+38h] [xbp-118h] BYREF float32x2_t v151; // [xsp+40h] [xbp-110h] BYREF float32x2_t v152; // [xsp+48h] [xbp-108h] BYREF float32x2_t v153; // [xsp+50h] [xbp-100h] BYREF float v154; // [xsp+58h] [xbp-F8h] float v155; // [xsp+5Ch] [xbp-F4h] float32x2_t v156; // [xsp+60h] [xbp-F0h] BYREF __int64 v157; // [xsp+68h] [xbp-E8h] BYREF __int64 v158; // [xsp+70h] [xbp-E0h] BYREF float32x2_t v159; // [xsp+78h] [xbp-D8h] BYREF float v160; // [xsp+80h] [xbp-D0h] float v161; // [xsp+84h] [xbp-CCh] __int64 v162; // [xsp+88h] [xbp-C8h] BYREF __int64 v163; // [xsp+98h] [xbp-B8h] BYREF _QWORD v164[3]; // [xsp+A8h] [xbp-A8h] BYREF cocos2d::CCPoint v165; // 0:s0.4,4:s1.4 cocos2d::CCPoint v166; // 0:s2.4,4:s3.4 cocos2d::CCPoint v167; // 0:s4.4,4:s5.4 if ( a1->m_loadingProgress < 1.0 ) { cocos2d::CCNode::visit(a1); return; } if ( !a1->m_player1 ) goto LABEL_12; m_levelFlipping = a1->m_gameState.m_levelFlipping; if ( m_levelFlipping == 0.0 || m_levelFlipping == 1.0 ) goto LABEL_12; v4 = m_levelFlipping >= 0.5; if ( a1->m_cameraFlip != 1.0 ) v4 = m_levelFlipping <= 0.5; if ( v4 ) { GJBaseGameLayer::flipObjects(a1); v143 = 1; } else { LABEL_12: v143 = 0; } sub_100022B98(v164, (__int64)&unk_10086C9B0); sub_100022B98(&v163, (__int64)&unk_10086C9B0); sub_100022B98(&v162, (__int64)&unk_10086C9B0); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); v6.n128_f32[0] = v160 * 0.5; v7.n128_f32[0] = v161 * 0.5; sub_100022980(v6, v7, &v159); v8 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getPosition)(a1->m_background); v9 = sub_1000229B8(&v158, v8); v10 = (__int64 *)((__int64 (__fastcall *)(GJGroundLayer *, float))a1->m_groundLayer2->getPosition)( a1->m_groundLayer2, v9); v11 = sub_1000229B8(&v157, v10); v12 = ((__int64 (__fastcall *)(GJGroundLayer *, float))a1->m_groundLayer->isVisible)(a1->m_groundLayer, v11); m_groundLayer = a1->m_groundLayer; if ( v12 ) v14 = !m_groundLayer->m_showGround2; else v14 = 1; ((void (__fastcall *)(cocos2d::CCSprite *, __int64))m_groundLayer->m_ground1Sprite->setOpacity)( m_groundLayer->m_ground1Sprite, 100); if ( a1->m_gameState.m_cameraAngle == 0.0 ) { sub_100022BB0(v164, (__int64)&a1->m_background->m_obRect); v20 = sub_100022B98(&v153, (__int64)v164); v21 = 0.0; if ( *(float *)(((__int64 (__fastcall *)(GJGroundLayer *, double))a1->m_groundLayer->getPosition)( a1->m_groundLayer, v20) + 4) >= 0.0 ) v21 = *(float *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer) + 4); v22 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getPosition)(a1->m_background); if ( (v14 & 1) != 0 ) v23 = -1.0 - *(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getPosition)(a1->m_background) + 4); else v23 = (float)(v21 - *(float *)(v22 + 4)) + -1.0; m_background = a1->m_background; v50 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))m_background->getPosition)(m_background); v51.n128_u32[0] = 0; v52.n128_f32[0] = v23; sub_100022980(v51, v52, &v156); *(float32x2_t *)&v53 = sub_1000229DC(v50, &v156, &v144); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))m_background->setPosition)( m_background, &v144, v53); v54 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); v153.f32[1] = v153.f32[1] - (float)(v23 / v54); if ( ((unsigned int (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->isVisible)(a1->m_groundLayer2) ) { v55 = ((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->getPosition)(a1->m_groundLayer2); v56 = v161; if ( *(float *)(v55 + 4) <= v161 ) v56 = *(float *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->getPosition)(a1->m_groundLayer2) + 4); } else { v56 = v161; } v57 = (float)(v56 - *(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getPosition)(a1->m_background) + 4)) + 1.0; v58 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); v59 = v155 - (float)(v57 / v58); v155 = v57 / ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); v153.f32[1] = v59 + v153.f32[1]; v60 = -1.0 - *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getPosition)(a1->m_background); v61 = a1->m_background; v62 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v61->getPosition)(v61); v63.n128_u32[0] = 0; v64.n128_f32[0] = v60; sub_100022980(v64, v63, &v156); *(float32x2_t *)&v65 = sub_1000229DC(v62, &v156, &v144); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v61->setPosition)(v61, &v144, v65); v66 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); v153.f32[0] = v153.f32[0] + (float)(v60 / v66); v67 = v160 + 2.0; v154 = v67 / ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))a1->m_background->setTextureRect)(a1->m_background, &v153); } else { *(float32x2_t *)&v15 = sub_100022A04(&v159, &v144); v16 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *, double))a1->m_background->getPosition)( a1->m_background, v15) + 4); v17 = ((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer); v18.n128_f32[0] = a1->m_cameraHeightOffset * -0.5; if ( *(float *)(v17 + 4) >= v18.n128_f32[0] ) v18.n128_u32[0] = *(_DWORD *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer) + 4); if ( (v14 & 1) != 0 ) v19 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *, __n128))a1->m_background->getPosition)( a1->m_background, v18) + 4) + (float)(a1->m_cameraHeightOffset * 0.5); else v19 = v16 - v18.n128_f32[0]; v24 = a1->m_background; v25 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v24->getPosition)(v24); v26.n128_f32[0] = a1->m_cameraWidthOffset * -0.5; v27.n128_f32[0] = -v19; sub_100022980(v26, v27, &v156); *(float32x2_t *)&v28 = sub_1000229DC(v25, &v156, &v153); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v24->setPosition)(v24, &v153, v28); sub_100022BB0(v164, (__int64)&a1->m_background->m_obRect); sub_100022B98(&v153, (__int64)v164); v29 = a1->m_cameraWidthOffset * -0.5; v30 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); v153.f32[0] = v153.f32[0] + (float)(v29 / v30); m_cameraWidthOffset = a1->m_cameraWidthOffset; v32 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); v154 = v154 + (float)(m_cameraWidthOffset / v32); v33 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); v153.f32[1] = v153.f32[1] + (float)(v19 / v33); if ( ((unsigned int (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->isVisible)(a1->m_groundLayer2) ) { v34 = ((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->getPosition)(a1->m_groundLayer2); v35 = v161 + (float)(a1->m_cameraHeightOffset * 0.5); if ( *(float *)(v34 + 4) <= v35 ) v35 = *(float *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->getPosition)(a1->m_groundLayer2) + 4); } else { v35 = v161 + (float)(a1->m_cameraHeightOffset * 0.5); } v36 = (float)(v35 - *(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getPosition)(a1->m_background) + 4)) + 1.0; v37 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); v38 = v155 - (float)(v36 / v37); v155 = v36 / ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); v153.f32[1] = v38 + v153.f32[1]; v39 = (float)(a1->m_cameraWidthOffset * -0.5) + -1.0; v40 = v39 - *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getPosition)(a1->m_background); v41 = a1->m_background; v42 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v41->getPosition)(v41); v43.n128_u32[0] = 0; v44.n128_f32[0] = v40; sub_100022980(v44, v43, &v152); *(float32x2_t *)&v45 = sub_1000229DC(v42, &v152, &v156); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v41->setPosition)(v41, &v156, v45); v46 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); v153.f32[0] = v153.f32[0] + (float)(v40 / v46); v47 = (float)(v160 + a1->m_cameraWidthOffset) + 1.0; v154 = v47 / ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getScale)(a1->m_background); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))a1->m_background->setTextureRect)(a1->m_background, &v153); if ( dword_10084BFFC != a1->m_gameState.m_commandIndex ) { dword_10084BFFC = a1->m_gameState.m_commandIndex; if ( (v14 & 1) != 0 ) { v48 = a1->m_cameraHeightOffset * 0.5; } else { v68 = ((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer); v69 = a1->m_cameraHeightOffset * -0.5; if ( *(float *)(v68 + 4) >= v69 ) v69 = *(float *)(((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getPosition)(a1->m_groundLayer) + 4); v48 = -v69; } m_gradientLayers = a1->m_gradientLayers; if ( m_gradientLayers ) { m_pElements = m_gradientLayers->m_pElements; while ( m_pElements ) { while ( 1 ) { m_pObject = (cocos2d::CCLayerColor *)m_pElements->m_pObject; m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next; if ( ((__int64 (__fastcall *)(cocos2d::CCLayerColor *))m_pObject->getParent)(m_pObject) ) break; LABEL_71: if ( !m_pElements ) goto LABEL_78; } v73 = *(_QWORD *)&m_pObject[1].m_unknown2; MainObject = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v73 + 1848)); v75 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v73 + 1852)); v76 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v73 + 1856)); v77 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v73 + 1860)); v80 = a1->m_cameraWidthOffset * 0.5; if ( LOBYTE(m_pObject[1].m_uOrderOfArrival) == 1 && (v80 = v80 / ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getScale)(a1->m_objectLayer), (m_pObject[1].m_uOrderOfArrival & 1) != 0) ) { v79.n128_u32[0] = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getScale)(a1->m_objectLayer); m_cameraHeightOffset = a1->m_cameraHeightOffset; v78.n128_u32[0] = 1.0; v82 = v48 / v79.n128_f32[0]; if ( (m_pObject[1].m_uOrderOfArrival & 1) != 0 ) ((void (__fastcall *)(cocos2d::CCLayer *, float))a1->m_objectLayer->getScale)(a1->m_objectLayer, 1.0); } else { m_cameraHeightOffset = a1->m_cameraHeightOffset; v78.n128_u32[0] = 1.0; v82 = v48; } v83 = (float)(m_cameraHeightOffset * 0.5) / v78.n128_f32[0]; if ( (*(_BYTE *)(v73 + 1864) & 1) == 0 ) { if ( v76 ) v91 = 0.0; else v91 = v80; if ( v77 ) v92 = 0.0; else v92 = v80; if ( v75 ) v93 = 0.0; else v93 = v82; if ( MainObject ) v83 = 0.0; v94 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayerColor *))m_pObject->getPosition)(m_pObject); v95.n128_f32[0] = v91; v96.n128_f32[0] = v93; sub_100022980(v95, v96, &v152); *(float32x2_t *)&v97 = sub_1000229F0(v94, &v152, &v156); ((void (__fastcall *)(cocos2d::CCLayerColor *, float32x2_t *, double))m_pObject->setPosition)( m_pObject, &v156, v97); if ( (float)(v91 + v92) != 0.0 ) { v98 = v160; v99 = v98 * ((float (__fastcall *)(cocos2d::CCLayerColor *, float))m_pObject->getScaleX)(m_pObject, v91 + v92); v100 = ((float (__fastcall *)(cocos2d::CCLayerColor *))m_pObject->getScaleX)(m_pObject); ((void (__fastcall *)(cocos2d::CCLayerColor *, float))m_pObject->setScaleX)( m_pObject, v100 * (float)((float)(v92 + (float)(v91 + v99)) / v99)); } if ( (float)(v93 + v83) != 0.0 ) { v101 = v161; v102 = v101 * ((float (__fastcall *)(cocos2d::CCLayerColor *, float))m_pObject->getScaleY)(m_pObject, v93 + v83); v103 = ((float (__fastcall *)(cocos2d::CCLayerColor *))m_pObject->getScaleY)(m_pObject); ((void (__fastcall *)(cocos2d::CCLayerColor *, float))m_pObject->setScaleY)( m_pObject, v103 * (float)((float)(v83 + (float)(v93 + v102)) / v102)); } goto LABEL_71; } if ( MainObject ) { sub_1000229B8((__int64 *)&v156, &qword_10086C9A0); if ( v75 ) goto LABEL_53; } else { v78.n128_f32[0] = v80; v79.n128_f32[0] = v82; sub_100022980(v78, v79, &v156); if ( v75 ) { LABEL_53: sub_1000229B8((__int64 *)&v152, (__int64 *)&v156); if ( v76 ) goto LABEL_54; goto LABEL_75; } } v84.n128_f32[0] = v80 + v156.f32[0]; v85.n128_u32[0] = 0; sub_100022980(v84, v85, &v152); if ( v76 ) { LABEL_54: sub_1000229B8((__int64 *)&v151, (__int64 *)&v156); if ( !v77 ) goto LABEL_76; goto LABEL_55; } LABEL_75: v87.n128_f32[0] = v83 + v156.f32[1]; v86.n128_u32[0] = 0; sub_100022980(v86, v87, &v151); if ( !v77 ) { LABEL_76: v88.n128_f32[0] = v80; v89.n128_f32[0] = v83; sub_100022980(v88, v89, &v149); v90.n128_u64[0] = (unsigned __int64)sub_1000229DC(&v156, &v149, &v150); goto LABEL_77; } LABEL_55: v90.n128_f32[0] = sub_1000229B8((__int64 *)&v150, (__int64 *)&v156); LABEL_77: v104 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLayerColor *, __n128))m_pObject->getPosition)( m_pObject, v90); *(float32x2_t *)&v105 = sub_1000229F0(v104, &v156, &v149); ((void (__fastcall *)(cocos2d::CCLayerColor *, float32x2_t *, double))m_pObject->setPosition)( m_pObject, &v149, v105); sub_1000229B8((__int64 *)&v149, (__int64 *)&v152); sub_1000229B8(&v148, (__int64 *)&v151); v165.x = sub_1000229B8(&v147, (__int64 *)&v150); cocos2d::CCLayerColor::addToVertices(m_pObject, v165, v166, v167); } } } LABEL_78: for ( i = 0; i != 3; ++i ) { if ( i == 1 ) p_m_inShaderParent = &a1->m_inShaderParent; else p_m_inShaderParent = &a1->m_aboveShaderParent; if ( !i ) p_m_inShaderParent = &a1->m_objectParent; v108 = *p_m_inShaderParent; v109 = ((__int64 (__fastcall *)(cocos2d::CCNode *))(*p_m_inShaderParent)->getChildren)(*p_m_inShaderParent); if ( v109 ) { v110 = *(unsigned int **)(v109 + 56); v111 = *v110; if ( (_DWORD)v111 ) { v112 = *((_QWORD **)v110 + 2); v113 = (unsigned __int64)&v112[v111 - 1]; do { v114 = *v112; if ( !*v112 ) break; v115 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v114 + 192LL))(*v112); *(float32x2_t *)&v116 = sub_1000229DC(v115, &v144, &v156); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v114 + 184LL))(v114, &v156, v116); ++v112; } while ( (unsigned __int64)v112 <= v113 ); } } ((void (__fastcall *)(cocos2d::CCNode *, float32x2_t *))v108->setPosition)(v108, &v159); ((void (__fastcall *)(cocos2d::CCNode *, float))v108->setRotation)(v108, a1->m_gameState.m_cameraAngle); } ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_uiTriggerUI->setRotation)( a1->m_uiTriggerUI, -a1->m_gameState.m_cameraAngle); m_uiTriggerUI = a1->m_uiTriggerUI; v118 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCNode *))m_uiTriggerUI->getParent)(m_uiTriggerUI); cocos2d::CCNode::convertToNodeSpace(v118, (const cocos2d::CCPoint *)&qword_10086C9A0); ((void (__fastcall *)(cocos2d::CCNode *, float32x2_t *))m_uiTriggerUI->setPosition)(m_uiTriggerUI, &v156); } sub_100022B90(&v153); sub_1000229B0(&v156); m_shaderLayer = a1->m_shaderLayer; if ( m_shaderLayer && m_shaderLayer->m_state.m_usesShaders && m_shaderLayer->m_state.m_minBlendingLayer >= 1 ) { v120 = sub_100022BB0(&v153, (__int64)&a1->m_background->m_obRect); v121 = (double *)((__int64 (__fastcall *)(cocos2d::CCSprite *, double))a1->m_background->getPosition)( a1->m_background, v120); sub_1000229D0(&v156, v121); v122 = sub_100022B98(&v144, (__int64)&v153); *(float *)v123.i32 = 100.0 / ((float (__fastcall *)(cocos2d::CCSprite *, double))a1->m_background->getScale)( a1->m_background, v122); v124 = (v14 & 1) != 0 || a1->m_gameState.m_cameraAngle == 0.0; v137 = 2.0; if ( !v124 ) v137 = 1.0; v144 = vsub_f32(v144, (float32x2_t)vdup_lane_s32(v123, 0)); v145 = v145 + (float)(*(float *)v123.i32 * 2.0); v146 = v146 + (float)(*(float *)v123.i32 * v137); if ( v124 ) v138 = -100.0; else v138 = 0.0; v139 = ((__n128 (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))a1->m_background->setTextureRect)( a1->m_background, &v144); v140 = a1->m_background; v139.n128_u32[0] = -1027080192; v141.n128_f32[0] = v138; sub_100022980(v139, v141, &v151); *(float32x2_t *)&v142 = sub_1000229DC(&v156, &v151, &v152); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v140->setPosition)(v140, &v152, v142); v125 = 1; } else { v125 = 0; } if ( (((__int64 (__fastcall *)(cocos2d::CCNode *))a1->m_flashNode->isVisible)(a1->m_flashNode) & 1) != 0 ) { GJBaseGameLayer::visitWithColorFlash(a1); if ( !v125 ) goto LABEL_102; goto LABEL_101; } cocos2d::CCNode::visit(a1); if ( v125 ) { LABEL_101: ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))a1->m_background->setTextureRect)(a1->m_background, &v153); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))a1->m_background->setPosition)(a1->m_background, &v156); } LABEL_102: if ( a1->m_gameState.m_cameraAngle != 0.0 ) { for ( j = 0; j != 3; ++j ) { if ( j == 1 ) p_m_aboveShaderParent = &a1->m_inShaderParent; else p_m_aboveShaderParent = &a1->m_aboveShaderParent; if ( !j ) p_m_aboveShaderParent = &a1->m_objectParent; v128 = *p_m_aboveShaderParent; v129 = ((__int64 (__fastcall *)(cocos2d::CCNode *))(*p_m_aboveShaderParent)->getChildren)(*p_m_aboveShaderParent); if ( v129 ) { v130 = *(unsigned int **)(v129 + 56); v131 = *v130; if ( (_DWORD)v131 ) { v132 = *((_QWORD **)v130 + 2); v133 = (unsigned __int64)&v132[v131 - 1]; do { v134 = *v132; if ( !*v132 ) break; v135 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v134 + 192LL))(*v132); *(float32x2_t *)&v136 = sub_1000229DC(v135, &v159, &v144); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v134 + 184LL))(v134, &v144, v136); ++v132; } while ( (unsigned __int64)v132 <= v133 ); } } ((void (__fastcall *)(cocos2d::CCNode *, float))v128->setRotation)(v128, 0.0); ((void (__fastcall *)(cocos2d::CCNode *, __int64 *))v128->setPosition)(v128, &qword_10086C9A0); } ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_uiTriggerUI->setRotation)(a1->m_uiTriggerUI, 0.0); ((void (__fastcall *)(cocos2d::CCNode *, __int64 *))a1->m_uiTriggerUI->setPosition)( a1->m_uiTriggerUI, &qword_10086C9A0); } ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD *))a1->m_background->setTextureRect)(a1->m_background, v164); ((void (__fastcall *)(cocos2d::CCSprite *, __int64 *))a1->m_background->setPosition)(a1->m_background, &v158); if ( v143 ) GJBaseGameLayer::flipObjects(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source