// // cocos2d::CCCardinalSplineBy::reverse from 0x1002d2290 to 0x1002d25b0 (800 bytes) // // 2 xrefs: // > @ 0x1009079c8 // > @ 0x100907b48 // // 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 // cocos2d::CCActionInterval *__fastcall cocos2d::CCCardinalSplineBy::reverse(cocos2d::CCCardinalSplineBy *a1) { char **v1; // rdi cocos2d::CCPointArray *v2; // r15 cocos2d::CCPointArray_vtbl *v3; // rcx cocos2d::CCPointArray_vtbl *v4; // rcx cocos2d::CCObject *(__cdecl *copyWithZone)(cocos2d::CCPointArray *__hidden, cocos2d::CCZone *); // rax void (__cdecl *v6)(cocos2d::CCPointArray *__hidden); // rcx unsigned __int64 v7; // rbx unsigned __int64 v8; // rcx unsigned int v9; // esi cocos2d::CCPointArray_vtbl *v10; // rcx cocos2d::CCPointArray_vtbl *v11; // rcx cocos2d::CCPointArray *v12; // r14 cocos2d::CCPointArray_vtbl *v13; // rcx cocos2d::CCObject *(__cdecl *v14)(cocos2d::CCPointArray *__hidden, cocos2d::CCZone *); // rax unsigned __int64 v15; // rsi unsigned __int64 v16; // rdx unsigned __int64 v17; // rcx cocos2d::CCPointArray_vtbl *v18; // rbx __int64 v19; // rcx void **v20; // r13 void *v21; // r12 size_t v22; // r15 float *v23; // r15 cocos2d::CCPointArray_vtbl *v24; // rcx cocos2d::CCObject *(__cdecl *v25)(cocos2d::CCPointArray *__hidden, cocos2d::CCZone *); // rax void (__cdecl *v26)(cocos2d::CCPointArray *__hidden); // rcx unsigned __int64 v27; // rbx unsigned __int64 v28; // rcx unsigned int v29; // esi cocos2d::CCPointArray_vtbl *v30; // rcx cocos2d::CCPointArray_vtbl *v31; // rcx __int64 v34; // [rsp+10h] [rbp-40h] BYREF float *v35; // [rsp+18h] [rbp-38h] BYREF unsigned __int64 v36[6]; // [rsp+20h] [rbp-30h] BYREF v1 = (char **)a1[1].__vftable; v2 = (cocos2d::CCPointArray *)sub_10048AAA0(v1); v3 = v2[1].__vftable; if ( v3->~CCPointArray == (void (__cdecl *)(cocos2d::CCPointArray *__hidden))v3->copyWithZone ) goto LABEL_24; v1 = (char **)v36; sub_10028CC60(v36, *(double **)v3->copyWithZone); v4 = v2[1].__vftable; copyWithZone = v4->copyWithZone; v6 = v4->~CCPointArray; if ( (((char *)v6 - (char *)copyWithZone) & 0x7FFFFFFF0LL) != 0 ) { v7 = 1; while ( 1 ) { v8 = ((char *)v6 - (char *)copyWithZone) >> 3; v9 = v8 - 1; if ( v8 - 1 > v7 ) v9 = v7; if ( v8 <= v9 ) break; sub_10028CC60(&v35, *((double **)copyWithZone + v9)); v1 = (char **)&v34; sub_10028CD00((double *)&v34, (unsigned __int64 *)&v35, v36); v10 = v2[1].__vftable; if ( ((char *)v10->~CCPointArray - (char *)v10->copyWithZone) >> 3 <= v7 ) break; **((_QWORD **)v10->copyWithZone + v7) = v34; v1 = (char **)v36; sub_10028CC90(v36, (double *)&v35); ++v7; v11 = v2[1].__vftable; copyWithZone = v11->copyWithZone; v6 = v11->~CCPointArray; if ( v7 >= (unsigned int)((unsigned __int64)((char *)v6 - (char *)copyWithZone) >> 3) ) goto LABEL_9; } LABEL_24: sub_1002D2A00(v1); } LABEL_9: v12 = cocos2d::CCPointArray::reverse(v2); cocos2d::CCObject::release(v2); v13 = v12[1].__vftable; v14 = v13->copyWithZone; v15 = (unsigned int)((unsigned __int64)((char *)v13->~CCPointArray - (char *)v13->copyWithZone) >> 3) - 1; v16 = ((char *)v13->~CCPointArray - (char *)v13->copyWithZone) >> 3; v1 = (char **)(v16 - 1); v17 = (unsigned int)(v16 - 1); if ( v16 - 1 > v15 ) v17 = (unsigned int)v15; if ( v16 <= v17 ) goto LABEL_24; sub_10028CC60(&v35, *((double **)v14 + v17)); sub_10028CC90(v36, (double *)&v35); v18 = v12[1].__vftable; v19 = (unsigned int)((unsigned __int64)((char *)v18->~CCPointArray - (char *)v18->copyWithZone) >> 3) - 1; v20 = (void **)((char *)v18->copyWithZone + 8 * v19); v21 = *v20; v22 = (char *)v18->~CCPointArray - (char *)(v20 + 1); if ( v22 ) memmove((char *)v18->copyWithZone + 8 * v19, v20 + 1, v22); v18->~CCPointArray = (void (__cdecl *)(cocos2d::CCPointArray *__hidden))((char *)v20 + v22); if ( v21 ) operator delete(v21); sub_10028CD20((double *)&v35, v36); sub_10028CC90(v36, (double *)&v35); v23 = (float *)operator new(8u); sub_10028CBE0(v23, *(float *)v36, *((float *)v36 + 1)); v35 = v23; v1 = (char **)v12[1].__vftable; sub_1002D1110((__int64)v1, *v1, (char *)&v35); v24 = v12[1].__vftable; v25 = v24->copyWithZone; v26 = v24->~CCPointArray; if ( (((char *)v26 - (char *)v25) & 0x7FFFFFFF0LL) != 0 ) { v27 = 1; while ( 1 ) { v28 = ((char *)v26 - (char *)v25) >> 3; v29 = v28 - 1; if ( v28 - 1 > v27 ) v29 = v27; if ( v28 <= v29 ) break; sub_10028CC60(&v35, *((double **)v25 + v29)); sub_10028CD20((double *)&v34, (unsigned __int64 *)&v35); sub_10028CC90(&v35, (double *)&v34); v1 = (char **)&v34; sub_10028CCE0((double *)&v34, (unsigned __int64 *)&v35, v36); v30 = v12[1].__vftable; if ( ((char *)v30->~CCPointArray - (char *)v30->copyWithZone) >> 3 <= v27 ) break; **((_QWORD **)v30->copyWithZone + v27) = v34; v1 = (char **)v36; sub_10028CC90(v36, (double *)&v34); ++v27; v31 = v12[1].__vftable; v25 = v31->copyWithZone; v26 = v31->~CCPointArray; if ( v27 >= (unsigned int)((unsigned __int64)((char *)v26 - (char *)v25) >> 3) ) return cocos2d::CCCardinalSplineBy::create(a1->m_fDuration, v12, *(float *)&a1[1].m_nLuaID); } goto LABEL_24; } return cocos2d::CCCardinalSplineBy::create(a1->m_fDuration, v12, *(float *)&a1[1].m_nLuaID); }
GD Web Decomp Icon

GD Web Decomp

Raw Source