// // tk::spline::set_coeffs_from_b from 0x6db780 to 0x6db86e (238 bytes) // // 2 xrefs: // > tk::spline::make_monotonic @ 0x6db9dc // > tk::spline::set_points @ 0x6dc63c // // 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:57:11 +0000 // double *__fastcall tk::spline::set_coeffs_from_b(double *this) { double *v1; // r4 unsigned int v2; // r5 unsigned int v3; // r5 unsigned int v4; // r1 int v5; // r3 double v6; // d2 int v7; // r0 double *v8; // r2 __int64 v9; // r2 v1 = this; v2 = (*((_DWORD *)this + 7) - *((_DWORD *)this + 6)) >> 3; if ( v2 != (*((_DWORD *)this + 10) - *((_DWORD *)this + 9)) >> 3 ) this = (double *)std::vector::resize((_DWORD *)this + 9, v2); if ( v2 != (*((_DWORD *)v1 + 13) - *((_DWORD *)v1 + 12)) >> 3 ) this = (double *)std::vector::resize((_DWORD *)v1 + 12, v2); v3 = v2 - 1; v4 = 0; while ( v4 < v3 ) { ++v4; v5 = 8 * v4 - 8; v6 = *(double *)(*(_DWORD *)v1 + 8 * v4) - *(double *)(*(_DWORD *)v1 + v5); *(double *)(*((_DWORD *)v1 + 9) + v5) = ((*(double *)(*((_DWORD *)v1 + 3) + 8 * v4) - *(double *)(*((_DWORD *)v1 + 3) + v5)) * 3.0 / v6 - (*(double *)(*((_DWORD *)v1 + 6) + v5) + *(double *)(*((_DWORD *)v1 + 6) + v5) + *(double *)(*((_DWORD *)v1 + 6) + 8 * v4))) / v6; v7 = *((_DWORD *)v1 + 6); v8 = (double *)(8 * v4 + v7); this = (double *)(v7 + v5); *(double *)(*((_DWORD *)v1 + 12) + v5) = ((*v8 - *this) / (v6 * 3.0) - *(double *)(v5 + *((_DWORD *)v1 + 9)) * 0.666666667) / v6; } if ( *((_DWORD *)v1 + 19) == 1 ) v9 = 0; else v9 = *(_QWORD *)*((_DWORD *)v1 + 9); *((_QWORD *)v1 + 8) = v9; return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source