// // PlayerObject::update from 0x448a18 to 0x449508 (2800 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:32 +0000 // void __fastcall PlayerObject::update(PlayerObject *this, float a2) { double v4; // d10 float *v5; // r7 double v6; // d10 double v7; // d7 PlayerObject *v8; // r0 unsigned __int8 *v9; // r1 void (__fastcall *v10)(PlayerObject *, _DWORD *); // r8 float v11; // s15 int v12; // r0 float v13; // s15 int v14; // r0 char v15; // r3 double *v16; // r5 double v17; // d5 _QWORD *v18; // r3 double v19; // d6 cocos2d *LastPosition; // r7 const cocos2d::CCPoint *v21; // r0 const cocos2d::CCPoint *v22; // r2 int v23; // r0 float v24; // s22 double v25; // r0 float v26; // s15 double v27; // d9 float v28; // s11 double v29; // d9 double v30; // d12 double v31; // d8 double v32; // d9 double v33; // d7 double v34; // d9 double *v35; // r3 double v36; // d6 double v37; // d5 double v38; // d7 float v39; // s13 double *v40; // r7 double v41; // d11 double v42; // d7 void (__fastcall *v43)(PlayerObject *, _DWORD *); // r10 int v44; // r0 float v45; // s15 float v46; // r1 float v47; // s15 int v48; // r11 double v49; // d7 double v50; // d8 double v51; // d6 cocos2d::CCDirector *isFlying; // r0 char v53; // r3 double v54; // d6 HardStreak *v55; // r5 int v56; // r0 GameManager *WinSize; // r0 float v58; // s16 HardStreak *v59; // r5 GameManager *v60; // r0 float v61; // s17 int v62; // r0 int *v63; // r0 int v64; // r3 double v65; // d7 float v66; // r3 cocos2d::CCSequence *v67; // r10 float v68; // r3 cocos2d::CCFiniteTimeAction *v69; // r9 float v70; // r3 int v71; // r8 float v72; // r3 int v73; // r7 float v74; // r3 int v75; // r0 cocos2d::CCAction *v76; // r0 int v77; // r0 double v78; // d7 int v79; // r0 float v80; // s15 float v81; // s14 float *v82; // r1 int v83; // r0 int v84; // r5 void (__fastcall *v85)(int, _DWORD); // r7 float v86; // s15 float v87; // s14 int v88; // r5 void (__fastcall *v89)(int, _DWORD); // r7 float v90; // r0 float v91; // s14 cocos2d::CCTextureCache *v92; // r0 int v93; // r7 void (__fastcall *v94)(int, int); // r8 cocos2d::CCTextureCache *v95; // r0 float v96; // s15 cocos2d::CCTextureCache *v97; // r9 const char *v98; // r1 int v99; // r0 int v100; // r3 float v101; // s14 float v102; // r1 cocos2d::CCSequence *v103; // r0 cocos2d::CCSequence *v104; // r7 cocos2d::CCFiniteTimeAction *v105; // r0 cocos2d::CCAction *v106; // r5 float v107; // r3 cocos2d::CCHide *v108; // r7 cocos2d::CCFiniteTimeAction *v109; // r0 cocos2d::CCAction *v110; // r5 float v111[2]; // [sp+8h] [bp-24h] BYREF _DWORD v112[2]; // [sp+10h] [bp-1Ch] BYREF int v113[3]; // [sp+18h] [bp-14h] BYREF v4 = *((double *)this + 205); if ( v4 >= 0.0 ) { v5 = (float *)((char *)this + 1648); v6 = *((double *)this + 266) - v4 - *((float *)this + 413); v7 = *((float *)this + 412); if ( v6 < v7 ) { if ( v6 <= 0.0 ) goto LABEL_7; v10 = *(void (__fastcall **)(PlayerObject *, _DWORD *))(*(_DWORD *)this + 480); v11 = v6 / v7; v12 = GameToolbox::multipliedColorValue( *((_DWORD *)this + 414), *((unsigned __int16 *)this + 945) | (*((unsigned __int8 *)this + 1892) << 16), v11); LOWORD(v112[0]) = v12; BYTE2(v112[0]) = BYTE2(v12); v10(this, v112); v13 = v6 / *v5; v14 = GameToolbox::multipliedColorValue( *((unsigned __int8 *)this + 1659) | (*((unsigned __int8 *)this + 1660) << 8) | (*((unsigned __int8 *)this + 1661) << 16), *((unsigned __int8 *)this + 1893) | (*((unsigned __int8 *)this + 1894) << 8) | (*((unsigned __int8 *)this + 1895) << 16), v13); v9 = (unsigned __int8 *)v112; v15 = BYTE1(v14); LOBYTE(v112[0]) = v14; BYTE2(v112[0]) = BYTE2(v14); v8 = this; BYTE1(v112[0]) = v15; } else { *((_QWORD *)this + 205) = 0xBFF0000000000000LL; (*(void (__fastcall **)(PlayerObject *, char *))(*(_DWORD *)this + 480))(this, (char *)this + 1890); v8 = this; v9 = (unsigned __int8 *)this + 1893; } PlayerObject::setSecondColor((int)v8, v9); } LABEL_7: v16 = (double *)((char *)this + 1928); v17 = *((double *)this + 241); if ( v17 <= 1000.0 ) { if ( v17 < -1000.0 ) *v16 = -1000.0; } else { *v16 = 1000.0; } if ( *((_BYTE *)this + 2320) ) { v18 = (_QWORD *)((char *)this + 2200); v19 = *((double *)this + 275); if ( v19 <= 1000.0 ) { if ( v19 < -1000.0 ) *v18 = 0xC08F400000000000LL; } else { *v18 = 0x408F400000000000LL; } } if ( !*((_BYTE *)this + 1960) ) { LastPosition = (cocos2d *)GameObject::getLastPosition(this); v21 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); cocos2d::ccpDistance(LastPosition, v21, v22); v23 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); cocos2d::CCPoint::operator=((char *)this + 1060, v23); *((_DWORD *)this + 537) = 0; if ( *((_BYTE *)this + 2066) ) goto LABEL_80; v24 = a2 * 0.9; PlayerObject::updateJump(this, a2 * 0.9); if ( *((int *)this + 586) <= 0 ) { LABEL_53: if ( *((_BYTE *)this + 1996) ) { LODWORD(v25) = this; PlayerObject::setYVelocity(v25, 0.0, 1); } v29 = v24; v30 = *v16; if ( *((_BYTE *)this + 2320) ) PlayerObject::updateMove(this, a2 * 0.9); v31 = COERCE_DOUBLE(PlayerObject::getCurrentXVelocity(this)) * a2; if ( !*((_BYTE *)this + 1956) || *((_BYTE *)this + 1996) ) { if ( *((_BYTE *)this + 1996) ) { v35 = (double *)((char *)this + 1200); if ( *((_BYTE *)this + 2320) ) { v36 = *v35; v37 = *((double *)this + 149); v38 = v37 * v29; *((double *)this + 275) = v37; *v16 = v36; v34 = v36 * v29; goto LABEL_69; } v34 = v31 * *v35; } else { v34 = v30 * v29; } } else { v32 = -1.0; v33 = fabs(v31) * (double)PlayerObject::flipMod(this); if ( *((_BYTE *)this + 1901) ) v32 = 1.0; v34 = v33 * v32; if ( *((float *)this + 502) != 1.0 ) v34 = v34 + v34; } v38 = v31; LABEL_69: v39 = v34; *((float *)this + 537) = v39; if ( *((_BYTE *)this + 1962) && !*((_BYTE *)this + 2320) ) v38 = -v38; v40 = (double *)((char *)this + 1984); v41 = v38 + *((double *)this + 248); if ( *((_BYTE *)this + 1963) ) { v42 = v34; v34 = v41; v41 = v42; } v43 = *(void (__fastcall **)(PlayerObject *, _DWORD *))(*(_DWORD *)this + 92); v44 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this); v45 = v41; v46 = v45; v47 = v34; v48 = v44; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v111, v46, v47); cocos2d::CCPoint::operator+(v112, v48, v111); v43(this, v112); *v40 = 0.0; v49 = *((double *)this + 247); if ( v49 != 0.0 ) { v50 = v31 * 0.0199999996; v51 = fabs(v49); if ( v51 < v50 ) v50 = v51; if ( v49 <= 0.0 ) v50 = -v50; *v40 = v50; *((double *)this + 247) = v49 - v50; } LABEL_80: isFlying = (cocos2d::CCDirector *)PlayerObject::isFlying(this); if ( !isFlying ) { if ( !*((_BYTE *)this + 2036) || (isFlying = PlayerObject::levelFlipping(this)) != nullptr || *((_BYTE *)this + 2066) || *((_BYTE *)this + 1483) || *((_BYTE *)this + 2320) && fabs(*((double *)this + 275)) <= 2.5 ) { if ( *((_BYTE *)this + 1606) ) { isFlying = (cocos2d::CCDirector *)cocos2d::CCNode::getActionByTag(this, 3); if ( !isFlying ) { v103 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3D75C28F, v102); v112[1] = 0; v112[0] = PlayerObject::deactivateParticle; v104 = v103; v105 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create( this, PlayerObject::deactivateParticle, 0); v106 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v104, v105, 0); (*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v106 + 36))(v106, 3); isFlying = (cocos2d::CCDirector *)cocos2d::CCNode::runAction(this, v106); } } } else { if ( !*((_BYTE *)this + 1606) ) cocos2d::CCParticleSystem::resumeSystem(*((cocos2d::CCParticleSystem **)this + 436)); *((_BYTE *)this + 1606) = 1; isFlying = (cocos2d::CCDirector *)cocos2d::CCNode::stopActionByTag(this, 3); } LABEL_111: *(float *)(*((_DWORD *)this + 388) + 360) = (float)((float)(*((float *)this + 535) - 0.1) * 2.1) + 0.4; if ( *((_BYTE *)this + 1604) ) { if ( *((_BYTE *)this + 1962) ) { cocos2d::CCDirector::sharedDirector(isFlying); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v111); v58 = v111[0]; v59 = *((HardStreak **)this + 388); v60 = (GameManager *)GameManager::sharedState(WinSize); v61 = *(float *)(*((_DWORD *)v60 + 101) + 996); v62 = GameManager::sharedState(v60); HardStreak::clearAboveXPos(v59, v61 + (float)(v58 / *(float *)(*(_DWORD *)(v62 + 404) + 328))); } else { v55 = *((HardStreak **)this + 388); v56 = GameManager::sharedState(isFlying); HardStreak::clearBehindXPos(v55, *(float *)(*(_DWORD *)(v56 + 404) + 996)); } } v63 = *((int **)this + 608); if ( v63 ) { v64 = *v63; if ( *((_BYTE *)this + 1957) && *((_BYTE *)this + 1901) && !*((_BYTE *)this + 1924) && *((_BYTE *)this + 2052) && (v65 = *((double *)this + 210), v65 > 0.270000011) && v65 < 1.5 ) { if ( !(*(int (**)(void))(v64 + 176))() ) { cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)this + 608)); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 608) + 80))( *((_DWORD *)this + 608), 1036831949); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 608) + 172))(*((_DWORD *)this + 608), 1); v67 = (cocos2d::CCSequence *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3D4CCCCD, 1.44, 0.9, v66); v69 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCScaleTo::create( (cocos2d::CCScaleTo *)0x3D4CCCCD, 0.72, 1.35, v68); v71 = cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3D4CCCCD, 1.8, 0.9, v70); v73 = cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3D4CCCCD, 0.9, 1.35, v72); v75 = cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3D4CCCCD, 1.8, 0.9, v74); v76 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v67, v69, v71, v73, v75, 0); cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 608), v76); cocos2d::CCParticleSystem::resumeSystem(*((cocos2d::CCParticleSystem **)this + 441)); } } else if ( (*(int (**)(void))(v64 + 176))() && !cocos2d::CCNode::getActionByTag(*((cocos2d::CCNode **)this + 608), 9) ) { cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)this + 608)); v108 = (cocos2d::CCHide *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3E19999A, 0.05, 0.1, v107); v109 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCHide::create(v108); v110 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v108, v109, 0); (*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v110 + 36))(v110, 9); cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 608), v110); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 441)); } } v77 = *((_DWORD *)this + 441); if ( *((_BYTE *)this + 1957) && *((_BYTE *)this + 1901) && !*((_BYTE *)this + 1924) && *((_BYTE *)this + 2052) && (v78 = *((double *)this + 210), v78 > 0.100000001) && v78 < 1.5 && !*((_BYTE *)this + 1483) ) { if ( !(*(int (__fastcall **)(int))(*(_DWORD *)v77 + 632))(v77) ) cocos2d::CCParticleSystem::resumeSystem(*((cocos2d::CCParticleSystem **)this + 441)); } else if ( (*(int (__fastcall **)(int))(*(_DWORD *)v77 + 632))(v77) ) { cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 441)); } v79 = *((_DWORD *)this + 372); *((_BYTE *)this + 1740) = 0; if ( !v79 ) goto LABEL_146; if ( *((_BYTE *)this + 1957) ) { v80 = 7.0; v81 = *(float *)((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*((_DWORD *)this + 433) + 600) + 96))(*(_DWORD *)(*((_DWORD *)this + 433) + 600)) + 4); } else { if ( !*((_BYTE *)this + 1958) ) { v83 = v79 + 316; v82 = (float *)&unk_D2B834; goto LABEL_145; } v80 = 2.0; v81 = *(float *)((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*((_DWORD *)this + 434) + 600) + 96))(*(_DWORD *)(*((_DWORD *)this + 434) + 600)) + 4); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v111, 0.0, v80 + (float)(v81 * 0.4)); v82 = v111; v83 = *((_DWORD *)this + 372) + 316; LABEL_145: cocos2d::CCPoint::operator=(v83, v82); LABEL_146: if ( *((_BYTE *)this + 1996) ) PlayerObject::updateDashAnimation(this); if ( *((_BYTE *)this + 1964) ) { v84 = *((_DWORD *)this + 443); v85 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v84 + 504); v86 = 90.0; v87 = (float)(45.0 - COERCE_FLOAT((*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 184))(this))) - 180.0; if ( !*((_BYTE *)this + 1962) ) v86 = 0.0; v85(v84, v87 + v86); v88 = *((_DWORD *)this + 444); v89 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v88 + 504); v90 = COERCE_FLOAT((*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 184))(this)); v91 = -90.0; if ( !*((_BYTE *)this + 1962) ) v91 = 0.0; v89(v88, (float)((float)((float)-v90 - 45.0) - 180.0) + v91); } PlayerObject::updateJumpVariables(this); PlayerObject::updateStateVariables(this); v93 = *((_DWORD *)this + 387); if ( v93 ) { v94 = *(void (__fastcall **)(int, int))(*(_DWORD *)v93 + 508); v95 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v92); v96 = *((double *)this + 266); v97 = v95; getFrameForStreak(v113, *((_DWORD *)this + 453), v96); if ( (v113[0] & 1) != 0 ) v98 = (const char *)v113[2]; else v98 = (char *)v113 + 1; v99 = cocos2d::CCTextureCache::addImage(v97, v98, 0); v94(v93, v99); std::string::~string((int)v113); } if ( *((_BYTE *)this + 2320) ) { if ( *((_BYTE *)this + 1996) ) { v100 = *((_DWORD *)this + 306); if ( v100 ) { v101 = *(float *)(v100 + 1660); if ( v101 > 0.0 && *((double *)this + 266) - *((double *)this + 152) > v101 ) { PlayerObject::stopDashing((char *)this); *((_BYTE *)this + 1901) = 0; } } } } return; } if ( *((_BYTE *)this + 1953) ) { if ( !*((_BYTE *)this + 1901) || PlayerObject::levelFlipping(this) || *((_BYTE *)this + 1483) ) { if ( *((_BYTE *)this + 1607) ) cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 438)); v53 = 0; } else { if ( !*((_BYTE *)this + 1607) ) cocos2d::CCParticleSystem::resumeSystem(*((cocos2d::CCParticleSystem **)this + 438)); v53 = 1; } *((_BYTE *)this + 1607) = v53; } if ( !*((_BYTE *)this + 1956) && *((_BYTE *)this + 2036) ) { v54 = *v16; if ( !*((_BYTE *)this + 1959) ) { if ( v54 <= -1.0 ) goto LABEL_110; LABEL_102: if ( !*((_BYTE *)this + 2066) && !*((_BYTE *)this + 1483) && (!*((_BYTE *)this + 2320) || *((_BYTE *)this + 2209) || *((_BYTE *)this + 2208) || *((_BYTE *)this + 2297) || *((_BYTE *)this + 2298)) ) { isFlying = (cocos2d::CCDirector *)cocos2d::CCParticleSystem::resumeSystem(*((cocos2d::CCParticleSystem **)this + 439)); goto LABEL_111; } goto LABEL_110; } if ( v54 < 1.0 ) goto LABEL_102; } LABEL_110: isFlying = (cocos2d::CCDirector *)cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 439)); goto LABEL_111; } if ( *((_BYTE *)this + 1953) ) { v26 = 0.47; } else if ( *((_BYTE *)this + 1954) ) { v26 = 0.58; } else if ( *((_BYTE *)this + 1964) ) { v26 = 0.4; } else if ( *((_BYTE *)this + 1955) || *((_BYTE *)this + 1958) ) { v26 = 0.6; } else if ( *((_BYTE *)this + 1957) ) { v26 = 0.9; } else { v26 = 1.0; } if ( *((float *)this + 502) != 1.0 ) { if ( *((_BYTE *)this + 1953) ) { v26 = 0.5875; } else if ( *((_BYTE *)this + 1954) ) { v26 = 0.725; } else if ( *((_BYTE *)this + 1964) ) { v26 = 0.61538; } } LODWORD(v25) = this; v27 = (float)((float)(v24 * *((float *)this + 588)) * v26); PlayerObject::addToYVelocity(v25, v27, 69); if ( v27 != 0.0 ) *((_BYTE *)this + 1850) = 1; if ( *((_BYTE *)this + 1959) ) { if ( v27 >= 0.0 ) goto LABEL_46; } else if ( v27 <= 0.0 ) { LABEL_46: if ( *((_BYTE *)this + 2320) ) { v28 = *((float *)this + 587); *((double *)this + 275) = *((double *)this + 275) + (float)(v28 * v24); if ( v28 != 0.0 ) *((_BYTE *)this + 2356) = 1; if ( PlayerObject::isInNormalMode(this) && !*((_BYTE *)this + 1480) && fabsf(*((float *)this + 587)) > 0.1 ) PlayerObject::runNormalRotation(this, 1, 1.0); } goto LABEL_53; } *((double *)this + 210) = *((double *)this + 210) + v27 / 12.9399996 * 1.5; goto LABEL_46; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source