// // PlayerObject::rotateGameplay from 0x755ee0 to 0x7561e4 (772 bytes) // // 4 xrefs: // > PlayerObject::resetObject @ 0x75dd50 // > GJBaseGameLayer::rotateGameplay @ 0x9c9570 // > GJBaseGameLayer::rotateGameplay @ 0x9c9600 // > @ 0x8dbf8 // // 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:52:57 +0000 // __int64 __fastcall PlayerObject::rotateGameplay( PlayerObject *this, int a2, int a3, unsigned __int8 a4, float a5, float a6, unsigned __int8 a7, unsigned __int8 a8) { double v10; // d8 int v12; // w24 int v14; // w26 int v15; // w25 double CurrentXVelocity; // d0 int v17; // w20 double v18; // d9 int v19; // w27 _BOOL4 v20; // w3 int v21; // w20 int v22; // w22 float v23; // s0 float v24; // s1 float v25; // s0 float v26; // s1 int v27; // w0 double v29; // d0 float v30; // s0 float v32; // [xsp+98h] [xbp+98h] BYREF float v33; // [xsp+9Ch] [xbp+9Ch] float v34; // [xsp+A0h] [xbp+A0h] BYREF v10 = *((double *)this + 299); v12 = a4; v14 = a7; v15 = a8; CurrentXVelocity = PlayerObject::getCurrentXVelocity(this); v17 = *((unsigned __int8 *)this + 2427); v18 = CurrentXVelocity; v19 = *((unsigned __int8 *)this + 2423); v20 = (unsigned int)(a2 - 3) <= 1; *((_BYTE *)this + 2427) = v20; v21 = v17 ^ v20; PlayerObject::flipGravity((__int64)this, a2 == 4 || a2 == 1, 1u); v22 = *((unsigned __int8 *)this + 2426); if ( *((_BYTE *)this + 2832) ) PlayerObject::doReversePlayer(this, v22); else PlayerObject::doReversePlayer(this, (unsigned int)(a3 - 2) <= 1); PlayerObject::updatePlayerArt(this); if ( !v21 ) { if ( *((unsigned __int8 *)this + 2423) == v19 ) { if ( *((unsigned __int8 *)this + 2426) == v22 || !*((_BYTE *)this + 2460) ) return _stack_chk_guard; v29 = *((double *)this + 175); goto LABEL_24; } v27 = *((unsigned __int8 *)this + 2460); LABEL_20: if ( !v27 ) return _stack_chk_guard; v29 = *((double *)this + 175); if ( *((unsigned __int8 *)this + 2426) == v22 ) goto LABEL_26; if ( v21 ) { v29 = v29 + 180.0; *((double *)this + 175) = v29; } LABEL_24: if ( v29 <= 0.0 ) { v29 = -180.0 - v29; *((double *)this + 175) = v29; if ( v29 > 180.0 ) goto LABEL_27; goto LABEL_30; } v29 = 180.0 - v29; *((double *)this + 175) = v29; LABEL_26: if ( v29 > 180.0 ) { LABEL_27: *((double *)this + 175) = v29 - 360.0; LABEL_28: PlayerObject::updateDashArt(this); return _stack_chk_guard; } LABEL_30: if ( v29 < -180.0 ) *((double *)this + 175) = v29 + 360.0; goto LABEL_28; } if ( *((unsigned __int8 *)this + 2426) == v22 ) { if ( *((_BYTE *)this + 2420) ) { PlayerObject::createFadeOutDartStreak((HardStreak **)this); if ( *((_BYTE *)this + 2352) ) { HardStreak::reset(*((HardStreak **)this + 240)); PlayerObject::placeStreakPoint(this); } } } if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 273) + 1264LL))(*((_QWORD *)this + 273)) ) cocos2d::CCParticleSystem::resetSystem(*((cocos2d::CCParticleSystem **)this + 273)); PlayerObject::resetCollisionLog((cocos2d::CCDictionary **)this, 1u); v23 = v18; v24 = v10; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, v23, v24); v25 = v32; v26 = v33; v33 = v32; v32 = v26; if ( v12 ) { if ( !v14 ) { a5 = a5 * v26; a6 = a6 * v25; } v32 = a5; v33 = a6; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v34, (const cocos2d::CCPoint *)&v32); PlayerObject::updatePlayerForce((__int64)this, &v34, 0); *((_BYTE *)this + 2516) = 1; PlayerObject::playerTeleported(this); if ( v15 ) PlayerObject::handlePlayerCommand((__int64)this, 543); if ( (unsigned __int8)PlayerObject::isInNormalMode(this) && !*((_BYTE *)this + 1784) ) PlayerObject::runRotateAction(this); v27 = *((unsigned __int8 *)this + 2460); if ( *((_BYTE *)this + 2460) ) { v30 = *((double *)this + 173); *((_QWORD *)this + 173) = *((_QWORD *)this + 174); *((double *)this + 174) = v30; goto LABEL_20; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source