// // PlayerObject::collidedWithObjectInternal from 0x75abb0 to 0x75c620 (6768 bytes) // // 5 xrefs: // > PlayerObject::preSlopeCollision @ 0x75effc // > PlayerObject::preSlopeCollision @ 0x75f034 // > PlayerObject::handleRotatedCollisionInternal @ 0x760fd0 // > PlayerObject::collidedWithObject @ 0x761190 // > @ 0xfce98 // // 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:01 +0000 // __int64 __fastcall PlayerObject::collidedWithObjectInternal( __int64 a1, GameObject *a2, cocos2d::CCRect *a3, unsigned __int8 a4, float a5) { char v7; // w0 __int64 v8; // x1 const cocos2d::CCRect *v9; // x0 unsigned __int8 *v10; // x22 const cocos2d::CCRect *v11; // x1 double v12; // d12 const cocos2d::CCPoint *LastPosition; // x0 __int64 v14; // x1 float v15; // s15 float v16; // s8 float v17; // s9 float v18; // s0 int v19; // w1 __int64 v20; // x1 float v21; // s0 double v22; // d15 float v23; // s9 float v24; // s8 float v25; // s0 float v26; // s0 float v27; // s0 double v28; // d14 float v29; // s0 double v30; // d13 int v31; // w26 _QWORD *v32; // x21 int v33; // w25 int v34; // w28 GameObject *v35; // x20 cocos2d::CCRect *v36; // x0 float v37; // s0 unsigned int v38; // w26 unsigned int v39; // w21 unsigned __int8 v40; // w0 long double v41; // q0 int v42; // w24 unsigned int v43; // w27 unsigned int v44; // w0 const cocos2d::CCRect *v45; // x0 cocos2d::CCRect *v46; // x0 float v47; // s0 char v48; // w0 double v49; // d0 double v50; // d8 unsigned int v51; // w0 double v52; // d12 double v53; // d9 int v54; // w20 unsigned int v55; // w21 int v56; // w0 double v57; // d8 GJBaseGameLayer *v58; // x0 unsigned int v59; // w21 double v61; // d8 void (__fastcall *v62)(__int64, _QWORD *); // x20 float *v63; // x0 float v64; // s1 unsigned __int8 v65; // w0 double v66; // d0 void (__fastcall *v67)(__int64, _QWORD *); // x23 float *v68; // x0 float v69; // s1 unsigned __int8 v70; // w2 void (__fastcall *v71)(__int64, _QWORD *); // x23 float *v72; // x0 float v73; // s1 unsigned __int8 isFlying; // w2 const cocos2d::CCPoint *v75; // x0 float v76; // s12 float v77; // s8 float v78; // s11 float v79; // s9 const cocos2d::CCPoint *v80; // x0 __int64 v81; // x1 float v82; // w21 float v83; // s15 float v84; // s10 float v85; // s1 _BOOL4 v86; // w26 _BOOL4 v87; // w25 float v88; // s15 float v89; // s10 float v90; // s8 float v91; // s9 double v92; // d8 double v93; // d9 _BOOL4 v94; // w21 int v95; // w28 void (__fastcall *v96)(__int64, _QWORD *); // x25 float v97; // s0 __int64 v98; // x0 __int64 v99; // x0 double v100; // d8 double v101; // d0 unsigned __int8 v102; // w0 float v103; // s0 float v104; // s8 float v105; // s0 float v106; // s8 void (__fastcall *v107)(__int64, _QWORD *); // x20 float *v108; // x0 float v109; // s1 unsigned __int8 v110; // w2 double v111; // d0 GJBaseGameLayer *v112; // x0 void (__fastcall *v113)(__int64, _QWORD *); // x20 float *v114; // x0 float v115; // s1 unsigned __int8 v116; // w2 double v117; // d0 GJBaseGameLayer *v118; // x0 void (__fastcall *v119)(__int64, _QWORD *); // x23 float v120; // s0 double v121; // d1 float v122; // s1 void (__fastcall *v123)(__int64, _QWORD *); // x24 float v124; // s0 __int64 v125; // x0 __int64 v126; // x0 GJBaseGameLayer *v127; // x0 void (__fastcall *v128)(__int64, _QWORD *); // x20 float *v129; // x0 float v130; // s1 unsigned __int8 v131; // w0 double v132; // d0 __int64 v133; // x0 __int64 v134; // [xsp+A4h] [xbp+A4h] float v135; // [xsp+ACh] [xbp+ACh] _BOOL4 v136; // [xsp+B0h] [xbp+B0h] float v137; // [xsp+B4h] [xbp+B4h] float v138; // [xsp+B8h] [xbp+B8h] float v139; // [xsp+BCh] [xbp+BCh] _BOOL4 v140; // [xsp+C0h] [xbp+C0h] int v141; // [xsp+C0h] [xbp+C0h] float v142; // [xsp+C4h] [xbp+C4h] float v143; // [xsp+C8h] [xbp+C8h] float v144; // [xsp+CCh] [xbp+CCh] int v145; // [xsp+D8h] [xbp+D8h] int v146; // [xsp+DCh] [xbp+DCh] float v147; // [xsp+E0h] [xbp+E0h] float v148; // [xsp+E4h] [xbp+E4h] double v149; // [xsp+E8h] [xbp+E8h] unsigned int v150; // [xsp+F0h] [xbp+F0h] unsigned int v151; // [xsp+F4h] [xbp+F4h] unsigned int v152; // [xsp+F8h] [xbp+F8h] float v153; // [xsp+FCh] [xbp+FCh] double v154; // [xsp+100h] [xbp+100h] double v155; // [xsp+108h] [xbp+108h] int v156; // [xsp+110h] [xbp+110h] int v158; // [xsp+11Ch] [xbp+11Ch] float v160; // [xsp+120h] [xbp+120h] float v161; // [xsp+120h] [xbp+120h] unsigned int v162; // [xsp+130h] [xbp+130h] double v163; // [xsp+130h] [xbp+130h] _BYTE v164[8]; // [xsp+148h] [xbp+148h] BYREF float v165; // [xsp+150h] [xbp+150h] BYREF float v166; // [xsp+154h] [xbp+154h] float v167; // [xsp+158h] [xbp+158h] BYREF float v168; // [xsp+15Ch] [xbp+15Ch] float v169; // [xsp+160h] [xbp+160h] float v170; // [xsp+164h] [xbp+164h] _DWORD v171[4]; // [xsp+168h] [xbp+168h] BYREF _QWORD v172[2]; // [xsp+178h] [xbp+178h] BYREF _QWORD v173[2]; // [xsp+188h] [xbp+188h] BYREF v145 = a4; v152 = *(unsigned __int8 *)(a1 + 2720); v151 = *(unsigned __int8 *)(a1 + 2721); if ( *(_BYTE *)(a1 + 2720) && *(_BYTE *)(a1 + 2721) ) { v152 = *(_BYTE *)(a1 + 2722) == 0; v151 = *(unsigned __int8 *)(a1 + 2722) != 0; } v7 = cocos2d::CCRect::equals(a3, (const cocos2d::CCRect *)&unk_155C640); v8 = *(_QWORD *)a1; if ( v7 ) { v9 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(v8 + 1328))(a1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v167, v9); v10 = (unsigned __int8 *)a2; if ( a2 ) { v11 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1328LL))(a2); } else { v10 = nullptr; v11 = a3; } } else { v10 = nullptr; v45 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(v8 + 1328))(a1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v167, v45); v11 = a3; } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v171, v11); if ( !*(_BYTE *)(a1 + 2832) || *(_BYTE *)(a1 + 2409) || *(_BYTE *)(a1 + 2408) ) v155 = 10.0; else v155 = 5.0; if ( *(int *)(a1 + 2704) > 0 ) v155 = 15.0; v12 = (double)(int)PlayerObject::flipMod((PlayerObject *)a1) * v155; if ( (unsigned __int8)PlayerObject::isFlying((PlayerObject *)a1) && !*(_BYTE *)(a1 + 2832) ) v12 = (float)((float)(int)PlayerObject::flipMod((PlayerObject *)a1) * 6.0); if ( *(_BYTE *)(a1 + 2409) ) { v50 = *(double *)(a1 + 1664); v12 = v12 + v50 * (double)(int)PlayerObject::flipMod((PlayerObject *)a1); if ( v10 ) goto LABEL_17; } else if ( v10 ) { LABEL_17: v158 = v10[1293]; goto LABEL_18; } v158 = 0; LABEL_18: if ( a2 == nullptr || a5 <= 0.0 ) goto LABEL_67; LastPosition = (const cocos2d::CCPoint *)GameObject::getLastPosition(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v165, LastPosition); (*(void (__fastcall **)(_QWORD *__return_ptr, GameObject *))(*(_QWORD *)a2 + 1360LL))(v172, a2); v14 = *(_QWORD *)a1; if ( *(_BYTE *)(a1 + 2427) ) { v15 = v165; v16 = *(float *)v172; v17 = *(float *)(*(__int64 (__fastcall **)(__int64))(v14 + 192))(a1); if ( *(_BYTE *)(a1 + 2427) ) goto LABEL_21; } else { v15 = v166; v16 = *((float *)v172 + 1); v17 = *(float *)((*(__int64 (__fastcall **)(__int64))(v14 + 192))(a1) + 4); if ( *(_BYTE *)(a1 + 2427) ) { LABEL_21: GameObject::getScalePosDelta(v173, a2); v18 = *(float *)v173; goto LABEL_22; } } GameObject::getScalePosDelta(v173, a2); v18 = *((float *)v173 + 1); LABEL_22: if ( v18 != 0.0 ) { if ( v17 >= v16 ) v15 = v15 - v18; else v15 = v15 + v18; } if ( *(float *)v172 == v165 && *((float *)v172 + 1) == v166 ) goto LABEL_67; if ( *(_BYTE *)(a1 + 2423) ) { if ( v15 > v16 ) goto LABEL_258; if ( v15 < v16 ) goto LABEL_30; LABEL_67: v134 = 0; v136 = 0; v135 = 0.0; if ( *(_BYTE *)(a1 + 2832) ) goto LABEL_68; goto LABEL_32; } if ( v15 >= v16 ) { if ( v15 > v16 ) { LABEL_30: v19 = *(unsigned __int8 *)(a1 + 2832); v134 = 1; v136 = 0; v135 = 0.0; goto LABEL_31; } goto LABEL_67; } LABEL_258: v135 = (float)(v16 - v15) / a5; v100 = fabsf(v135); v136 = v100 > 5.0; v101 = (double)(int)PlayerObject::flipMod((PlayerObject *)a1); v19 = *(unsigned __int8 *)(a1 + 2832); v12 = v12 + v101 * v100; if ( *(_BYTE *)(a1 + 2832) ) { v134 = 0x100000000LL; LABEL_31: if ( !v19 ) goto LABEL_32; LABEL_68: v153 = 5.0; goto LABEL_34; } v134 = 0x100000000LL; *(double *)(a1 + 1576) = v135; LABEL_32: if ( *(int *)(a1 + 2844) > 0 ) { v153 = 0.0; goto LABEL_34; } v153 = 0.0; if ( *(int *)(a1 + 2848) > 0 ) { LABEL_34: v150 = v158 ^ 1; goto LABEL_35; } v150 = 0; LABEL_35: v20 = *(_QWORD *)a1; if ( *(_BYTE *)(a1 + 2427) ) v21 = *(float *)(*(__int64 (__fastcall **)(__int64))(v20 + 192))(a1) - *(float *)(a1 + 1224); else v21 = *(float *)((*(__int64 (__fastcall **)(__int64))(v20 + 192))(a1) + 4) - *(float *)(a1 + 1228); v22 = v21; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); v23 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1) + 4); v24 = v170 * 0.5; v154 = (float)(v23 - (float)(v24 * (float)(int)PlayerObject::flipMod((PlayerObject *)a1))) + v12; v148 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1) + 4); v147 = v170; v146 = PlayerObject::flipMod((PlayerObject *)a1); v149 = v154 - v22; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); if ( *(_BYTE *)(a1 + 2423) ) v140 = v22 < 0.0; else v140 = v22 > 0.0; cocos2d::CCRect::getMinX((cocos2d::CCRect *)v171); v139 = v25; cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v171); v142 = v26; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v171); v28 = v27; v144 = v27; cocos2d::CCRect::getMinY((cocos2d::CCRect *)v171); v143 = v29; v30 = v29; v138 = *(float *)v171; v137 = *(float *)&v171[2]; if ( *(_BYTE *)(a1 + 2420) && *(int *)(a1 + 2840) <= 0 ) { v54 = 1; v43 = 0; goto LABEL_155; } if ( *(_BYTE *)(a1 + 2408) ) { v31 = 1; } else { if ( !*(_BYTE *)(a1 + 2409) && !*(_QWORD *)(a1 + 1760) ) goto LABEL_160; v31 = *(unsigned __int8 *)(a1 + 2409) | (v10 == nullptr); } v32 = *(_QWORD **)(a1 + 1752); if ( v32 ) { v162 = 0; v33 = 0; v34 = 0; while ( 1 ) { v35 = (GameObject *)v32[3]; if ( !v31 && *(GameObject **)(a1 + 1656) != v35 && ((v36 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v35 + 1328LL))(v32[3]), cocos2d::CCRect::getMinX(v36), v37 >= *(float *)(*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v10 + 192LL))(v10)) || (v46 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v35 + 1328LL))(v35), cocos2d::CCRect::getMaxX(v46), v47 <= *(float *)(*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v10 + 192LL))(v10))) || ((*(void (__fastcall **)(_QWORD *__return_ptr, GameObject *, float, float))(*(_QWORD *)v35 + 1336LL))( v172, v35, 1.2, 1.1), !(unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v171, (const cocos2d::CCRect *)v172)) || ((*(void (__fastcall **)(_QWORD *__return_ptr, GameObject *, float, float))(*(_QWORD *)v35 + 1336LL))( v173, v35, 1.2, 1.1), !(unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)&v167, (const cocos2d::CCRect *)v173)) ) { if ( !v33 ) goto LABEL_50; goto LABEL_49; } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v173, (const cocos2d::CCRect *)v171); v163 = COERCE_DOUBLE(COERCE_UNSIGNED_INT128(GameObject::slopeYPos(v35, v173))); v48 = GameObject::slopeFloorTop(v35); v49 = v163 - 2.0; if ( v28 > v163 + 2.0 ) break; if ( !v48 ) { if ( v30 < v49 ) { v162 = 1; v34 = 1; if ( !v33 ) goto LABEL_50; LABEL_49: if ( v34 ) goto LABEL_84; goto LABEL_50; } v34 = 1; LABEL_110: v162 = 1; if ( *(GameObject **)(a1 + 1656) != v35 ) { if ( !v33 ) goto LABEL_50; goto LABEL_49; } goto LABEL_83; } if ( *(GameObject **)(a1 + 1656) == v35 ) v34 = 1; if ( v30 < v49 ) { LABEL_113: v162 = 1; if ( !v33 ) goto LABEL_50; goto LABEL_49; } LABEL_83: v162 = 1; v33 = 1; if ( v34 ) { LABEL_84: v33 = 1; LOBYTE(v34) = 1; if ( !v10 ) goto LABEL_85; LABEL_52: v38 = (*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v10 + 1800LL))(v10) == 21; goto LABEL_53; } LABEL_50: v32 = (_QWORD *)*v32; if ( !v32 ) goto LABEL_51; } if ( v30 < v49 ) goto LABEL_113; if ( v48 ) goto LABEL_83; goto LABEL_110; } LABEL_160: v33 = 0; LOBYTE(v34) = 0; v162 = 0; LABEL_51: if ( v10 ) goto LABEL_52; LABEL_85: v38 = 0; LABEL_53: v39 = 1; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v172, v167 + (float)(v153 * 0.5), v168, v169 - v153, v170); v40 = PlayerObject::isInNormalMode((PlayerObject *)a1); v42 = *(unsigned __int8 *)(a1 + 2423); v156 = v40; if ( !*(_BYTE *)(a1 + 2423) ) goto LABEL_55; if ( (unsigned __int8)PlayerObject::isFlying((PlayerObject *)a1) || (v39 = 0, *(_BYTE *)(a1 + 2419)) ) v39 = v158 ^ 1; v42 = *(unsigned __int8 *)(a1 + 2423); if ( !*(_BYTE *)(a1 + 2423) ) { LABEL_55: if ( v154 > v30 && v149 > v30 ) goto LABEL_98; LABEL_56: if ( !*(_BYTE *)(a1 + 2832) ) { v43 = 1; v141 = 0; goto LABEL_120; } if ( v140 && v38 && !*(_BYTE *)(a1 + 2374) ) { if ( *(_BYTE *)(a1 + 2408) ) { v141 = 1; } else { v43 = 1; v141 = 1; if ( !*(_BYTE *)(a1 + 2409) ) goto LABEL_105; } goto LABEL_62; } v43 = 1; if ( *(_BYTE *)(a1 + 2408) ) { v141 = 0; goto LABEL_62; } LABEL_100: v141 = 0; if ( !*(_BYTE *)(a1 + 2409) ) goto LABEL_105; if ( !v43 ) goto LABEL_102; LABEL_62: v43 = 1; v44 = v162; if ( !*(_BYTE *)(a1 + 2416) ) v44 = 0; v162 = v44; goto LABEL_105; } if ( v154 >= v28 || v149 >= v28 ) goto LABEL_56; LABEL_98: if ( !*(_BYTE *)(a1 + 2832) ) { v43 = 0; v141 = 0; goto LABEL_120; } v43 = 0; if ( !*(_BYTE *)(a1 + 2408) ) goto LABEL_100; v141 = 0; LABEL_102: v43 = 0; v51 = v162; if ( *(_BYTE *)(a1 + 2416) ) v51 = 0; v162 = v51; LABEL_105: if ( !v145 ) { if ( !(unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v172, (const cocos2d::CCRect *)v171) ) { v54 = 1; goto LABEL_155; } v42 = *(unsigned __int8 *)(a1 + 2423); } LABEL_120: *(double *)&v41 = (float)(v148 - (float)((float)(v147 * 0.5) * (float)-v146)); v52 = *(double *)&v41 - v12; v53 = v52 - v22; if ( !v39 && !v150 ) { v54 = 1; if ( v42 ) { LABEL_123: v55 = 1; goto LABEL_124; } goto LABEL_176; } if ( v42 ) { if ( v52 < v28 ) { v54 = 1; if ( v53 < v28 ) goto LABEL_123; } if ( v38 && *(_BYTE *)(a1 + 2418) && !*(_BYTE *)(a1 + 2832) ) { (*(void (__fastcall **)(_QWORD *__return_ptr, __int64, float, float))(*(_QWORD *)a1 + 1336LL))(v173, a1, 0.3, 0.3); if ( (unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v171, (const cocos2d::CCRect *)v173) ) goto LABEL_151; LABEL_377: v54 = 0; if ( *(_BYTE *)(a1 + 2423) ) goto LABEL_123; goto LABEL_176; } } else { *(double *)&v41 = v154; if ( v154 < v28 ) { *(double *)&v41 = v154 - v22; v54 = 1; if ( v149 < v28 ) goto LABEL_176; } } v61 = *(double *)(a1 + 2392); if ( (v61 <= 0.0 || v136 || *(_BYTE *)(a1 + 2409)) && v162 <= ((unsigned __int8)v34 ^ 1u) ) { if ( v43 ) { *(double *)&v41 = (double)(int)PlayerObject::flipMod((PlayerObject *)a1); if ( v61 * *(double *)&v41 > 0.0 ) { if ( *(_QWORD *)(a1 + 3016) ) PlayerObject::gameEventTriggered(a1, 6, 0); } } v71 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 184LL); v72 = (float *)(*(__int64 (__fastcall **)(__int64, long double))(*(_QWORD *)a1 + 192LL))(a1, v41); v73 = (float)(v170 * 0.5) + v28; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, *v72, v73); v71(a1, v173); if ( v156 ) PlayerObject::checkSnapJumpToObject((PlayerObject *)a1, (GameObject *)v10); if ( v150 > v39 ) { PlayerObject::setYVelocity(a1, 0.0); } else { isFlying = 0; if ( *(_BYTE *)(a1 + 2423) ) isFlying = PlayerObject::isFlying((PlayerObject *)a1); if ( !v43 ) { PlayerObject::hitGround((PlayerObject *)a1, (GameObject *)v10, isFlying); if ( *(_BYTE *)(a1 + 2423) ) { LABEL_215: PlayerObject::updateCollideBottom(a1, v143, (GameObject *)v10); LABEL_216: PlayerObject::updateLastGroundObject(a1, a2); *(double *)(a1 + 1576) = v135; goto LABEL_217; } LABEL_330: PlayerObject::updateCollideBottom(a1, v144, (GameObject *)v10); goto LABEL_216; } PlayerObject::hitGroundNoJump((PlayerObject *)a1, (GameObject *)v10, isFlying); } if ( *(_BYTE *)(a1 + 2423) ) { if ( v38 >= v43 ) { if ( !v43 ) goto LABEL_215; } else if ( !v158 ) { PlayerObject::updateCollideTop(a1, v144, (GameObject *)v10); } } else if ( v38 >= v43 ) { if ( !v43 ) goto LABEL_330; } else if ( !v158 ) { PlayerObject::updateCollideTop(a1, v143, (GameObject *)v10); } if ( *(_BYTE *)(a1 + 2832) ) PlayerObject::exitPlatformerAnimateJump((cocos2d::CCNode **)a1); LABEL_217: if ( v156 && *(int *)(a1 + 2836) > 0 && *(_BYTE *)(a1 + 1968) ) *(_BYTE *)(a1 + 2365) = 0; if ( (unsigned __int8)PlayerObject::isFlying((PlayerObject *)a1) && HIDWORD(v134) ) { if ( v43 ) { LABEL_224: PlayerObject::setYVelocity(a1, *(double *)(a1 + 1576)); LABEL_225: PlayerObject::didHitHead((int *)a1); } LABEL_226: if ( !v141 ) return 1; v58 = *(GJBaseGameLayer **)(a1 + 3016); *(_BYTE *)(a1 + 2374) = 1; if ( !v58 ) goto LABEL_228; LABEL_152: GJBaseGameLayer::destroyObject(v58, (GameObject *)v10); return 1; } LABEL_320: if ( !v43 ) goto LABEL_226; goto LABEL_225; } if ( v42 ) { if ( !v43 || !(_DWORD)v134 ) { v54 = 0; v55 = 1; goto LABEL_124; } v106 = v61; v107 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 184LL); v108 = (float *)(*(__int64 (__fastcall **)(__int64, long double))(*(_QWORD *)a1 + 192LL))(a1, v41); v109 = (float)(v170 * 0.5) + v28; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, *v108, v109); v107(a1, v173); v110 = *(_BYTE *)(a1 + 2423); if ( v110 ) v110 = PlayerObject::isFlying((PlayerObject *)a1); PlayerObject::hitGroundNoJump((PlayerObject *)a1, (GameObject *)v10, v110); if ( v38 < (v158 ^ 1u) ) PlayerObject::updateCollideTop(a1, v144, (GameObject *)v10); PlayerObject::setYVelocity(a1, v106); v111 = *(double *)(a1 + 1576) + 1.0; if ( *(double *)(a1 + 2392) >= v111 ) v111 = *(double *)(a1 + 2392); PlayerObject::setYVelocity(a1, v111); PlayerObject::didHitHead((int *)a1); if ( v141 ) { v112 = *(GJBaseGameLayer **)(a1 + 3016); *(_BYTE *)(a1 + 2374) = 1; if ( v112 ) { v54 = 0; GJBaseGameLayer::destroyObject(v112, (GameObject *)v10); if ( *(_BYTE *)(a1 + 2423) ) goto LABEL_123; } else { v54 = 0; GameObject::destroyObject((GameObject *)v10); if ( *(_BYTE *)(a1 + 2423) ) goto LABEL_123; } goto LABEL_176; } goto LABEL_377; } v54 = 0; if ( HIDWORD(v134) > v43 ) { v62 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 184LL); v63 = (float *)(*(__int64 (__fastcall **)(__int64, long double))(*(_QWORD *)a1 + 192LL))(a1, v41); v64 = (float)(v170 * 0.5) + v28; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, *v63, v64); v62(a1, v173); v65 = *(_BYTE *)(a1 + 2423); if ( v65 ) v65 = PlayerObject::isFlying((PlayerObject *)a1); PlayerObject::hitGround((PlayerObject *)a1, (GameObject *)v10, v65); PlayerObject::updateCollideBottom(a1, v144, (GameObject *)v10); PlayerObject::updateLastGroundObject(a1, a2); *(double *)(a1 + 1576) = v135; PlayerObject::setYVelocity(a1, v61); v66 = *(double *)(a1 + 1576); if ( *(double *)(a1 + 2392) >= v66 ) v66 = *(double *)(a1 + 2392); v54 = 0; PlayerObject::setYVelocity(a1, v66); if ( *(_BYTE *)(a1 + 2423) ) goto LABEL_123; } LABEL_176: if ( ((unsigned __int8)PlayerObject::isFlying((PlayerObject *)a1) || *(_BYTE *)(a1 + 2419)) && !v158 ) goto LABEL_123; if ( !v150 ) goto LABEL_155; v55 = 0; LABEL_124: if ( !v54 ) goto LABEL_155; if ( *(_BYTE *)(a1 + 2423) ) { v53 = v154 - v22; v52 = v154; } if ( v10 ) v56 = *((_DWORD *)v10 + 229); else v56 = 0; if ( v52 <= v30 || v53 <= v30 ) { if ( *(_BYTE *)(a1 + 2423) ) goto LABEL_182; } else { if ( *(_BYTE *)(a1 + 2423) ) { if ( v56 != *(_DWORD *)(a1 + 1496) ) goto LABEL_155; LABEL_182: v57 = *(double *)(a1 + 2392); if ( v57 >= 0.0 ) goto LABEL_183; if ( !*(_BYTE *)(a1 + 2832) ) goto LABEL_138; goto LABEL_137; } if ( v56 != *(_DWORD *)(a1 + 1500) ) goto LABEL_155; } if ( !v38 || !*(_BYTE *)(a1 + 2418) ) goto LABEL_182; if ( !*(_BYTE *)(a1 + 2832) ) { (*(void (__fastcall **)(_QWORD *__return_ptr, __int64, float, float))(*(_QWORD *)a1 + 1336LL))(v173, a1, 0.3, 0.3); if ( !(unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v171, (const cocos2d::CCRect *)v173) ) { v54 = 0; goto LABEL_155; } LABEL_151: v58 = *(GJBaseGameLayer **)(a1 + 3016); if ( !v58 ) { LABEL_228: v59 = 1; GameObject::destroyObject((GameObject *)v10); return v59; } goto LABEL_152; } v57 = *(double *)(a1 + 2392); if ( v57 >= 0.0 ) goto LABEL_183; LABEL_137: if ( *(double *)(a1 + 1584) > 0.0 ) goto LABEL_183; LABEL_138: if ( v136 || *(_BYTE *)(a1 + 2409) ) { LABEL_183: if ( v162 > (v33 ^ 1u) ) goto LABEL_140; if ( v43 && v57 * (double)(int)PlayerObject::flipMod((PlayerObject *)a1) > 0.0 && *(_QWORD *)(a1 + 3016) ) PlayerObject::gameEventTriggered(a1, 6, 0); v67 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 184LL); v68 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); v69 = v30 - (float)(v170 * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, *v68, v69); v67(a1, v173); if ( v156 ) PlayerObject::checkSnapJumpToObject((PlayerObject *)a1, (GameObject *)v10); if ( v150 > v55 ) { PlayerObject::setYVelocity(a1, 0.0); } else { v70 = 0; if ( !*(_BYTE *)(a1 + 2423) ) v70 = PlayerObject::isFlying((PlayerObject *)a1); if ( !v43 ) { PlayerObject::hitGround((PlayerObject *)a1, (GameObject *)v10, v70); if ( !*(_BYTE *)(a1 + 2423) ) { LABEL_357: PlayerObject::updateCollideBottom(a1, v144, (GameObject *)v10); goto LABEL_355; } goto LABEL_354; } PlayerObject::hitGroundNoJump((PlayerObject *)a1, (GameObject *)v10, v70); } if ( !*(_BYTE *)(a1 + 2423) ) { if ( v38 < v43 ) { if ( !v158 ) PlayerObject::updateCollideTop(a1, v143, (GameObject *)v10); goto LABEL_196; } if ( !v43 ) goto LABEL_357; LABEL_196: if ( *(_BYTE *)(a1 + 2832) ) PlayerObject::exitPlatformerAnimateJump((cocos2d::CCNode **)a1); LABEL_198: if ( v156 && *(int *)(a1 + 2836) > 0 && *(_BYTE *)(a1 + 1968) ) *(_BYTE *)(a1 + 2365) = 0; if ( (unsigned __int8)PlayerObject::isFlying((PlayerObject *)a1) && HIDWORD(v134) ) { if ( v43 ) goto LABEL_224; goto LABEL_226; } goto LABEL_320; } if ( v38 < v43 ) { if ( !v158 ) PlayerObject::updateCollideTop(a1, v144, (GameObject *)v10); goto LABEL_196; } if ( v43 ) goto LABEL_196; LABEL_354: PlayerObject::updateCollideBottom(a1, v143, (GameObject *)v10); LABEL_355: PlayerObject::updateLastGroundObject(a1, a2); *(double *)(a1 + 1576) = v135; goto LABEL_198; } LABEL_140: if ( *(_BYTE *)(a1 + 2423) ) { v54 = 0; if ( HIDWORD(v134) > v43 ) { v128 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 184LL); v129 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); v130 = v30 - (float)(v170 * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, *v129, v130); v128(a1, v173); v131 = *(_BYTE *)(a1 + 2423); if ( v131 ) v131 = PlayerObject::isFlying((PlayerObject *)a1); PlayerObject::hitGround((PlayerObject *)a1, (GameObject *)v10, v131); PlayerObject::updateCollideBottom(a1, v143, (GameObject *)v10); PlayerObject::updateLastGroundObject(a1, a2); *(double *)(a1 + 1576) = v135; PlayerObject::setYVelocity(a1, v57); v132 = *(double *)(a1 + 1576); if ( *(double *)(a1 + 2392) <= v132 ) v132 = *(double *)(a1 + 2392); v54 = 0; PlayerObject::setYVelocity(a1, v132); } } else if ( v43 && (_DWORD)v134 ) { v113 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 184LL); v114 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); v115 = v30 - (float)(v170 * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, *v114, v115); v113(a1, v173); v116 = *(_BYTE *)(a1 + 2423); if ( v116 ) v116 = PlayerObject::isFlying((PlayerObject *)a1); PlayerObject::hitGroundNoJump((PlayerObject *)a1, (GameObject *)v10, v116); if ( v38 < (v158 ^ 1u) ) PlayerObject::updateCollideTop(a1, v143, (GameObject *)v10); PlayerObject::setYVelocity(a1, v57); v117 = *(double *)(a1 + 1576) - 1.0; if ( *(double *)(a1 + 2392) <= v117 ) v117 = *(double *)(a1 + 2392); PlayerObject::setYVelocity(a1, v117); PlayerObject::didHitHead((int *)a1); if ( v141 ) { v118 = *(GJBaseGameLayer **)(a1 + 3016); *(_BYTE *)(a1 + 2374) = 1; v43 = 1; v54 = 0; if ( v118 ) GJBaseGameLayer::destroyObject(v118, (GameObject *)v10); else GameObject::destroyObject((GameObject *)v10); } else { v43 = 1; v54 = 0; } } else { v54 = 0; } LABEL_155: if ( !*(_BYTE *)(a1 + 2832) ) goto LABEL_156; v75 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v164, v75); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); v76 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1) + 4); v77 = v170; v78 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1) + 4); v79 = v170; if ( a2 != nullptr && a5 > 0.0 ) { v80 = (const cocos2d::CCPoint *)GameObject::getLastPosition(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v165, v80); (*(void (__fastcall **)(_QWORD *__return_ptr, GameObject *))(*(_QWORD *)a2 + 1360LL))(v172, a2); v81 = *(_QWORD *)a1; if ( *(_BYTE *)(a1 + 2427) ) v82 = *(float *)(*(__int64 (__fastcall **)(__int64))(v81 + 192))(a1); else v82 = *(float *)((*(__int64 (__fastcall **)(__int64))(v81 + 192))(a1) + 4); if ( *(_BYTE *)(a1 + 2427) ) { v83 = v166; v84 = *((float *)v172 + 1); GameObject::getScalePosDelta(v173, a2); v85 = *((float *)v173 + 1); } else { v83 = v165; v84 = *(float *)v172; GameObject::getScalePosDelta(v173, a2); v85 = *(float *)v173; } v86 = (float)(v85 + (float)(v84 - v83)) < 0.0; v87 = (float)((float)(v84 - v83) - v85) > 0.0; if ( v82 >= v84 ) v88 = v83 - v85; else v88 = v83 + v85; v89 = (float)(v84 - v88) / a5; } else { v89 = 0.0; v87 = 0; v86 = 0; } if ( *(_BYTE *)(a1 + 2408) || *(_BYTE *)(a1 + 2409) || *(double *)(a1 + 2624) - *(double *)(a1 + 2800) < 0.200000003 ) { v90 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1) + 4); v91 = v170 * 0.5; v92 = (float)(v90 + (float)(v91 * (float)(int)PlayerObject::flipMod((PlayerObject *)a1))); v93 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1) + 4); } else { v92 = (float)(v76 + (float)(v77 * 0.5)) - v155; v93 = (float)(v78 - (float)(v79 * 0.5)) + v155; } if ( !a2 ) { v94 = 0; goto LABEL_243; } v94 = a2 == *(GameObject **)(a1 + 1544); if ( a2 != *(GameObject **)(a1 + 1552) ) { LABEL_243: v95 = 0; goto LABEL_244; } v95 = 1; LABEL_244: cocos2d::CCRect::CCRect((cocos2d::CCRect *)v173, v167, v168 + (float)(v153 * 0.5), v169, v170 - v153); if ( !v158 && ((unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v173, (const cocos2d::CCRect *)v171) || v94 || v95) && (v92 < v28 && v92 > v30 || v93 < v28 && v93 > v30) ) { *(double *)(a1 + 1608) = v89; if ( v94 || (float)(v138 + (float)(v137 * 0.5)) < *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1) && !v95 ) { PlayerObject::updateCollideLeft(a1, v142, (GameObject *)v10); v96 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 184LL); v97 = (float)(v169 * 0.5) + v142; v160 = v97; v98 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v172, v160, *(float *)(v98 + 4)); v96(a1, v172); if ( *(double *)(a1 + 2712) < 0.0 && v151 <= !v86 ) *(_QWORD *)(a1 + 2712) = 0; if ( *(_BYTE *)(a1 + 2460) ) { v99 = *(_QWORD *)(a1 + 1416); if ( !v99 || !*(_BYTE *)(v99 + 1856) ) { PlayerObject::stopDashing((PlayerObject *)a1); *(_BYTE *)(a1 + 2365) = 0; } } if ( *(_BYTE *)(a1 + 2809) ) *(_DWORD *)(a1 + 2780) = 0; } else { PlayerObject::updateCollideRight(a1, v139, (GameObject *)v10); v123 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 184LL); v124 = v139 - (float)(v169 * 0.5); v161 = v124; v125 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v172, v161, *(float *)(v125 + 4)); v123(a1, v172); if ( *(double *)(a1 + 2712) > 0.0 && v152 <= !v87 ) *(_QWORD *)(a1 + 2712) = 0; if ( *(_BYTE *)(a1 + 2460) ) { v126 = *(_QWORD *)(a1 + 1416); if ( !v126 || !*(_BYTE *)(v126 + 1856) ) { PlayerObject::stopDashing((PlayerObject *)a1); *(_BYTE *)(a1 + 2365) = 0; } } if ( *(_BYTE *)(a1 + 2810) ) *(_DWORD *)(a1 + 2780) = 0; } } LABEL_156: v59 = 0; if ( !v54 || *(unsigned __int8 *)(a1 + 2832) | v158 ) return v59; (*(void (__fastcall **)(_QWORD *__return_ptr, __int64, float, float))(*(_QWORD *)a1 + 1336LL))(v173, a1, 0.3, 0.3); v102 = cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v171, (const cocos2d::CCRect *)v173); v59 = v102; if ( !v102 ) return 0; if ( !v43 || !(unsigned __int8)PlayerObject::isSafeFlip((PlayerObject *)a1, 0.1) ) { if ( *(_BYTE *)(a1 + 2422) && (cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v171), v104 = v103, cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v173), v104 < v105) ) { if ( (unsigned __int8)PlayerObject::isSafeSpiderFlip((PlayerObject *)a1, 0.04) ) return v59; if ( !v10 ) { LABEL_265: if ( !*(_BYTE *)(a1 + 1973) ) { v133 = GameManager::sharedState((GameManager *)*(unsigned __int8 *)(a1 + 1973)); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(v133 + 544) + 1296LL))( *(_QWORD *)(v133 + 544), a1, 0); return v59; } if ( !*(_BYTE *)(a1 + 3052) ) { *(_BYTE *)(a1 + 2364) = 1; return v59; } return 0; } } else if ( !v10 ) { goto LABEL_265; } if ( (*(unsigned int (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v10 + 1800LL))(v10) == 21 ) { v127 = *(GJBaseGameLayer **)(a1 + 3016); if ( v127 ) GJBaseGameLayer::destroyObject(v127, (GameObject *)v10); else GameObject::destroyObject((GameObject *)v10); return v59; } goto LABEL_265; } v119 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 184LL); if ( *(_BYTE *)(a1 + 2423) ) { v120 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); v121 = (float)(v170 * 0.5) + v28; } else { v120 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); v121 = v30 - (float)(v170 * 0.5); } v122 = v121; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v172, v120, v122); v119(a1, v172); PlayerObject::hitGround((PlayerObject *)a1, (GameObject *)v10, 1u); *(_BYTE *)(a1 + 2500) = 0; return v59; }
GD Web Decomp Icon

GD Web Decomp

Raw Source