// // PlayerObject::spiderTestJumpInternal from 0x443d60 to 0x444620 (2240 bytes) // // 2 xrefs: // > PlayerObject::spiderTestJumpInternal @ 0x444504 // > PlayerObject::spiderTestJump @ 0x444628 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:48:29 +0000 // PlayerObject *__fastcall PlayerObject::spiderTestJumpInternal(PlayerObject *this, int a2) { PlayerObject *v2; // r4 int v3; // r7 int v4; // r5 float v5; // s18 const cocos2d::CCRect *v6; // r0 float v7; // s17 float v8; // s19 float v9; // s15 float v10; // s16 float v11; // s16 float v12; // s16 float v13; // s16 float v14; // s16 float v15; // s16 float v16; // s16 float v17; // s16 float v18; // s15 int v19; // r3 float v20; // s16 float v21; // s12 bool v22; // zf float v23; // s16 int v24; // r9 int v25; // r0 int v26; // r9 size_t **v27; // r8 size_t **v28; // r9 int (**v29)(const void *, const void *); // r3 int (*v30)(const void *, const void *); // r10 int v31; // r8 float v32; // s22 unsigned int v33; // r10 const cocos2d::CCPoint *v34; // r0 GameObject *v35; // r6 int (*v36)(void); // r3 cocos2d::CCRect *v37; // r0 float v38; // r0 float v39; // s15 float v40; // s16 cocos2d::CCRect *v41; // r0 float v42; // r0 float v43; // s15 int v44; // r11 int v45; // r1 double v46; // d12 float v47; // s23 float v48; // s15 float v49; // s24 float v50; // s15 unsigned int i; // r6 int v52; // r0 const cocos2d::CCRect *v53; // r0 int v54; // r7 int v55; // r0 float v56; // s15 int v57; // r0 float v58; // s15 const cocos2d::CCPoint *v59; // r0 int v60; // r2 double v61; // r0 cocos2d::CCRect *v62; // r0 float v63; // r0 float v64; // s15 cocos2d::CCRect *v65; // r0 float v66; // r0 float v67; // s15 int v68; // [sp+Ch] [bp-90h] float v70; // [sp+24h] [bp-78h] BYREF float v71; // [sp+28h] [bp-74h] float v72; // [sp+2Ch] [bp-70h] BYREF float v73; // [sp+30h] [bp-6Ch] float v74; // [sp+34h] [bp-68h] BYREF float v75; // [sp+38h] [bp-64h] float v76; // [sp+3Ch] [bp-60h] float v77; // [sp+40h] [bp-5Ch] float v78; // [sp+44h] [bp-58h] BYREF float v79; // [sp+48h] [bp-54h] float v80; // [sp+4Ch] [bp-50h] float v81; // [sp+50h] [bp-4Ch] float v82; // [sp+54h] [bp-48h] BYREF float v83; // [sp+58h] [bp-44h] float v84; // [sp+5Ch] [bp-40h] float v85; // [sp+60h] [bp-3Ch] _BYTE v86[8]; // [sp+64h] [bp-38h] BYREF float v87; // [sp+6Ch] [bp-30h] float v88; // [sp+70h] [bp-2Ch] float v89[4]; // [sp+74h] [bp-28h] BYREF float v90; // [sp+84h] [bp-18h] BYREF float v91; // [sp+88h] [bp-14h] float v92; // [sp+8Ch] [bp-10h] float v93; // [sp+90h] [bp-Ch] v2 = this; if ( *((_BYTE *)this + 1960) || *((_BYTE *)this + 2066) || *((_BYTE *)this + 1601) ) return this; v3 = *((unsigned __int8 *)this + 1963); v4 = v3 ^ 1; v5 = *((float *)this + 502) * 8.0; if ( *((_BYTE *)this + 1963) || *(_BYTE *)(*((_DWORD *)this + 610) + 689) ) v68 = 1; else v68 = PlayerObject::isInBasicMode(this); v6 = (const cocos2d::CCRect *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)v2 + 664))(v2); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v74, v6); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v78, (const cocos2d::CCRect *)&v74); if ( *((_BYTE *)v2 + 1963) ) { v8 = *(float *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)v2 + 96))(v2) + 3000.0; if ( (float)(*(float *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)v2 + 96))(v2) - 3000.0) <= 0.0 ) v7 = 0.0; else v7 = *(float *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)v2 + 96))(v2) - 3000.0; } else if ( v68 ) { v7 = 90.0; if ( (float)(*(float *)((*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)v2 + 96))(v2) + 4) - 3000.0) > 90.0 ) v7 = *(float *)((*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)v2 + 96))(v2) + 4) - 3000.0; v8 = *(float *)((*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)v2 + 96))(v2) + 4) + 3000.0; } else { v7 = COERCE_FLOAT(GJBaseGameLayer::getMinPortalY(*((GJBaseGameLayer **)v2 + 610))); v8 = COERCE_FLOAT(GJBaseGameLayer::getMaxPortalY(*((GJBaseGameLayer **)v2 + 610))); } if ( *((_BYTE *)v2 + 1959) ) { v13 = v79; if ( v4 ) { v79 = v7; } else { v13 = v78; v78 = v7; } v14 = (float)(v13 - v7) + 2.0; if ( v4 ) v81 = v14; else v80 = v14; } else { v9 = v80; v10 = v81; if ( !v4 ) { v10 = v80; v9 = v78; } v11 = v10 - 2.0; if ( v4 ) v9 = v79; else v11 = v11 + v9; if ( v4 ) v11 = v11 + v9; else v78 = v11; if ( v4 ) v79 = v11; v12 = v8 - v11; if ( v4 ) v81 = v12; else v80 = v12; } cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v82, (const cocos2d::CCRect *)&v78); if ( v3 ) { v85 = v77; v83 = v75; } else { v84 = v76; v82 = v74; } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v86, (const cocos2d::CCRect *)&v82); if ( v3 ) { v15 = v81; v88 = v88 + 4.0; } else { v15 = v80; v87 = v87 + 4.0; } v16 = v15 - v5; if ( v3 ) v85 = v5; else v84 = v5; v17 = v16 * 0.5; if ( v3 ) v83 = v83 + v17; else v82 = v82 + v17; if ( *((_BYTE *)v2 + 2320) ) { if ( v3 ) { v81 = v81 - 2.0; v79 = v79 + 1.0; } else { v80 = v80 - 2.0; v78 = v78 + 1.0; } } else { v18 = v76; v19 = *((unsigned __int8 *)v2 + 1962); v20 = v74; if ( v3 ) v21 = v77; else v21 = v76; if ( v3 ) v81 = (float)(v21 * 0.5) + 1.0; else v80 = (float)(v21 * 0.5) + 1.0; if ( v19 ) { v22 = v3 == 0; if ( v3 ) { v20 = v75; v18 = v77; } v23 = (float)(v20 - (float)(v18 * 0.5)) - 1.0; } else { v22 = v3 == 0; if ( v3 ) { v20 = v75; v18 = v77; } v23 = v20 + (float)(v18 * 0.5); } if ( v22 ) v78 = v23; else v79 = v23; } v24 = *((_DWORD *)v2 + 610); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v90, (const cocos2d::CCRect *)&v78); v25 = GJBaseGameLayer::staticObjectsInRect(v24, &v90, 1); v26 = *((_DWORD *)v2 + 610); v27 = (size_t **)v25; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v90, (const cocos2d::CCRect *)&v82); v28 = (size_t **)GJBaseGameLayer::damagingObjectsInRect(v26, &v90, 1); if ( *((_BYTE *)v2 + 1963) ) { if ( *((_BYTE *)v2 + 1959) ) v29 = (int (**)(const void *, const void *))&boxCompMaxX; else v29 = (int (**)(const void *, const void *))&boxCompMinX; } else if ( *((_BYTE *)v2 + 1959) ) { v29 = (int (**)(const void *, const void *))&boxCompMax; } else { v29 = (int (**)(const void *, const void *))&boxCompMin; } v30 = *v29; if ( !cocos2d::CCArray::count((cocos2d::CCArray *)v27) && cocos2d::CCArray::count((cocos2d::CCArray *)v28) || a2 ) { v31 = *((_DWORD *)v2 + 610); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v90, (const cocos2d::CCRect *)v86); a2 = 1; v27 = (size_t **)GJBaseGameLayer::staticObjectsInRect(v31, &v90, 1); } if ( cocos2d::CCArray::count((cocos2d::CCArray *)v27) ) qsort((void *)v27[13][3], *v27[13], 4u, v30); if ( cocos2d::CCArray::count((cocos2d::CCArray *)v28) ) qsort((void *)v28[13][3], *v28[13], 4u, v30); if ( !cocos2d::CCArray::count((cocos2d::CCArray *)v27) ) { if ( cocos2d::CCArray::count((cocos2d::CCArray *)v28) ) { v55 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v28, 0); v32 = 0.0; v54 = 1; (*(void (__fastcall **)(float *, int))(*(_DWORD *)v55 + 680))(&v90, v55); v40 = v91; if ( !v4 ) v40 = v90; } else { v32 = 0.0; v54 = 0; v40 = 0.0; } goto LABEL_133; } v32 = 0.0; v33 = 0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v89, (const cocos2d::CCRect *)&v74); v34 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)v2 + 96))(v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v70, v34); while ( 1 ) { if ( v33 >= cocos2d::CCArray::count((cocos2d::CCArray *)v27) ) { v40 = 0.0; goto LABEL_127; } v35 = (GameObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v27, v33); v36 = *(int (**)(void))(*(_DWORD *)v35 + 664); if ( *((_BYTE *)v2 + 1959) ) { v41 = (cocos2d::CCRect *)v36(); if ( v4 ) { v42 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(v41)); v43 = v77; } else { v42 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(v41)); v43 = v76; } v40 = v42 + (float)(v43 * 0.5); } else { v37 = (cocos2d::CCRect *)v36(); if ( v4 ) { v38 = COERCE_FLOAT(cocos2d::CCRect::getMinY(v37)); v39 = v77; } else { v38 = COERCE_FLOAT(cocos2d::CCRect::getMinX(v37)); v39 = v76; } v40 = v38 - (float)(v39 * 0.5); } if ( (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v35 + 900))(v35) == 25 ) { (*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)v35 + 680))(&v72, v35); if ( *((_BYTE *)v2 + 1963) ) PlayerObject::rotateGameplayObject(v2, v35); if ( *((unsigned __int8 *)v2 + 1959) == GameObject::slopeFloorTop(v35) ) { v44 = 0; } else { v44 = 1; LODWORD(v46) = GameObject::slopeYPos(v35, v70); HIDWORD(v46) = v45; (*(void (__fastcall **)(float *, GameObject *))(*(_DWORD *)v35 + 680))(&v90, v35); v47 = v77; v48 = v73; v49 = v46 - v91; if ( !v4 ) { v48 = v72; v47 = v76; } v40 = (float)(v48 + v49) + (float)((float)(v47 * 0.5) * (float)-PlayerObject::flipMod(v2)); } if ( *((_BYTE *)v2 + 1963) ) PlayerObject::unrotateGameplayObject(v2, v35); } else { v44 = 0; } v50 = v71; if ( !v4 ) v50 = v70; if ( *((_BYTE *)v2 + 1959) ) break; if ( v40 >= (float)(v50 - 10.0) ) goto LABEL_167; LABEL_125: ++v33; } if ( v40 > (float)(v50 + 10.0) ) goto LABEL_125; LABEL_167: if ( *((_BYTE *)v2 + 2320) ) { if ( !v44 ) goto LABEL_127; LABEL_182: for ( i = 0; i < cocos2d::CCArray::count((cocos2d::CCArray *)v27); ++i ) { v52 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v27, i); if ( v33 != i ) { if ( v4 ) v89[1] = v40 - (float)(v77 * 0.5); else v89[0] = v40 - (float)(v76 * 0.5); v53 = (const cocos2d::CCRect *)(*(int (__fastcall **)(int))(*(_DWORD *)v52 + 664))(v52); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v90, v53); if ( !v44 ) { if ( v4 ) { v93 = v93 - 4.0; v91 = v91 + 2.0; } else { v92 = v92 - 4.0; v90 = v90 + 2.0; } } if ( cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)&v90, (const cocos2d::CCRect *)v89) ) { if ( v44 ) { if ( v32 != 0.0 ) { if ( *((_BYTE *)v2 + 1959) ) { if ( v40 <= v32 ) v40 = v32; } else if ( v40 >= v32 ) { v40 = v32; } } } else { v40 = v32; } v32 = v40; goto LABEL_125; } } } } else { if ( !*((_BYTE *)v2 + 1962) ) { v62 = (cocos2d::CCRect *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v35 + 664))(v35); if ( v3 ) { v63 = COERCE_FLOAT(cocos2d::CCRect::getMinY(v62)); v64 = v71; } else { v63 = COERCE_FLOAT(cocos2d::CCRect::getMinX(v62)); v64 = v70; } if ( v63 > v64 ) goto LABEL_182; } if ( *((_BYTE *)v2 + 1962) ) { v65 = (cocos2d::CCRect *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v35 + 664))(v35); if ( v3 ) { v66 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(v65)); v67 = v71; } else { v66 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(v65)); v67 = v70; } if ( v66 < v67 ) goto LABEL_182; } } LABEL_127: v54 = 0; LABEL_133: if ( !*((_BYTE *)v2 + 2320) || v32 == 0.0 ) { if ( v40 == 0.0 ) { LABEL_141: v56 = v77; if ( !v4 ) v56 = v76; if ( *((_BYTE *)v2 + 1959) ) v40 = v7 + (float)(v56 * 0.5); else v40 = v8 - (float)(v56 * 0.5); } } else { if ( *((_BYTE *)v2 + 1959) ) { if ( v32 <= v40 ) goto LABEL_139; goto LABEL_146; } if ( v32 < v40 ) goto LABEL_146; LABEL_139: if ( v40 == 0.0 ) { if ( v32 == 0.0 ) goto LABEL_141; LABEL_146: v40 = v32; } } if ( !v54 && cocos2d::CCArray::count((cocos2d::CCArray *)v28) ) { v57 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v28, 0); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v57 + 680))(&v90, v57); v58 = v91; if ( !v4 ) v58 = v90; if ( *((_BYTE *)v2 + 1959) ) { if ( v58 > v40 ) goto LABEL_164; } else { if ( v58 >= v40 ) goto LABEL_153; LABEL_164: if ( !a2 ) return (PlayerObject *)PlayerObject::spiderTestJumpInternal(v2, 1); v40 = v58; } } LABEL_153: v59 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)v2 + 96))(v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v70, v59); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, (const cocos2d::CCPoint *)&v70); if ( v4 ) v73 = v40; else v72 = v40; (*(void (__fastcall **)(PlayerObject *, float *))(*(_DWORD *)v2 + 92))(v2, &v72); PlayerObject::flipGravity((unsigned __int8 *)v2, *((unsigned __int8 *)v2 + 1959) ^ 1, 1); v60 = -PlayerObject::flipMod(v2); LODWORD(v61) = v2; PlayerObject::setYVelocity(v61, (double)v60, 36); *((_BYTE *)v2 + 1608) = 0; *((_BYTE *)v2 + 1901) = 0; PlayerObject::resetCollisionLog((cocos2d::CCDictionary **)v2, 1); if ( v4 ) *((float *)v2 + 529) = v73; else *((float *)v2 + 528) = v72; *((_QWORD *)v2 + 208) = *((_QWORD *)v2 + 266); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v89, (const cocos2d::CCPoint *)&v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v90, (const cocos2d::CCPoint *)&v72); this = PlayerObject::playSpiderDashEffect(v2, v89, &v90); if ( v68 ) { this = *((PlayerObject **)v2 + 610); if ( this ) return (PlayerObject *)GJBaseGameLayer::checkCameraLimitAfterTeleport(this, v2, 60.0); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source