// // KeyframeObject::setupSpline from 0x6ca358 to 0x6ca506 (430 bytes) // // 2 xrefs: // > GJEffectManager::createKeyframeCommand @ 0x5d15aa // > ReadArchive::process @ 0x72c210 // // 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:56:58 +0000 // char **__fastcall KeyframeObject::setupSpline(char **result, _DWORD *a2) { char **v2; // r8 int v4; // r3 unsigned int v5; // r4 int v6; // r0 int i; // r1 int v8; // r12 double v9; // d7 char *v10[3]; // [sp+24h] [bp-10Ch] BYREF char *v11[3]; // [sp+30h] [bp-100h] BYREF char *v12[3]; // [sp+3Ch] [bp-F4h] BYREF char *v13[28]; // [sp+48h] [bp-E8h] BYREF char *v14[29]; // [sp+B8h] [bp-78h] BYREF v2 = result; v4 = a2[1] - *a2; v5 = v4 >> 2; if ( (unsigned int)(v4 >> 2) > 2 ) { std::vector::vector(v10, v4 >> 2); std::vector::vector(v11, v5); std::vector::vector(v12, v5); v6 = -4; for ( i = 0; i != v5; ++i ) { v8 = *(_DWORD *)(*a2 + 4 * i); if ( i ) { *(double *)&v10[0][8 * i] = *(double *)&v10[0][2 * v6] + *(float *)(v8 + 280); *(double *)&v11[0][8 * i] = *(double *)&v11[0][2 * v6] + *(float *)(v8 + 284); v9 = *(double *)*(_DWORD *)(*a2 + v6); if ( v9 <= 0.00001 ) v9 = 0.00001; *(double *)&v12[0][8 * i] = *(double *)&v12[0][2 * v6] + v9; } else { *(_QWORD *)v10[0] = 0; *(_QWORD *)v11[0] = 0; *(_QWORD *)v12[0] = 0; } v6 += 4; } tk::spline::spline((int)v13, (int)v12, (int)v10, 30, 0, 2, 0, 2, 0); tk::spline::operator=((int)(v2 + 8), (int)v13); tk::spline::~spline(v13); tk::spline::spline((int)v14, (int)v12, (int)v11, 30, 0, 2, 0, 2, 0); tk::spline::operator=((int)(v2 + 36), (int)v14); tk::spline::~spline(v14); *((_QWORD *)v2 + 32) = *(_QWORD *)&v12[0][((v12[1] - v12[0]) & 0xFFFFFFF8) - 8]; std::__vector_base::~__vector_base(v12); std::__vector_base::~__vector_base(v11); return std::__vector_base::~__vector_base(v10); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source