// // cocos2d::CCPointArray::addControlPoint from 0x1002d0f50 to 0x1002d107a (298 bytes) // // 0 xrefs: // // 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 // void __fastcall cocos2d::CCPointArray::addControlPoint(cocos2d::CCPointArray *a1, cocos2d::CCPoint a2) { float *v2; // rsi cocos2d::CCPointArray_vtbl *v3; // r13 float *v4; // r12 float **v5; // r14 void (__cdecl *v6)(cocos2d::CCPointArray *__hidden); // rax __int64 v7; // rbx cocos2d::CCObject *(__cdecl *copyWithZone)(cocos2d::CCPointArray *__hidden, cocos2d::CCZone *); // rsi signed __int64 v9; // r14 __int64 v10; // rbx __int64 v11; // rax unsigned __int64 v12; // r15 _QWORD *v13; // r12 float *v14; // [rsp+0h] [rbp-40h] v3 = a1[1].__vftable; v4 = (float *)operator new(8u); sub_10028CBE0(v4, *v2, v2[1]); v5 = (float **)v3->~CCPointArray; v6 = v3->~CCPointArray_0; if ( v5 >= (float **)v6 ) { copyWithZone = v3->copyWithZone; v9 = (char *)v5 - (char *)v3->copyWithZone; v10 = v9 >> 3; if ( (unsigned __int64)((v9 >> 3) + 1) >> 61 ) sub_1002D29F0(v4, copyWithZone); v11 = (char *)v6 - (char *)copyWithZone; v12 = v11 >> 2; if ( v11 >> 2 <= (unsigned __int64)((v9 >> 3) + 1) ) v12 = (v9 >> 3) + 1; if ( (unsigned __int64)v11 >= 0x7FFFFFFFFFFFFFF8LL ) v12 = 0x1FFFFFFFFFFFFFFFLL; v14 = v4; if ( v12 ) { if ( v12 > 0x1FFFFFFFFFFFFFFFLL ) sub_100054850(); v13 = operator new(8 * v12); } else { v13 = nullptr; } v13[v10] = v14; v7 = (__int64)&v13[v10 + 1]; memcpy(v13, copyWithZone, v9); v3->copyWithZone = (cocos2d::CCObject *(__cdecl *)(cocos2d::CCPointArray *__hidden, cocos2d::CCZone *))v13; v3->~CCPointArray = (void (__cdecl *)(cocos2d::CCPointArray *__hidden))v7; v3->~CCPointArray_0 = (void (__cdecl *)(cocos2d::CCPointArray *__hidden))&v13[v12]; if ( copyWithZone ) operator delete(copyWithZone); } else { *v5 = v4; v7 = (__int64)(v5 + 1); } v3->~CCPointArray = (void (__cdecl *)(cocos2d::CCPointArray *__hidden))v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source