{"type": "func", "start": 6442606640, "end": 6442606829, "name": "cocos2d::CCPointArray::insertControlPoint", "pseudocode": "// \n// cocos2d::CCPointArray::insertControlPoint from 0x180026030 to 0x1800260ed (189 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801af3a0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCPointArray::insertControlPoint(\n        cocos2d::CCPointArray *this,\n        struct cocos2d::CCPoint *a2,\n        unsigned int a3)\n{\n  __int64 v3; // rsi\n  float *v6; // rax\n  float *v7; // rdi\n  _QWORD *v8; // r9\n  float **v9; // rbx\n  char *v10; // rcx\n  float *v11; // [rsp+30h] [rbp+8h] BYREF\n\n  v3 = a3;\n  v6 = (float *)operator new(8u);\n  v11 = v6;\n  if ( v6 )\n    v7 = kmVec2Fill(v6, a2->x, a2->y);\n  else\n    v7 = nullptr;\n  v11 = v7;\n  v8 = *((_QWORD **)this + 7);\n  v9 = (float **)(*v8 + 8 * v3);\n  v10 = (char *)v8[1];\n  if ( v10 == (char *)v8[2] )\n  {\n    sub_180015D80(*((const void ***)this + 7), (_BYTE *)(*v8 + 8 * v3), &v11);\n  }\n  else if ( v9 == (float **)v10 )\n  {\n    *(_QWORD *)v10 = v7;\n    v8[1] += 8LL;\n  }\n  else\n  {\n    *(_QWORD *)v10 = *((_QWORD *)v10 - 1);\n    v8[1] += 8LL;\n    memmove(v9 + 1, v9, v10 - (char *)v9 - 8);\n    *v9 = v7;\n  }\n}", "assembly": "; \n; cocos2d::CCPointArray::insertControlPoint from 0x180026030 to 0x1800260ed (189 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801af3a0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180026030\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180026035\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18002603a\npush    rdi                                                            ; +0xf, 0x18002603f\nsub     rsp, 20h                                                       ; +0x10, 0x180026040\nmov     esi, r8d                                                       ; +0x14, 0x180026044\nmov     rbx, rdx                                                       ; +0x17, 0x180026047\nmov     rbp, rcx                                                       ; +0x1a, 0x18002604a\nmov     ecx, 8; Size                                                   ; +0x1d, 0x18002604d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x180026052\nmov     [rsp+28h+arg_0], rax                                           ; +0x27, 0x180026057\ntest    rax, rax                                                       ; +0x2c, 0x18002605c\njz      short loc_180026077                                            ; +0x2f, 0x18002605f\nmovss   xmm2, dword ptr [rbx+4]                                        ; +0x31, 0x180026061\nmovss   xmm1, dword ptr [rbx]                                          ; +0x36, 0x180026066\nmov     rcx, rax                                                       ; +0x3a, 0x18002606a\ncall    kmVec2Fill                                                     ; +0x3d, 0x18002606d\nmov     rdi, rax                                                       ; +0x42, 0x180026072\njmp     short loc_180026079                                            ; +0x45, 0x180026075\nxor     edi, edi                                                       ; +0x47, 0x180026077\nmov     [rsp+28h+arg_0], rdi                                           ; +0x49, 0x180026079\nmov     r9, [rbp+38h]                                                  ; +0x4e, 0x18002607e\nmov     rax, [r9]                                                      ; +0x52, 0x180026082\nlea     rbx, [rax+rsi*8]                                               ; +0x55, 0x180026085\nmov     rcx, [r9+8]                                                    ; +0x59, 0x180026089\ncmp     rcx, [r9+10h]                                                  ; +0x5d, 0x18002608d\njz      short loc_1800260C8                                            ; +0x61, 0x180026091\ncmp     rbx, rcx                                                       ; +0x63, 0x180026093\njnz     short loc_1800260A2                                            ; +0x66, 0x180026096\nmov     [rcx], rdi                                                     ; +0x68, 0x180026098\nadd     qword ptr [r9+8], 8                                            ; +0x6b, 0x18002609b\njmp     short loc_1800260D8                                            ; +0x70, 0x1800260a0\nmov     rax, [rcx-8]                                                   ; +0x72, 0x1800260a2\nmov     [rcx], rax                                                     ; +0x76, 0x1800260a6\nadd     qword ptr [r9+8], 8                                            ; +0x79, 0x1800260a9\nmov     r8, rcx                                                        ; +0x7e, 0x1800260ae\nsub     r8, rbx                                                        ; +0x81, 0x1800260b1\nsub     r8, 8; Size                                                    ; +0x84, 0x1800260b4\nsub     rcx, r8; void *                                                ; +0x88, 0x1800260b8\nmov     rdx, rbx; Src                                                  ; +0x8b, 0x1800260bb\ncall    memmove                                                        ; +0x8e, 0x1800260be\nmov     [rbx], rdi                                                     ; +0x93, 0x1800260c3\njmp     short loc_1800260D8                                            ; +0x96, 0x1800260c6\nlea     r8, [rsp+28h+arg_0]                                            ; +0x98, 0x1800260c8\nmov     rdx, rbx                                                       ; +0x9d, 0x1800260cd\nmov     rcx, r9                                                        ; +0xa0, 0x1800260d0\ncall    sub_180015D80                                                  ; +0xa3, 0x1800260d3\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa8, 0x1800260d8\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xad, 0x1800260dd\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xb2, 0x1800260e2\nadd     rsp, 20h                                                       ; +0xb7, 0x1800260e7\npop     rdi                                                            ; +0xbb, 0x1800260eb\nretn                                                                   ; +0xbc, 0x1800260ec", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801af3a0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}