// // PlayerObject::rotateGameplay from 0x43a6b0 to 0x43a8f6 (582 bytes) // // 3 xrefs: // > PlayerObject::resetObject @ 0x44023a // > GJBaseGameLayer::rotateGameplay @ 0x5a8b92 // > GJBaseGameLayer::rotateGameplay @ 0x5a8bc2 // // 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:21 +0000 // int __fastcall PlayerObject::rotateGameplay( PlayerObject *this, int a2, int a3, int a4, float a5, float a6, bool a7, bool a8) { double v12; // d9 __int64 v13; // r0 int v14; // r9 _BOOL4 v15; // r3 int v16; // r7 double v17; // d10 int v18; // r1 int v19; // r5 int v20; // r1 __int64 v21; // r0 int v22; // r2 int v23; // r1 int v24; // r2 int v25; // r3 float v26; // s15 float v27; // r1 float v28; // s15 float v29; // s15 float v30; // s14 float v31; // s14 double *v32; // r3 double v33; // d7 double v34; // d7 double v35; // d7 double v36; // d7 float v38; // [sp+4h] [bp-14h] BYREF float v39; // [sp+8h] [bp-10h] float v40[2]; // [sp+Ch] [bp-Ch] BYREF v12 = *((double *)this + 241); *(double *)&v13 = COERCE_DOUBLE(PlayerObject::getCurrentXVelocity(this)); v14 = *((unsigned __int8 *)this + 1959); v15 = (unsigned int)(a2 - 3) <= 1; v16 = *((unsigned __int8 *)this + 1963) ^ v15; *((_BYTE *)this + 1963) = v15; v17 = *(double *)&v13; v18 = a2 == 1 || a2 == 4; PlayerObject::flipGravity((unsigned __int8 *)this, v18, 1); v19 = *((unsigned __int8 *)this + 1962); if ( *((_BYTE *)this + 2320) ) v20 = *((unsigned __int8 *)this + 1962); else v20 = (unsigned int)(a3 - 2) <= 1; PlayerObject::doReversePlayer(this, v20); LODWORD(v21) = PlayerObject::updatePlayerArt(this); if ( v16 ) { if ( *((unsigned __int8 *)this + 1962) == v19 ) { if ( *((_BYTE *)this + 1956) ) { PlayerObject::createFadeOutDartStreak((HardStreak **)this, SHIDWORD(v21), v22); if ( *((_BYTE *)this + 1888) ) { HardStreak::reset(*((HardStreak **)this + 388)); PlayerObject::placeStreakPoint(this, v23, v24, v25); } } } if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 439) + 632))(*((_DWORD *)this + 439)) ) cocos2d::CCParticleSystem::resetSystem(*((cocos2d::CCParticleSystem **)this + 439)); PlayerObject::resetCollisionLog((cocos2d::CCDictionary **)this, 1); v26 = v17; v27 = v26; v28 = v12; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, v27, v28); v29 = v38; v30 = v39; v39 = v38; v38 = v30; if ( a4 ) { if ( a7 ) { v38 = a5; v39 = a6; } else { v38 = v30 * a5; v39 = v29 * a6; } } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, (const cocos2d::CCPoint *)&v38); PlayerObject::updatePlayerForce(this, v40, 0); *((_BYTE *)this + 2052) = 1; PlayerObject::playerTeleported(this); if ( a8 ) PlayerObject::handlePlayerCommand((int)this, 543); LODWORD(v21) = PlayerObject::isInNormalMode(this); if ( (_DWORD)v21 && !*((_BYTE *)this + 1480) ) LODWORD(v21) = PlayerObject::runRotateAction(this, 0, 4); if ( *((_BYTE *)this + 1996) ) { v21 = *((_QWORD *)this + 150); v31 = *((double *)this + 149); *((_QWORD *)this + 149) = v21; *((double *)this + 150) = v31; } } else if ( *((unsigned __int8 *)this + 1959) == v14 && *((unsigned __int8 *)this + 1962) == v19 ) { return v21; } if ( *((_BYTE *)this + 1996) ) { v32 = (double *)((char *)this + 1208); if ( *((unsigned __int8 *)this + 1962) != v19 ) { if ( v16 ) *v32 = *v32 + 180.0; v33 = *v32; if ( *v32 <= 0.0 ) v34 = -180.0 - v33; else v34 = 180.0 - v33; *v32 = v34; } v35 = *v32; if ( *v32 <= 180.0 ) { if ( v35 >= -180.0 ) { LABEL_40: LODWORD(v21) = PlayerObject::updateDashArt((int)this); return v21; } v36 = v35 + 360.0; } else { v36 = v35 - 360.0; } *v32 = v36; goto LABEL_40; } return v21; }
GD Web Decomp Icon

GD Web Decomp

Raw Source