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

GD Web Decomp

Raw Source