// // PlayerObject::postCollision from 0x761320 to 0x7629cc (5804 bytes) // // 2 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x9ea08c // > @ 0x986b0 // // 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:53:05 +0000 // __int64 __fastcall PlayerObject::postCollision(PlayerObject *this, float a2, unsigned __int8 a3) { int v4; // w20 float v6; // s8 int v7; // w26 int v8; // w27 GameObject *v9; // x0 GameObject *v10; // x0 __int64 v11; // x24 int v12; // w24 __int64 v13; // x0 unsigned int v14; // w25 int v15; // w0 float v16; // s11 const cocos2d::CCRect *v17; // x0 float v18; // s10 float v19; // s10 float v20; // s0 double v21; // d0 double v22; // d1 __int64 v23; // x0 int v24; // w23 int v25; // w24 int v26; // w25 GameObject *v27; // x0 _BOOL4 v28; // w24 GameObject *v29; // x0 _BOOL4 v30; // w24 const cocos2d::CCPoint *v31; // x0 double v32; // d0 double v33; // d0 float v34; // s1 float v35; // s0 double v36; // d1 float v37; // s1 double v38; // d0 double v39; // d0 __int64 v40; // x0 int v41; // w0 double v42; // d0 int v43; // w0 GameObject *v45; // x0 float v46; // s0 __int64 v47; // x1 float v48; // s0 void (__fastcall *v49)(PlayerObject *, __int64 *); // x22 __int64 v50; // x0 int v51; // w24 unsigned int v52; // w24 cocos2d::CCArray *v53; // x21 __int64 v54; // x0 GameObject *v55; // x24 __int64 v56; // x0 GameObject *v57; // x21 float v58; // s10 float v59; // s10 const cocos2d::CCRect *v60; // x0 const cocos2d::CCRect *v61; // x0 int v62; // w0 float v63; // s0 float v64; // s11 float v65; // s0 float v66; // s0 _BOOL4 v67; // w24 int v68; // w0 float v69; // s0 const cocos2d::CCPoint *LastPosition; // x0 float v71; // s10 __int64 v72; // x1 double v73; // d10 void (__fastcall *v74)(PlayerObject *, _QWORD *); // x23 __int64 v75; // x24 float v76; // s0 float v77; // s1 GameObject *v78; // x1 const cocos2d::CCRect *v79; // x0 float v80; // s12 float v81; // s11 float v82; // s10 float v83; // s10 float *v84; // x0 double v85; // d0 double v86; // d1 int v87; // w0 double v88; // d3 float v89; // s1 _BOOL4 v90; // w0 unsigned __int64 v91; // d1 int v92; // w24 __int64 *v93; // x27 __int64 v94; // x25 void (__fastcall *v95)(PlayerObject *, _QWORD *); // x22 __int64 v96; // x0 int v97; // w0 double v98; // d3 float v99; // s1 int v100; // w0 float v101; // s0 const cocos2d::CCPoint *v102; // x0 float v103; // s0 float v104; // s1 int v105; // w0 float v106; // s0 float v107; // s11 float v108; // s0 float v109; // s0 float ModifiedSlopeYVel; // s0 float v111; // s10 float v112; // s11 float v113; // s12 double v114; // d0 double v115; // d1 double v116; // d10 unsigned int v117; // w21 cocos2d::CCArray *v118; // x22 __int64 v119; // x0 float v120; // s0 float v121; // s11 float v122; // s0 float v123; // s0 float v124; // s11 float v125; // s0 double v126; // d0 double v127; // d10 int v128; // w0 __int64 v129; // x0 const cocos2d::CCRect *v130; // x0 float v131; // s11 double v132; // d1 float v133; // s10 const cocos2d::CCRect *v134; // x0 __int64 v135; // x1 float v136; // s11 __int64 v137; // x0 unsigned int *v138; // x0 __int64 *v139; // x27 __int64 v140; // x25 __int64 v141; // x25 int v142; // w24 unsigned int v143; // w26 void (__fastcall *v144)(PlayerObject *, _QWORD *); // x22 __int64 v145; // x0 float v146; // s10 const cocos2d::CCRect *v147; // x0 __int64 v148; // x1 float v149; // s11 __int64 v150; // x0 unsigned int *v151; // x0 __int64 v152; // x25 unsigned int v153; // w26 __int64 v154; // x0 __int64 v155; // x0 __int64 v156; // [xsp+98h] [xbp+98h] __int64 v157; // [xsp+98h] [xbp+98h] float v158; // [xsp+A0h] [xbp+A0h] int v159; // [xsp+A0h] [xbp+A0h] int v160; // [xsp+A0h] [xbp+A0h] float v161; // [xsp+B0h] [xbp+B0h] char *v162; // [xsp+B0h] [xbp+B0h] float v163; // [xsp+B0h] [xbp+B0h] char *v164; // [xsp+B0h] [xbp+B0h] float v165[3]; // [xsp+C8h] [xbp+C8h] BYREF float v166; // [xsp+D4h] [xbp+D4h] __int64 v167; // [xsp+D8h] [xbp+D8h] BYREF float v168; // [xsp+E0h] [xbp+E0h] float v169; // [xsp+E4h] [xbp+E4h] __int64 v170; // [xsp+E8h] [xbp+E8h] BYREF float v171; // [xsp+F0h] [xbp+F0h] float v172; // [xsp+F4h] [xbp+F4h] _QWORD v173[2]; // [xsp+F8h] [xbp+F8h] BYREF v4 = a3; if ( *((_BYTE *)this + 3054) ) { v6 = a2 * 4.0; } else if ( a3 ) { v6 = 0.5; } else { v6 = 1.0; } v7 = *((unsigned __int8 *)this + 2720); v8 = *((unsigned __int8 *)this + 2721); if ( *((_BYTE *)this + 2720) && *((_BYTE *)this + 2721) ) { v7 = *((_BYTE *)this + 2722) == 0; v8 = *((unsigned __int8 *)this + 2722) != 0; } v9 = *((GameObject **)this + 192); if ( v9 && (unsigned __int8)GameObject::getGroupDisabled(v9) ) *((_QWORD *)this + 192) = 0; v10 = *((GameObject **)this + 188); if ( v10 && (unsigned __int8)GameObject::getGroupDisabled(v10) ) *((_QWORD *)this + 188) = 0; v11 = *((_QWORD *)this + 192); if ( v11 ) { if ( *(_BYTE *)(v11 + 1297) ) *((_BYTE *)this + 2760) = 1; else *((_BYTE *)this + 2760) = 0; } v12 = *((unsigned __int8 *)this + 2408); if ( *((_BYTE *)this + 2408) ) { v13 = *((_QWORD *)this + 207); if ( v13 ) { if ( !*((_BYTE *)this + 2416) ) { if ( *(_BYTE *)(v13 + 1297) ) *((_BYTE *)this + 2760) = 1; else *((_BYTE *)this + 2760) = 0; } } } LOBYTE(v14) = 1; if ( *((double *)this + 290) == 0.0 ) { v14 = *((double *)this + 291) != 0.0; if ( *((_BYTE *)this + 2420) ) { if ( *((unsigned __int8 *)this + 2777) > v14 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, (PlayerObject *)((char *)this + 1224)); PlayerObject::placeStreakPoint((__int64)this, (const cocos2d::CCPoint *)v173); v12 = *((unsigned __int8 *)this + 2408); } } } v15 = *((unsigned __int8 *)this + 2409); *((_BYTE *)this + 2777) = v14; if ( v15 != v12 ) { if ( *((_BYTE *)this + 2420) ) { PlayerObject::placeStreakPoint(this); v12 = *((unsigned __int8 *)this + 2408); if ( *((_BYTE *)this + 2408) ) goto LABEL_27; } else if ( v12 ) { goto LABEL_27; } v68 = *((unsigned __int8 *)this + 2423); v69 = *((float *)this + 603); *((_QWORD *)this + 350) = *((_QWORD *)this + 328); if ( v68 ) { if ( v69 < 0.0 && *((double *)this + 299) > v69 && *((_BYTE *)this + 2315) ) goto LABEL_263; if ( v69 <= 0.0 || *((double *)this + 299) >= v69 ) { if ( !*((_BYTE *)this + 2516) ) goto LABEL_151; goto LABEL_200; } } else { if ( v69 < 0.0 && *((double *)this + 299) > v69 && *((_BYTE *)this + 2315) ) goto LABEL_263; if ( v69 <= 0.0 || *((double *)this + 299) >= v69 ) { if ( !*((_BYTE *)this + 2516) ) goto LABEL_202; LABEL_200: PlayerObject::isFlying(this); goto LABEL_201; } } if ( *((_BYTE *)this + 2315) ) { if ( !*((_BYTE *)this + 2516) ) { if ( v68 ) goto LABEL_151; LABEL_202: if ( v69 >= 0.0 ) goto LABEL_154; goto LABEL_152; } goto LABEL_200; } LABEL_263: if ( !*((_BYTE *)this + 2516) || (unsigned __int8)PlayerObject::isFlying(this) || *((_BYTE *)this + 2419) ) { ModifiedSlopeYVel = PlayerObject::getModifiedSlopeYVel(this); v111 = *((float *)this + 380); v112 = ModifiedSlopeYVel; v113 = cosf(v111); if ( *((_BYTE *)this + 2832) ) { v114 = fabs(tanf(v111) * *((double *)this + 339)) * 1.10000002; if ( v112 < 0.0 ) v115 = -1.0; else v115 = 1.0; v112 = v114 * v115; } if ( PlayerObject::isBoostValid(this, v112) && (!*((_BYTE *)this + 2832) || (v7 || v8) && fabs(*((double *)this + 339)) >= (float)((float)(v113 * 5.0) + -1.0)) ) { PlayerObject::boostPlayer(this, v112); } LABEL_154: if ( *((double *)this + 344) > 0.0 ) { if ( v8 ) { if ( !*((_BYTE *)this + 2811) && !v7 ) goto LABEL_159; } else if ( !v7 || *((_BYTE *)this + 2811) ) { goto LABEL_159; } *((_BYTE *)this + 2745) = 0; *((_BYTE *)this + 2808) = 1; *((_QWORD *)this + 344) = 0; } LABEL_159: *((_QWORD *)this + 207) = 0; *((_QWORD *)this + 286) = 0; *((_DWORD *)this + 603) = 0; *((_QWORD *)this + 285) = 0; goto LABEL_27; } LABEL_201: v69 = *((float *)this + 603); if ( !*((_BYTE *)this + 2423) ) goto LABEL_202; LABEL_151: v12 = 1; if ( v69 <= 0.0 ) goto LABEL_154; LABEL_152: if ( !*((_BYTE *)this + 2516) && !*((_BYTE *)this + 2365) && !*((_BYTE *)this + 2366) && *((unsigned __int8 *)this + 2315) == v12 ) { v126 = *((double *)this + 286); *((_BYTE *)this + 2500) = 0; v127 = -v126; v128 = PlayerObject::flipMod(this); PlayerObject::setYVelocity((__int64)this, v127 * (double)v128); *((_BYTE *)this + 2425) = 0; PlayerObject::runRotateAction(this); } goto LABEL_154; } LABEL_27: if ( *((double *)this + 290) == 0.0 || *((double *)this + 291) == 0.0 || *((_BYTE *)this + 3048) ) goto LABEL_106; if ( *((_BYTE *)this + 2832) ) v16 = 0.8; else v16 = 0.7; v17 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 1328LL))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v165, v17); v18 = *((double *)this + 290) - *((double *)this + 291); v19 = fabsf(v18); v20 = *(float *)((*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) + 4); if ( v19 == 0.0 ) goto LABEL_276; v21 = v20; v22 = *((double *)this + 290); if ( !*((_BYTE *)this + 2423) ) { if ( v22 >= v21 || v22 >= *((float *)this + 307) ) goto LABEL_36; LABEL_276: if ( !*((_BYTE *)this + 2832) ) goto LABEL_106; v23 = *((_QWORD *)this + 207); v24 = 1; if ( !v23 ) goto LABEL_106; goto LABEL_278; } if ( v22 > v21 && v22 > *((float *)this + 307) ) goto LABEL_276; LABEL_36: if ( !*((_BYTE *)this + 2832) ) { if ( v19 < (float)(v16 * v166) ) goto LABEL_40; v51 = *((unsigned __int8 *)this + 3052); goto LABEL_107; } v23 = *((_QWORD *)this + 207); v24 = 0; if ( v23 ) { LABEL_278: if ( v19 < (float)(v16 * v166) || v19 > v166 || (v130 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 1328LL))(v23), cocos2d::CCRect::CCRect((cocos2d::CCRect *)v173, v130), !(unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v165, (const cocos2d::CCRect *)v173)) ) { if ( v24 ) { v51 = *((unsigned __int8 *)this + 3052); goto LABEL_107; } goto LABEL_38; } v45 = *((GameObject **)this + 207); if ( !*((_BYTE *)v45 + 1080) ) goto LABEL_366; if ( !(unsigned __int8)GameObject::slopeFloorTop(v45) ) { LABEL_306: v46 = -1.0; goto LABEL_105; } v45 = *((GameObject **)this + 207); if ( !*((_BYTE *)v45 + 1080) ) { LABEL_366: if ( (unsigned __int8)GameObject::slopeFloorTop(v45) ) goto LABEL_306; } v46 = 1.0; LABEL_105: v47 = *(_QWORD *)this; v48 = *((float *)this + 306) + (float)(v46 * a2); *((_QWORD *)this + 339) = 0; v49 = *(void (__fastcall **)(PlayerObject *, __int64 *))(v47 + 184); v158 = v48; v50 = (*(__int64 (__fastcall **)(PlayerObject *))(v47 + 192))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v170, v158, *(float *)(v50 + 4)); v49(this, &v170); goto LABEL_106; } LABEL_38: if ( v19 >= (float)(v16 * v166) ) { LABEL_106: v51 = *((unsigned __int8 *)this + 3052); goto LABEL_107; } if ( !*((_BYTE *)this + 2832) ) { LABEL_40: if ( *((_BYTE *)this + 3052) ) goto LABEL_46; if ( !*((_BYTE *)this + 1972) ) (*(void (__fastcall **)(PlayerObject *, char *))(*(_QWORD *)this + 184LL))(this, (char *)this + 1224); if ( *((_BYTE *)this + 1973) ) { v25 = *((unsigned __int8 *)this + 3052); *((_BYTE *)this + 2364) = 1; } else { v155 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)this + 1973)); (*(void (__fastcall **)(_QWORD, PlayerObject *, _QWORD))(**(_QWORD **)(v155 + 544) + 1296LL))( *(_QWORD *)(v155 + 544), this, 0); v25 = *((unsigned __int8 *)this + 3052); } if ( v25 ) goto LABEL_46; goto LABEL_108; } v133 = 3.0; v156 = *((_QWORD *)this + 377); v159 = 1; v134 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 1328LL))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v167, v134); v135 = *(_QWORD *)this; *(float *)&v167 = *(float *)&v167 + 1.0; *((float *)&v167 + 1) = *((float *)&v167 + 1) - 1.0; v168 = v168 - 2.0; v169 = v169 + 2.0; v136 = *(float *)((*(__int64 (__fastcall **)(PlayerObject *))(v135 + 192))(this) + 4); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v170, (const cocos2d::CCRect *)&v167); while ( 1 ) { *(float *)&v170 = v133 + *(float *)&v170; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v173, (const cocos2d::CCRect *)&v170); v137 = GJBaseGameLayer::staticObjectsInRect(v156, v173, 0); if ( !v137 ) break; v138 = *(unsigned int **)(v137 + 56); if ( !*v138 ) break; v139 = *((__int64 **)v138 + 2); v140 = 8LL * *v138 - 8; v162 = (char *)v139 + v140; if ( v139 > (__int64 *)((char *)v139 + v140) ) break; v141 = *v139; if ( !*v139 ) break; v142 = 0; v143 = 0; do { if ( v136 <= *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v141 + 192LL))(v141) + 4) ) { if ( v136 >= *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v141 + 192LL))(v141) + 4) ) goto LABEL_341; v143 = 1; if ( v142 ) goto LABEL_341; } else { v142 = 1; if ( v143 ) goto LABEL_341; } if ( v162 < (char *)++v139 ) break; v141 = *v139; } while ( *v139 ); if ( (v142 ^ 1u) >= v143 ) break; LABEL_341: if ( ++v159 == 9 ) goto LABEL_40; v133 = ceilf((float)v159 * 0.5) * 3.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v170, (const cocos2d::CCRect *)&v167); if ( (v159 & 1) == 0 ) v133 = -v133; } v144 = *(void (__fastcall **)(PlayerObject *, _QWORD *))(*(_QWORD *)this + 184LL); v163 = v133 + *(float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); v145 = (*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, v163, *(float *)(v145 + 4)); v144(this, v173); v51 = *((unsigned __int8 *)this + 3052); LABEL_107: if ( v51 ) goto LABEL_46; LABEL_108: if ( (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 181)) && (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 182)) ) { v52 = 0; v53 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*((cocos2d::CCDictionary **)this + 181)); while ( v52 < (unsigned int)cocos2d::CCArray::count(v53) ) { v54 = cocos2d::CCArray::objectAtIndex(v53, v52); if ( cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 182), *(int *)(v54 + 56)) ) { LABEL_114: (*(void (__fastcall **)(PlayerObject *, char *))(*(_QWORD *)this + 184LL))(this, (char *)this + 1224); if ( *((_BYTE *)this + 1973) ) { *((_BYTE *)this + 2364) = 1; } else { v129 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)this + 1973)); (*(void (__fastcall **)(_QWORD, PlayerObject *, _QWORD))(**(_QWORD **)(v129 + 544) + 1296LL))( *(_QWORD *)(v129 + 544), this, 0); } return _stack_chk_guard; } ++v52; } } LABEL_46: if ( !*((_BYTE *)this + 2832) ) { LABEL_47: v26 = 0; goto LABEL_48; } if ( *((double *)this + 292) == 0.0 || *((double *)this + 293) == 0.0 ) { if ( *((_BYTE *)this + 3052) ) goto LABEL_121; goto LABEL_191; } v79 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 1328LL))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v165, v79); v80 = v165[2]; v81 = *((float *)this + 618); v82 = *((double *)this + 293) - *((double *)this + 292); v83 = fabsf(v82); v84 = (float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); if ( v83 == 0.0 ) goto LABEL_232; v85 = *v84; if ( *((double *)this + 339) >= 0.0 ) { v132 = *((double *)this + 293); if ( v132 < v85 && v132 < *((float *)this + 306) ) { v97 = *((unsigned __int8 *)this + 3052); LABEL_233: if ( v97 ) goto LABEL_192; goto LABEL_191; } } else { v86 = *((double *)this + 292); if ( v86 > v85 && v86 > *((float *)this + 306) ) goto LABEL_232; } if ( (float)(v80 - (float)(v81 * 5.0)) <= v83 ) { LABEL_232: v97 = *((unsigned __int8 *)this + 3052); goto LABEL_233; } if ( *((_BYTE *)this + 2832) ) { v146 = 3.0; v157 = *((_QWORD *)this + 377); v160 = 1; v147 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 1328LL))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v167, v147); v148 = *(_QWORD *)this; *(float *)&v167 = *(float *)&v167 - 1.0; *((float *)&v167 + 1) = *((float *)&v167 + 1) + 1.0; v168 = v168 + 2.0; v169 = v169 - 2.0; v149 = *(float *)(*(__int64 (__fastcall **)(PlayerObject *))(v148 + 192))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v170, (const cocos2d::CCRect *)&v167); while ( 1 ) { *((float *)&v170 + 1) = v146 + *((float *)&v170 + 1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v173, (const cocos2d::CCRect *)&v170); v150 = GJBaseGameLayer::staticObjectsInRect(v157, v173, 0); if ( !v150 ) break; v151 = *(unsigned int **)(v150 + 56); if ( !*v151 ) break; v93 = *((__int64 **)v151 + 2); v152 = 8LL * *v151 - 8; v164 = (char *)v93 + v152; if ( v93 > (__int64 *)((char *)v93 + v152) ) break; v94 = *v93; if ( !*v93 ) break; v92 = 0; v153 = 0; do { if ( v149 <= *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v94 + 192LL))(v94) ) { if ( v149 >= *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v94 + 192LL))(v94) + 4) ) goto LABEL_356; v92 = 1; if ( v153 ) goto LABEL_356; } else { v153 = 1; if ( v92 ) goto LABEL_356; } if ( v164 < (char *)++v93 ) break; v94 = *v93; } while ( *v93 ); if ( v153 <= (v92 ^ 1u) ) break; LABEL_356: if ( ++v160 == 9 ) goto LABEL_187; v146 = ceilf((float)v160 * 0.5) * 3.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v170, (const cocos2d::CCRect *)&v167); if ( (v160 & 1) == 0 ) v146 = -v146; } v95 = *(void (__fastcall **)(PlayerObject *, _QWORD *))(*(_QWORD *)this + 184LL); v161 = *(float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); v96 = (*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, v161, v146 + *(float *)(v96 + 4)); v95(this, v173); goto LABEL_232; } LABEL_187: if ( !*((_BYTE *)this + 1972) ) (*(void (__fastcall **)(PlayerObject *, char *))(*(_QWORD *)this + 184LL))(this, (char *)this + 1224); if ( *((_BYTE *)this + 1973) ) { v87 = *((unsigned __int8 *)this + 3052); *((_BYTE *)this + 2364) = v87 ^ 1; if ( v87 ) goto LABEL_192; } else { v154 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)this + 1973)); (*(void (__fastcall **)(_QWORD, PlayerObject *, _QWORD))(**(_QWORD **)(v154 + 544) + 1296LL))( *(_QWORD *)(v154 + 544), this, 0); if ( *((_BYTE *)this + 3052) ) goto LABEL_192; } LABEL_191: if ( (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 183)) && (unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 184)) ) { v117 = 0; v118 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*((cocos2d::CCDictionary **)this + 183)); while ( v117 < (unsigned int)cocos2d::CCArray::count(v118) ) { v119 = cocos2d::CCArray::objectAtIndex(v118, v117); if ( cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 184), *(int *)(v119 + 56)) ) goto LABEL_114; ++v117; } } LABEL_192: if ( !*((_BYTE *)this + 2832) ) goto LABEL_47; LABEL_121: v55 = *((GameObject **)this + 188); if ( v55 ) { v56 = *((_QWORD *)this + 192); *((_QWORD *)this + 189) = v55; if ( !v56 || *((_BYTE *)this + 2500) ) goto LABEL_124; LABEL_166: v26 = 0; if ( !v55 ) goto LABEL_125; v26 = 0; if ( *((_BYTE *)v55 + 1295) ) goto LABEL_125; goto LABEL_168; } v55 = *((GameObject **)this + 192); if ( !v55 || !*((_BYTE *)this + 2500) ) { v55 = *((GameObject **)this + 189); goto LABEL_166; } if ( *((_QWORD *)this + 189) ) v55 = *((GameObject **)this + 189); LABEL_124: v26 = 0; if ( *((_BYTE *)v55 + 1295) ) goto LABEL_125; LABEL_168: LastPosition = (const cocos2d::CCPoint *)GameObject::getLastPosition(v55); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, LastPosition); (*(void (__fastcall **)(__int64 *__return_ptr, GameObject *))(*(_QWORD *)v55 + 1360LL))(&v167, v55); if ( *((_BYTE *)v55 + 1299) ) { GameObject::getScalePosDelta(v173, v55); v131 = *(float *)&v167; v71 = *(float *)v173; if ( v131 > *(float *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this) ) v71 = -v71; } else { v71 = 0.0; } v72 = *(_QWORD *)this; if ( *((_BYTE *)this + 2427) ) { v73 = (float)(v71 + (float)(*((float *)&v167 + 1) - v165[1])); *((double *)this + 341) = v73; *((double *)this + 196) = v73; v74 = *(void (__fastcall **)(PlayerObject *, _QWORD *))(v72 + 184); v75 = (*(__int64 (__fastcall **)(PlayerObject *))(v72 + 192))(this); v76 = 0.0; v77 = *((double *)this + 341); } else { v116 = (float)(v71 + (float)(*(float *)&v167 - v165[0])); *((double *)this + 341) = v116; *((double *)this + 196) = v116; v74 = *(void (__fastcall **)(PlayerObject *, _QWORD *))(v72 + 184); v75 = (*(__int64 (__fastcall **)(PlayerObject *))(v72 + 192))(this); v77 = 0.0; v76 = *((double *)this + 341); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v170, v76, v77); v26 = 1; cocos2d::CCPoint::operator+(v173, v75); v74(this, v173); *((double *)this + 346) = *((double *)this + 346) + (float)(a2 / 60.0); LABEL_125: PlayerObject::performSlideCheck((__int64)this); if ( !*((_BYTE *)this + 2500) ) { v27 = *((GameObject **)this + 192); *((_QWORD *)this + 189) = 0; if ( v27 ) goto LABEL_49; goto LABEL_127; } LABEL_48: v27 = *((GameObject **)this + 192); if ( v27 ) { LABEL_49: v28 = 0; if ( !*((_QWORD *)this + 188) && !*((_BYTE *)v27 + 1296) ) { v102 = (const cocos2d::CCPoint *)GameObject::getLastPosition(v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v102); (*(void (__fastcall **)(__int64 *__return_ptr, _QWORD))(**((_QWORD **)this + 192) + 1360LL))( &v170, *((_QWORD *)this + 192)); GameObject::getScalePosDelta(v173, *((GameObject **)this + 192)); v103 = *(float *)&v170; v104 = *(float *)&v167; if ( *(float *)&v170 != *(float *)&v167 || *((float *)v173 + 1) != 0.0 || *((float *)&v170 + 1) != *((float *)&v167 + 1) ) { if ( !*((_BYTE *)this + 2427) ) { v103 = *((float *)&v170 + 1); v104 = *((float *)&v167 + 1); } if ( *((_BYTE *)this + 2423) ) v28 = v104 < (float)(v103 - *((float *)v173 + 1)); else v28 = v104 > (float)(v103 + *((float *)v173 + 1)); } } if ( !(unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 182)) ) goto LABEL_128; goto LABEL_51; } LABEL_127: v28 = 0; if ( !(unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 182)) ) goto LABEL_128; LABEL_51: if ( !v28 ) goto LABEL_52; LABEL_128: v57 = *((GameObject **)this + 192); *((_BYTE *)this + 1624) = 0; *((_QWORD *)this + 192) = 0; if ( !v28 || !v57 ) goto LABEL_52; if ( *((_BYTE *)this + 2832) ) v58 = 10.0; else v58 = 5.0; if ( *((_BYTE *)v57 + 1300) ) v58 = 20.0; v59 = a2 * v58; v60 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v57 + 1328LL))(v57); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v165, v60); v61 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 1328LL))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v167, v61); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v170, (const cocos2d::CCRect *)v165); if ( *((_BYTE *)this + 2427) ) { v62 = *((unsigned __int8 *)this + 2423); v171 = v171 + v59; if ( v62 ) { cocos2d::CCRect::getMinX((cocos2d::CCRect *)v165); v64 = v63; cocos2d::CCRect::getMaxX((cocos2d::CCRect *)&v167); v66 = v64 - v65; goto LABEL_137; } cocos2d::CCRect::getMinX((cocos2d::CCRect *)&v167); v121 = v120; cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v165); v109 = v121 - v122; } else { v105 = *((unsigned __int8 *)this + 2423); v172 = v172 + v59; if ( v105 ) { cocos2d::CCRect::getMinY((cocos2d::CCRect *)v165); v124 = v123; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)&v167); v66 = v124 - v125; LABEL_137: v67 = v59 > v66; if ( *((_BYTE *)this + 2427) ) *(float *)&v170 = *(float *)&v170 - v59; else *((float *)&v170 + 1) = *((float *)&v170 + 1) - v59; goto LABEL_139; } cocos2d::CCRect::getMinY((cocos2d::CCRect *)&v167); v107 = v106; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v165); v109 = v107 - v108; } v67 = v59 > v109; LABEL_139: if ( ((unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)&v167, (const cocos2d::CCRect *)&v170) || (v57 = *((GameObject **)this + 191)) != nullptr) && v67 ) { *((_BYTE *)this + 1624) = 1; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v173, (const cocos2d::CCRect *)&unk_155C640); PlayerObject::collidedWithObject(this, v57, (const cocos2d::CCRect *)v173, 1u, 0.0); } LABEL_52: v29 = *((GameObject **)this + 188); if ( v29 ) { v30 = 0; if ( !*((_BYTE *)v29 + 1296) ) { v31 = (const cocos2d::CCPoint *)GameObject::getLastPosition(v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v170, v31); (*(void (__fastcall **)(_QWORD *__return_ptr, _QWORD))(**((_QWORD **)this + 188) + 1360LL))( v173, *((_QWORD *)this + 188)); if ( *(float *)v173 != *(float *)&v170 || *((float *)v173 + 1) != *((float *)&v170 + 1) ) { v30 = *((float *)&v170 + 1) > *((float *)v173 + 1); if ( *((_BYTE *)this + 2423) ) v30 = *((float *)&v170 + 1) < *((float *)v173 + 1); } } } else { v30 = 0; } if ( !(unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 182)) || v30 ) { v78 = *((GameObject **)this + 188); *((_BYTE *)this + 1624) = 0; *((_QWORD *)this + 188) = 0; if ( v30 ) { *((_BYTE *)this + 1624) = 1; PlayerObject::collidedWithSlope(this, 0.0, v78, 1u); } } v32 = *((double *)this + 198); if ( v32 != 0.0 && *((int *)this + 673) <= 0 ) { v98 = *((double *)this + 197); v99 = v32 - v98; if ( fabsf(v99) > (float)(v6 * 0.5) ) { v100 = *((unsigned __int8 *)this + 2423); if ( *((_BYTE *)this + 2423) ) { if ( v32 < -5.0 && v32 < v98 ) { if ( v32 > 20.0 ) { v32 = 20.0; *((double *)this + 198) = 20.0; goto LABEL_297; } LABEL_326: if ( v32 < -20.0 ) v32 = -20.0; *((double *)this + 198) = v32; if ( !v100 ) { LABEL_245: if ( v32 < *((double *)this + 299) ) { LABEL_247: *((_QWORD *)this + 188) = 0; *((_QWORD *)this + 192) = 0; goto LABEL_61; } LABEL_246: v101 = v32; PlayerObject::boostPlayer(this, v101); goto LABEL_247; } LABEL_297: if ( v32 > *((double *)this + 299) ) goto LABEL_247; goto LABEL_246; } } else if ( v32 > 5.0 && v32 > v98 ) { if ( v32 > 20.0 ) { v32 = 20.0; *((double *)this + 198) = 20.0; goto LABEL_245; } goto LABEL_326; } } } LABEL_61: if ( *((_BYTE *)this + 2832) ) { v33 = *((double *)this + 199); if ( v33 != 0.0 && !*((_BYTE *)this + 2500) && !v26 && *((int *)this + 674) <= 0 && *((double *)this + 346) > 0.0500000007 ) { v34 = v33 - *((double *)this + 196); if ( fabsf(v34) > (float)(v6 * 0.5) ) { v35 = v33 * 0.899999976 / a2; if ( v4 ) { if ( !*((_BYTE *)this + 1600) ) v35 = v35 * 0.5; } else if ( *((_BYTE *)this + 1600) ) { v35 = v35 + v35; } v36 = v35 + *((double *)this + 339); *((double *)this + 339) = v36; if ( fabsf(v35) >= 2.0 ) { v37 = v36; *((_BYTE *)this + 2736) = 1; *((float *)this + 685) = v37; } *((_QWORD *)this + 315) = 0; } } v38 = *((double *)this + 202); if ( v38 != 0.0 && *((int *)this + 675) <= 0 ) { v88 = *((double *)this + 201); v89 = v38 - v88; if ( fabsf(v89) > (float)(v6 * 0.5) ) { if ( (v90 = *((_QWORD *)this + 193) != 0, v90 && v38 > 5.0) && v38 > v88 || *((_QWORD *)this + 194) != 0 && v38 < -5.0 && v38 < v88 ) { *(double *)&v91 = 50.0; if ( v38 > 50.0 || (*(double *)&v91 = -50.0, v38 < -50.0) ) v38 = *(double *)&v91; *((double *)this + 202) = v38; if ( v90 && v38 >= *((double *)this + 339) || *((_QWORD *)this + 194) && v38 <= *((double *)this + 339) ) { *((_BYTE *)this + 2868) = 1; *((_BYTE *)this + 2314) = 1; *((double *)this + 339) = v38; } *((_QWORD *)this + 193) = 0; *((_QWORD *)this + 194) = 0; } } } if ( !(unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 183)) ) *((_QWORD *)this + 193) = 0; if ( !(unsigned int)cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 184)) ) *((_QWORD *)this + 194) = 0; } v39 = *((double *)this + 196); *((_QWORD *)this + 191) = 0; if ( v39 != 0.0 ) { *((_QWORD *)this + 315) = *((_QWORD *)this + 328); LABEL_82: *((_BYTE *)this + 1600) = v4; *((double *)this + 199) = v39; goto LABEL_83; } if ( *((double *)this + 199) == 0.0 ) goto LABEL_82; if ( *((double *)this + 328) - *((double *)this + 315) >= 0.0333333351 ) *((_QWORD *)this + 199) = 0; LABEL_83: v40 = *((_QWORD *)this + 201); *((_QWORD *)this + 198) = *((_QWORD *)this + 197); *((_QWORD *)this + 196) = 0; *((_QWORD *)this + 197) = 0; *((_QWORD *)this + 202) = v40; *((_QWORD *)this + 201) = 0; if ( !v26 ) *((_QWORD *)this + 346) = 0; if ( *((_BYTE *)this + 2500) ) *((_BYTE *)this + 2736) = 0; if ( !*((_BYTE *)this + 2408) && !*((_BYTE *)this + 2409) ) { v41 = *((unsigned __int8 *)this + 2423); *((_DWORD *)this + 418) = 0; v42 = *((double *)this + 299); if ( v41 ) { if ( v42 > 2.0 && *((double *)this + 300) < 2.0 ) { PlayerObject::gameEventTriggered((__int64)this, 76, 0); v42 = *((double *)this + 299); } if ( v42 > 7.0 && *((double *)this + 300) < 7.0 ) { PlayerObject::gameEventTriggered((__int64)this, 77, 0); v42 = *((double *)this + 299); } if ( v42 <= 14.0 || *((double *)this + 300) >= 14.0 ) goto LABEL_100; } else { if ( v42 < -2.0 && *((double *)this + 300) > -2.0 ) { PlayerObject::gameEventTriggered((__int64)this, 76, 0); v42 = *((double *)this + 299); } if ( v42 < -7.0 && *((double *)this + 300) > -7.0 ) { PlayerObject::gameEventTriggered((__int64)this, 77, 0); v42 = *((double *)this + 299); } if ( v42 >= -14.0 || *((double *)this + 300) <= -14.0 ) goto LABEL_100; } PlayerObject::gameEventTriggered((__int64)this, 78, 0); } v42 = *((double *)this + 299); LABEL_100: v43 = *((_DWORD *)this + 608); *((double *)this + 300) = v42; *((_DWORD *)this + 608) = v43 - 1; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source