// // PlayerObject::spiderTestJumpY from 0x764800 to 0x7652c4 (2756 bytes) // // 1 xrefs: // > @ 0x92ab8 // // 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:06 +0000 // __int64 __fastcall PlayerObject::spiderTestJumpY(PlayerObject *this, unsigned __int8 a2) { int v2; // w27 GJBaseGameLayer *v5; // x19 float v6; // s0 float v7; // s13 float v8; // s0 float v9; // s14 const cocos2d::CCRect *v10; // x0 float v11; // s0 float v12; // s1 cocos2d::CCArray *v13; // x21 unsigned int *v14; // x1 void *v15; // x0 size_t v16; // x1 int (*v17)(const void *, const void *); // x3 unsigned int *v18; // x1 void *v19; // x0 size_t v20; // x1 int (*v21)(const void *, const void *); // x3 unsigned int v22; // w24 const cocos2d::CCPoint *v23; // x0 __int64 v24; // x0 __int64 v25; // x19 cocos2d::CCRect *v26; // x0 float v27; // s0 float v28; // s8 cocos2d::CCRect *v29; // x0 float v30; // s0 unsigned int v31; // w19 __int64 v32; // x0 const cocos2d::CCRect *v33; // x0 __int64 v34; // x0 const cocos2d::CCPoint *v35; // x0 int v36; // w0 int v37; // w0 GJBaseGameLayer *v38; // x0 cocos2d::CCRect *v39; // x0 float v40; // s0 GameManager *v41; // x0 CCCircleWave *v42; // x0 long double v43; // q0 cocos2d::CCScaleTo *v44; // x0 cocos2d::CCEaseElasticOut *v45; // x0 cocos2d::CCActionInterval *v46; // x1 cocos2d::CCAction *v47; // x19 const char *v48; // x1 cocos2d::CCNode *v49; // x21 long double v50; // q0 unsigned int v51; // w19 GameManager *v52; // x0 __int64 v53; // x0 void (__fastcall *v54)(cocos2d::CCNode *, float); // x24 float v55; // s8 float *v56; // x0 void (__fastcall *v57)(cocos2d::CCNode *, _BYTE *); // x24 char *v58; // x1 cocos2d::CCArray *v59; // x0 cocos2d::CCSpriteFrameCache *v60; // x0 cocos2d::CCArray *v61; // x25 cocos2d::CCSpriteFrameCache *v62; // x20 const char *v63; // x1 cocos2d::CCString *v64; // x0 const char *CString; // x0 cocos2d::CCObject *v66; // x0 cocos2d::CCArray *v67; // x1 cocos2d::CCAnimate *v68; // x0 cocos2d::CCAnimation *v69; // x1 cocos2d::CCSequence *v70; // x19 cocos2d::CCFiniteTimeAction *v71; // x0 cocos2d::CCAction *v72; // x0 int v73; // w19 __int64 v74; // x0 float v75; // s0 __int64 v76; // x0 __int64 v77; // x19 char *v78; // x2 __int64 v79; // x4 char v80; // w5 char v81; // w3 GameManager *v82; // x0 __int64 v83; // x0 GameManager *v84; // x0 __int64 v85; // x0 __int64 v86; // x0 __int64 v87; // x19 char *v88; // x2 __int64 v89; // x4 char v90; // w5 char v91; // w3 GameManager *v92; // x0 __int64 v93; // x0 GameManager *v94; // x0 __int64 v95; // x0 __int64 v96; // x0 __int64 v97; // x19 char *v98; // x2 __int64 v99; // x4 char v100; // w5 char v101; // w3 GameManager *v102; // x0 __int64 v103; // x0 GameManager *v104; // x0 __int64 v105; // x0 int v106; // [xsp+A4h] [xbp+A4h] cocos2d::CCArray *v107; // [xsp+A8h] [xbp+A8h] float v108; // [xsp+B0h] [xbp+B0h] BYREF float v109; // [xsp+B4h] [xbp+B4h] float v110; // [xsp+B8h] [xbp+B8h] BYREF float v111; // [xsp+C0h] [xbp+C0h] float v112; // [xsp+C4h] [xbp+C4h] float v113; // [xsp+C8h] [xbp+C8h] BYREF float v114; // [xsp+CCh] [xbp+CCh] float v115; // [xsp+D0h] [xbp+D0h] float v116; // [xsp+D4h] [xbp+D4h] float v117; // [xsp+D8h] [xbp+D8h] BYREF float v118; // [xsp+E0h] [xbp+E0h] _BYTE v119[8]; // [xsp+E8h] [xbp+E8h] BYREF float v120; // [xsp+F0h] [xbp+F0h] float v121; // [xsp+F8h] [xbp+F8h] BYREF float v122; // [xsp+FCh] [xbp+FCh] _BYTE v123[4]; // [xsp+108h] [xbp+108h] BYREF float v124; // [xsp+10Ch] [xbp+10Ch] float v125; // [xsp+114h] [xbp+114h] v2 = a2; if ( *((_BYTE *)this + 2424) || *((_BYTE *)this + 2530) || *((_BYTE *)this + 1969) ) return _stack_chk_guard; v5 = *((GJBaseGameLayer **)this + 377); GJBaseGameLayer::getMinPortalY(v5); v7 = v6; GJBaseGameLayer::getMaxPortalY(v5); v9 = v8; if ( *((_BYTE *)v5 + 785) || (unsigned __int8)PlayerObject::isInBasicMode(this) ) { v9 = 2490.0; v7 = 90.0; v106 = 1; } else { v106 = 0; } v10 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 1328LL))(this); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v110, v10); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v113, (const cocos2d::CCRect *)&v110); if ( *((_BYTE *)this + 2423) ) { v11 = v7; v12 = (float)(v114 - v7) + 2.0; } else { v11 = (float)(v116 - 2.0) + v114; v12 = v9 - v11; } v116 = v12; v114 = v11; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v117, (const cocos2d::CCRect *)&v113); v118 = v111; v117 = v110; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v119, (const cocos2d::CCRect *)&v117); v118 = *((float *)this + 618) * 8.0; v113 = v113 + (float)(v111 * 0.5); v117 = v117 + (float)((float)(v115 - v118) * 0.5); v115 = (float)(v111 * 0.5) + 1.0; v120 = v120 + 4.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, (const cocos2d::CCRect *)&v113); v13 = (cocos2d::CCArray *)GJBaseGameLayer::staticObjectsInRect(v5, v123, 1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, (const cocos2d::CCRect *)&v117); v107 = (cocos2d::CCArray *)GJBaseGameLayer::damagingObjectsInRect(v5, v123, 1); if ( !(unsigned int)cocos2d::CCArray::count(v13) && (unsigned int)cocos2d::CCArray::count(v107) || v2 ) { v2 = 1; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, (const cocos2d::CCRect *)v119); v13 = (cocos2d::CCArray *)GJBaseGameLayer::staticObjectsInRect(v5, v123, 1); } if ( (unsigned int)cocos2d::CCArray::count(v13) ) { v14 = *((unsigned int **)v13 + 7); v15 = *((void **)v14 + 2); v16 = *v14; if ( *((_BYTE *)this + 2423) ) v17 = (int (*)(const void *, const void *))boxCompMax; else v17 = (int (*)(const void *, const void *))boxCompMin; qsort(v15, v16, 8u, v17); } if ( (unsigned int)cocos2d::CCArray::count(v107) ) { v18 = *((unsigned int **)v107 + 7); v19 = *((void **)v18 + 2); v20 = *v18; if ( *((_BYTE *)this + 2423) ) v21 = (int (*)(const void *, const void *))boxCompMax; else v21 = (int (*)(const void *, const void *))boxCompMin; qsort(v19, v20, 8u, v21); } if ( (unsigned int)cocos2d::CCArray::count(v13) ) { v22 = 0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v121, (const cocos2d::CCRect *)&v110); v23 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v108, v23); while ( 1 ) { if ( v22 >= (unsigned int)cocos2d::CCArray::count(v13) ) goto LABEL_62; v24 = cocos2d::CCArray::objectAtIndex(v13, v22); v25 = v24; if ( *((_BYTE *)this + 2423) ) { v39 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 1328LL))(v24); cocos2d::CCRect::getMaxY(v39); v28 = v40 + (float)(v112 * 0.5); } else { v26 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 1328LL))(v24); cocos2d::CCRect::getMinY(v26); v28 = v27 - (float)(v112 * 0.5); } if ( *((_BYTE *)this + 2423) ) { if ( v28 > (float)(v109 + 10.0) ) goto LABEL_43; } else if ( v28 < (float)(v109 - 10.0) ) { goto LABEL_43; } v29 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 1328LL))(v25); cocos2d::CCRect::getMinX(v29); if ( v30 <= v108 || (v31 = 0, !(unsigned int)cocos2d::CCArray::count(v13)) ) { LABEL_32: if ( v28 == 0.0 ) goto LABEL_62; goto LABEL_33; } while ( 1 ) { v32 = cocos2d::CCArray::objectAtIndex(v13, v31); if ( v22 != v31 ) { v122 = v28 - (float)(v112 * 0.5); v33 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 1328LL))(v32); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, v33); v125 = v125 - 4.0; v124 = v124 + 2.0; if ( (unsigned __int8)cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)v123, (const cocos2d::CCRect *)&v121) ) break; } if ( ++v31 >= (unsigned int)cocos2d::CCArray::count(v13) ) goto LABEL_32; } LABEL_43: ++v22; } } if ( (unsigned int)cocos2d::CCArray::count(v107) ) { v74 = cocos2d::CCArray::objectAtIndex(v107, 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v74 + 1360LL))(v74); v28 = v124; if ( v124 != 0.0 ) goto LABEL_37; v73 = 1; } else { LABEL_62: v73 = 0; } if ( *((_BYTE *)this + 2423) ) { v28 = v7 + (float)(v112 * 0.5); if ( v73 ) goto LABEL_37; } else { v28 = v9 - (float)(v112 * 0.5); if ( v73 ) goto LABEL_37; } LABEL_33: if ( !(unsigned int)cocos2d::CCArray::count(v107) ) goto LABEL_37; v34 = cocos2d::CCArray::objectAtIndex(v107, 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v34 + 1360LL))(v34); if ( *((_BYTE *)this + 2423) ) { if ( v28 >= v124 ) goto LABEL_37; } else if ( v28 <= v124 ) { goto LABEL_37; } v28 = v124; if ( !v2 ) { PlayerObject::spiderTestJump(this, 1u); return _stack_chk_guard; } LABEL_37: v35 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v108, v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, v108, v28); (*(void (__fastcall **)(PlayerObject *, float *))(*(_QWORD *)this + 184LL))(this, &v121); PlayerObject::flipGravity((__int64)this, *((_BYTE *)this + 2423) ^ 1, 1u); v36 = PlayerObject::flipMod(this); PlayerObject::setYVelocity((__int64)this, (double)-v36); *((_BYTE *)this + 1976) = 0; *((_BYTE *)this + 2365) = 0; PlayerObject::resetCollisionLog((cocos2d::CCDictionary **)this, 1u); v37 = *((unsigned __int8 *)this + 1972); *((_QWORD *)this + 254) = *((_QWORD *)this + 328); *((float *)this + 653) = v122; if ( !v37 ) { LABEL_57: if ( !*((_BYTE *)this + 1787) && (!*((_BYTE *)this + 2422) || !*((_BYTE *)this + 2832)) ) cocos2d::CCParticleSystem::resetSystem(*((cocos2d::CCParticleSystem **)this + 270)); goto LABEL_39; } if ( !*((_BYTE *)this + 1787) ) { v108 = v108 + (float)((float)(int)PlayerObject::reverseMod(this) * 7.5); v41 = (GameManager *)PlayerObject::reverseMod(this); v121 = v121 + (float)((float)(int)v41 * 7.5); v42 = (CCCircleWave *)*(unsigned __int8 *)(GameManager::sharedState(v41) + 925); if ( !(_DWORD)v42 ) { v75 = (float)(*((float *)this + 618) * 10.0) * 1.3; v121 = v121 + 6.0; v76 = CCCircleWave::create(v42, v75, 1.0, 0.15, 0); v77 = v76; v78 = (char *)this + 2605; v79 = *(_QWORD *)v76; if ( *((_BYTE *)this + 2649) ) v78 = (char *)this + 2602; v80 = *v78; v81 = v78[1]; *(_BYTE *)(v76 + 342) = v78[2]; *(_BYTE *)(v76 + 340) = v80; *(_BYTE *)(v76 + 341) = v81; (*(void (**)(void))(v79 + 184))(); v82 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 378) + 464LL))( *((_QWORD *)this + 378), v77, 0); v83 = *(_QWORD *)(GameManager::sharedState(v82) + 544); if ( v83 ) v84 = (GameManager *)(v83 + 13992); else v84 = nullptr; *(_QWORD *)(v77 + 368) = v84; v85 = GameManager::sharedState(v84); PlayLayer::addCircle(*(cocos2d::CCArray ***)(v85 + 544), (CCCircleWave *)v77); *(_DWORD *)(v77 + 360) = 1054280254; v86 = CCCircleWave::create(nullptr, (float)(*((float *)this + 618) * 20.0) * 1.3, 2.0, 0.25, 0); v87 = v86; v88 = (char *)this + 2605; v89 = *(_QWORD *)v86; if ( *((_BYTE *)this + 2649) ) v88 = (char *)this + 2602; v90 = *v88; v91 = v88[1]; *(_BYTE *)(v86 + 342) = v88[2]; *(_BYTE *)(v86 + 340) = v90; *(_BYTE *)(v86 + 341) = v91; (*(void (**)(void))(v89 + 184))(); v92 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 378) + 464LL))( *((_QWORD *)this + 378), v87, 0); v93 = *(_QWORD *)(GameManager::sharedState(v92) + 544); if ( v93 ) v94 = (GameManager *)(v93 + 13992); else v94 = nullptr; *(_QWORD *)(v87 + 368) = v94; v95 = GameManager::sharedState(v94); PlayLayer::addCircle(*(cocos2d::CCArray ***)(v95 + 544), (CCCircleWave *)v87); *(_DWORD *)(v87 + 360) = 1062668862; v96 = CCCircleWave::create( nullptr, *((float *)this + 618) * 10.0, (float)(*((float *)this + 618) * 30.0) * 1.5, 0.25, 0); v97 = v96; v98 = (char *)this + 2605; v99 = *(_QWORD *)v96; if ( *((_BYTE *)this + 2649) ) v98 = (char *)this + 2602; v100 = *v98; v101 = v98[1]; *(_BYTE *)(v96 + 342) = v98[2]; *(_BYTE *)(v96 + 340) = v100; *(_BYTE *)(v96 + 341) = v101; (*(void (**)(void))(v99 + 184))(); v102 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 378) + 464LL))( *((_QWORD *)this + 378), v97, 0); v103 = *(_QWORD *)(GameManager::sharedState(v102) + 544); if ( v103 ) v104 = (GameManager *)(v103 + 13992); else v104 = nullptr; *(_QWORD *)(v97 + 368) = v104; v105 = GameManager::sharedState(v104); PlayLayer::addCircle(*(cocos2d::CCArray ***)(v105 + 544), (CCCircleWave *)v97); *(_DWORD *)(v97 + 352) = 1; } LODWORD(v43) = 1050253722; PlayerObject::flashPlayer((__int64)this, 0xFFFFFF, 0xFFFFFF, v43, 0.05); cocos2d::CCNode::stopActionByTag(*((cocos2d::CCNode **)this + 268), 10); v44 = (cocos2d::CCScaleTo *)(*(__int64 (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 268) + 160LL))( *((_QWORD *)this + 268), 0.4); v45 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create(v44, 0.45, 1.0); v47 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v45, v46, 0.35); (*(void (__fastcall **)(cocos2d::CCAction *, __int64))(*(_QWORD *)v47 + 72LL))(v47, 10); cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 268), v47); if ( *((_BYTE *)this + 1972) ) { v49 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"spiderDash_002.png", v48); if ( *((_BYTE *)this + 2423) ) LODWORD(v50) = 1119092736; else LODWORD(v50) = -1028390912; v51 = 1; v52 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCNode *, long double))(*(_QWORD *)v49 + 360LL))( v49, v50); v53 = GameManager::sharedState(v52); (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**(_QWORD **)(*(_QWORD *)(v53 + 544) + 3920LL) + 464LL))( *(_QWORD *)(*(_QWORD *)(v53 + 544) + 3920LL), v49, 40); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v49 + 1080LL))(v49, 0x100000302LL); v54 = *(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v49 + 128LL); v55 = vabds_f32(v109, v122) + 30.0; v56 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v49 + 328LL))(v49); v54(v49, v55 / *v56); v57 = *(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_QWORD *)v49 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, v108, v109 + (float)((float)(v122 - v109) * 0.5)); v57(v49, v123); v58 = (char *)this + 2605; if ( *((_BYTE *)this + 2649) ) v58 = (char *)this + 2602; v59 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCNode *, char *))(*(_QWORD *)v49 + 960LL))( v49, v58); v60 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::create(v59); v61 = v60; do { v62 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v60); v63 = (const char *)v51++; v64 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"spiderDash_%03d.png", v63); CString = (const char *)cocos2d::CCString::getCString(v64); v66 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v62, CString); v60 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v61, v66); } while ( v51 != 9 ); v68 = (cocos2d::CCAnimate *)cocos2d::CCAnimation::createWithSpriteFrames(v61, v67, 0.04); v70 = (cocos2d::CCSequence *)cocos2d::CCAnimate::create(v68, v69); v71 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v49, 536, 1); v72 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v70, v71, 0); cocos2d::CCNode::runAction(v49, v72); } goto LABEL_57; } LABEL_39: if ( v106 ) { v38 = *((GJBaseGameLayer **)this + 377); if ( v38 ) GJBaseGameLayer::checkCameraLimitAfterTeleport(v38, this, 60.0); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source