// // tk::spline::set_coeffs_from_b from 0xbb3dd8 to 0xbb3f04 (300 bytes) // // 3 xrefs: // > tk::spline::make_monotonic @ 0xbb40dc // > tk::spline::set_points @ 0xbb4b20 // > @ 0x5c200 // // 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 13:02:57 +0000 // __int64 *__fastcall tk::spline::set_coeffs_from_b(tk::spline *this) { unsigned __int64 v2; // x20 __int64 v3; // x0 __int64 v4; // x1 double v5; // d1 __int64 *result; // x0 __int64 v7; // d0 v2 = (__int64)(*((_QWORD *)this + 7) - *((_QWORD *)this + 6)) >> 3; if ( v2 != (__int64)(*((_QWORD *)this + 10) - *((_QWORD *)this + 9)) >> 3 ) std::vector::resize((_QWORD *)this + 9, v2); if ( v2 != (__int64)(*((_QWORD *)this + 13) - *((_QWORD *)this + 12)) >> 3 ) std::vector::resize((_QWORD *)this + 12, v2); if ( v2 != 1 ) { v3 = 0; v4 = 0; do { ++v4; v5 = *(double *)(*(_QWORD *)this + 8 * v4) - *(double *)(*(_QWORD *)this + v3); *(double *)(*((_QWORD *)this + 9) + v3) = ((*(double *)(*((_QWORD *)this + 3) + 8 * v4) - *(double *)(*((_QWORD *)this + 3) + v3)) * 3.0 / v5 - (*(double *)(*((_QWORD *)this + 6) + 8 * v4) + *(double *)(*((_QWORD *)this + 6) + v3) * 2.0)) / v5; *(double *)(*((_QWORD *)this + 12) + v3) = ((*(double *)(*((_QWORD *)this + 6) + 8 * v4) - *(double *)(*((_QWORD *)this + 6) + v3)) / (v5 * 3.0) - *(double *)(*((_QWORD *)this + 9) + v3) * 0.666666667) / v5; v3 += 8; } while ( v4 != v2 - 1 ); } result = (__int64 *)*((unsigned int *)this + 33); v7 = 0; if ( (_DWORD)result != 1 ) { result = *((__int64 **)this + 9); v7 = *result; } *((_QWORD *)this + 15) = v7; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source