// // cocos2d::CCCardinalSplineTo::update from 0xd26dc8 to 0xd26f78 (432 bytes) // // 5 xrefs: // > @ 0xa3570 // > @ 0x1510fd8 // > @ 0x1511068 // > @ 0x1511158 // > @ 0x15111e8 // // 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:07:14 +0000 // __int64 __fastcall cocos2d::CCCardinalSplineTo::update(cocos2d::CCCardinalSplineTo *this, float a2) { float v3; // s1 unsigned int v4; // w20 float v5; // s8 __int64 v6; // x0 long double v7; // q0 long double v8; // q0 _BYTE v10[8]; // [xsp+70h] [xbp+70h] BYREF _BYTE v11[8]; // [xsp+78h] [xbp+78h] BYREF _BYTE v12[8]; // [xsp+80h] [xbp+80h] BYREF _BYTE v13[8]; // [xsp+88h] [xbp+88h] BYREF _BYTE v14[8]; // [xsp+90h] [xbp+90h] BYREF __int64 v15; // [xsp+98h] [xbp+98h] BYREF __int64 v16; // [xsp+A0h] [xbp+A0h] BYREF if ( a2 == 1.0 ) { v5 = 1.0; v4 = cocos2d::CCPointArray::count(*((cocos2d::CCPointArray **)this + 12)) - 1; } else { v3 = *((float *)this + 26); v4 = (unsigned int)(float)(a2 / v3); v5 = (float)(a2 - (float)(v3 * (float)v4)) / v3; } cocos2d::CCPointArray::getControlPointAtIndex(*((cocos2d::CCPointArray **)this + 12), v4 - 1, (cocos2d::CCPoint *)v10); cocos2d::CCPointArray::getControlPointAtIndex(*((cocos2d::CCPointArray **)this + 12), v4, (cocos2d::CCPoint *)v11); cocos2d::CCPointArray::getControlPointAtIndex(*((cocos2d::CCPointArray **)this + 12), v4 + 1, (cocos2d::CCPoint *)v12); cocos2d::CCPointArray::getControlPointAtIndex(*((cocos2d::CCPointArray **)this + 12), v4 + 2, (cocos2d::CCPoint *)v13); cocos2d::ccCardinalSplineAt( (cocos2d *)v10, (cocos2d::CCPoint *)v11, (cocos2d::CCPoint *)v12, (cocos2d::CCPoint *)v13, *((float *)this + 27), v5, (cocos2d::CCPoint *)v14); v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 8) + 192LL))(*((_QWORD *)this + 8)); cocos2d::CCPoint::operator-(&v15, v6, (char *)this + 112, v7); if ( *(float *)&v15 != 0.0 || (LODWORD(v8) = HIDWORD(v15), *((float *)&v15 + 1) != 0.0) ) { cocos2d::CCPoint::operator+(&v16, (char *)this + 120); cocos2d::CCPoint::operator=((char *)this + 120, &v16); cocos2d::CCPoint::operator+(&v16, v14); *(__n128 *)&v8 = cocos2d::CCPoint::operator=(v14, &v16); } (*(void (__fastcall **)(cocos2d::CCCardinalSplineTo *, _BYTE *, long double))(*(_QWORD *)this + 120LL))(this, v14, v8); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source