// // PlayerObject::updateRotation from 0x7519e8 to 0x751b84 (412 bytes) // // 4 xrefs: // > MenuGameLayer::update @ 0x7da974 // > GJBaseGameLayer::update @ 0x9edce4 // > GJBaseGameLayer::update @ 0x9ee048 // > @ 0xac930 // // 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:55 +0000 // __int64 __fastcall PlayerObject::updateRotation(__int64 this, float a2) { __int64 v2; // x19 float v4; // s9 __int64 (__fastcall *v5)(__int64, float); // x20 float v6; // s0 float v7; // s0 if ( *(_BYTE *)(this + 2530) || *(_BYTE *)(this + 2460) ) return this; v2 = this; if ( *(_BYTE *)(this + 2419) ) goto LABEL_6; if ( *(_BYTE *)(this + 2408) ) { this = (__int64)PlayerObject::updateSlopeRotation((PlayerObject *)this, a2); goto LABEL_6; } if ( (unsigned __int8)PlayerObject::isFlying((PlayerObject *)this) ) { this = PlayerObject::updateShipRotation((PlayerObject *)v2, a2); goto LABEL_6; } if ( (unsigned __int8)PlayerObject::isFlying((PlayerObject *)v2) || *(_BYTE *)(v2 + 2419) || !*(_BYTE *)(v2 + 2500) || PlayerObject::playerIsFalling((PlayerObject *)v2, -0.25) ) { if ( *(_BYTE *)(v2 + 2421) ) { LABEL_19: this = *(unsigned __int8 *)(v2 + 2408); if ( *(_BYTE *)(v2 + 2408) ) goto LABEL_6; this = *(unsigned __int8 *)(v2 + 2409); LABEL_21: if ( !(_DWORD)this ) this = (__int64)PlayerObject::updateRotation((_BYTE *)v2, a2 * 0.5, 0.0); goto LABEL_6; } LABEL_18: this = *(unsigned __int8 *)(v2 + 2422); if ( !*(_BYTE *)(v2 + 2422) ) goto LABEL_6; goto LABEL_19; } if ( *(_BYTE *)(v2 + 2408) ) { this = *(unsigned __int8 *)(v2 + 2421); if ( *(_BYTE *)(v2 + 2421) ) goto LABEL_6; goto LABEL_18; } this = *(unsigned __int8 *)(v2 + 2409); if ( !*(_BYTE *)(v2 + 2409) ) { if ( !*(_BYTE *)(v2 + 2832) || (this = *(unsigned __int8 *)(v2 + 1784), !*(_BYTE *)(v2 + 1784)) ) { PlayerObject::stopRotation((PlayerObject *)v2); v7 = PlayerObject::convertToClosestRotation((PlayerObject *)v2, 0.0); this = (__int64)PlayerObject::updateRotation((_BYTE *)v2, a2, v7); } goto LABEL_6; } if ( !*(_BYTE *)(v2 + 2421) && *(_BYTE *)(v2 + 2422) ) goto LABEL_21; LABEL_6: if ( *(float *)(v2 + 1776) != 0.0 ) { if ( *(_BYTE *)(v2 + 1640) && *(_BYTE *)(v2 + 2419) ) v4 = *(float *)(v2 + 1780); else v4 = 1.0; v5 = *(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v2 + 360LL); v6 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v2 + 368LL))(v2); return v5(v2, v6 + (float)((float)((float)(a2 / 60.0) * *(float *)(v2 + 1776)) * v4)); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source