// // PlayerObject::spiderTestJumpY from 0x4454e8 to 0x445d8a (2210 bytes) // // 0 xrefs: // // 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:30 +0000 // int __fastcall PlayerObject::spiderTestJumpY(__int64 this) { int v1; // r4 GJBaseGameLayer *v2; // r8 float v3; // s18 float v4; // s19 const cocos2d::CCRect *v5; // r0 float v6; // s15 float v7; // s14 float *v8; // r10 cocos2d::CCArray *v9; // r6 cocos2d::CCArray *v10; // r7 size_t *v11; // r3 void *v12; // r0 size_t v13; // r1 int (**v14)(const void *, const void *); // r3 size_t *v15; // r3 void *v16; // r0 size_t v17; // r1 int (**v18)(const void *, const void *); // r3 unsigned int v19; // r11 const cocos2d::CCPoint *v20; // r0 int v21; // r9 int (*v22)(void); // r3 cocos2d::CCRect *v23; // r0 float v24; // r0 float v25; // s16 cocos2d::CCRect *v26; // r0 float v27; // r0 cocos2d::CCRect *v28; // r0 float v29; // r0 unsigned int i; // r9 int v31; // r0 const cocos2d::CCRect *v32; // r0 int v33; // r3 int v34; // r0 int v35; // r0 const cocos2d::CCPoint *v36; // r0 int v37; // r2 double v38; // r0 int v39; // r0 GameManager *v40; // r0 int v41; // r0 float v42; // r3 CCCircleWave *v43; // r0 CCCircleWave *v44; // r6 char *v45; // r3 char v46; // r1 char v47; // r2 char v48; // r3 GameManager *v49; // r0 GameManager *v50; // r0 int v51; // r3 int v52; // r0 CCCircleWave *v53; // r0 CCCircleWave *v54; // r6 char *v55; // r3 char v56; // r1 char v57; // r2 char v58; // r3 GameManager *v59; // r0 GameManager *v60; // r0 int v61; // r3 int v62; // r0 CCCircleWave *v63; // r0 CCCircleWave *v64; // r6 char *v65; // r3 char v66; // r1 char v67; // r2 char v68; // r3 GameManager *v69; // r0 GameManager *v70; // r0 int v71; // r3 int v72; // r0 float v73; // r2 cocos2d::CCEaseElasticOut *v74; // r0 float v75; // r2 cocos2d::CCAction *v76; // r6 cocos2d::CCNode *v77; // r0 int v78; // r1 cocos2d::CCNode *v79; // r6 GameManager *v80; // r0 int v81; // r0 void (__fastcall *v82)(cocos2d::CCNode *, _DWORD); // r7 float v83; // s16 float *v84; // r0 void (__fastcall *v85)(cocos2d::CCNode *, int *); // r7 int v86; // r1 cocos2d::CCArray *v87; // r0 int v88; // r7 cocos2d::CCSpriteFrameCache *v89; // r0 cocos2d::CCArray *v90; // r8 cocos2d::CCSpriteFrameCache *v91; // r0 const char *v92; // r1 cocos2d::CCSpriteFrameCache *v93; // r10 cocos2d::CCString *v94; // r0 const char *CString; // r0 cocos2d::CCObject *v96; // r0 float v97; // r2 cocos2d::CCAnimate *v98; // r0 cocos2d::CCAnimation *v99; // r1 cocos2d::CCSequence *v100; // r7 cocos2d::CCFiniteTimeAction *v101; // r0 cocos2d::CCAction *v102; // r0 int v104; // [sp+0h] [bp-94h] bool v105; // [sp+4h] [bp-90h] bool v106; // [sp+4h] [bp-90h] bool v107; // [sp+4h] [bp-90h] int v108; // [sp+8h] [bp-8Ch] int v109; // [sp+Ch] [bp-88h] float v110; // [sp+1Ch] [bp-78h] BYREF float v111; // [sp+20h] [bp-74h] float v112; // [sp+24h] [bp-70h] BYREF float v113; // [sp+28h] [bp-6Ch] _DWORD v114[2]; // [sp+2Ch] [bp-68h] BYREF float v115; // [sp+34h] [bp-60h] float v116; // [sp+38h] [bp-5Ch] float v117; // [sp+3Ch] [bp-58h] BYREF float v118; // [sp+40h] [bp-54h] float v119; // [sp+44h] [bp-50h] float v120; // [sp+48h] [bp-4Ch] float v121[2]; // [sp+4Ch] [bp-48h] BYREF float v122; // [sp+54h] [bp-40h] _BYTE v123[8]; // [sp+5Ch] [bp-38h] BYREF float v124; // [sp+64h] [bp-30h] int v125; // [sp+6Ch] [bp-28h] BYREF int v126; // [sp+70h] [bp-24h] int v127; // [sp+7Ch] [bp-18h] BYREF float v128; // [sp+80h] [bp-14h] float v129; // [sp+88h] [bp-Ch] v108 = HIDWORD(this); v1 = this; if ( *(_BYTE *)(this + 1960) || *(_BYTE *)(this + 2066) || *(_BYTE *)(this + 1601) ) return this; v2 = *(GJBaseGameLayer **)(this + 2440); v3 = COERCE_FLOAT(GJBaseGameLayer::getMinPortalY(v2)); v4 = COERCE_FLOAT(GJBaseGameLayer::getMaxPortalY(v2)); if ( *((_BYTE *)v2 + 689) || PlayerObject::isInBasicMode((PlayerObject *)v1) ) { v4 = 2490.0; v109 = 1; v3 = 90.0; } else { v109 = 0; } v5 = (const cocos2d::CCRect *)(*(int (__fastcall **)(int))(*(_DWORD *)v1 + 664))(v1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v114, v5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v117, (const cocos2d::CCRect *)v114); if ( *(_BYTE *)(v1 + 1959) ) { v7 = (float)(v118 - v3) + 2.0; v6 = v3; } else { v6 = (float)(v120 - 2.0) + v118; v7 = v4 - v6; } v120 = v7; v8 = (float *)(v1 + 2008); v118 = v6; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v121, (const cocos2d::CCRect *)&v117); v122 = v115; v121[0] = *(float *)v114; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, (const cocos2d::CCRect *)v121); v124 = v124 + 4.0; v122 = *(float *)(v1 + 2008) * 8.0; v121[0] = v121[0] + (float)((float)(v119 - v122) * 0.5); v119 = (float)(v115 * 0.5) + 1.0; v117 = v117 + (float)(v115 * 0.5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v127, (const cocos2d::CCRect *)&v117); v9 = (cocos2d::CCArray *)GJBaseGameLayer::staticObjectsInRect(v2, &v127, 1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v127, (const cocos2d::CCRect *)v121); v10 = (cocos2d::CCArray *)GJBaseGameLayer::damagingObjectsInRect(v2, &v127, 1); if ( !cocos2d::CCArray::count(v9) && cocos2d::CCArray::count(v10) || v108 ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v127, (const cocos2d::CCRect *)v123); v108 = 1; v9 = (cocos2d::CCArray *)GJBaseGameLayer::staticObjectsInRect(v2, &v127, 1); } if ( cocos2d::CCArray::count(v9) ) { v11 = *((size_t **)v9 + 13); v12 = (void *)v11[3]; v13 = *v11; if ( *(_BYTE *)(v1 + 1959) ) v14 = (int (**)(const void *, const void *))&boxCompMax; else v14 = (int (**)(const void *, const void *))&boxCompMin; qsort(v12, v13, 4u, *v14); } if ( cocos2d::CCArray::count(v10) ) { v15 = *((size_t **)v10 + 13); v16 = (void *)v15[3]; v17 = *v15; if ( *(_BYTE *)(v1 + 1959) ) v18 = (int (**)(const void *, const void *))&boxCompMax; else v18 = (int (**)(const void *, const void *))&boxCompMin; qsort(v16, v17, 4u, *v18); } if ( cocos2d::CCArray::count(v9) ) { v19 = 0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v125, (const cocos2d::CCRect *)v114); v20 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v1 + 96))(v1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v112, v20); while ( v19 < cocos2d::CCArray::count(v9) ) { v21 = cocos2d::CCArray::objectAtIndex(v9, v19); v22 = *(int (**)(void))(*(_DWORD *)v21 + 664); if ( *(_BYTE *)(v1 + 1959) ) { v26 = (cocos2d::CCRect *)v22(); v27 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(v26)); v25 = v27 + (float)(v116 * 0.5); } else { v23 = (cocos2d::CCRect *)v22(); v24 = COERCE_FLOAT(cocos2d::CCRect::getMinY(v23)); v25 = v24 - (float)(v116 * 0.5); } if ( *(_BYTE *)(v1 + 1959) ) { if ( v25 <= (float)(v113 + 10.0) ) { LABEL_35: v28 = (cocos2d::CCRect *)(*(int (__fastcall **)(int))(*(_DWORD *)v21 + 664))(v21); v29 = COERCE_FLOAT(cocos2d::CCRect::getMinX(v28)); if ( v29 > v112 ) { for ( i = 0; i < cocos2d::CCArray::count(v9); ++i ) { v31 = cocos2d::CCArray::objectAtIndex(v9, i); if ( v19 != i ) { *(float *)&v126 = v25 - (float)(v116 * 0.5); v32 = (const cocos2d::CCRect *)(*(int (__fastcall **)(int))(*(_DWORD *)v31 + 664))(v31); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v127, v32); v129 = v129 - 4.0; v128 = v128 + 2.0; if ( cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)&v127, (const cocos2d::CCRect *)&v125) ) goto LABEL_41; } } } if ( v25 != 0.0 ) goto LABEL_51; goto LABEL_43; } } else if ( v25 >= (float)(v113 - 10.0) ) { goto LABEL_35; } LABEL_41: ++v19; } goto LABEL_43; } if ( !cocos2d::CCArray::count(v10) ) { LABEL_43: v33 = 0; goto LABEL_47; } v34 = cocos2d::CCArray::objectAtIndex(v10, 0); (*(void (__fastcall **)(int *, int))(*(_DWORD *)v34 + 680))(&v127, v34); v25 = v128; if ( v128 != 0.0 ) goto LABEL_54; v33 = 1; LABEL_47: if ( *(_BYTE *)(v1 + 1959) ) v25 = v3 + (float)(v116 * 0.5); else v25 = v4 - (float)(v116 * 0.5); if ( v33 ) goto LABEL_54; LABEL_51: if ( cocos2d::CCArray::count(v10) ) { v35 = cocos2d::CCArray::objectAtIndex(v10, 0); (*(void (__fastcall **)(int *, int))(*(_DWORD *)v35 + 680))(&v127, v35); if ( !*(_BYTE *)(v1 + 1959) ) { if ( v128 >= v25 ) goto LABEL_54; LABEL_92: if ( !v108 ) { LODWORD(this) = PlayerObject::spiderTestJump((PlayerObject *)v1, 1); return this; } v25 = v128; goto LABEL_54; } if ( v128 > v25 ) goto LABEL_92; } LABEL_54: v36 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v1 + 96))(v1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, v36); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v112, v110, v25); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v1 + 92))(v1, &v112); PlayerObject::flipGravity((unsigned __int8 *)v1, *(unsigned __int8 *)(v1 + 1959) ^ 1, 1); v37 = -PlayerObject::flipMod((PlayerObject *)v1); LODWORD(v38) = v1; PlayerObject::setYVelocity(v38, (double)v37, 36); *(_BYTE *)(v1 + 1608) = 0; *(_BYTE *)(v1 + 1901) = 0; PlayerObject::resetCollisionLog((cocos2d::CCDictionary **)v1, 1); *(float *)(v1 + 2116) = v113; this = *(_QWORD *)(v1 + 2128); *(_QWORD *)(v1 + 1664) = this; if ( *(_BYTE *)(v1 + 1604) && !*(_BYTE *)(v1 + 1483) ) { v39 = PlayerObject::reverseMod((PlayerObject *)v1); v110 = v110 + (float)((float)v39 * 7.5); v40 = (GameManager *)PlayerObject::reverseMod((PlayerObject *)v1); v112 = v112 + (float)((float)(int)v40 * 7.5); v41 = GameManager::sharedState(v40); LODWORD(v42) = *(unsigned __int8 *)(v41 + 725); if ( !*(_BYTE *)(v41 + 725) ) { v112 = v112 + 6.0; v43 = CCCircleWave::create( COERCE_CCCIRCLEWAVE_((float)(*v8 * 10.0) * 1.3), 1.0, (cocos2d::CCActionTween *)0x3E19999A, v42, SLOBYTE(v42), v105); v44 = v43; if ( *(_BYTE *)(v1 + 2153) ) v45 = (char *)(v1 + 2106); else v45 = (char *)(v1 + 2109); v46 = *v45; v47 = v45[1]; v48 = v45[2]; *((_BYTE *)v43 + 280) = v46; *((_BYTE *)v43 + 281) = v47; *((_BYTE *)v43 + 282) = v48; (*(void (__fastcall **)(CCCircleWave *, float *))(*(_DWORD *)v43 + 92))(v43, &v110); v49 = (GameManager *)(*(int (__fastcall **)(_DWORD, CCCircleWave *, _DWORD))(**(_DWORD **)(v1 + 2444) + 232))( *(_DWORD *)(v1 + 2444), v44, 0); v50 = (GameManager *)GameManager::sharedState(v49); v51 = *((_DWORD *)v50 + 101); if ( v51 ) v51 += 11688; *((_DWORD *)v44 + 77) = v51; v52 = GameManager::sharedState(v50); PlayLayer::addCircle(*(cocos2d::CCArray ***)(v52 + 404), v44); *((_DWORD *)v44 + 75) = 1054280254; v53 = CCCircleWave::create( COERCE_CCCIRCLEWAVE_((float)(*v8 * 20.0) * 1.3), 2.0, (cocos2d::CCActionTween *)0x3E800000, 0.0, 0, v106); v54 = v53; if ( *(_BYTE *)(v1 + 2153) ) v55 = (char *)(v1 + 2106); else v55 = (char *)(v1 + 2109); v56 = *v55; v57 = v55[1]; v58 = v55[2]; *((_BYTE *)v53 + 280) = v56; *((_BYTE *)v53 + 281) = v57; *((_BYTE *)v53 + 282) = v58; (*(void (__fastcall **)(CCCircleWave *, float *))(*(_DWORD *)v53 + 92))(v53, &v112); v59 = (GameManager *)(*(int (__fastcall **)(_DWORD, CCCircleWave *, _DWORD))(**(_DWORD **)(v1 + 2444) + 232))( *(_DWORD *)(v1 + 2444), v54, 0); v60 = (GameManager *)GameManager::sharedState(v59); v61 = *((_DWORD *)v60 + 101); if ( v61 ) v61 += 11688; *((_DWORD *)v54 + 77) = v61; v62 = GameManager::sharedState(v60); PlayLayer::addCircle(*(cocos2d::CCArray ***)(v62 + 404), v54); *((_DWORD *)v54 + 75) = 1062668862; v63 = CCCircleWave::create( COERCE_CCCIRCLEWAVE_(*v8 * 10.0), (float)(*v8 * 30.0) * 1.5, (cocos2d::CCActionTween *)0x3E800000, 0.0, 0, v107); v64 = v63; if ( *(_BYTE *)(v1 + 2153) ) v65 = (char *)(v1 + 2106); else v65 = (char *)(v1 + 2109); v66 = *v65; v67 = v65[1]; v68 = v65[2]; *((_BYTE *)v63 + 280) = v66; *((_BYTE *)v63 + 281) = v67; *((_BYTE *)v63 + 282) = v68; (*(void (__fastcall **)(CCCircleWave *, float *))(*(_DWORD *)v63 + 92))(v63, &v112); v69 = (GameManager *)(*(int (__fastcall **)(_DWORD, CCCircleWave *, _DWORD))(**(_DWORD **)(v1 + 2444) + 232))( *(_DWORD *)(v1 + 2444), v64, 0); v70 = (GameManager *)GameManager::sharedState(v69); v71 = *((_DWORD *)v70 + 101); if ( v71 ) v71 += 11688; *((_DWORD *)v64 + 77) = v71; v72 = GameManager::sharedState(v70); PlayLayer::addCircle(*(cocos2d::CCArray ***)(v72 + 404), v64); *((_DWORD *)v64 + 73) = 1; } LOWORD(v104) = -1; BYTE2(v104) = -1; PlayerObject::flashPlayer(v1, 1050253722, 1028443341, 0xFFFFFF, v104); cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(v1 + 1736), 10); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v1 + 1736) + 80))(*(_DWORD *)(v1 + 1736), 1053609165); v74 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3EE66666, 1.0, v73); v76 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v74, (cocos2d::CCActionInterval *)0x3EB33333, v75); (*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v76 + 36))(v76, 10); LODWORD(this) = cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(v1 + 1736), v76); if ( *(_BYTE *)(v1 + 1604) ) { v77 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"spiderDash_002.png", (const char *)HIDWORD(this)); if ( *(_BYTE *)(v1 + 1959) ) v78 = 1119092736; else v78 = -1028390912; v79 = v77; v80 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v77 + 180))(v77, v78); v81 = GameManager::sharedState(v80); (*(void (__fastcall **)(_DWORD, cocos2d::CCNode *, int))(**(_DWORD **)(*(_DWORD *)(v81 + 404) + 2436) + 232))( *(_DWORD *)(*(_DWORD *)(v81 + 404) + 2436), v79, 40); v125 = 770; v126 = 1; (*(void (__fastcall **)(cocos2d::CCNode *, int, int))(*(_DWORD *)v79 + 540))(v79, 770, 1); v82 = *(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v79 + 64); v83 = fabsf(v111 - v113) + 30.0; v84 = (float *)(*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v79 + 164))(v79); v82(v79, v83 / *v84); v85 = *(void (__fastcall **)(cocos2d::CCNode *, int *))(*(_DWORD *)v79 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v127, v110, v111 + (float)((float)(v113 - v111) * 0.5)); v85(v79, &v127); if ( *(_BYTE *)(v1 + 2153) ) v86 = v1 + 2106; else v86 = v1 + 2109; v87 = (cocos2d::CCArray *)(*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v79 + 480))(v79, v86); v88 = 1; v89 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::create(v87); v90 = v89; do { v91 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v89); v92 = (const char *)v88++; v93 = v91; v94 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"spiderDash_%03d.png", v92); CString = (const char *)cocos2d::CCString::getCString(v94); v96 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v93, CString); v89 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v90, v96); } while ( v88 != 9 ); v98 = (cocos2d::CCAnimate *)cocos2d::CCAnimation::createWithSpriteFrames(v90, (cocos2d::CCArray *)0x3D23D70A, v97); v100 = (cocos2d::CCSequence *)cocos2d::CCAnimate::create(v98, v99); v127 = 268; LODWORD(v128) = 1; v101 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v79, 268, 1); v102 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v100, v101, 0); LODWORD(this) = cocos2d::CCNode::runAction(v79, v102); } } if ( !*(_BYTE *)(v1 + 1483) && (!*(_BYTE *)(v1 + 1958) || !*(_BYTE *)(v1 + 2320)) ) LODWORD(this) = cocos2d::CCParticleSystem::resetSystem(*(cocos2d::CCParticleSystem **)(v1 + 1744)); if ( v109 ) { LODWORD(this) = *(_DWORD *)(v1 + 2440); if ( (_DWORD)this ) LODWORD(this) = GJBaseGameLayer::checkCameraLimitAfterTeleport((GJBaseGameLayer *)this, (PlayerObject *)v1, 60.0); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source