// // GJBaseGameLayer::preUpdateVisibility from 0x9d9d90 to 0x9db810 (6784 bytes) // // 3 xrefs: // > PlayLayer::updateVisibility @ 0x700d40 // > LevelEditorLayer::updateVisibility @ 0x78e278 // > @ 0xef068 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:58:50 +0000 // __int64 __fastcall GJBaseGameLayer::preUpdateVisibility(GJBaseGameLayer *this, float a2) { cocos2d::CCDirector *v3; // x0 float v4; // s12 __int64 v5; // kr00_8 float v6; // s0 float v7; // s1 OBB2D *v8; // x21 OBB2D *v9; // x21 __int64 v10; // x1 float v11; // s1 float v12; // s2 float v13; // s0 int v14; // w0 GJGroundLayer *v15; // x21 float v16; // s0 long double v17; // q0 GJGroundLayer *v18; // x21 float v19; // s0 char *v20; // x27 float v21; // s0 float v22; // s8 float v23; // s0 float v24; // s9 float v25; // s0 float v26; // s10 float v27; // s0 float v28; // s11 float v29; // s0 float v30; // s1 float v31; // s0 float v32; // s0 float v33; // s0 float v34; // s0 float v35; // s1 float v36; // s0 float v37; // s0 float v38; // s0 __int64 active; // x0 unsigned __int64 v40; // x0 char v41; // w1 cocos2d::CCDirector *v42; // x0 cocos2d::CCDirector *v43; // x0 __int64 v44; // x26 int v45; // w22 int v46; // w1 __int64 v47; // x8 _QWORD *v48; // x2 __int64 i; // x6 int v50; // w5 int v51; // w0 __int64 v52; // x9 __int64 v53; // x7 _QWORD *v54; // x3 int v55; // w1 __int64 v56; // x0 __int64 v57; // x2 __int64 v58; // x1 __int64 v59; // x1 int j; // w0 __int64 v61; // x2 bool v62; // w1 _QWORD *v63; // x22 _QWORD *v64; // x23 int v65; // w0 __int64 v66; // x21 __int64 v67; // x22 __int64 v68; // x20 int v69; // w0 cocos2d::CCRect *v70; // x25 float v71; // s0 int v72; // w2 int v73; // w1 _QWORD *v74; // x3 int v75; // w3 unsigned __int64 v76; // x25 unsigned __int64 v77; // x26 __int64 *v78; // x0 unsigned __int64 v79; // x1 unsigned __int64 v80; // x1 float v81; // s0 _BOOL8 v82; // x2 __int64 v83; // x0 unsigned __int64 v84; // x2 unsigned __int64 v85; // x1 _QWORD *v86; // x0 float v87; // s0 float v88; // s0 float v89; // s0 __int64 v90; // x21 __int64 v91; // x25 float v92; // s0 _BOOL8 v93; // x2 __int64 v94; // x0 unsigned __int64 v95; // x2 unsigned __int64 v96; // x1 unsigned __int64 v97; // x22 unsigned __int64 v98; // x24 void **v99; // x0 __int64 v100; // x20 int v101; // w2 int v102; // w1 _QWORD *v103; // x3 int v104; // w3 unsigned __int64 v105; // x26 __int64 *v106; // x0 unsigned __int64 v107; // x1 cocos2d::CCRect *v108; // x22 float v109; // s0 int v110; // w2 int v111; // w1 _QWORD *v112; // x3 int v113; // w3 unsigned __int64 v114; // x26 unsigned __int64 v115; // x24 __int64 *v116; // x0 unsigned __int64 v117; // x1 unsigned __int64 v118; // x1 float v119; // s0 _BOOL8 v120; // x2 __int64 v121; // x0 unsigned __int64 v122; // x2 unsigned __int64 v123; // x1 void **v124; // x0 float v125; // s0 float v126; // s0 float v127; // s0 void **v128; // x1 _QWORD *v129; // x2 unsigned __int64 v130; // x2 unsigned __int64 v131; // x0 unsigned __int64 v132; // x2 unsigned __int64 v133; // x0 int v134; // w0 __int64 v135; // x0 unsigned int *v136; // x1 __int64 *v137; // x23 __int64 v138; // x0 char *v139; // x22 __int64 v140; // x21 _DWORD *v141; // x26 __int64 **v142; // x0 __int64 *v143; // x22 __int64 *k; // x20 __int64 v145; // x21 int v146; // w0 int v147; // w1 _QWORD *v148; // x2 int v149; // w2 int v150; // w0 _QWORD *v151; // x1 int v152; // w1 __int64 v153; // x21 int m; // w20 _BYTE *v155; // x0 int v156; // w0 __int64 v157; // x21 int v158; // w0 int v159; // w22 _QWORD *v160; // x1 int v161; // w2 int v162; // w1 __int64 v163; // x3 int v164; // w1 int v165; // w26 int v166; // w1 _QWORD *v167; // x20 __int64 v168; // x24 int v169; // w23 int v170; // w21 __int64 v171; // x28 __int64 v172; // x25 _QWORD *v173; // x22 int v174; // w0 __int64 v175; // x20 __int64 v176; // x21 cocos2d::CCRect *v177; // x20 float v178; // s8 float v179; // s0 int v180; // w3 int v181; // w1 _QWORD *v182; // x2 int v183; // w5 unsigned __int64 v184; // x20 _DWORD *v185; // x2 unsigned __int64 v186; // x24 __int64 v187; // x6 unsigned __int64 v188; // x21 __int64 **v189; // x0 __int64 *v190; // x3 unsigned __int64 v191; // x0 __int64 v192; // x0 float v193; // s0 _BOOL8 v194; // x2 __int64 v195; // x0 unsigned __int64 v196; // x2 unsigned __int64 v197; // x1 void **v198; // x0 unsigned __int64 v199; // x1 unsigned __int64 v200; // x20 float v201; // s0 float v202; // s8 float v203; // s0 float v204; // s0 __int64 v205; // x0 unsigned int *v206; // x1 char *v207; // x21 __int64 v208; // x0 char *n; // x20 cocos2d::CCDictionary *v210; // x0 __int64 v211; // x1 _DWORD *v212; // x0 __int64 v213; // x20 int v214; // w1 int v215; // w1 __int64 v216; // x1 __int64 v217; // x0 unsigned int *v218; // x1 cocos2d::CCNode **v219; // x21 __int64 v220; // x0 char *v221; // x20 cocos2d::CCDirector **v222; // x21 void (__fastcall *v223)(cocos2d::CCDirector **, void **); // x22 cocos2d::CCDirector *v224; // x0 cocos2d::CCDirector *ScreenScaleFactorW; // x0 float v226; // s0 float v227; // s8 cocos2d::CCDirector *v228; // x0 float v229; // s0 _QWORD *v230; // x0 _QWORD *v231; // x19 void *v232; // x0 __int64 v234; // x0 long double v235; // q0 float v236; // s1 float v237; // s2 float v238; // s3 float v239; // s1 int v240; // [xsp+BCh] [xbp+BCh] __int64 v241; // [xsp+C0h] [xbp+C0h] int v242; // [xsp+CCh] [xbp+CCh] int v243; // [xsp+E8h] [xbp+E8h] int v244; // [xsp+ECh] [xbp+ECh] _BOOL4 v245; // [xsp+104h] [xbp+104h] __int64 v246; // [xsp+108h] [xbp+108h] __int64 v247; // [xsp+110h] [xbp+110h] int v248; // [xsp+120h] [xbp+120h] int v249; // [xsp+124h] [xbp+124h] __int64 v250; // [xsp+128h] [xbp+128h] unsigned __int64 v251; // [xsp+130h] [xbp+130h] __int64 v252; // [xsp+138h] [xbp+138h] __int64 v253; // [xsp+138h] [xbp+138h] __int16 v254; // [xsp+150h] [xbp+150h] BYREF char v255; // [xsp+152h] [xbp+152h] __int64 v256; // [xsp+158h] [xbp+158h] BYREF float v257[2]; // [xsp+160h] [xbp+160h] BYREF __int64 v258; // [xsp+168h] [xbp+168h] BYREF __int64 v259; // [xsp+170h] [xbp+170h] BYREF __int64 v260; // [xsp+178h] [xbp+178h] BYREF __int64 v261; // [xsp+180h] [xbp+180h] BYREF __int64 v262; // [xsp+188h] [xbp+188h] BYREF __int64 v263; // [xsp+190h] [xbp+190h] BYREF __int64 v264; // [xsp+198h] [xbp+198h] BYREF float v265; // [xsp+1A0h] [xbp+1A0h] BYREF float v266; // [xsp+1A4h] [xbp+1A4h] float v267; // [xsp+1A8h] [xbp+1A8h] float v268; // [xsp+1ACh] [xbp+1ACh] void **v269; // [xsp+1B0h] [xbp+1B0h] BYREF void **v270; // [xsp+1C8h] [xbp+1C8h] BYREF _QWORD v271[3]; // [xsp+1E0h] [xbp+1E0h] BYREF void *v272; // [xsp+1F8h] [xbp+1F8h] BYREF float v273; // [xsp+200h] [xbp+200h] float v274; // [xsp+204h] [xbp+204h] void *v275; // [xsp+210h] [xbp+210h] BYREF unsigned __int64 v276; // [xsp+218h] [xbp+218h] void *v277; // [xsp+220h] [xbp+220h] BYREF __int64 v278; // [xsp+228h] [xbp+228h] float v279; // [xsp+230h] [xbp+230h] v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v256, v3); v275 = nullptr; v276 = 0; v277 = nullptr; v278 = 0; v279 = 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, (GJBaseGameLayer *)((char *)this + 1204)); v4 = *((float *)this + 106); if ( *((_BYTE *)this + 12236) ) { if ( !*((_BYTE *)this + 12664) ) { v4 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 168LL))(*((_QWORD *)this + 490)); v234 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 192LL))(*((_QWORD *)this + 490)); cocos2d::CCPoint::operator-(v271, v234); cocos2d::CCPoint::operator*(v271, 1.0 / v4); *(__n128 *)&v235 = cocos2d::CCPoint::operator=(v257, &v272); if ( *((_BYTE *)this + 1221) ) { cocos2d::CCPoint::operator-(&v272, v257, (char *)this + 1248, v235); cocos2d::CCPoint::operator=(v257, &v272); } } } v5 = v256; *((_DWORD *)this + 3182) = 0; v6 = v257[0]; v7 = v257[1]; *((float *)this + 3169) = *((float *)this + 301) + (float)(*(float *)&v5 * 0.5); *((float *)this + 3167) = *(float *)&v5 / v4; *((float *)this + 3170) = (float)(*(float *)&v5 / v4) * 0.5; *((float *)this + 3168) = *((float *)&v5 + 1) / v4; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v265, v6, v7, *(float *)&v5 / v4, *((float *)&v5 + 1) / v4); if ( *((float *)this + 201) == 0.0 ) { v10 = *((_QWORD *)this + 495); LOBYTE(v14) = 0; *((_DWORD *)this + 3142) = 0; *((_DWORD *)this + 3143) = 0; *((_DWORD *)this + 3157) = 0; *((_DWORD *)this + 3158) = 0; if ( !*(_BYTE *)(v10 + 464) ) goto LABEL_10; goto LABEL_7; } if ( *((_BYTE *)this + 12636) ) { v8 = *((OBB2D **)this + 1587); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v272, *(float *)&v256 * 0.5, *((float *)&v256 + 1) * 0.5); OBB2D::calculateWithCenter(v8, (__int64)&v272, v267, v268, *((float *)this + 202) * 0.017453); OBB2D::getBoundingRect(*((OBB2D **)this + 1587), (cocos2d::CCRect *)&v272); *((float *)this + 3158) = v274 - v268; *((_BYTE *)this + 12636) = 0; } v9 = *((OBB2D **)this + 1587); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v272, *(float *)&v256 * 0.5, *((float *)&v256 + 1) * 0.5); OBB2D::calculateWithCenter(v9, (__int64)&v272, v267, v268, *((float *)this + 201) * 0.017453); OBB2D::getBoundingRect(*((OBB2D **)this + 1587), (cocos2d::CCRect *)&v272); v10 = *((_QWORD *)this + 495); v11 = v274 - v268; v12 = *((float *)this + 201); v13 = (float)(v273 - v267) * v4; *((float *)this + 3157) = v274 - v268; *((float *)this + 3143) = v4 * v11; v14 = v12 != 0.0; *((float *)this + 3142) = v13; if ( *(unsigned __int8 *)(v10 + 464) != v14 ) { LABEL_7: *(_BYTE *)(v10 + 464) = v14; *(_BYTE *)(*((_QWORD *)this + 496) + 464LL) = v14; v15 = *((GJGroundLayer **)this + 495); v16 = (*(float (__fastcall **)(GJGroundLayer *))(*(_QWORD *)v15 + 136LL))(v15); v17 = GJGroundLayer::scaleGround(v15, v16); v18 = *((GJGroundLayer **)this + 496); v19 = (*(float (__fastcall **)(GJGroundLayer *, long double))(*(_QWORD *)v18 + 136LL))(v18, v17); GJGroundLayer::scaleGround(v18, v19); v12 = *((float *)this + 201); } if ( v12 != 0.0 && *((float *)this + 3142) != 0.0 ) { GJBaseGameLayer::updateGroundShadows(this); v20 = (char *)this + 12288; v236 = *((float *)this + 3143); v237 = *((float *)this + 3142) / v4; v238 = v266; *((_BYTE *)this + 12576) = 1; v239 = v236 / v4; v267 = v267 + v237; v265 = v265 - (float)(v237 * 0.5); v268 = v268 + v239; v266 = v238 - (float)(v239 * 0.5); goto LABEL_12; } LABEL_10: v20 = (char *)this + 12288; if ( *((_BYTE *)this + 12576) ) { GJGroundLayer::updateShadowXPos(*((GJGroundLayer **)this + 495), 0.0, 0.0); GJGroundLayer::updateShadows(*((GJGroundLayer **)this + 495)); GJGroundLayer::updateShadowXPos(*((GJGroundLayer **)this + 496), 0.0, 0.0); GJGroundLayer::updateShadows(*((GJGroundLayer **)this + 496)); *((_BYTE *)this + 12576) = 0; } LABEL_12: cocos2d::CCRect::getMaxX((cocos2d::CCRect *)&v265); v22 = v21; cocos2d::CCRect::getMinX((cocos2d::CCRect *)&v265); v24 = v23; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)&v265); v26 = v25; cocos2d::CCRect::getMinY((cocos2d::CCRect *)&v265); v28 = v27; v29 = 10000000.0; if ( v24 <= 10000000.0 ) v29 = v24; v30 = *((float *)this + 3408); if ( (float)(floorf(v29 * v30) - 1.0) <= 0.0 ) { v242 = 0; } else { v31 = 10000000.0; if ( v24 <= 10000000.0 ) v31 = v24; v242 = (int)(float)(floorf(v31 * v30) - 1.0); } v32 = 10000000.0; if ( v22 <= 10000000.0 ) v32 = v22; if ( (float)(ceilf(v32 * v30) + 1.0) <= 0.0 ) { v243 = 0; } else { v33 = 10000000.0; if ( v22 <= 10000000.0 ) v33 = v22; v243 = (int)(float)(ceilf(v33 * v30) + 1.0); } v34 = 10000000.0; if ( v28 <= 10000000.0 ) v34 = v28; v35 = *((float *)this + 3409); if ( (float)(floorf(v34 * v35) - 1.0) <= 0.0 ) { v244 = 0; } else { v36 = 10000000.0; if ( v28 <= 10000000.0 ) v36 = v28; v244 = (int)(float)(floorf(v36 * v35) - 1.0); } v37 = 10000000.0; if ( v26 <= 10000000.0 ) v37 = v26; if ( (float)(ceilf(v37 * v35) + 1.0) <= 0.0 ) { v248 = 0; } else { v38 = 10000000.0; if ( v26 <= 10000000.0 ) v38 = v26; v248 = (int)(float)(ceilf(v38 * v35) + 1.0); } GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 269), 1007); active = GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 269), 1000); v254 = active; v255 = BYTE2(active); v40 = GameToolbox::transformColor((unsigned __int8 *)&v254, 0.0, -0.2, 0.2); v20[448] = v40; v41 = BYTE1(v40); v42 = (cocos2d::CCDirector *)BYTE2(v40); v20[449] = v41; v20[450] = (char)v42; v43 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v42); cocos2d::CCDirector::getScreenRight(v43); v44 = *((_QWORD *)this + 1671); v45 = *((_DWORD *)this + 3055); v241 = (*((_QWORD *)this + 1672) - v44) >> 3; if ( v45 < (int)v241 ) { v46 = *((_DWORD *)this + 3056); if ( v45 <= v46 ) { v47 = 8LL * v45; v48 = *(_QWORD **)(v44 + v47); if ( !v48 ) goto LABEL_55; LABEL_39: for ( i = (v48[1] - *v48) >> 3; ; LODWORD(i) = -1 ) { v50 = *((_DWORD *)this + 3057); if ( (int)i > v50 ) { v51 = *((_DWORD *)this + 3058); if ( v50 <= v51 ) { v52 = 8LL * v50; v53 = 4LL * v50; while ( 1 ) { v54 = *(_QWORD **)(*v48 + v52); if ( v54 ) { v55 = *(_DWORD *)(**(_QWORD **)(*((_QWORD *)this + 1692) + v47) + v53); if ( v55 > 0 ) { v56 = 0; v57 = 8 * ((unsigned int)(v55 - 1) + 1LL); do { v58 = *(_QWORD *)(*v54 + v56); v56 += 8; *(_BYTE *)(v58 + 998) = 1; } while ( v56 != v57 ); v51 = *((_DWORD *)this + 3058); } } ++v50; v52 += 8; v53 += 4; if ( v51 < v50 || (int)i <= v50 ) break; v48 = *(_QWORD **)(*((_QWORD *)this + 1671) + v47); } v46 = *((_DWORD *)this + 3056); } } ++v45; v47 += 8; if ( v46 < v45 || (int)v241 <= v45 ) break; v48 = *(_QWORD **)(*((_QWORD *)this + 1671) + v47); if ( v48 ) goto LABEL_39; LABEL_55: ; } } } v59 = 0; for ( j = 0; *((_DWORD *)this + 886) > j; *(_BYTE *)(v61 + 998) = 1 ) { ++j; v61 = *(_QWORD *)(*((_QWORD *)this + 440) + v59); v59 += 8; } if ( v242 <= v243 && v242 < (int)v241 ) { v62 = (int)v241 >= v243 - 1; v246 = 8LL * v242; if ( (int)v241 <= v242 + 1 ) v62 = 1; v245 = v62; v240 = v242; while ( 1 ) { v63 = *(_QWORD **)(*((_QWORD *)this + 1671) + v246); if ( v63 ) v247 = (v63[1] - *v63) >> 3; else LODWORD(v247) = -1; if ( v244 < (int)v247 && v244 <= v248 ) break; LABEL_213: v246 += 8; v134 = v240 + 1; v240 = v134; if ( (int)v241 <= v134 || v243 < v134 ) goto LABEL_215; } v250 = 4LL * v244; v252 = 8LL * v244; v249 = v244; while ( 1 ) { if ( v245 || (int)v247 <= v244 + 1 ) { v64 = *(_QWORD **)(*v63 + v252); if ( !v64 ) goto LABEL_77; v65 = *(_DWORD *)(**(_QWORD **)(*((_QWORD *)this + 1692) + v246) + v250); } else { v64 = *(_QWORD **)(*v63 + v252); if ( !v64 ) goto LABEL_77; v65 = *(_DWORD *)(**(_QWORD **)(*((_QWORD *)this + 1692) + v246) + v250); if ( (int)v247 < v248 - 1 ) { if ( v65 <= 0 ) goto LABEL_77; v90 = 0; v91 = 8 * ((unsigned int)(v65 - 1) + 1LL); while ( 2 ) { v100 = *(_QWORD *)(*v64 + v90); if ( !*(_BYTE *)(v100 + 650) ) { if ( *(_BYTE *)(v100 + 773) ) { *(_BYTE *)(v100 + 998) = 0; v258 = v100; v101 = *((_DWORD *)this + 3183); v102 = *((_DWORD *)this + 3182); if ( v101 > v102 ) { *(_QWORD *)(*((_QWORD *)this + 1588) + 8LL * v102) = v100; v102 = *((_DWORD *)this + 3182); } else { v103 = *((_QWORD **)v20 + 53); if ( v103 == *((_QWORD **)this + 1590) ) { std::vector::__push_back_slow_path((__int64)(v20 + 416), &v258); v101 = *((_DWORD *)this + 3183); v102 = *((_DWORD *)this + 3182); } else { if ( v103 ) { *v103 = v100; v103 = *((_QWORD **)v20 + 53); v101 = *((_DWORD *)this + 3183); v102 = *((_DWORD *)this + 3182); } *((_QWORD *)v20 + 53) = v103 + 1; } *((_DWORD *)this + 3183) = v101 + 1; } *((_DWORD *)this + 3182) = v102 + 1; v104 = *(_DWORD *)(v100 + 876); if ( v104 > 0 ) { v97 = v276; v105 = v104; if ( v276 ) { v98 = (v276 - 1) & v104; if ( ((v276 - 1) & v276) != 0 ) v98 = v104 % v276; v106 = *((__int64 **)v275 + v98); if ( v106 ) { while ( 1 ) { v106 = (__int64 *)*v106; if ( !v106 ) break; v107 = v106[1]; if ( ((v276 - 1) & v276) != 0 ) { if ( v98 != v107 % v276 ) break; } else if ( v98 != ((v276 - 1) & v107) ) { break; } if ( v104 == *((_DWORD *)v106 + 4) ) goto LABEL_131; } } } else { v98 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)&v275, v104, (_DWORD *)(v100 + 876), (__int64)&v269); v92 = (float)(unsigned __int64)(v278 + 1); if ( v92 > (float)((float)v97 * v279) ) { v93 = 1; v94 = 2 * v97; if ( v97 > 2 ) v93 = ((v97 - 1) & v97) != 0; LABEL_124: v95 = v93 + v94; v96 = vcvtps_u32_f32(v92 / v279); if ( v96 < v95 ) v96 = v95; std::__hash_table,std::equal_to,std::allocator>::rehash( (unsigned __int64)&v275, v96); v97 = v276; if ( ((v97 - 1) & v97) == 0 ) { v98 = (v276 - 1) & v105; goto LABEL_128; } v98 = v105 % v276; v99 = *((void ***)v275 + v105 % v276); if ( !v99 ) goto LABEL_190; LABEL_129: *v269 = *v99; *v99 = v269; } else { if ( !v97 ) { v93 = 1; v94 = 0; goto LABEL_124; } LABEL_128: v99 = *((void ***)v275 + v98); if ( v99 ) goto LABEL_129; LABEL_190: *v269 = v277; v277 = v269; *((_QWORD *)v275 + v98) = &v277; v128 = v269; v129 = *v269; if ( *v269 ) { LABEL_191: v130 = v129[1]; if ( ((v97 - 1) & v97) != 0 ) v131 = v130 % v97; else v131 = (v97 - 1) & v130; *((_QWORD *)v275 + v131) = v128; } } LABEL_130: ++v278; } LABEL_131: v90 += 8; if ( v90 == v91 ) goto LABEL_77; continue; } v108 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v100 + 1352LL))(*(_QWORD *)(*v64 + v90)); cocos2d::CCRect::getMinX(v108); if ( v22 >= v109 ) { cocos2d::CCRect::getMaxX(v108); if ( v24 <= v125 ) { cocos2d::CCRect::getMinY(v108); if ( v26 >= v126 ) { cocos2d::CCRect::getMaxY(v108); if ( v28 <= v127 ) { *(_BYTE *)(v100 + 998) = 0; v259 = v100; v110 = *((_DWORD *)this + 3183); v111 = *((_DWORD *)this + 3182); if ( v110 > v111 ) { LABEL_185: *(_QWORD *)(*((_QWORD *)this + 1588) + 8LL * v111) = v100; v111 = *((_DWORD *)this + 3182); goto LABEL_159; } LABEL_154: v112 = *((_QWORD **)v20 + 53); if ( v112 == *((_QWORD **)this + 1590) ) { std::vector::__push_back_slow_path( (__int64)(v20 + 416), &v259); v110 = *((_DWORD *)this + 3183); v111 = *((_DWORD *)this + 3182); } else { if ( v112 ) { *v112 = v100; v112 = *((_QWORD **)v20 + 53); v110 = *((_DWORD *)this + 3183); v111 = *((_DWORD *)this + 3182); } *((_QWORD *)v20 + 53) = v112 + 1; } *((_DWORD *)this + 3183) = v110 + 1; LABEL_159: *((_DWORD *)this + 3182) = v111 + 1; v113 = *(_DWORD *)(v100 + 876); if ( v113 <= 0 ) goto LABEL_131; v97 = v276; v114 = v113; if ( v276 ) { v115 = (v276 - 1) & v113; if ( ((v276 - 1) & v276) != 0 ) v115 = v113 % v276; v116 = *((__int64 **)v275 + v115); if ( v116 ) { while ( 1 ) { v116 = (__int64 *)*v116; if ( !v116 ) break; v117 = v116[1]; v118 = ((v276 - 1) & v276) != 0 ? v117 % v276 : (v276 - 1) & v117; if ( v115 != v118 ) break; if ( v113 == *((_DWORD *)v116 + 4) ) goto LABEL_131; } } } else { v115 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)&v275, v113, (_DWORD *)(v100 + 876), (__int64)&v270); v119 = (float)(unsigned __int64)(v278 + 1); if ( v119 > (float)((float)v97 * v279) ) { v120 = 1; v121 = 2 * v97; if ( v97 > 2 ) v120 = ((v97 - 1) & v97) != 0; LABEL_171: v122 = v120 + v121; v123 = vcvtps_u32_f32(v119 / v279); if ( v123 < v122 ) v123 = v122; std::__hash_table,std::equal_to,std::allocator>::rehash( (unsigned __int64)&v275, v123); v97 = v276; if ( ((v97 - 1) & v97) == 0 ) { v115 = (v276 - 1) & v114; goto LABEL_175; } v115 = v114 % v276; v124 = *((void ***)v275 + v114 % v276); if ( v124 ) { LABEL_176: *v270 = *v124; *v124 = v270; goto LABEL_130; } } else { if ( !v97 ) { v120 = 1; v121 = 0; goto LABEL_171; } LABEL_175: v124 = *((void ***)v275 + v115); if ( v124 ) goto LABEL_176; } *v270 = v277; v277 = v270; *((_QWORD *)v275 + v115) = &v277; v128 = v270; v129 = *v270; if ( *v270 ) goto LABEL_191; goto LABEL_130; } } } } if ( *(_BYTE *)(v100 + 896) ) { *(_BYTE *)(v100 + 998) = 0; v259 = v100; v110 = *((_DWORD *)this + 3183); v111 = *((_DWORD *)this + 3182); if ( v110 > v111 ) goto LABEL_185; goto LABEL_154; } } break; } *(_BYTE *)(v100 + 998) = 1; goto LABEL_131; } } if ( v65 > 0 ) { v66 = 0; v67 = 8 * ((unsigned int)(v65 - 1) + 1LL); do { v68 = *(_QWORD *)(*v64 + v66); if ( *(_BYTE *)(v68 + 650) ) { LABEL_75: *(_BYTE *)(v68 + 998) = 1; goto LABEL_76; } v70 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v68 + 1352LL))(*(_QWORD *)(*v64 + v66)); cocos2d::CCRect::getMinX(v70); if ( v22 < v71 || (cocos2d::CCRect::getMaxX(v70), v24 > v87) || (cocos2d::CCRect::getMinY(v70), v26 < v88) || (cocos2d::CCRect::getMaxY(v70), v28 > v89) ) { if ( !*(_BYTE *)(v68 + 896) ) goto LABEL_75; *(_BYTE *)(v68 + 998) = 0; v260 = v68; v72 = *((_DWORD *)this + 3183); v73 = *((_DWORD *)this + 3182); if ( v72 > v73 ) { LABEL_115: *(_QWORD *)(*((_QWORD *)this + 1588) + 8LL * v73) = v68; v73 = *((_DWORD *)this + 3182); goto LABEL_89; } } else { *(_BYTE *)(v68 + 998) = 0; v260 = v68; v72 = *((_DWORD *)this + 3183); v73 = *((_DWORD *)this + 3182); if ( v72 > v73 ) goto LABEL_115; } v74 = *((_QWORD **)v20 + 53); if ( v74 == *((_QWORD **)this + 1590) ) { std::vector::__push_back_slow_path((__int64)(v20 + 416), &v260); v72 = *((_DWORD *)this + 3183); v73 = *((_DWORD *)this + 3182); } else { if ( v74 ) { *v74 = v68; v74 = *((_QWORD **)v20 + 53); v72 = *((_DWORD *)this + 3183); v73 = *((_DWORD *)this + 3182); } *((_QWORD *)v20 + 53) = v74 + 1; } *((_DWORD *)this + 3183) = v72 + 1; LABEL_89: *((_DWORD *)this + 3182) = v73 + 1; v75 = *(_DWORD *)(v68 + 876); if ( v75 > 0 ) { v76 = v276; v251 = v75; if ( v276 ) { v77 = (v276 - 1) & v75; if ( ((v276 - 1) & v276) != 0 ) v77 = v75 % v276; v78 = *((__int64 **)v275 + v77); if ( v78 ) { while ( 1 ) { v78 = (__int64 *)*v78; if ( !v78 ) break; v79 = v78[1]; v80 = ((v276 - 1) & v276) != 0 ? v79 % v276 : (v276 - 1) & v79; if ( v77 != v80 ) break; if ( v75 == *((_DWORD *)v78 + 4) ) goto LABEL_76; } } } else { v77 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)&v275, v75, (_DWORD *)(v68 + 876), (__int64)v271); v81 = (float)(unsigned __int64)(v278 + 1); if ( v81 > (float)((float)v76 * v279) ) { v82 = 1; v83 = 2 * v76; if ( v76 > 2 ) v82 = ((v76 - 1) & v76) != 0; LABEL_101: v84 = v82 + v83; v85 = vcvtps_u32_f32(v81 / v279); if ( v85 < v84 ) v85 = v84; std::__hash_table,std::equal_to,std::allocator>::rehash( (unsigned __int64)&v275, v85); v76 = v276; if ( ((v76 - 1) & v76) == 0 ) { v77 = (v276 - 1) & v251; goto LABEL_105; } v77 = v251 % v276; v86 = *((_QWORD **)v275 + v251 % v276); if ( !v86 ) goto LABEL_201; LABEL_106: *(_QWORD *)v271[0] = *v86; *v86 = v271[0]; } else { if ( !v76 ) { v82 = 1; v83 = 0; goto LABEL_101; } LABEL_105: v86 = *((_QWORD **)v275 + v77); if ( v86 ) goto LABEL_106; LABEL_201: *(_QWORD *)v271[0] = v277; v277 = (void *)v271[0]; *((_QWORD *)v275 + v77) = &v277; if ( *(_QWORD *)v271[0] ) { v132 = *(_QWORD *)(*(_QWORD *)v271[0] + 8LL); if ( ((v76 - 1) & v76) != 0 ) v133 = v132 % v76; else v133 = (v76 - 1) & v132; *((_QWORD *)v275 + v133) = v271[0]; } } ++v278; } LABEL_76: v66 += 8; } while ( v66 != v67 ); } LABEL_77: v252 += 8; v69 = v249 + 1; v249 = v69; v250 += 4; if ( (int)v247 <= v69 || v248 < v69 ) goto LABEL_213; v63 = *(_QWORD **)(*((_QWORD *)this + 1671) + v246); } } LABEL_215: v135 = *((_QWORD *)this + 1662); if ( v135 ) { v136 = *(unsigned int **)(v135 + 56); if ( *v136 ) { v137 = *((__int64 **)v136 + 2); v138 = 8LL * *v136 - 8; v139 = (char *)v137 + v138; if ( v137 <= (__int64 *)((char *)v137 + v138) ) { v140 = *v137; if ( *v137 ) { while ( 1 ) { if ( !*(_BYTE *)(v140 + 650) ) { v177 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v140 + 1352LL))(v140); v178 = *(float *)&v256; cocos2d::CCRect::getMinX(v177); if ( v178 >= v179 ) { cocos2d::CCRect::getMaxX(v177); if ( v201 >= 0.0 ) { v202 = *((float *)&v256 + 1); cocos2d::CCRect::getMinY(v177); if ( v202 >= v203 ) { cocos2d::CCRect::getMaxY(v177); if ( v204 >= 0.0 ) break; } } } if ( *(_BYTE *)(v140 + 896) ) break; } *(_BYTE *)(v140 + 998) = 1; LABEL_221: if ( v139 >= (char *)++v137 ) { v140 = *v137; if ( *v137 ) continue; } goto LABEL_223; } *(_BYTE *)(v140 + 998) = 0; v261 = v140; v180 = *((_DWORD *)this + 3183); v181 = *((_DWORD *)this + 3182); if ( v180 > v181 ) { *(_QWORD *)(*((_QWORD *)this + 1588) + 8LL * v181) = v140; v181 = *((_DWORD *)this + 3182); } else { v182 = *((_QWORD **)v20 + 53); if ( v182 == *((_QWORD **)this + 1590) ) { std::vector::__push_back_slow_path((__int64)(v20 + 416), &v261); v180 = *((_DWORD *)this + 3183); v181 = *((_DWORD *)this + 3182); } else { if ( v182 ) { *v182 = v140; v182 = *((_QWORD **)v20 + 53); v180 = *((_DWORD *)this + 3183); v181 = *((_DWORD *)this + 3182); } *((_QWORD *)v20 + 53) = v182 + 1; } *((_DWORD *)this + 3183) = v180 + 1; } *((_DWORD *)this + 3182) = v181 + 1; v183 = *(_DWORD *)(v140 + 876); if ( v183 <= 0 ) goto LABEL_221; v184 = v276; v185 = (_DWORD *)(v140 + 876); v186 = v183; if ( v276 ) { v187 = (v276 - 1) & v276; v188 = (v276 - 1) & v183; if ( v187 ) v188 = v183 % v276; v189 = *((__int64 ***)v275 + v188); if ( v189 ) { v190 = *v189; if ( *v189 ) { v191 = v190[1]; if ( !v187 ) { LABEL_295: v192 = (v276 - 1) & v191; goto LABEL_296; } while ( 1 ) { v192 = v191 % v276; LABEL_296: if ( v188 != v192 ) break; if ( v183 == *((_DWORD *)v190 + 4) ) goto LABEL_221; v190 = (__int64 *)*v190; if ( !v190 ) break; v191 = v190[1]; if ( !v187 ) goto LABEL_295; } } } } else { v188 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)&v275, v183, v185, (__int64)&v272); v193 = (float)(unsigned __int64)(v278 + 1); if ( v193 > (float)((float)v184 * v279) ) { v194 = 1; v195 = 2 * v184; if ( v184 > 2 ) v194 = ((v184 - 1) & v184) != 0; } else { if ( v184 ) { LABEL_304: v198 = *((void ***)v275 + v188); if ( v198 ) { *(_QWORD *)v272 = *v198; *v198 = v272; } else { *(_QWORD *)v272 = v277; v277 = v272; *((_QWORD *)v275 + v188) = &v277; if ( *(_QWORD *)v272 ) { v199 = *(_QWORD *)(*(_QWORD *)v272 + 8LL); if ( ((v184 - 1) & v184) != 0 ) v200 = v199 % v184; else v200 = (v184 - 1) & v199; *((_QWORD *)v275 + v200) = v272; } } ++v278; goto LABEL_221; } v194 = 1; v195 = 0; } v196 = v194 + v195; v197 = vcvtps_u32_f32(v193 / v279); if ( v197 < v196 ) v197 = v196; std::__hash_table,std::equal_to,std::allocator>::rehash( (unsigned __int64)&v275, v197); v184 = v276; if ( ((v184 - 1) & v184) != 0 ) v188 = v186 % v276; else v188 = (v276 - 1) & v186; goto LABEL_304; } } } } LABEL_223: v141 = v277; for ( *((_DWORD *)this + 878) = 0; v141; v141 = *(_DWORD **)v141 ) { LODWORD(v272) = v141[4]; v142 = (__int64 **)std::unordered_map>::operator[]((__int64)this + 3448, (int *)&v272); v143 = v142[1]; for ( k = *v142; v143 != k; *((_DWORD *)this + 878) = v150 + 1 ) { while ( 1 ) { v145 = *k; if ( (!*(_BYTE *)(*k + 773) || *(_BYTE *)(v145 + 998)) && !*(_BYTE *)(v145 + 650) ) break; if ( v143 == ++k ) goto LABEL_243; } *(_BYTE *)(v145 + 998) = 0; v262 = v145; v146 = *((_DWORD *)this + 3183); v147 = *((_DWORD *)this + 3182); if ( v146 > v147 ) { *(_QWORD *)(*((_QWORD *)this + 1588) + 8LL * v147) = v145; v147 = *((_DWORD *)this + 3182); } else { v148 = *((_QWORD **)v20 + 53); if ( v148 == *((_QWORD **)this + 1590) ) { std::vector::__push_back_slow_path((__int64)(v20 + 416), &v262); v146 = *((_DWORD *)this + 3183); v147 = *((_DWORD *)this + 3182); } else { if ( v148 ) { *v148 = v145; v148 = *((_QWORD **)v20 + 53); v146 = *((_DWORD *)this + 3183); v147 = *((_DWORD *)this + 3182); } *((_QWORD *)v20 + 53) = v148 + 1; } *((_DWORD *)this + 3183) = v146 + 1; } v149 = *((_DWORD *)this + 879); v150 = *((_DWORD *)this + 878); *((_DWORD *)this + 3182) = v147 + 1; v263 = v145; if ( v149 > v150 ) { *(_QWORD *)(*((_QWORD *)this + 436) + 8LL * v150) = v145; v150 = *((_DWORD *)this + 878); } else { v151 = *((_QWORD **)this + 437); if ( v151 == *((_QWORD **)this + 438) ) { std::vector::__push_back_slow_path((__int64)this + 3488, &v263); v149 = *((_DWORD *)this + 879); v150 = *((_DWORD *)this + 878); } else { if ( v151 ) { *v151 = v145; v151 = *((_QWORD **)this + 437); v149 = *((_DWORD *)this + 879); v150 = *((_DWORD *)this + 878); } *((_QWORD *)this + 437) = v151 + 1; } *((_DWORD *)this + 879) = v149 + 1; } ++k; } LABEL_243: ; } v152 = *((_DWORD *)this + 886); v153 = 0; for ( m = 0; v152 > m; v153 += 8 ) { while ( 1 ) { v155 = *(_BYTE **)(*((_QWORD *)this + 440) + v153); if ( v155[998] ) break; ++m; v153 += 8; if ( v152 <= m ) goto LABEL_249; } (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)v155 + 1312LL))(v155, 0); v152 = *((_DWORD *)this + 886); ++m; } LABEL_249: v156 = *((_DWORD *)this + 878); *((_DWORD *)this + 886) = 0; if ( v156 > 0 ) { v157 = 0; v158 = 0; v159 = 0; do { while ( 1 ) { v161 = *((_DWORD *)this + 887); v163 = *(_QWORD *)(*((_QWORD *)this + 436) + v157); v264 = v163; if ( v161 <= v158 ) break; ++v159; v157 += 8; *(_QWORD *)(*((_QWORD *)this + 440) + 8LL * v158) = v163; v164 = *((_DWORD *)this + 878); v158 = *((_DWORD *)this + 886) + 1; *((_DWORD *)this + 886) = v158; if ( v164 <= v159 ) goto LABEL_258; } v160 = *((_QWORD **)this + 441); if ( v160 == *((_QWORD **)this + 442) ) { std::vector::__push_back_slow_path((__int64)this + 3520, &v264); v161 = *((_DWORD *)this + 887); v158 = *((_DWORD *)this + 886); } else { if ( v160 ) { *v160 = v163; v160 = *((_QWORD **)this + 441); v161 = *((_DWORD *)this + 887); v158 = *((_DWORD *)this + 886); } *((_QWORD *)this + 441) = v160 + 1; } v162 = *((_DWORD *)this + 878); ++v159; ++v158; *((_DWORD *)this + 887) = v161 + 1; *((_DWORD *)this + 886) = v158; v157 += 8; } while ( v162 > v159 ); } LABEL_258: if ( !v20[136] ) { v165 = *((_DWORD *)this + 3055); if ( v165 < (int)v241 ) { v166 = *((_DWORD *)this + 3056); if ( v165 <= v166 ) { v253 = 8LL * v165; do { v167 = *(_QWORD **)(*((_QWORD *)this + 1671) + v253); if ( v167 ) v168 = (v167[1] - *v167) >> 3; else LODWORD(v168) = -1; v169 = *((_DWORD *)this + 3057); if ( (int)v168 > v169 ) { v170 = *((_DWORD *)this + 3058); if ( v169 <= v170 ) { v171 = 8LL * v169; v172 = 4LL * v169; while ( 1 ) { v173 = *(_QWORD **)(*v167 + v171); if ( v173 ) { v174 = *(_DWORD *)(**(_QWORD **)(*((_QWORD *)this + 1692) + v253) + v172); if ( v174 > 0 ) { v175 = 0; v176 = 8 * ((unsigned int)(v174 - 1) + 1LL); do { (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*v173 + v175) + 1312LL))( *(_QWORD *)(*v173 + v175), 0); v175 += 8; } while ( v175 != v176 ); v170 = *((_DWORD *)this + 3058); } } ++v169; v171 += 8; v172 += 4; if ( v170 < v169 || (int)v168 <= v169 ) break; v167 = *(_QWORD **)(*((_QWORD *)this + 1671) + v253); } v166 = *((_DWORD *)this + 3056); } } ++v165; v253 += 8; } while ( v166 >= v165 && (int)v241 > v165 ); } } } v205 = *((_QWORD *)this + 1662); if ( v205 ) { v206 = *(unsigned int **)(v205 + 56); if ( *v206 ) { v207 = *((char **)v206 + 2); v208 = 8LL * *v206 - 8; for ( n = &v207[v208]; n >= v207; v207 += 8 ) { if ( !*(_QWORD *)v207 ) break; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v207 + 1312LL))(*(_QWORD *)v207, 0); } } } v210 = *((cocos2d::CCDictionary **)this + 499); if ( v210 ) { v211 = *((_QWORD *)v210 + 7); if ( v211 ) { v212 = *(_DWORD **)(v211 + 264); v213 = *(_QWORD *)(v211 + 288); v214 = v212[157]; if ( v243 >= v214 ) goto LABEL_338; LABEL_343: while ( 1 ) { (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v212 + 1312LL))(v212, 1); if ( !v213 ) break; while ( 1 ) { v216 = v213; v213 = *(_QWORD *)(v213 + 288); v212 = *(_DWORD **)(v216 + 264); v214 = v212[157]; if ( v243 < v214 ) break; LABEL_338: if ( v242 > v214 ) goto LABEL_343; v215 = v212[158]; if ( v248 < v215 || v244 > v215 ) goto LABEL_343; if ( !v213 ) goto LABEL_344; } } LABEL_344: v210 = *((cocos2d::CCDictionary **)this + 499); } } cocos2d::CCDictionary::removeAllObjects(v210); v217 = *((_QWORD *)this + 498); if ( v217 ) { v218 = *(unsigned int **)(v217 + 56); if ( *v218 ) { v219 = *((cocos2d::CCNode ***)v218 + 2); v220 = 8LL * *v218 - 8; v221 = (char *)v219 + v220; if ( v219 <= (cocos2d::CCNode **)((char *)v219 + v220) ) { do { if ( !*v219 ) break; cocos2d::CCNode::updateChildIndexes(*v219++); } while ( v221 >= (char *)v219 ); } } } v222 = *((cocos2d::CCDirector ***)this + 1580); if ( v222 ) { v223 = *((void (__fastcall **)(cocos2d::CCDirector **, void **))*v222 + 120); v224 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v222); ScreenScaleFactorW = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenScaleFactorW(v224); v227 = (float)((float)(v226 * 480.0) / 1.8) / v4; v228 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenScaleFactorW); cocos2d::CCDirector::getScreenScaleFactorH(v228); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v271, v227, (float)(v229 * 320.0) * 0.5); cocos2d::CCPoint::operator/(&v272, v271, v4); v223(v222, &v272); } v20[136] = 0; *((_DWORD *)this + 3055) = v242; *((_DWORD *)this + 3056) = v243; *((_DWORD *)this + 3057) = v244; v230 = v277; *((_DWORD *)this + 3058) = v248; if ( v230 ) { do { v231 = (_QWORD *)*v230; operator delete(v230); v230 = v231; } while ( v231 ); } v232 = v275; v275 = nullptr; if ( v232 ) operator delete(v232); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source