// // normalizeKeyframeValues from 0x8a44f0 to 0x8a45e8 (248 bytes) // // 2 xrefs: // > GJEffectManager::createKeyframeCommand @ 0x8baa94 // > @ 0xbcaf0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // double __fastcall normalizeKeyframeValues(double *a1, double *a2, double *a3, double *a4) { double result; // d0 double v5; // d2 double v6; // d1 double v7; // d0 double v8; // d2 result = *a3; v5 = *a4; v6 = vabdd_f64(*a3, *a4); if ( v6 <= 179.999 || v6 >= 180.001 ) { if ( *a1 < 0.0 && *a2 < 0.0 ) { if ( result <= 0.0 ) { *a3 = result + 180.0; *a4 = *a4 + 180.0; } else { *a3 = result - 180.0; *a4 = *a4 - 180.0; } *a1 = -*a1; result = -*a2; *a2 = result; } } else if ( fabs(result) <= fabs(v5) ) { if ( v5 <= 0.0 ) v8 = v5 + 180.0; else v8 = v5 - 180.0; *a4 = v8; result = -*a1; *a1 = result; } else { if ( result <= 0.0 ) v7 = result + 180.0; else v7 = result - 180.0; *a3 = v7; result = -*a2; *a2 = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source