// // PlayerObject::spiderTestJumpInternal from 0x1404f25f0 to 0x1404f3368 (3448 bytes) // // 6 xrefs: // > PlayerObject::spiderTestJump @ 0x1404f254b // > PlayerObject::spiderTestJumpInternal @ 0x1404f31b8 // > PlayerObject::bumpPlayer @ 0x1404fdb6d // > @ 0x1408d4d08 // > @ 0x1408d4e10 // > @ 0x140929f90 // // This function is hookable on this platform (idp: pc, 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 11:33:19 +0000 // void __fastcall PlayerObject::spiderTestJumpInternal(__int64 a1, char a2) { char v4; // r14 float v5; // xmm8_4 bool v6; // bl __int128 v7; // xmm7 const struct cocos2d::CCRect *v8; // rax float MinPortalY; // xmm14_4 float MaxPortalY; // xmm15_4 float v11; // xmm0_4 float v12; // xmm0_4 float v13; // xmm0_4 float v14; // xmm2_4 float v15; // xmm3_4 float v16; // xmm0_4 __int128 v17; // xmm0 __int64 v18; // rbx float *v19; // rax __int64 v20; // rax __int64 v21; // rbx cocos2d::CCArray *v22; // r15 const struct cocos2d::CCRect *v23; // rax char v24; // r8 cocos2d::CCArray *v25; // r13 int (__cdecl *v26)(const void *, const void *); // rsi int (__cdecl *v27)(const void *, const void *); // rax __int64 v28; // rbx float *v29; // rax float v30; // xmm9_4 int v31; // ebx const struct cocos2d::CCPoint *v32; // rax unsigned int v33; // r12d struct cocos2d::CCObject *v34; // rax struct cocos2d::CCObject *v35; // rbx float v36; // xmm6_4 cocos2d::CCRect *v37; // rax cocos2d::CCRect *v38; // rax __int64 v39; // rax cocos2d::CCRect *v40; // rax float MaxX; // xmm0_4 cocos2d::CCRect *v42; // rax char v43; // si int v44; // ecx char v45; // al double v46; // xmm6_8 double v47; // xmm0_8 int v48; // eax float v49; // xmm2_4 float v50; // xmm1_4 bool v51; // cf char v52; // si cocos2d::CCRect *v53; // rcx float MinY; // xmm0_4 float v55; // xmm1_4 cocos2d::CCRect *v56; // rcx float MaxY; // xmm0_4 float v58; // xmm1_4 unsigned int v59; // ebx struct cocos2d::CCObject *v60; // rax const struct cocos2d::CCRect *v61; // rax struct cocos2d::CCObject *v62; // rax _DWORD *v63; // rax struct cocos2d::CCObject *v64; // rax float *v65; // rax __int64 v66; // rdx float v67; // xmm0_4 const struct cocos2d::CCPoint *v69; // rax __int64 v70; // rdx cocos2d::CCDictionary *v71; // rcx __int64 v72; // rax __int64 v73; // rbx __int64 v74; // rax __int64 v75; // rcx float v76; // [rsp+28h] [rbp-E0h] BYREF float v77; // [rsp+2Ch] [rbp-DCh] float v78; // [rsp+30h] [rbp-D8h] float v79; // [rsp+34h] [rbp-D4h] float v80; // [rsp+38h] [rbp-D0h] BYREF float v81; // [rsp+3Ch] [rbp-CCh] float v82; // [rsp+40h] [rbp-C8h] float v83; // [rsp+44h] [rbp-C4h] float v84; // [rsp+48h] [rbp-C0h] BYREF float v85; // [rsp+4Ch] [rbp-BCh] float v86; // [rsp+50h] [rbp-B8h] float v87; // [rsp+54h] [rbp-B4h] float v88; // [rsp+58h] [rbp-B0h] BYREF float v89; // [rsp+5Ch] [rbp-ACh] unsigned int v90; // [rsp+60h] [rbp-A8h] unsigned int v91; // [rsp+64h] [rbp-A4h] int v92; // [rsp+68h] [rbp-A0h] BYREF float v93; // [rsp+70h] [rbp-98h] float v94; // [rsp+74h] [rbp-94h] _DWORD v95[2]; // [rsp+78h] [rbp-90h] BYREF __int64 v96; // [rsp+80h] [rbp-88h] BYREF _BYTE v97[8]; // [rsp+88h] [rbp-80h] BYREF float v98[4]; // [rsp+90h] [rbp-78h] BYREF _BYTE v99[16]; // [rsp+A0h] [rbp-68h] BYREF _BYTE v100[16]; // [rsp+B0h] [rbp-58h] BYREF _BYTE v101[16]; // [rsp+C0h] [rbp-48h] BYREF bool v102; // [rsp+1C8h] [rbp+C0h] char v103; // [rsp+1D0h] [rbp+C8h] float v104; // [rsp+1D8h] [rbp+D0h] BYREF float v105; // [rsp+1DCh] [rbp+D4h] int v106; // [rsp+1E0h] [rbp+D8h] BYREF int v107; // [rsp+1E4h] [rbp+DCh] v103 = a2; if ( *(_BYTE *)(a1 + 2504) || *(_BYTE *)(a1 + 2610) || *(_BYTE *)(a1 + 2025) ) return; v4 = *(_BYTE *)(a1 + 2507); v5 = *(float *)(a1 + 2552) * 8.0; v6 = v4 || *(_BYTE *)(*(_QWORD *)(a1 + 3112) + 785LL) || !*(_BYTE *)(a1 + 2497) && !*(_BYTE *)(a1 + 2498) && !*(_BYTE *)(a1 + 2500) && !*(_BYTE *)(a1 + 2508) && !*(_BYTE *)(a1 + 2499) && !*(_BYTE *)(a1 + 2502); LODWORD(v7) = 0; v102 = v6; v8 = (const struct cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1184LL))(a1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v80, v8); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v76, (const struct cocos2d::CCRect *)&v80); if ( *(_BYTE *)(a1 + 2507) ) { MaxPortalY = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1) + 3000.0; MinPortalY = fmaxf(0.0, *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1) - 3000.0); } else if ( v6 ) { MinPortalY = fmaxf(90.0, *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1) + 4) - 3000.0); MaxPortalY = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1) + 4) + 3000.0; } else { MinPortalY = GJBaseGameLayer::getMinPortalY(*(_QWORD *)(a1 + 3112)); MaxPortalY = GJBaseGameLayer::getMaxPortalY(*(_QWORD *)(a1 + 3112)); } if ( *(_BYTE *)(a1 + 2503) ) { if ( v4 ) { v13 = v76 - MinPortalY; v76 = MinPortalY; v11 = v13 + 2.0; goto LABEL_25; } v16 = v77 - MinPortalY; v77 = MinPortalY; v12 = v16 + 2.0; } else { if ( v4 ) { v76 = v76 + (float)(v78 - 2.0); v11 = MaxPortalY - v76; LABEL_25: v78 = v11; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v84, (const struct cocos2d::CCRect *)&v76); v87 = v83; v85 = v81; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v92, (const struct cocos2d::CCRect *)&v84); v14 = v79; v15 = v78; v87 = v5; v94 = v94 + 4.0; v85 = v85 + (float)((float)(v79 - v5) * 0.5); goto LABEL_28; } v77 = v77 + (float)(v79 - 2.0); v12 = MaxPortalY - v77; } v79 = v12; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v84, (const struct cocos2d::CCRect *)&v76); v86 = v82; v84 = v80; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v92, (const struct cocos2d::CCRect *)&v84); v15 = v78; v14 = v79; v86 = v5; v93 = v93 + 4.0; v84 = v84 + (float)((float)(v78 - v5) * 0.5); LABEL_28: if ( *(_BYTE *)(a1 + 2936) ) { if ( !v4 ) { v17 = LODWORD(v76); v76 = v76 + 1.0; v78 = v15 + -2.0; goto LABEL_43; } v17 = LODWORD(v77); *(float *)&v17 = v77 + 1.0; v79 = v14 + -2.0; } else { if ( v4 ) { v17 = LODWORD(v83); v79 = (float)(v83 * 0.5) + 1.0; } else { v17 = LODWORD(v82); v78 = (float)(v82 * 0.5) + 1.0; } if ( !*(_BYTE *)(a1 + 2506) ) { if ( v4 ) v77 = (float)(v83 * 0.5) + v81; else v76 = (float)(v82 * 0.5) + v80; goto LABEL_43; } if ( !v4 ) { v17 = LODWORD(v80); v76 = (float)(v80 - (float)(v82 * 0.5)) - 1.0; goto LABEL_43; } v17 = LODWORD(v81); *(float *)&v17 = (float)(v81 - (float)(v83 * 0.5)) - 1.0; } v77 = *(float *)&v17; LABEL_43: v18 = *(_QWORD *)(a1 + 3112); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v99, (const struct cocos2d::CCRect *)&v76); v20 = GJBaseGameLayer::staticObjectsInRect(v18, v19, 1); v21 = *(_QWORD *)(a1 + 3112); v22 = (cocos2d::CCArray *)v20; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v100, (const struct cocos2d::CCRect *)&v84); v25 = GJBaseGameLayer::damagingObjectsInRect(v21, v23, v24); if ( *(_BYTE *)(a1 + 2507) ) { v26 = (int (__cdecl *)(const void *, const void *))sub_1404E4650; v27 = (int (__cdecl *)(const void *, const void *))sub_1404E46B0; } else { v26 = (int (__cdecl *)(const void *, const void *))sub_1404E4590; v27 = (int (__cdecl *)(const void *, const void *))sub_1404E45F0; } if ( *(_BYTE *)(a1 + 2503) ) v26 = v27; if ( !cocos2d::CCArray::count(v22) && cocos2d::CCArray::count(v25) || a2 ) { v28 = *(_QWORD *)(a1 + 3112); v103 = 1; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v101, (const struct cocos2d::CCRect *)&v92); v22 = (cocos2d::CCArray *)GJBaseGameLayer::staticObjectsInRect(v28, v29, 1); } if ( cocos2d::CCArray::count(v22) ) qsort(*(void **)(*((_QWORD *)v22 + 7) + 16LL), **((unsigned int **)v22 + 7), 8u, v26); if ( cocos2d::CCArray::count(v25) ) qsort(*(void **)(*((_QWORD *)v25 + 7) + 16LL), **((unsigned int **)v25 + 7), 8u, v26); v30 = 0.0; v31 = 1; if ( cocos2d::CCArray::count(v22) ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v98, (const struct cocos2d::CCRect *)&v80); v32 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, v32); v33 = 0; if ( !cocos2d::CCArray::count(v22) ) goto LABEL_96; while ( 1 ) { v34 = cocos2d::CCArray::objectAtIndex(v22, v33); v35 = v34; if ( *(_BYTE *)(a1 + 2503) ) { v39 = *(_QWORD *)v34; if ( v4 ) { v7 = LODWORD(v82); v40 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(v39 + 1184))(v35); MaxX = cocos2d::CCRect::getMaxX(v40); } else { v7 = LODWORD(v83); v42 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(v39 + 1184))(v35); MaxX = cocos2d::CCRect::getMaxY(v42); } *(float *)&v7 = (float)(*(float *)&v7 * 0.5) + MaxX; } else { if ( v4 ) { v36 = v82; v37 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v34 + 1184LL))(v34); *(float *)&v17 = cocos2d::CCRect::getMinX(v37); } else { v36 = v83; v38 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v34 + 1184LL))(v34); *(float *)&v17 = cocos2d::CCRect::getMinY(v38); } *((_QWORD *)&v7 + 1) = *((_QWORD *)&v17 + 1); *(float *)&v7 = *(float *)&v17 - (float)(v36 * 0.5); } v43 = 0; if ( (*(unsigned int (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v35 + 1648LL))(v35) == 25 ) { (*(void (__fastcall **)(struct cocos2d::CCObject *, _DWORD *))(*(_QWORD *)v35 + 1208LL))(v35, v95); if ( *(_BYTE *)(a1 + 2507) ) PlayerObject::rotateGameplayObject((_QWORD *)a1, (__int64)v35); v44 = *((_DWORD *)v35 + 273); v45 = v44 == 1 || ((v44 - 3) & 0xFFFFFFFC) == 0 && v44 != 4; if ( v45 != *(_BYTE *)(a1 + 2503) ) { v46 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v35 + 1208LL))( v35, v97) + 4); *(_QWORD *)&v47 = GameObject::slopeYPos((__int64)v35, v104).m128_u64[0]; v48 = -1; if ( !*(_BYTE *)(a1 + 2503) ) v48 = 1; if ( v4 ) { v7 = v95[0]; v50 = v82; } else { v7 = v95[1]; v50 = v83; } v43 = 1; v49 = v47 - v46; *(float *)&v7 = (float)(*(float *)&v7 + v49) - (float)((float)(v50 * 0.5) * (float)v48); } if ( *(_BYTE *)(a1 + 2507) ) PlayerObject::unrotateGameplayObject((_QWORD *)a1, (__int64)v35); } if ( *(_BYTE *)(a1 + 2503) ) { if ( v4 ) v17 = LODWORD(v104); else v17 = LODWORD(v105); v51 = (float)(*(float *)&v17 + 10.0) < *(float *)&v7; } else if ( v4 ) { v17 = LODWORD(v104); v51 = *(float *)&v7 < (float)(v104 - 10.0); } else { v17 = LODWORD(v105); v51 = *(float *)&v7 < (float)(v105 - 10.0); } if ( v51 ) goto LABEL_128; if ( *(_BYTE *)(a1 + 2936) ) { if ( !v43 ) goto LABEL_95; } else { if ( !*(_BYTE *)(a1 + 2506) ) { v53 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v35 + 1184LL))(v35); if ( v4 ) { MinY = cocos2d::CCRect::getMinY(v53); v55 = v105; } else { MinY = cocos2d::CCRect::getMinX(v53); v55 = v104; } if ( MinY > v55 ) goto LABEL_109; if ( !*(_BYTE *)(a1 + 2506) ) goto LABEL_95; } v56 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v35 + 1184LL))(v35); if ( v4 ) { MaxY = cocos2d::CCRect::getMaxY(v56); v58 = v105; } else { MaxY = cocos2d::CCRect::getMaxX(v56); v58 = v104; } if ( v58 <= MaxY ) { LABEL_95: v31 = 1; goto LABEL_96; } } LABEL_109: v59 = 0; if ( !cocos2d::CCArray::count(v22) ) goto LABEL_95; while ( 1 ) { v60 = cocos2d::CCArray::objectAtIndex(v22, v59); if ( v33 != v59 ) { *((_QWORD *)&v17 + 1) = *((_QWORD *)&v7 + 1); if ( v4 ) v98[0] = *(float *)&v7 - (float)(v82 * 0.5); else v98[1] = *(float *)&v7 - (float)(v83 * 0.5); v61 = (const struct cocos2d::CCRect *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v60 + 1184LL))(v60); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v88, v61); if ( !v43 ) { if ( v4 ) { v17 = v90; *(float *)&v90 = *(float *)&v90 + -4.0; v88 = v88 + 2.0; } else { v17 = v91; *(float *)&v91 = *(float *)&v91 + -4.0; v89 = v89 + 2.0; } } if ( cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)&v88, (const struct cocos2d::CCRect *)v98) ) break; } if ( ++v59 >= cocos2d::CCArray::count(v22) ) goto LABEL_95; } if ( !v43 ) goto LABEL_128; if ( v30 == 0.0 ) goto LABEL_127; if ( !*(_BYTE *)(a1 + 2503) ) { if ( v30 <= *(float *)&v7 ) goto LABEL_128; LABEL_127: v30 = *(float *)&v7; goto LABEL_128; } if ( *(float *)&v7 > v30 ) goto LABEL_127; LABEL_128: LODWORD(v7) = 0; if ( ++v33 >= cocos2d::CCArray::count(v22) ) goto LABEL_95; } } if ( cocos2d::CCArray::count(v25) ) { v52 = 1; v62 = cocos2d::CCArray::objectAtIndex(v25, 0); v63 = (_DWORD *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *, float *))(*(_QWORD *)v62 + 1208LL))( v62, &v104); if ( !v4 ) ++v63; LODWORD(v7) = *v63; } else { LABEL_96: v52 = 0; } if ( *(_BYTE *)(a1 + 2936) ) { if ( v30 != 0.0 ) { if ( *(_BYTE *)(a1 + 2503) ) { if ( v30 <= *(float *)&v7 ) goto LABEL_140; } else if ( *(float *)&v7 <= v30 ) { goto LABEL_140; } *(float *)&v7 = v30; } } else { v30 = 0.0; } LABEL_140: if ( *(float *)&v7 == 0.0 ) { if ( v30 == 0.0 ) { if ( *(_BYTE *)(a1 + 2503) ) { if ( v4 ) *(float *)&v7 = (float)(v82 * 0.5) + MinPortalY; else *(float *)&v7 = (float)(v83 * 0.5) + MinPortalY; } else if ( v4 ) { *(float *)&v7 = MaxPortalY - (float)(v82 * 0.5); } else { *(float *)&v7 = MaxPortalY - (float)(v83 * 0.5); } } else { *(float *)&v7 = v30; } } if ( !v52 && cocos2d::CCArray::count(v25) ) { v64 = cocos2d::CCArray::objectAtIndex(v25, 0); v65 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v64 + 1208LL))(v64, v97); if ( !v4 ) ++v65; v67 = *v65; if ( !(*(_BYTE *)(a1 + 2503) ? v67 <= *(float *)&v7 : *(float *)&v7 <= v67) ) { if ( !v103 ) { LOBYTE(v66) = 1; PlayerObject::spiderTestJumpInternal(a1, v66); return; } *(float *)&v7 = *v65; } } v69 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v96, v69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v106, (const struct cocos2d::CCPoint *)&v96); if ( v4 ) v106 = v7; else v107 = v7; (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 184LL))(a1, &v106); LOBYTE(v70) = *(_BYTE *)(a1 + 2503) == 0; PlayerObject::flipGravity(a1, v70); if ( !*(_BYTE *)(a1 + 2503) ) v31 = -1; PlayerObject::setYVelocity(a1, (double)v31); v71 = *(cocos2d::CCDictionary **)(a1 + 1456); *(_BYTE *)(a1 + 2032) = 0; *(_BYTE *)(a1 + 2445) = 0; cocos2d::CCDictionary::removeAllObjects(v71); cocos2d::CCDictionary::removeAllObjects(*(cocos2d::CCDictionary **)(a1 + 1464)); cocos2d::CCDictionary::removeAllObjects(*(cocos2d::CCDictionary **)(a1 + 1472)); cocos2d::CCDictionary::removeAllObjects(*(cocos2d::CCDictionary **)(a1 + 1480)); *(_QWORD *)(a1 + 1504) = -1; *(_QWORD *)(a1 + 1488) = -1; *(_QWORD *)(a1 + 1496) = -1; if ( v4 ) *(_DWORD *)(a1 + 2712) = v106; else *(_DWORD *)(a1 + 2716) = v107; *(_QWORD *)(a1 + 2088) = *(_QWORD *)(a1 + 2728); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, (const struct cocos2d::CCPoint *)&v106); v73 = v72; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v97, (const struct cocos2d::CCPoint *)&v96); PlayerObject::playSpiderDashEffect(a1, v74, v73); if ( v102 ) { v75 = *(_QWORD *)(a1 + 3112); if ( v75 ) GJBaseGameLayer::checkCameraLimitAfterTeleport(v75, (_BYTE *)a1, 60.0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source