{"type": "func", "start": 6442608432, "end": 6442608639, "name": "cocos2d::CCPointArray::insertControlPoint", "pseudocode": "// \n// cocos2d::CCPointArray::insertControlPoint from 0x180026730 to 0x1800267ff (207 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b94b4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:30 +0000\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; // rdi\n  float *v6; // rax\n  float *v7; // rbx\n  _QWORD *v8; // r9\n  char *v9; // rdi\n  char *v10; // rcx\n  float *v11; // [rsp+30h] [rbp+8h] BYREF\n\n  v3 = a3;\n  v6 = (float *)sub_1800E4AC0(8u);\n  v11 = v6;\n  if ( v6 )\n    v7 = kmVec2Fill(v6, *(float *)a2, *((float *)a2 + 1));\n  else\n    v7 = nullptr;\n  v11 = v7;\n  v8 = *((_QWORD **)this + 7);\n  v9 = (char *)(*v8 + 8 * v3);\n  v10 = (char *)v8[1];\n  if ( v10 == (char *)v8[2] )\n  {\n    sub_180025630(*((const void ***)this + 7), v9, &v11);\n  }\n  else if ( v9 == 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 + 8, v9, v10 - v9 - 8);\n    *(_QWORD *)v9 = v7;\n  }\n}", "assembly": "; \n; cocos2d::CCPointArray::insertControlPoint from 0x180026730 to 0x1800267ff (207 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b94b4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:30 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180026730\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180026735\npush    rdi                                                            ; +0xa, 0x18002673a\nsub     rsp, 20h                                                       ; +0xb, 0x18002673b\nmov     edi, r8d                                                       ; +0xf, 0x18002673f\nmov     rbx, rdx                                                       ; +0x12, 0x180026742\nmov     rsi, rcx                                                       ; +0x15, 0x180026745\nmov     ecx, 8; Size                                                   ; +0x18, 0x180026748\ncall    sub_1800E4AC0                                                  ; +0x1d, 0x18002674d\nmov     [rsp+28h+arg_0], rax                                           ; +0x22, 0x180026752\ntest    rax, rax                                                       ; +0x27, 0x180026757\njz      short loc_180026772                                            ; +0x2a, 0x18002675a\nmovss   xmm2, dword ptr [rbx+4]                                        ; +0x2c, 0x18002675c\nmovss   xmm1, dword ptr [rbx]                                          ; +0x31, 0x180026761\nmov     rcx, rax                                                       ; +0x35, 0x180026765\ncall    kmVec2Fill                                                     ; +0x38, 0x180026768\nmov     rbx, rax                                                       ; +0x3d, 0x18002676d\njmp     short loc_180026774                                            ; +0x40, 0x180026770\nxor     ebx, ebx                                                       ; +0x42, 0x180026772\nmov     [rsp+28h+arg_0], rbx                                           ; +0x44, 0x180026774\nmov     r9, [rsi+38h]                                                  ; +0x49, 0x180026779\nmov     rax, [r9]                                                      ; +0x4d, 0x18002677d\nlea     rdi, [rax+rdi*8]                                               ; +0x50, 0x180026780\nmov     rcx, [r9+8]                                                    ; +0x54, 0x180026784\ncmp     rcx, [r9+10h]                                                  ; +0x58, 0x180026788\njz      short loc_1800267DF                                            ; +0x5c, 0x18002678c\ncmp     rdi, rcx                                                       ; +0x5e, 0x18002678e\njnz     short loc_1800267AB                                            ; +0x61, 0x180026791\nmov     [rcx], rbx                                                     ; +0x63, 0x180026793\nadd     qword ptr [r9+8], 8                                            ; +0x66, 0x180026796\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x6b, 0x18002679b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x70, 0x1800267a0\nadd     rsp, 20h                                                       ; +0x75, 0x1800267a5\npop     rdi                                                            ; +0x79, 0x1800267a9\nretn                                                                   ; +0x7a, 0x1800267aa\nmov     rax, [rcx-8]                                                   ; +0x7b, 0x1800267ab\nmov     [rcx], rax                                                     ; +0x7f, 0x1800267af\nadd     qword ptr [r9+8], 8                                            ; +0x82, 0x1800267b2\nmov     r8, rcx                                                        ; +0x87, 0x1800267b7\nsub     r8, rdi                                                        ; +0x8a, 0x1800267ba\nadd     r8, 0FFFFFFFFFFFFFFF8h; Size                                   ; +0x8d, 0x1800267bd\nsub     rcx, r8; void *                                                ; +0x91, 0x1800267c1\nmov     rdx, rdi; Src                                                  ; +0x94, 0x1800267c4\ncall    memmove                                                        ; +0x97, 0x1800267c7\nmov     [rdi], rbx                                                     ; +0x9c, 0x1800267cc\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9f, 0x1800267cf\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xa4, 0x1800267d4\nadd     rsp, 20h                                                       ; +0xa9, 0x1800267d9\npop     rdi                                                            ; +0xad, 0x1800267dd\nretn                                                                   ; +0xae, 0x1800267de\nlea     r8, [rsp+28h+arg_0]                                            ; +0xaf, 0x1800267df\nmov     rdx, rdi                                                       ; +0xb4, 0x1800267e4\nmov     rcx, r9                                                        ; +0xb7, 0x1800267e7\ncall    sub_180025630                                                  ; +0xba, 0x1800267ea\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xbf, 0x1800267ef\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc4, 0x1800267f4\nadd     rsp, 20h                                                       ; +0xc9, 0x1800267f9\npop     rdi                                                            ; +0xcd, 0x1800267fd\nretn                                                                   ; +0xce, 0x1800267fe", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b94b4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}