{"type": "func", "start": 6442604144, "end": 6442604257, "name": "cocos2d::CCPointArray::addControlPoint", "pseudocode": "// \n// cocos2d::CCPointArray::addControlPoint from 0x180025670 to 0x1800256e1 (113 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801af304\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\nfloat *__fastcall cocos2d::CCPointArray::addControlPoint(cocos2d::CCPointArray *this, struct cocos2d::CCPoint a2)\n{\n  float *result; // rax\n  __int64 v5; // rcx\n  _BYTE *v6; // rdx\n  float *v7; // [rsp+30h] [rbp+8h] BYREF\n\n  result = (float *)operator new(8u);\n  v7 = result;\n  if ( result )\n    result = kmVec2Fill(result, **(float **)&a2, *(float *)(*(_QWORD *)&a2 + 4LL));\n  v7 = result;\n  v5 = *((_QWORD *)this + 7);\n  v6 = *(_BYTE **)(v5 + 8);\n  if ( v6 == *(_BYTE **)(v5 + 16) )\n    return (float *)sub_180015D80((const void **)v5, v6, &v7);\n  *(_QWORD *)v6 = result;\n  *(_QWORD *)(v5 + 8) += 8LL;\n  return result;\n}", "assembly": "; \n; cocos2d::CCPointArray::addControlPoint from 0x180025670 to 0x1800256e1 (113 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801af304\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, 0x180025670\npush    rdi                                                            ; +0x5, 0x180025675\nsub     rsp, 20h                                                       ; +0x6, 0x180025676\nmov     rbx, rdx                                                       ; +0xa, 0x18002567a\nmov     rdi, rcx                                                       ; +0xd, 0x18002567d\nmov     ecx, 8; Size                                                   ; +0x10, 0x180025680\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x180025685\nmov     [rsp+28h+arg_0], rax                                           ; +0x1a, 0x18002568a\ntest    rax, rax                                                       ; +0x1f, 0x18002568f\njz      short loc_1800256A6                                            ; +0x22, 0x180025692\nmovss   xmm2, dword ptr [rbx+4]                                        ; +0x24, 0x180025694\nmovss   xmm1, dword ptr [rbx]                                          ; +0x29, 0x180025699\nmov     rcx, rax                                                       ; +0x2d, 0x18002569d\ncall    kmVec2Fill                                                     ; +0x30, 0x1800256a0\nnop                                                                    ; +0x35, 0x1800256a5\nmov     [rsp+28h+arg_0], rax                                           ; +0x36, 0x1800256a6\nmov     rcx, [rdi+38h]                                                 ; +0x3b, 0x1800256ab\nmov     rdx, [rcx+8]                                                   ; +0x3f, 0x1800256af\ncmp     rdx, [rcx+10h]                                                 ; +0x43, 0x1800256b3\njz      short loc_1800256CC                                            ; +0x47, 0x1800256b7\nmov     [rdx], rax                                                     ; +0x49, 0x1800256b9\nadd     qword ptr [rcx+8], 8                                           ; +0x4c, 0x1800256bc\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x51, 0x1800256c1\nadd     rsp, 20h                                                       ; +0x56, 0x1800256c6\npop     rdi                                                            ; +0x5a, 0x1800256ca\nretn                                                                   ; +0x5b, 0x1800256cb\nlea     r8, [rsp+28h+arg_0]                                            ; +0x5c, 0x1800256cc\ncall    sub_180015D80                                                  ; +0x61, 0x1800256d1\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x66, 0x1800256d6\nadd     rsp, 20h                                                       ; +0x6b, 0x1800256db\npop     rdi                                                            ; +0x6f, 0x1800256df\nretn                                                                   ; +0x70, 0x1800256e0", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801af304"], "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"}