// // cocos2d::CCPointArray::insertControlPoint from 0x180026030 to 0x1800260ed (189 bytes) // // 2 xrefs: // > @ 0x1801438a8 // > @ 0x1801af3a0 // // 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 // // Hidden C++ exception states: #wind=1 void __fastcall cocos2d::CCPointArray::insertControlPoint( cocos2d::CCPointArray *this, struct cocos2d::CCPoint *a2, unsigned int a3) { __int64 v3; // rsi float *v6; // rax float *v7; // rdi _QWORD *v8; // r9 float **v9; // rbx char *v10; // rcx float *v11; // [rsp+30h] [rbp+8h] BYREF v3 = a3; v6 = (float *)operator new(8u); v11 = v6; if ( v6 ) v7 = kmVec2Fill(v6, a2->x, a2->y); else v7 = nullptr; v11 = v7; v8 = *((_QWORD **)this + 7); v9 = (float **)(*v8 + 8 * v3); v10 = (char *)v8[1]; if ( v10 == (char *)v8[2] ) { sub_180015D80(*((const void ***)this + 7), (_BYTE *)(*v8 + 8 * v3), &v11); } else if ( v9 == (float **)v10 ) { *(_QWORD *)v10 = v7; v8[1] += 8LL; } else { *(_QWORD *)v10 = *((_QWORD *)v10 - 1); v8[1] += 8LL; memmove(v9 + 1, v9, v10 - (char *)v9 - 8); *v9 = v7; } }