// // PlayerObject::updateRotation_1 from 0x1404ef390 to 0x1404ef5a5 (533 bytes) // // 7 xrefs: // > GJBaseGameLayer::update @ 0x140341382 // > GJBaseGameLayer::update @ 0x14034139b // > MenuGameLayer::update @ 0x140470b48 // > @ 0x1408d4af4 // > @ 0x1408d4b28 // > @ 0x140929e34 // > @ 0x140929e40 // // This function is hookable on this platform (idp: pc, 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 11:33:15 +0000 // void __fastcall PlayerObject::updateRotation_1(__int64 a1, float a2) { double v3; // xmm1_8 bool v4; // cf bool v5; // zf __int64 v6; // rbx if ( !*(_BYTE *)(a1 + 2610) && !*(_BYTE *)(a1 + 2540) ) { if ( !*(_BYTE *)(a1 + 2499) ) { if ( *(_BYTE *)(a1 + 2488) ) { PlayerObject::convertToClosestRotation((_BYTE *)a1, *(double *)(a1 + 2360) * 57.29578018188477); PlayerObject::updateRotation(a1); } else if ( *(_BYTE *)(a1 + 2497) || *(_BYTE *)(a1 + 2498) || *(_BYTE *)(a1 + 2500) || *(_BYTE *)(a1 + 2508) ) { PlayerObject::updateShipRotation(a1, a2); } else if ( *(_BYTE *)(a1 + 2580) && ((v3 = *(double *)(a1 + 2472), *(_BYTE *)(a1 + 2503)) ? (v4 = v3 < 0.25, v5 = v3 == 0.25) : (v4 = v3 > -0.25, v5 = v3 == -0.25), (v4 || v5) && !*(_BYTE *)(a1 + 2489)) ) { if ( !*(_BYTE *)(a1 + 2936) || !*(_BYTE *)(a1 + 1840) ) { *(_WORD *)(a1 + 1840) = 0; *(_BYTE *)(a1 + 1648) = 0; *(_DWORD *)(a1 + 1832) = 0; PlayerObject::convertToClosestRotation((_BYTE *)a1, 0.0); PlayerObject::updateRotation(a1); } } else if ( (*(_BYTE *)(a1 + 2501) || *(_BYTE *)(a1 + 2502)) && !*(_BYTE *)(a1 + 2489) ) { PlayerObject::updateRotation(a1); } } if ( *(float *)(a1 + 1832) != 0.0 ) { v6 = *(_QWORD *)a1; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 360LL))(a1); (*(void (__fastcall **)(__int64))(v6 + 352))(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source