// // Slerp2D from 0x3e5974 to 0x3e5a66 (242 bytes) // // 2 xrefs: // > PlayerObject::updateShipRotation @ 0x437418 // > PlayerObject::updateRotation @ 0x43751e // // 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:47:04 +0000 // float __fastcall Slerp2D(float a1, float a2, float a3) { float v4; // s19 float v5; // s17 float v6; // s20 float v7; // s21 float v8; // s19 float v9; // r0 float v10; // s18 float v11; // s15 float v12; // s17 float v13; // s23 float v14; // s22 float v15; // r0 v4 = a1 * 0.5; v5 = a2 * 0.5; v6 = cosf(a1 * 0.5); v7 = sinf(v4); v8 = cosf(v5); v9 = sinf(v5); v10 = v9; v11 = (float)(v7 * v9) + (float)(v6 * v8); if ( v11 < 0.0 ) { v11 = -v11; v10 = -v9; v8 = -v8; } v12 = 1.0 - a3; if ( (float)(1.0 - v11) > 0.0001 ) { v13 = acosf(v11); v14 = sinf(v13); v12 = sinf(v12 * v13) / v14; a3 = sinf(a3 * v13) / v14; } v15 = atan2f((float)(a3 * v10) + (float)(v12 * v7), (float)(a3 * v8) + (float)(v12 * v6)); return v15 + v15; }
GD Web Decomp Icon

GD Web Decomp

Raw Source